Submission #306640

#TimeUsernameProblemLanguageResultExecution timeMemory
306640juggernautGame (IOI14_game)C++14
Compilation error
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]); }

Compilation message (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]);
      |                 ^~~