Problem catlunch
User dlan
Submission Time 2025-06-15 15:39:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catlunch.cpp: In function ‘int main()’:
catlunch.cpp:18:7: error: cannot convert ‘const std::pair<long long int, long long int>’ to ‘long long int’ in assignment
18 | x = *thing.rbegin();
| ^~~~~~~~~~~~~~~
| |
| const std::pair<long long int, long long int>
catlunch.cpp:27:41: error: ‘i’ was not declared in this scope
27 | if (!big.empty())thing.insert({big[0],i});}
| ^
catlunch.cpp:27:43: error: no matching function for call to ‘std::multiset<std::pair<long long int, long long int> >::insert(<brace-enclosed initializer list>)’
27 | if (!big.empty())thing.insert({big[0],i});}
| ^
In file included from /usr/include/c++/9/set:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from catlunch.cpp:1:
/usr/include/c++/9/bits/stl_mu