Submission #1006462

#TimeUsernameProblemLanguageResultExecution timeMemory
1006462devariaotaGame (IOI14_game)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; int n, f[N]; void initialize(int n) { } int hasEdge(int u, int v) { f[max(u, v)]++; return f[max(u, v)] == max(u, v); }

Compilation message (stderr)

game.cpp:3:10: error: 'N' was not declared in this scope
    3 | int n, f[N];
      |          ^
game.cpp: In function 'int hasEdge(int, int)':
game.cpp:8:5: error: 'f' was not declared in this scope
    8 |     f[max(u, v)]++;
      |     ^