제출 #1124327

#제출 시각아이디문제언어결과실행 시간메모리
1124327codexistent게임 (IOI14_game)C11
컴파일 에러
0 ms0 KiB
#include "game.h" void initialize(int n) { } ll ct[1500]; int hasEdge(int u, int v) { return ++ct[max(u, v)] == max(a, b); }

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

game.c:7:1: error: unknown type name 'll'
    7 | ll ct[1500];
      | ^~
game.c: In function 'hasEdge':
game.c:9:17: warning: implicit declaration of function 'max' [-Wimplicit-function-declaration]
    9 |     return ++ct[max(u, v)] == max(a, b);
      |                 ^~~
game.c:9:35: error: 'a' undeclared (first use in this function)
    9 |     return ++ct[max(u, v)] == max(a, b);
      |                                   ^
game.c:9:35: note: each undeclared identifier is reported only once for each function it appears in
game.c:9:38: error: 'b' undeclared (first use in this function)
    9 |     return ++ct[max(u, v)] == max(a, b);
      |                                      ^