Submission #398846

#TimeUsernameProblemLanguageResultExecution timeMemory
398846almothana05Cop and Robber (BOI14_coprobber)C++14
Compilation error
0 ms0 KiB
#include "coprobber.h" int menge = 0; int start(int N, bool A[MAX_N][MAX_N]) { menge = n; return 0; } int nextMove(int R) { if(r == menge){ return 0; } else{ return R; } }

Compilation message (stderr)

coprobber.cpp: In function 'int start(int, bool (*)[500])':
coprobber.cpp:5:10: error: 'n' was not declared in this scope
    5 |  menge = n;
      |          ^
coprobber.cpp: In function 'int nextMove(int)':
coprobber.cpp:11:5: error: 'r' was not declared in this scope
   11 |  if(r == menge){
      |     ^
coprobber.cpp:18:1: warning: control reaches end of non-void function [-Wreturn-type]
   18 | }
      | ^