답안 #717836

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
717836 2023-04-02T15:58:21 Z EntityPlantt scanf 함수 1 (BSC_0_3) C++14
100 / 100
1 ms 280 KB
#include<cstdio>
main(){int x;scanf("%d",&x);printf("%d",x);}

Compilation message

scanf1.cpp:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){int x;scanf("%d",&x);printf("%d",x);}
      | ^~~~
scanf1.cpp: In function 'int main()':
scanf1.cpp:2:19: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
    2 | main(){int x;scanf("%d",&x);printf("%d",x);}
      |              ~~~~~^~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 280 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct