cake3.cpp: In function 'void solve()':
cake3.cpp:25:23: warning: comparison of integer expressions of different signedness: 'std::priority_queue<long long int, std::vector<long long int>, std::greater<long long int> >::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
25 | if (val.size() + 1 > M) {
| ~~~~~~~~~~~~~~~^~~
cake3.cpp:29:19: warning: comparison of integer expressions of different signedness: 'std::priority_queue<long long int, std::vector<long long int>, std::greater<long long int> >::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
29 | if (val.size() == M-1)
| ~~~~~~~~~~~^~~~~~
cake3.cpp: In function 'int main()':
cake3.cpp:40:9: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
40 | auto &[v, c] = arr[i];
| ^