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++)
......
52 | REP (i, 0, arr.size()) {
| ~~~~~~~~~~~~~~~~
lasers.cpp:52:2: note: in expansion of macro 'REP'
52 | 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++)
......
93 | REP (i, 0, ranges[id].size()) {
| ~~~~~~~~~~~~~~~~~~~~~~~
lasers.cpp:93:2: note: in expansion of macro 'REP'
93 | REP (i, 0, ranges[id].size()) {
| ^~~
lasers.cpp:65:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
65 | scanf("%d%d", &l, &r);
| ~~~~~^~~~~~~~~~~~~~~~
lasers.cpp:67:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
67 | scanf("%d", &x[i]);
| ~~~~~^~~~~~~~~~~~~
lasers.cpp:70:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
70 | scanf("%d", &walls[i][j]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~