Submission #21625

#TimeUsernameProblemLanguageResultExecution timeMemory
21625nona1314if-else 문 1 (BSC_0_8)C++11
100 / 100
0 ms1116 KiB
#include <stdio.h> int main() { int a; scanf("%d",&a); if(a==0) puts("zero"); else puts("nonzero"); }

Compilation message (stderr)

if1.cpp: In function 'int main()':
if1.cpp:5:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&a);
                 ^
#Verdict Execution timeMemoryGrader output
Fetching results...