/ WHOJ /

记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:22:27: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'long long int' [-Wformat=]
   22 |                 scanf("%lld %lld",a[i].st,a[i].ed);
      |                        ~~~^       ~~~~~~~
      |                           |            |
      |                           |            long long int
      |                           long long int*
foo.cc:22:32: warning: format '%lld' expects argument of type 'long long int*', but argument 3 has type 'long long int' [-Wformat=]
   22 |                 scanf("%lld %lld",a[i].st,a[i].ed);
      |                             ~~~^          ~~~~~~~
      |                                |               |
      |                                long long int*  long long int
foo.cc:23:55: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'long long int' [-Wformat=]
   23 |                 for(long long i=0; i<y; i++)scanf("%lld %lld",b[i].st,b[i].ed);
      |                                                    ~~~^       ~~~~~~~
      |                                                       |            |
      |                                                       |            long long int
      |                                                       long long int*
foo.cc:23:60: warning: format '%lld' expects argument of type 'long long int*', but argument 3 has type 'long long int' [-Wformat=]
   23 |                 for(long long i=0; i<y; i++)scanf("%lld %lld",b[i].st,b[i].ed);
      |                                                         ~~~^          ~~~~~~~
      |                                                            |               |
      |                                                            long long int*  long long int
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 5ms 384.0 KiB
#2 Runtime Error Segmentation fault 2ms 512.0 KiB
#3 Runtime Error Segmentation fault 3ms 384.0 KiB
#4 Runtime Error Segmentation fault 4ms 384.0 KiB
#5 Runtime Error Segmentation fault 4ms 384.0 KiB
#6 Runtime Error Segmentation fault 3ms 384.0 KiB
#7 Runtime Error Segmentation fault 3ms 384.0 KiB
#8 Runtime Error Segmentation fault 4ms 384.0 KiB
#9 Runtime Error Segmentation fault 3ms 384.0 KiB
#10 Runtime Error Segmentation fault 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1813 公共子区间数
题目数据
下载
语言
C++
递交时间
2022-10-06 22:59:28
评测时间
2022-10-06 22:59:28
评测机
分数
0
总耗时
39ms
峰值内存
512.0 KiB