제출 #1006520

#제출 시각아이디문제언어결과실행 시간메모리
1006520makanhulia게임 (IOI14_game)C++17
컴파일 에러
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);
}

컴파일 시 표준 에러 (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