Submission #16288

#TimeUsernameProblemLanguageResultExecution timeMemory
16288khsoo01scanf 함수 1 (BSC_0_3)C++98
Compilation error
0 ms0 KiB
main(int a){scanf("%d",&a);printf("%d",a);}

Compilation message (stderr)

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);}
                                         ^