Submission #1006457

#TimeUsernameProblemLanguageResultExecution timeMemory
1006457christinelynnGame (IOI14_game)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
int n, f[N];
void initialize(int n) {

}
bool 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 'bool hasEdge(int, int)':
game.cpp:8:5: error: 'f' was not declared in this scope
    8 |     f[max(u, v)]++;
      |     ^