nicegift.cpp: In function 'int main()':
nicegift.cpp:20:20: warning: comparison of integer expressions of different signedness: 'std::priority_queue<std::pair<int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
20 | if (q.size() >= k) {
| ~~~~~~~~~^~~~
nicegift.cpp:34:43: warning: comparison of integer expressions of different signedness: 'std::priority_queue<std::pair<int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
34 | } else if (q.size() > 0 && q.size() < k) {
| ~~~~~~~~~^~~
nicegift.cpp:41:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | for (int i = 0; i < res.size(); i++) {
| ~~^~~~~~~~~~~~
nicegift.cpp:42:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
42 | for (int j = 0; j < res[i].size(); j++) {
| ~~^~~~~~~~~~~~~~~