제출 #2652

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

컴파일 시 표준 에러 (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 'i' [-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:12: warning: incompatible implicit declaration of built-in function 'scanf' [enabled by default]
tutorial2.c:1:26: warning: value computed is not used [-Wunused-value]
tutorial2.c:1:1: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
tutorial2.c:1:46: 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/ccKMtoMu.o: In function `main':
tutorial2.c:(.text.startup+0x0): multiple definition of `main'
/tmp/cc4ruXW3.o:grader.c:(.text.startup+0x0): first defined here
/tmp/cc4ruXW3.o: In function `main':
grader.c:(.text.startup+0x97): undefined reference to `GetMax'
collect2: ld returned 1 exit status