제출 #240664

#제출 시각아이디문제언어결과실행 시간메모리
240664Coroian_David게임 (IOI14_game)C++11
0 / 100
5 ms384 KiB
#include <iostream> #include "game.h" #define MAX_N 1500 using namespace std; int ap[MAX_N + 1]; void initialize(int n) { for(int i = 1; i <= n; i ++) ap[i] = n - 1; } int hasEdge(int u, int v) { u ++; v ++; ap[u] --; ap[v] --; cout << ((ap[u] == 0 || ap[v] == 0) ? "yes\n" : "no\n"); }

컴파일 시 표준 에러 (stderr) 메시지

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