제출 #16288

#제출 시각아이디문제언어결과실행 시간메모리
16288khsoo01scanf 함수 1 (BSC_0_3)C++98
컴파일 에러
0 ms0 KiB
main(int a){scanf("%d",&a);printf("%d",a);}

컴파일 시 표준 에러 (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);}
                                         ^