Submission #16288

# Submission time Handle Problem Language Result Execution time Memory
16288 2015-08-20T01:17:13 Z khsoo01 scanf 함수 1 (BSC_0_3) C++
Compilation error
0 ms 0 KB
main(int a){scanf("%d",&a);printf("%d",a);}

Compilation message

scanf1.cpp:1:11: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
 main(int a){scanf("%d",&a);printf("%d",a);}
           ^
scanf1.cpp:1:1: warning: ‘int main(int)’ takes only zero or two arguments [-Wmain]
 main(int a){scanf("%d",&a);printf("%d",a);}
 ^
scanf1.cpp: In function ‘int main(int)’:
scanf1.cpp:1:26: error: ‘scanf’ was not declared in this scope
 main(int a){scanf("%d",&a);printf("%d",a);}
                          ^
scanf1.cpp:1:41: error: ‘printf’ was not declared in this scope
 main(int a){scanf("%d",&a);printf("%d",a);}
                                         ^