foo.cc: In function 'int main()':
foo.cc:21:36: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type*' {aka 'int*'} [-Wformat=]
21 | for (i = 0; i < n; i++) scanf("%lld", &v[i]);
| ~~~^
| |
| long long int*
| %d
foo.cc:21:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
21 | for (i = 0; i < n; i++) scanf("%lld", &v[i]);
| ~~~~~^~~~~~~~~~~~~~~
foo.cc:24:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
24 | scanf("%lld%lld", &t[i].l, &t[i].r);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务