Submission #96398

#TimeUsernameProblemLanguageResultExecution timeMemory
96398figter001Game (IOI14_game)C++14
Compilation error
0 ms0 KiB
#include "game.h" #include <bits/stdc++.h> using namespace std; typedef long long ll; const int manx = 2000; int cnt[maxn]; int hasEdge(int u, int v) { return ++cnt[max(u,v)] == max(u,v); }

Compilation message (stderr)

game.cpp:9:9: error: 'maxn' was not declared in this scope
 int cnt[maxn];
         ^~~~
game.cpp:9:9: note: suggested alternative: 'manx'
 int cnt[maxn];
         ^~~~
         manx
game.cpp: In function 'int hasEdge(int, int)':
game.cpp:11:14: error: 'cnt' was not declared in this scope
     return ++cnt[max(u,v)] == max(u,v);
              ^~~
game.cpp:11:14: note: suggested alternative: 'int'
     return ++cnt[max(u,v)] == max(u,v);
              ^~~
              int