|
|
@@ -1,6 +1,8 @@ |
|
|
|
#include <map> |
|
|
|
#include <string> |
|
|
|
|
|
|
|
// L4: Function. |
|
|
|
|
|
|
|
std::map<int, int> memory_generateConstPlayfield( |
|
|
|
int n |
|
|
|
) { |
|
|
@@ -15,6 +17,8 @@ std::map<int, int> memory_generateConstPlayfield( |
|
|
|
return idGroups; |
|
|
|
} |
|
|
|
|
|
|
|
// L20: Test. |
|
|
|
|
|
|
|
std::string test_memory_generateConstPlayfield() { |
|
|
|
auto idGroups = memory_generateConstPlayfield(2); |
|
|
|
if ( |
|
|
@@ -26,10 +30,11 @@ std::string test_memory_generateConstPlayfield() { |
|
|
|
) { |
|
|
|
return "OK: memory_generateConstPlayfield"; |
|
|
|
} |
|
|
|
|
|
|
|
return "ERR: memory_generateConstPlayfield"; |
|
|
|
} |
|
|
|
|
|
|
|
// L36: Run. |
|
|
|
|
|
|
|
int main() { |
|
|
|
printf("%s\n", test_memory_generateConstPlayfield().c_str()); |
|
|
|
} |