Submission #586458

#TimeUsernameProblemLanguageResultExecution timeMemory
586458TimDeeGame (IOI14_game)C++14
Compilation error
0 ms0 KiB
int cnt[5555]; void initialize(int n) { } int hasEdge(int u, int v) { return ++cnt[max(u, v)] == max(u, v); }

Compilation message (stderr)

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:8:16: error: 'max' was not declared in this scope
    8 |   return ++cnt[max(u, v)] == max(u, v);
      |                ^~~