제출 #1204637

#제출 시각아이디문제언어결과실행 시간메모리
1204637dzuizzif-else 문 1 (BSC_0_8)C++20
100 / 100
0 ms328 KiB
#include <cstdio> int main(){ int n; scanf("%d",&n); printf(n?"nonzero\n":"zero\n"); }

컴파일 시 표준 에러 (stderr) 메시지

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