Submission #672632

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

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