Submission #717845

# Submission time Handle Problem Language Result Execution time Memory
717845 2023-04-02T16:08:38 Z EntityPlantt if-else 문 1 (BSC_0_8) C++14
100 / 100
1 ms 284 KB
#include<cstdio>
main(){int x;scanf("%d",&x);printf("%szero",x?"non":"");}

Compilation message

if1.cpp:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){int x;scanf("%d",&x);printf("%szero",x?"non":"");}
      | ^~~~
if1.cpp: In function 'int main()':
if1.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("%szero",x?"non":"");}
      |              ~~~~~^~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 284 KB Output is correct
3 Correct 1 ms 280 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 1 ms 280 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 1 ms 212 KB Output is correct