Submission #1314882

#TimeUsernameProblemLanguageResultExecution timeMemory
1314882chengjiezhuoscanf 함수 1 (BSC_0_3)C++20
100 / 100
0 ms332 KiB
#include <cstdio>
int n;
int main(){
    scanf("%d", &n);
    printf("%d\n", n);
}

Compilation message (stderr)

scanf1.cpp: In function 'int main()':
scanf1.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...