제출 #1345578

#제출 시각아이디문제언어결과실행 시간메모리
1345578somefolk게임 (IOI14_game)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;

int group[1500];
void initialize(int n){
    for(int i = 0; i < n; i++) group[i] = i;
}
int hasEdge(int u, int v){
    return !(--gr[(u>v)?u:v]);
}

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

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:9:16: error: 'gr' was not declared in this scope
    9 |     return !(--gr[(u>v)?u:v]);
      |                ^~