제출 #21153

#제출 시각아이디문제언어결과실행 시간메모리
21153jaycekingscanf 함수 5 (BSC_0_7)C++14
100 / 100
0 ms1116 KiB
#include<cstdio> int main() { int t1, t2; scanf("%d %d", &t1, &t2); printf("%d%s", (t1 + t2) / 2, (t1 + t2) & 1 ? ".5" : ""); }

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

scanf5.cpp: In function 'int main()':
scanf5.cpp:5:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d", &t1, &t2);
                          ^

#Verdict Execution timeMemoryGrader output
Fetching results...