cake3.cpp:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
5 | main()
| ^~~~
cake3.cpp: In function 'int main()':
cake3.cpp:25:30: warning: comparison of integer expressions of different signedness: 'std::priority_queue<long long int, std::vector<long long int>, std::greater<void> >::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
25 | while (pq.size() > K)
| ~~~~~~~~~~^~~
cake3.cpp:30:27: warning: comparison of integer expressions of different signedness: 'std::priority_queue<long long int, std::vector<long long int>, std::greater<void> >::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
30 | if (pq.size() == K)
| ~~~~~~~~~~^~~~