Submission #586385

#TimeUsernameProblemLanguageResultExecution timeMemory
586385xynexGame (IOI14_game)C++17
Compilation error
0 ms0 KiB
#include "game.h"

void initialize(int n) {

}

int cnt[1501];
int hasEdge(int u, int v) {
    return (++cnt[max(u, v)] == min(u, v));
}

Compilation message (stderr)

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