Submission #734046

#TimeUsernameProblemLanguageResultExecution timeMemory
734046guagua0407Game (IOI14_game)C++17
Compilation error
0 ms0 KiB
const int mxn=1505; int cnt[mxn]; int n; void initialize(int N){ n=N; } int hasEdge(int a, int b){ if(a>b) swap(a,b); cnt[b]++; if(cnt[b]==b) return 1; return 0; }

Compilation message (stderr)

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:8:13: error: 'swap' was not declared in this scope
    8 |     if(a>b) swap(a,b);
      |             ^~~~