Submission #110928

# Submission time Handle Problem Language Result Execution time Memory
110928 2019-05-13T06:44:54 Z imsifile On the Grid (FXCUP4_grid) C++
Compilation error
0 ms 0 KB
#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

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