답안 #110928

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
110928 2019-05-13T06:44:54 Z imsifile On the Grid (FXCUP4_grid) C++
컴파일 오류
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