Submission #3245

#TimeUsernameProblemLanguageResultExecution timeMemory
3245joonas최댓값 (tutorial2)C11
Compilation error
0 ms0 KiB
#include <stdio.h> int* arr; int main(){ int i, N, max=0; scanf("%d", &N); for(i=0; i < N; ++i){ scanf("%d", &arr[i]); if( arr[i] > max ) max = arr[i]; } return 0; }

Compilation message (stderr)

tutorial2.c: In function 'main':
tutorial2.c:7:8: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
tutorial2.c:9:10: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
/tmp/ccekjxTv.o: In function `main':
tutorial2.c:(.text.startup+0x0): multiple definition of `main'
/tmp/cc3CIYmp.o:grader.c:(.text.startup+0x0): first defined here
/tmp/cc3CIYmp.o: In function `main':
grader.c:(.text.startup+0x97): undefined reference to `GetMax'
collect2: ld returned 1 exit status