event2.cpp: In function 'int main()':
event2.cpp:8:40: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::tuple<int, int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | #define REP(i, s, e) for (int i = s; i < e; i++)
......
49 | REP (j, 1, tmp.size()) {
| ~~~~~~~~~~~~~~~~
event2.cpp:49:3: note: in expansion of macro 'REP'
49 | REP (j, 1, tmp.size()) {
| ^~~
In file included from /usr/include/c++/10/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
from event2.cpp:1:
event2.cpp:63:22: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
63 | assert(res.size() == k);
| ~~~~~~~~~~~^~~~
event2.cpp:8:40: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | #define REP(i, s, e) for (int i = s; i < e; i++)
......
68 | REP (j, 0, res.size()) {
| ~~~~~~~~~~~~~~~~
event2.cpp:68:5: note: in expansion of macro 'REP'
68 | REP (j, 0, res.size()) {
| ^~~
event2.cpp:35:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
35 | scanf("%d%d", &n, &k);
| ~~~~~^~~~~~~~~~~~~~~~
event2.cpp:37:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
37 | scanf("%d%d", &lr[i].FI, &lr[i].SE);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~