modsum.cpp: In function 'int main()':
modsum.cpp:45:37: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
45 | for(int i = 0; i < n; i++) scanf("%d %d", L + i, R + i);
| ~^ ~~~~~
| | |
| int* long long int*
| %lld
modsum.cpp:45:40: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
45 | for(int i = 0; i < n; i++) scanf("%d %d", L + i, R + i);
| ~^ ~~~~~
| | |
| int* long long int*
| %lld
modsum.cpp:44:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
44 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
modsum.cpp:45:34: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
45 | for(int i = 0; i < n; i++) scanf("%d %d", L + i, R + i);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~