제출 #672632

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

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

game.cpp:12:6: error: ambiguating new declaration of 'void hasEdge(int, int)'
   12 | void hasEdge(int u, int v)
      |      ^~~~~~~
In file included from game.cpp:1:
game.h:5:5: note: old declaration 'int hasEdge(int, int)'
    5 | int hasEdge(int u, int v);
      |     ^~~~~~~
game.cpp: In function 'void hasEdge(int, int)':
game.cpp:14:10: error: return-statement with a value, in function returning 'void' [-fpermissive]
   14 |   return 1;
      |          ^