Submission #16349

#TimeUsernameProblemLanguageResultExecution timeMemory
16349eaststarscanf 함수 1 (BSC_0_3)C++14
Compilation error
0 ms0 KiB
main(){int n;scanf("%d",&n);printf("%d",n);}

Compilation message (stderr)

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