Submission #16349

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

Compilation message

scanf1.cpp:1:6: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
 main(){int n;scanf("%d",&n);printf("%d",n);}
      ^
scanf1.cpp: In function ‘int main()’:
scanf1.cpp:1:27: error: ‘scanf’ was not declared in this scope
 main(){int n;scanf("%d",&n);printf("%d",n);}
                           ^
scanf1.cpp:1:42: error: ‘printf’ was not declared in this scope
 main(){int n;scanf("%d",&n);printf("%d",n);}
                                          ^