Problem shoop
User AndyChen
Submission Time 2026-11-06 13:53:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

shoop.cpp: In function ‘int main()’:
shoop.cpp:18:12: error: no match for ‘operator[]’ (operand types are ‘std::multiset<long long int>’ and ‘long long int’)
18 | if (x - a[i] >= 0){
| ^
shoop.cpp:21:10: error: no match for ‘operator[]’ (operand types are ‘std::multiset<long long int>’ and ‘long long int’)
21 | x -= a[i];
| ^