Submission #1987

#TimeUsernameProblemLanguageResultExecution timeMemory
1987gs13068_moi최댓값 (tutorial2)C11
Compilation error
0 ms0 KiB
GetMax(int N,int *A){for(int R=0;N--;R=R<A[N]?A[N]:R);return R;}

Compilation message (stderr)

tutorial2.c:1:1: warning: return type defaults to 'int' [-Wreturn-type]
tutorial2.c: In function 'GetMax':
tutorial2.c:1:22: error: 'for' loop initial declarations are only allowed in C99 mode
tutorial2.c:1:22: note: use option -std=c99 or -std=gnu99 to compile your code