제출 #1314883

#제출 시각아이디문제언어결과실행 시간메모리
1314883chengjiezhuoscanf 함수 2 (BSC_0_4)C++20
100 / 100
0 ms332 KiB
#include <cstdio> int n; int main(){ scanf("%d", &n); printf("%03d\n", n); }

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

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