Submission #717836

#TimeUsernameProblemLanguageResultExecution timeMemory
717836EntityPlanttscanf 함수 1 (BSC_0_3)C++14
100 / 100
1 ms280 KiB
#include<cstdio> main(){int x;scanf("%d",&x);printf("%d",x);}

Compilation message (stderr)

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);}
      |              ~~~~~^~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...