Submission #14963

# Submission time Handle Problem Language Result Execution time Memory
14963 2015-07-08T01:25:58 Z progressive scanf 함수 1 (BSC_0_3) C++14
Compilation error
0 ms 0 KB
#import<cstdio>
main(int c){puts(gets(c));}

Compilation message

scanf1.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
 #import<cstdio>
  ^
scanf1.cpp:2:11: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
 main(int c){puts(gets(c));}
           ^
scanf1.cpp:2:1: warning: ‘int main(int)’ takes only zero or two arguments [-Wmain]
 main(int c){puts(gets(c));}
 ^
scanf1.cpp: In function ‘int main(int)’:
scanf1.cpp:2:24: error: ‘gets’ was not declared in this scope
 main(int c){puts(gets(c));}
                        ^