Problem | doubletrouble |
---|---|
User | Kiameimon |
Submission Time | 2023-12-26 13:36:05 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
doubletrouble.cpp: In function ‘int main()’:
doubletrouble.cpp:18:14: error: assignment of read-only location ‘s.std::multiset<__int128>::begin().std::_Rb_tree_const_iterator<__int128>::operator*()’
18 | *s.begin() = *s.begin()*2;
| ~~~~~~~~~~~^~~~~~~~~~~~~~
doubletrouble.cpp:20:25: error: no match for ‘operator%’ (operand types are ‘std::_Rb_tree_const_iterator<__int128>’ and ‘int’)
20 | lint x = prev(s.end()) % 1000000009;
| ~~~~~~~~~~~~~ ^ ~~~~~~~~~~
| | |
| | int
| std::_Rb_tree_const_iterator<__int128>
In file included from /usr/include/c++/9/valarray:603,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from doubletrouble.cpp:1:
/usr/include/c++/9/bits/valarray_after.h:409:5: note: candidate: ‘template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_