Submission #3264

#TimeUsernameProblemLanguageResultExecution timeMemory
3264joonas최댓값 (tutorial2)C11
Compilation error
0 ms0 KiB
int GetMax(int N, int *A){ int i,r=A[0]; for(i=1; i<N; ++i) if(A[i] > r) r = A[i]; return ret; }

Compilation message (stderr)

tutorial2.c: In function 'GetMax':
tutorial2.c:5:12: error: 'ret' undeclared (first use in this function)
tutorial2.c:5:12: note: each undeclared identifier is reported only once for each function it appears in
tutorial2.c:6:1: warning: control reaches end of non-void function [-Wreturn-type]