Submission #1341968

#TimeUsernameProblemLanguageResultExecution timeMemory
1341968aritro_Game (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) {
	nn = n;
}

int cnt = 0;

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

Compilation message (stderr)

game.cpp: In function 'void initialize(int)':
game.cpp:12:9: error: 'nn' was not declared in this scope; did you mean 'n'?
   12 |         nn = n;
      |         ^~
      |         n