/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:23:17: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'int*' [-Wformat=]
  scanf("%ld", &n);
               ~~^
foo.cc:41:54: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
   printf("%d\n", max(ans[i-1]+sum[i],ans[i]+tot[i]*2));
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
foo.cc:23:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%ld", &n);
  ~~~~~^~~~~~~~~~~
foo.cc:25:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%ld", &arr[i].u);
   ~~~~~^~~~~~~~~~~~~~~~~~
foo.cc:28:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%ld", &arr[i].v);
   ~~~~~^~~~~~~~~~~~~~~~~~

自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)
{"receive":"2020-07-11T10:09:20.048Z","handle":"2020-07-11T10:09:20.048Z","cache_start":"2020-07-11T10:09:20.116Z","read_cases":"2020-07-11T10:09:20.334Z","judge":"2020-07-11T10:09:20.342Z","done":"2020-07-11T10:09:22.253Z"}
# 状态 耗时 内存占用
#1 Accepted 1ms 872.0 KiB
#2 Accepted 1ms 532.0 KiB
#3 Accepted 1ms 324.0 KiB
#4 Accepted 1ms 320.0 KiB
#5 Accepted 1ms 256.0 KiB
#6 Accepted 1ms 2.32 MiB
#7 Runtime Error 19ms 3.391 MiB
#8 Runtime Error 23ms 3.879 MiB
#9 Runtime Error 25ms 4.316 MiB
#10 Runtime Error 26ms 4.828 MiB

信息

递交者
类型
递交
题目
P1977 推销员
语言
C++
递交时间
2020-07-11 18:09:20
评测时间
2020-07-11 18:09:20
评测机
分数
60
总耗时
103ms
峰值内存
4.828 MiB