제출 #1006457

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

컴파일 시 표준 에러 (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)]++;
      |     ^