Submission #1006520

#TimeUsernameProblemLanguageResultExecution timeMemory
1006520makanhulia게임 (IOI14_game)C++17
Compilation error
0 ms0 KiB
#include<bits/stdc++.h>
using namespace std;
int n, deg[1505];
void initialize(int n)
{
  
}
bool hasEdge(int u, int v)
{
  deg[max(u, v)]++;
  return freq[max(u, v)]==max(u, v);
}

Compilation message (stderr)

game.cpp: In function 'bool hasEdge(int, int)':
game.cpp:11:10: error: 'freq' was not declared in this scope; did you mean 'free'?
   11 |   return freq[max(u, v)]==max(u, v);
      |          ^~~~
      |          free