Submission #23482

# Submission time Handle Problem Language Result Execution time Memory
23482 2017-05-10T04:19:27 Z TAMREF if-else 문 1 (BSC_0_8) C++11
100 / 100
0 ms 1116 KB
#include <cstdio>
int main(){
  int n; scanf("%d",&n); puts(n?"nonzero":"zero");
}

Compilation message

if1.cpp: In function 'int main()':
if1.cpp:3:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   int n; scanf("%d",&n); puts(n?"nonzero":"zero");
                        ^
# Verdict Execution time Memory Grader output
1 Correct 0 ms 1116 KB Output is correct
2 Correct 0 ms 1116 KB Output is correct
3 Correct 0 ms 1116 KB Output is correct
4 Correct 0 ms 1116 KB Output is correct
5 Correct 0 ms 1116 KB Output is correct
6 Correct 0 ms 1116 KB Output is correct
7 Correct 0 ms 1116 KB Output is correct
8 Correct 0 ms 1116 KB Output is correct
9 Correct 0 ms 1116 KB Output is correct
10 Correct 0 ms 1116 KB Output is correct