Discharging.cpp: In function 'int main()':
Discharging.cpp:50:13: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
50 | scanf("%d",&n);
| ~^ ~~
| | |
| | long long int*
| int*
| %lld
Discharging.cpp:52:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
52 | scanf("%d",&a[i]);
| ~^ ~~~~~
| | |
| | long long int*
| int*
| %lld
Discharging.cpp:76:23: error: 'cl' was not declared in this scope; did you mean 'll'?
76 | cout << clock() - cl << '\n';
| ^~
| ll
Discharging.cpp:78:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
78 | for(int j=0; j<del[i].size(); j++){
| ~^~~~~~~~~~~~~~
Discharging.cpp:50:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
50 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
Discharging.cpp:52:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
52 | scanf("%d",&a[i]);
| ~~~~~^~~~~~~~~~~~