Submission #187242

#TimeUsernameProblemLanguageResultExecution timeMemory
187242mohammadGame (IOI14_game)C++14
Compilation error
0 ms0 KiB
/* ░░░░██████████████████ ░░▄███████▀▀▀▀▀▀███████▄ ░▐████▀▒mohammad▒▀██████▄ ░███▀▒▒▒▒alaa▒▒▒▒▒▒▀█████ ░▐██▒▒▒alwrawrah▒▒▒▒▒████▌ ░▐█▌▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒████▌ ░░█▒▄▀▀▀▀▀▄▒▒▄▀▀▀▀▀▄▒▐███▌ ░░░▐░░░▄▄░░▌▐░░░▄▄░░▌▐███▌ ░▄▀▌░░░▀▀░░▌▐░░░▀▀░░▌▒▀▒█▌ ░▌▒▀▄░░░░▄▀▒▒▀▄░░░▄▀▒▒▄▀▒▌ ░▀▄▐▒▀▀▀▀▒▒▒▒▒▒▀▀▀▒▒▒▒▒▒█ ░░░▀▌▒▄██▄▄▄▄████▄▒▒▒▒█▀ ░░░░▄██████████████▒▒▐▌ ░░░▀███▀▀████▀█████▀▒▌ ░░░░░▌▒▒▒▄▒▒▒▄▒▒▒▒▒▒▐ ░░░░░▌▒▒▒▒▀▀▀▒▒▒▒▒▒▒▐ */ #include<bits/stdc++.h> #include "game.h" using namespace std; typedef long long ll ; const ll oo = 1e13 ; const double PI = acos(-1) ; const ll M = 1e9 + 7 ; int N , r , co = 0 ; void initialize(int n){ N = n ; } int hasEdge(int u, int v) { if(mp[u] == u || mp[v] == v) return 1 ; else return 0; mp[u]++; mp[v]++; }

Compilation message (stderr)

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:35:5: error: 'mp' was not declared in this scope
  if(mp[u] == u || mp[v] == v) return 1 ;
     ^~
game.cpp:37:2: error: 'mp' was not declared in this scope
  mp[u]++;
  ^~
game.cpp:39:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^