lasers.cpp: In function 'vii joinRanges(vii)':
lasers.cpp:6:40: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
6 | #define REP(i, s, e) for (int i = s; i < e; i++)
......
39 | REP (i, 1, arr.size()) {
| ~~~~~~~~~~~~~~~~
lasers.cpp:39:2: note: in expansion of macro 'REP'
39 | REP (i, 1, arr.size()) {
| ^~~
lasers.cpp: In function 'vii inv(vii)':
lasers.cpp:6:40: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
6 | #define REP(i, s, e) for (int i = s; i < e; i++)
......
54 | REP (i, 0, arr.size()) {
| ~~~~~~~~~~~~~~~~
lasers.cpp:54:2: note: in expansion of macro 'REP'
54 | REP (i, 0, arr.size()) {
| ^~~
lasers.cpp: In function 'int main()':
lasers.cpp:6:40: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
6 | #define REP(i, s, e) for (int i = s; i < e; i++)
......
97 | REP (i, 0, ranges[id].size()) {
| ~~~~~~~~~~~~~~~~~~~~~~~
lasers.cpp:97:2: note: in expansion of macro 'REP'
97 | REP (i, 0, ranges[id].size()) {
| ^~~
lasers.cpp:67:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
67 | scanf("%d%d", &l, &r);
| ~~~~~^~~~~~~~~~~~~~~~
lasers.cpp:69:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
69 | scanf("%d", &x[i]);
| ~~~~~^~~~~~~~~~~~~
lasers.cpp:72:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
72 | scanf("%d", &walls[i][j]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~