foo.cc: In function 'int main()':
foo.cc:30:21: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'int*' [-Wformat=]
30 | #define sc(a) scanf("%lld",&a)
| ^~~~~~ ~~~
| |
| int*
31 | #define scc(a,b) scanf("%lld%lld",&a,&b)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32 | #define sccc(a,b,c) scanf("%lld%lld%lld",&a,&b,&c)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33 | using namespace std;
| ~~~~~~~~~~~~~~~~~~~~
34 | const int MAXN=1e6+5;
| ~~~~~~~~~~~~~~~~~~~~~
35 | const int MOD=1e9+7;
| ~~~~~~~~~~~~~~~~~~~~
36 | int n;
| ~~~~~~
37 | ll ans;
| ~~~~~~~
38 | ll llx[105],lly[105],urx[105],ury[105],x[205],y[205],xx[205],yy[205];
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39 | ll abss(ll x)
| ~~~~~~~~~~~~~
40 | {
| ~
41 | if (x<0) return -x;
| ~~~~~~~~~~~~~~~~~~~
42 | return x;
| ~~~~~~~~~
43 | }
| ~
44 | int main()
| ~~~~~~~~~~
45 | {
| ~
46 | sc(n);
| ~~~~
foo.cc:46:2: note: in expansion of macro 'sc'
46 | sc(n);
| ^~
foo.cc:30:25: note: format string is defined here
30 | #define sc(a) scanf("%lld",&a)
| ~~~^
| |
| long long int*
| %d
foo.cc:30:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
30 | #define sc(a) scanf("%lld",&a)
| ~~~~~^~~~~~~~~~~
foo.cc:46:2: note: in expansion of macro 'sc'
46 | sc(n);
| ^~
foo.cc:50:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
50 | scanf("%lld%lld%lld%lld",&llx[i],&lly[i],&urx[i],&ury[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务