제출 #1006436

#제출 시각아이디문제언어결과실행 시간메모리
1006436kebine게임 (IOI14_game)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
#include "game.h"
using namespace std;
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
typedef long long ll;
const ll INF = 1e9;
const ll MOD = 998244353;
const ll MAXN = 2e5 + 5;
const ll LOG = 30;
#define vll vector <ll>
#define pll pair <ll, ll>
#define fi first
#define se second
#define endl '\n'
#define lc (pos+1)
#define rc (pos+2*(mid-l+1))
#define mid ((l+r)/2)

ll a [MAXN];

void initialize(ll n){
}

bool hasEdge(ll u, ll v){
    a[u]++, a[v]++;
    if(a[u] == n-1 || a[v] == n-1) return 1;
    return 0;
}

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

game.cpp: In function 'bool hasEdge(ll, ll)':
game.cpp:28:16: error: 'n' was not declared in this scope
   28 |     if(a[u] == n-1 || a[v] == n-1) return 1;
      |                ^