Submission #1006495

#TimeUsernameProblemLanguageResultExecution timeMemory
1006495kebineGame (IOI14_game)C++17
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; int freq[2000] ={0}; int N; int hasEdge(int u,int v){ freq[u]++; freq[v]++; return (freq[u] == n-1 || freq[v] == n-1); } void initialize(int n){ N = n; }

Compilation message (stderr)

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:9:22: error: 'n' was not declared in this scope
    9 |   return (freq[u] == n-1 || freq[v] == n-1);
      |                      ^