제출 #1006455

#제출 시각아이디문제언어결과실행 시간메모리
1006455christinelynn게임 (IOI14_game)C++17
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h> #include "game.h" using namespace std; int N; int que[2000] ={0}; bool hasEdge(int u,int v){ que[u]++; que[v]++; if(que[u] == N-1 || que[v] == N-1){ return 1; }else{ return 0; } } void initialize(int n){ N = n; }

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

game.cpp:8:6: error: ambiguating new declaration of 'bool hasEdge(int, int)'
    8 | bool hasEdge(int u,int v){
      |      ^~~~~~~
In file included from game.cpp:2:
game.h:5:5: note: old declaration 'int hasEdge(int, int)'
    5 | int hasEdge(int u, int v);
      |     ^~~~~~~