Submission #21148

#TimeUsernameProblemLanguageResultExecution timeMemory
21148jaycekingscanf 함수 3 (BSC_0_5)C++14
100 / 100
0 ms1116 KiB
#include<cstdio> int main() { int a; scanf("%d", &a); printf("%d", a+1); }

Compilation message (stderr)

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