Submission #992729

#TimeUsernameProblemLanguageResultExecution timeMemory
992729Muaath_5Game (IOI14_game)C++17
Compilation error
0 ms0 KiB
int mp[' ']; void initialize(int n){} int hasEdge(int u, int v) { if (u > v) swap(u, v); return ++mp[v] = v; }

Compilation message (stderr)

game.cpp:1:8: warning: multi-character character constant [-Wmultichar]
    1 | int mp['   '];
      |        ^~~~~
game.cpp: In function 'int hasEdge(int, int)':
game.cpp:5:14: error: 'swap' was not declared in this scope
    5 |   if (u > v) swap(u, v);
      |              ^~~~