Submission #221274

#TimeUsernameProblemLanguageResultExecution timeMemory
221274a_playerGame (IOI14_game)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include"game.h" using namespace std; int c[1501]; initialize(int n){} int hasEdge(int u, int v){ if(v>u)swap(u,v); c[v]++; if(c[v]==v)return 1; return 0; }

Compilation message (stderr)

game.cpp:6:17: error: ISO C++ forbids declaration of 'initialize' with no type [-fpermissive]
 initialize(int n){}
                 ^
game.cpp: In function 'int initialize(int)':
game.cpp:6:1: error: ambiguating new declaration of 'int initialize(int)'
 initialize(int n){}
 ^~~~~~~~~~
In file included from game.cpp:2:0:
game.h:4:6: note: old declaration 'void initialize(int)'
 void initialize(int n);
      ^~~~~~~~~~
game.cpp:6:19: warning: no return statement in function returning non-void [-Wreturn-type]
 initialize(int n){}
                   ^