/ Vijos /

记录详情

Accepted

/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 Accepted 1ms 216.0 KiB
#2 Accepted 1ms 216.0 KiB
#3 Accepted 1ms 232.0 KiB
#4 Accepted 1ms 220.0 KiB
#5 Accepted 1ms 228.0 KiB

信息

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