Submission #14963

#TimeUsernameProblemLanguageResultExecution timeMemory
14963progressivescanf 함수 1 (BSC_0_3)C++14
Compilation error
0 ms0 KiB
#import<cstdio> main(int c){puts(gets(c));}

Compilation message (stderr)

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