제출 #96398

#제출 시각아이디문제언어결과실행 시간메모리
96398figter001게임 (IOI14_game)C++14
컴파일 에러
0 ms0 KiB
#include "game.h" #include <bits/stdc++.h> using namespace std; typedef long long ll; const int manx = 2000; int cnt[maxn]; int hasEdge(int u, int v) { return ++cnt[max(u,v)] == max(u,v); }

컴파일 시 표준 에러 (stderr) 메시지

game.cpp:9:9: error: 'maxn' was not declared in this scope
 int cnt[maxn];
         ^~~~
game.cpp:9:9: note: suggested alternative: 'manx'
 int cnt[maxn];
         ^~~~
         manx
game.cpp: In function 'int hasEdge(int, int)':
game.cpp:11:14: error: 'cnt' was not declared in this scope
     return ++cnt[max(u,v)] == max(u,v);
              ^~~
game.cpp:11:14: note: suggested alternative: 'int'
     return ++cnt[max(u,v)] == max(u,v);
              ^~~
              int