Submission #8563

#TimeUsernameProblemLanguageResultExecution timeMemory
8563a555최댓값 (tutorial2)C++98
Compilation error
0 ms0 KiB
int GetMax(int N, int *A){ int b = 0; REP(i, n){ if (b < A[i]) b = A[i]; } return b; }

Compilation message (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