Submission #855027

#TimeUsernameProblemLanguageResultExecution timeMemory
855027thisistotallymyusernameGame (IOI14_game)C++17
Compilation error
0 ms0 KiB
void initialize(int n) {
    return;
}
 
int c[1500];
int hasEdge(int u, int v) {
    return ++c[max(u, v)] == (u > v ? u : v);
}

Compilation message (stderr)

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