Submission #21622

#TimeUsernameProblemLanguageResultExecution timeMemory
21622nona1314scanf 함수 5 (BSC_0_7)C++11
100 / 100
0 ms1116 KiB
#include <stdio.h> int main() { int a, b; scanf("%d%d",&a,&b); printf("%d",(a+b)/2); if((a+b)%2) printf(".5"); }

Compilation message (stderr)

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