/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:39:50: warning: use of 'll' length modifier with 'f' type character has either no effect or undefined behavior [-Wformat=]
  scanf("%llf%llf%llf%llf%d", &D1, &C, &D2, &P, &n);
                                                  ^
/in/foo.cc:39:50: warning: use of 'll' length modifier with 'f' type character has either no effect or undefined behavior [-Wformat=]
/in/foo.cc:39:50: warning: use of 'll' length modifier with 'f' type character has either no effect or undefined behavior [-Wformat=]
/in/foo.cc:39:50: warning: use of 'll' length modifier with 'f' type character has either no effect or undefined behavior [-Wformat=]
/in/foo.cc:43:42: warning: use of 'll' length modifier with 'f' type character has either no effect or undefined behavior [-Wformat=]
   scanf("%llf%llf", &pl[i].dis, &pl[i].co);
                                          ^
/in/foo.cc:43:42: warning: use of 'll' length modifier with 'f' type character has either no effect or undefined behavior [-Wformat=]
/in/foo.cc:53:22: warning: use of 'll' length modifier with 'f' type character has either no effect or undefined behavior [-Wformat=]
  printf("%.2llf", ans);
                      ^
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 216.0 KiB
#2 Accepted 1ms 220.0 KiB
#3 Wrong Answer 1ms 232.0 KiB
#4 Wrong Answer 1ms 216.0 KiB
#5 Wrong Answer 1ms 216.0 KiB

信息

递交者
类型
递交
题目
P1253 旅行家的预算
语言
C++
递交时间
2020-11-20 12:38:50
评测时间
2020-11-20 12:38:50
评测机
分数
20
总耗时
7ms
峰值内存
232.0 KiB