Submission #1341960

#TimeUsernameProblemLanguageResultExecution timeMemory
1341960aritro_게임 (IOI14_game)C++20
Compilation error
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;
}

Compilation message (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