cake3.cpp: In function 'void solve()':
cake3.cpp:23: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]
23 | if (val.size() == M-2) {
| ~~~~~~~~~~~^~~~~~
cake3.cpp:28: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]
28 | if (val.size() + 2 > M) {
| ~~~~~~~~~~~~~~~^~~
cake3.cpp: In function 'int main()':
cake3.cpp:41:9: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
41 | auto &[v, c] = arr[i];
| ^