Submission #1006455

#TimeUsernameProblemLanguageResultExecution timeMemory
1006455christinelynnGame (IOI14_game)C++17
Compilation error
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; }

Compilation message (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);
      |     ^~~~~~~