제출 #16349

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

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