event2.cpp: In function 'bool canAdd(int)':
event2.cpp:47:35: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
47 | return cntLeft + ans.size() + 1 >= k;
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
event2.cpp: In function 'void removeIntersecting(int)':
event2.cpp:53:7: warning: unused variable 'cntLeft' [-Wunused-variable]
53 | int cntLeft = sol.size();
| ^~~~~~~
event2.cpp: In function 'void solve()':
event2.cpp:81:18: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
81 | if (sol.size() < k)
| ~~~~~~~~~~~^~~
event2.cpp:87:41: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
87 | for (int i = 1 ; i <= n && ans.size() < k ; ++i)
| ~~~~~~~~~~~^~~
In file included from /usr/include/c++/10/cassert:44,
from event2.cpp:4:
event2.cpp:96:21: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
96 | assert(ans.size() == k);
| ~~~~~~~~~~~^~~~