Main.cpp: In function 'void solve()':
Main.cpp:36:23: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::array<long long int, 3> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
36 | for (int i = 0; i < v.size(); ++i) {
| ~~^~~~~~~~~~
Main.cpp:37:20: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | while (idx < deltas.size() && a[v[i][1]] + r < a[v[i][2]] + l) {
| ~~~~^~~~~~~~~~~~~~~
Main.cpp:20:15: warning: variable 'A' set but not used [-Wunused-but-set-variable]
20 | long long A, B;
| ^
Main.cpp:20:18: warning: variable 'B' set but not used [-Wunused-but-set-variable]
20 | long long A, B;
| ^
Main.cpp:34:15: warning: unused variable 'prev_l' [-Wunused-variable]
34 | long long prev_l = 0, prev_r = 0;
| ^~~~~~
Main.cpp:34:27: warning: unused variable 'prev_r' [-Wunused-variable]
34 | long long prev_l = 0, prev_r = 0;
| ^~~~~~