제출 #1341960

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

typedef long long ll;
#define endl '\n'
#define pb push_back
#define ff first
#define ss second
#define all(a) a.begin(),a.end()

void initialize(int n){

}

int hasEdge(int u,int v){
    call++;
    if(u>v) swap(u,v);
    if(u==0&&v==1) return 1;
    else if(u==2&&v==3) return 1;
    else{
        if(call==3) return 0;
        else return 1;
    }
    return 0;
}

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

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:16:5: error: 'call' was not declared in this scope; did you mean 'all'?
   16 |     call++;
      |     ^~~~
      |     all