제출 #8563

#제출 시각아이디문제언어결과실행 시간메모리
8563a555최댓값 (tutorial2)C++98
컴파일 에러
0 ms0 KiB
int GetMax(int N, int *A){ int b = 0; REP(i, n){ if (b < A[i]) b = A[i]; } return b; }

컴파일 시 표준 에러 (stderr) 메시지

tutorial2.cpp: In function 'int GetMax(int, int*)':
tutorial2.cpp:4:6: error: 'i' was not declared in this scope
tutorial2.cpp:4:9: error: 'n' was not declared in this scope
tutorial2.cpp:4:10: error: 'REP' was not declared in this scope
tutorial2.cpp:4:11: error: expected ';' before '{' token