Submission #30461

#TimeUsernameProblemLanguageResultExecution timeMemory
30461osmanorhanGame (IOI14_game)C++14
Compilation error
0 ms0 KiB
#include "game.h" int n; int rem[1520]; void initialize(int n) { } int hasEdge(int u, int v) { return cnt[u<v? u:v]++ == (u<v? u:v); }

Compilation message (stderr)

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:10:12: error: 'cnt' was not declared in this scope
     return cnt[u<v? u:v]++ == (u<v? u:v);
            ^