Submission #16348

# Submission time Handle Problem Language Result Execution time Memory
16348 2015-08-21T14:18:13 Z eaststar scanf 함수 1 (BSC_0_3) C
Compilation error
0 ms 0 KB
main(){int n;scanf("%d",&n);printf("%d",n);

Compilation message

scanf1.c:1:1: warning: return type defaults to ‘int’ [-Wreturn-type]
 main(){int n;scanf("%d",&n);printf("%d",n);
 ^
scanf1.c: In function ‘main’:
scanf1.c:1:1: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
scanf1.c:1:14: warning: incompatible implicit declaration of built-in function ‘scanf’
 main(){int n;scanf("%d",&n);printf("%d",n);
              ^
scanf1.c:1:1: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
 main(){int n;scanf("%d",&n);printf("%d",n);
 ^
scanf1.c:1:29: warning: incompatible implicit declaration of built-in function ‘printf’
 main(){int n;scanf("%d",&n);printf("%d",n);
                             ^
scanf1.c:1:1: error: expected declaration or statement at end of input
 main(){int n;scanf("%d",&n);printf("%d",n);
 ^
scanf1.c:1:1: warning: control reaches end of non-void function [-Wreturn-type]
 main(){int n;scanf("%d",&n);printf("%d",n);
 ^