Submission #1016769

#TimeUsernameProblemLanguageResultExecution timeMemory
1016769vivkostovGame (IOI14_game)C++14
0 / 100
1 ms436 KiB
#include<bits/stdc++.h> #define endl '\n' using namespace std; void speed() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); } int br[2005],n; void initialize(int N) { n=N; } int hasEdge(int u,int v) { if(br[u]!=n-1&&br[v]!=n-1)cout<<"no"<<endl; else cout<<"yes"<<endl; br[u]++; br[v]++; }

Compilation message (stderr)

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:21:1: warning: no return statement in function returning non-void [-Wreturn-type]
   21 | }
      | ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...