Submission #717837

# Submission time Handle Problem Language Result Execution time Memory
717837 2023-04-02T15:59:36 Z EntityPlantt scanf 함수 2 (BSC_0_4) C++14
0 / 100
1 ms 212 KB
#include<cstdio>
main(){int x;scanf("%d",&x);printf("%05d",x);}

Compilation message

scanf2.cpp:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){int x;scanf("%d",&x);printf("%05d",x);}
      | ^~~~
scanf2.cpp: In function 'int main()':
scanf2.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("%05d",x);}
      |              ~~~~~^~~~~~~~~
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -