Submission #1013523

#TimeUsernameProblemLanguageResultExecution timeMemory
1013523Error404Game (IOI14_game)C++17
Compilation error
0 ms0 KiB
const int MAX = 1e5+1; 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; }

Compilation message (stderr)

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:9:14: error: 'swap' was not declared in this scope
    9 |     if(u <v) swap(u,v);
      |              ^~~~