답안 #14963

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
14963 2015-07-08T01:25:58 Z progressive scanf 함수 1 (BSC_0_3) C++14
컴파일 오류
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));}
                        ^