제출 #306640

#제출 시각아이디문제언어결과실행 시간메모리
306640juggernautGame (IOI14_game)C++14
컴파일 에러
0 ms0 KiB
#include"game.h" int a[9999],n; void initialize(int N){n=N;} int hasEdge(int x,int y){ return n-1==max(++a[x],++a[y]); }

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

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:5:17: error: 'max' was not declared in this scope
    5 |     return n-1==max(++a[x],++a[y]);
      |                 ^~~