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)提供评测服务