segments.cpp: In function 'void solve(long long int)':
segments.cpp:19:10: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
19 | scanf("%d",&n);
| ~^ ~~
| | |
| | long long int*
| int*
| %lld
segments.cpp:21:11: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
21 | scanf("%d",&a[i]);
| ~^ ~~~~~
| | |
| | long long int*
| int*
| %lld
segments.cpp:18:9: warning: unused variable 'j' [-Wunused-variable]
18 | int i, j;
| ^
segments.cpp:19:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
19 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
segments.cpp:21:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
21 | scanf("%d",&a[i]);
| ~~~~~^~~~~~~~~~~~