foo.cc:16:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
16 | main()
| ^
foo.cc: In function 'int main()':
foo.cc:26:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
26 | printf("%d",ans);
| ~^ ~~~
| | |
| | long long int
| int
| %lld
foo.cc:18:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
18 | scanf("%lld",&n);
| ~~~~~^~~~~~~~~~~
foo.cc:21:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
21 | scanf("%lld %lld",&f[i].a,&f[i].b);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务