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