Problem doubletrouble
User R9q5P8
Submission Time 2026-11-04 15:21:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

doubletrouble.cpp: In function ‘int main()’:
doubletrouble.cpp:10:43: error: assignment of read-only location ‘a.std::multiset<int>::begin().std::_Rb_tree_const_iterator<int>::operator*()’
10 | for (int i = 0; i < k; ++i) { *a.begin() = *a.begin() * 2; }
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~