/ WHOJ /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:18:46: error: 'n' was not declared in this scope
   18 |                 scanf("%lld %lld %lld %lld",&n,&m,&x,&y);
      |                                              ^
foo.cc:18:49: error: 'm' was not declared in this scope
   18 |                 scanf("%lld %lld %lld %lld",&n,&m,&x,&y);
      |                                                 ^
foo.cc:18:52: error: 'x' was not declared in this scope
   18 |                 scanf("%lld %lld %lld %lld",&n,&m,&x,&y);
      |                                                    ^
foo.cc:18:55: error: 'y' was not declared in this scope
   18 |                 scanf("%lld %lld %lld %lld",&n,&m,&x,&y);
      |                                                       ^
foo.cc:21:27: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'long long int' [-Wformat=]
   21 |                 scanf("%lld %lld",a[i].st,a[i].ed);
      |                        ~~~^       ~~~~~~~
      |                           |            |
      |                           |            long long int
      |                           long long int*
foo.cc:21:32: warning: format '%lld' expects argument of type 'long long int*', but argument 3 has type 'long long int' [-Wformat=]
   21 |                 scanf("%lld %lld",a[i].st,a[i].ed);
      |                             ~~~^          ~~~~~~~
      |                                |               |
      |                                long long int*  long long int
foo.cc:22:55: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'long long int' [-Wformat=]
   22 |                 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:22:60: warning: format '%lld' expects argument of type 'long long int*', but argument 3 has type 'long long int' [-Wformat=]
   22 |                 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)提供评测服务

信息

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