제출 #2653

#제출 시각아이디문제언어결과실행 시간메모리
2653domece최댓값 (tutorial2)C11
컴파일 에러
0 ms0 KiB
s;main(m){for(;scanf("%d",&s);)m<s?m=s:0;printf("%d",s);}

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

tutorial2.c:1:1: warning: data definition has no type or storage class [enabled by default]
tutorial2.c:1:1: warning: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
tutorial2.c:1:3: warning: return type defaults to 'int' [-Wreturn-type]
tutorial2.c: In function 'main':
tutorial2.c:1:1: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
tutorial2.c:1:16: warning: incompatible implicit declaration of built-in function 'scanf' [enabled by default]
tutorial2.c:1:1: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
tutorial2.c:1:42: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
tutorial2.c:1:1: warning: control reaches end of non-void function [-Wreturn-type]
/tmp/ccv3sreK.o: In function `main':
tutorial2.c:(.text.startup+0x0): multiple definition of `main'
/tmp/cccUhkff.o:grader.c:(.text.startup+0x0): first defined here
/tmp/cccUhkff.o: In function `main':
grader.c:(.text.startup+0x97): undefined reference to `GetMax'
collect2: ld returned 1 exit status