regions.cpp: In function 'int main()':
regions.cpp:45:13: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
45 | scanf("%d%d%d%d", &N, &R, &Q, &H[0]);
| ~^ ~~
| | |
| int* long long int*
| %lld
regions.cpp:45:15: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
45 | scanf("%d%d%d%d", &N, &R, &Q, &H[0]);
| ~^ ~~
| | |
| int* long long int*
| %lld
regions.cpp:45:17: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
45 | scanf("%d%d%d%d", &N, &R, &Q, &H[0]);
| ~^ ~~
| | |
| int* long long int*
| %lld
regions.cpp:45:19: warning: format '%d' expects argument of type 'int*', but argument 5 has type 'long long int*' [-Wformat=]
45 | scanf("%d%d%d%d", &N, &R, &Q, &H[0]);
| ~^ ~~~~~
| | |
| int* long long int*
| %lld
regions.cpp:49:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
49 | scanf("%d%d", &p, &H[i]);
| ~^ ~~
| | |
| int* long long int*
| %lld
regions.cpp:49:19: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
49 | scanf("%d%d", &p, &H[i]);
| ~^ ~~~~~
| | |
| int* long long int*
| %lld
regions.cpp:73:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
73 | scanf("%d%d", &a, &b);
| ~^ ~~
| | |
| int* long long int*
| %lld
regions.cpp:73:19: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
73 | scanf("%d%d", &a, &b);
| ~^ ~~
| | |
| int* long long int*
| %lld
regions.cpp:94:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
94 | printf("%d\n", ans);
| ~^ ~~~
| | |
| int long long int
| %lld
regions.cpp:45:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
45 | scanf("%d%d%d%d", &N, &R, &Q, &H[0]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
regions.cpp:49:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
49 | scanf("%d%d", &p, &H[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~
regions.cpp:73:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
73 | scanf("%d%d", &a, &b);
| ~~~~~^~~~~~~~~~~~~~~~