제출 #1013521

#제출 시각아이디문제언어결과실행 시간메모리
1013521Error404게임 (IOI14_game)C++17
컴파일 에러
0 ms0 KiB
int hold[MAX]; void initialize(int n){ } int hasEdge(int u,int v){ if(u <v) swap(u,v); hold[u]++; if(hold[u]==u) return 1; else return 0; }

컴파일 시 표준 에러 (stderr) 메시지

game.cpp:1:10: error: 'MAX' was not declared in this scope
    1 | int hold[MAX];
      |          ^~~
game.cpp: In function 'int hasEdge(int, int)':
game.cpp:8:14: error: 'swap' was not declared in this scope
    8 |     if(u <v) swap(u,v);
      |              ^~~~
game.cpp:9:5: error: 'hold' was not declared in this scope
    9 |     hold[u]++;
      |     ^~~~
game.cpp:14:1: warning: control reaches end of non-void function [-Wreturn-type]
   14 | }
      | ^