lightningrod.cpp: In function 'int main()':
lightningrod.cpp:32:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
32 | for ( j = 0; j < q.size() - 1; j ++) {
| ~~^~~~~~~~~~~~~~
lightningrod.cpp:42:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
42 | for ( j = i + 1; j < v.size(); j ++) {
| ~~^~~~~~~~~~
lightningrod.cpp:6:6: warning: unused variable 't' [-Wunused-variable]
6 | int t, n, m, ans, i, z,j, x, r, p, s, y;
| ^
lightningrod.cpp:6:12: warning: unused variable 'm' [-Wunused-variable]
6 | int t, n, m, ans, i, z,j, x, r, p, s, y;
| ^
lightningrod.cpp:6:23: warning: unused variable 'z' [-Wunused-variable]
6 | int t, n, m, ans, i, z,j, x, r, p, s, y;
| ^
lightningrod.cpp:15:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | scanf("%d",& x);
| ~~~~~^~~~~~~~~~
lightningrod.cpp:16:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | scanf("%d",& y);
| ~~~~~^~~~~~~~~~