제출 #1016769

#제출 시각아이디문제언어결과실행 시간메모리
1016769vivkostov게임 (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]++; }

컴파일 시 표준 에러 (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...