Submission #398846

# Submission time Handle Problem Language Result Execution time Memory
398846 2021-05-04T21:24:16 Z almothana05 Cop and Robber (BOI14_coprobber) C++14
Compilation error
0 ms 0 KB
#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

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 | }
      | ^