记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:21:37: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
      scanf("%d %d",&ss[i].p,&ss[i].a);  //农民要价(单价)和数量 
                                     ^
/in/foo.cc:21:37: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:23:6: warning: array subscript is below array bounds [-Warray-bounds]
  sort(ss-1,ss+n-1,cmp);
  ~~~~^~~~~~~~~~~~~~~~~
/in/foo.cc:23:6: warning: array subscript is below array bounds [-Warray-bounds]
/in/foo.cc:23:6: warning: array subscript is below array bounds [-Warray-bounds]
/in/foo.cc:23:6: warning: array subscript is below array bounds [-Warray-bounds]
/in/foo.cc:23:6: warning: array subscript is below array bounds [-Warray-bounds]
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 220.0 KiB
#2 Accepted 1ms 220.0 KiB
#3 Accepted 1ms 232.0 KiB
#4 Wrong Answer 1ms 224.0 KiB
#5 Runtime Error 1ms 232.0 KiB
#6 Runtime Error 1ms 356.0 KiB
#7 Runtime Error 1ms 228.0 KiB
#8 Runtime Error 1ms 352.0 KiB

信息

递交者
类型
递交
题目
混合奶牛
语言
C++
递交时间
2019-07-13 09:16:12
评测时间
2019-07-13 09:16:12
评测机
分数
20
总耗时
11ms
峰值内存
356.0 KiB