Submission #110928

#TimeUsernameProblemLanguageResultExecution timeMemory
110928imsifileOn the Grid (FXCUP4_grid)C++98
Compilation error
0 ms0 KiB
#include "grid.h" void SortDisks(int N) { int X = PutDisks(std::vector<int>{1,3,4,2}); Report(1); Report(X); Report(2); Report(3); }

Compilation message (stderr)

grid.cpp: In function 'void SortDisks(int)':
grid.cpp:3:6: error: ambiguating new declaration of 'void SortDisks(int)'
 void SortDisks(int N) {
      ^~~~~~~~~
In file included from grid.cpp:1:0:
grid.h:7:18: note: old declaration 'std::vector<int> SortDisks(int)'
 std::vector<int> SortDisks(int N);
                  ^~~~~~~~~
grid.cpp:5:2: error: 'Report' was not declared in this scope
  Report(1);
  ^~~~~~
grid.cpp:5:2: note: suggested alternative: 'short'
  Report(1);
  ^~~~~~
  short