Submission #13334

#TimeUsernameProblemLanguageResultExecution timeMemory
13334ggohGame (IOI14_game)C++98
Compilation error
0 ms0 KiB
#include<cstdio> int w[1501]; void initialize(int n); int hasEdge(int u,int v) { if(w[u]==n-2||w[v]==n-2) { return 1; } else { w[u]++; w[v]++; return 0; } }

Compilation message (stderr)

game.cpp: In function ‘int hasEdge(int, int)’:
game.cpp:6:11: error: ‘n’ was not declared in this scope
  if(w[u]==n-2||w[v]==n-2)
           ^
game.cpp:16:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^