Problem snowball
User lucaleeeeee
Submission Time 2026-06-08 11:43:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snowball.cpp: In function ‘int main()’:
snowball.cpp:16:10: error: no match for ‘operator[]’ (operand types are ‘std::multiset<long long int, std::greater<long long int> >’ and ‘int’)
16 | array[0] += k;
| ^
snowball.cpp:18:21: error: no match for ‘operator[]’ (operand types are ‘std::multiset<long long int, std::greater<long long int> >’ and ‘long long int’)
18 | sum += array[x] * array[x];
| ^
snowball.cpp:18:32: error: no match for ‘operator[]’ (operand types are ‘std::multiset<long long int, std::greater<long long int> >’ and ‘long long int’)
18 | sum += array[x] * array[x];
| ^