제출 #398846

#제출 시각아이디문제언어결과실행 시간메모리
398846almothana05Cop and Robber (BOI14_coprobber)C++14
컴파일 에러
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;
	}
}

컴파일 시 표준 에러 (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 | }
      | ^