Problem spellofweakness
User notthatcp
Submission Time 2025-08-31 10:19:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

spellofweakness.cpp: In function ‘int main()’:
spellofweakness.cpp:58:13: error: ‘else’ without a previous ‘if’
58 | else
| ^~~~
spellofweakness.cpp:63:19: error: no match for ‘operator[]’ (operand types are ‘std::set<long long int>’ and ‘long long int’)
63 | ok[j] = true;
| ^
spellofweakness.cpp:65:24: error: no matching function for call to ‘std::set<long long int>::erase(std::set<long long int>::reverse_iterator)’
65 | ok.erase(ok.rbegin());
| ^
In file included from /usr/include/c++/9/set:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from spellofweakness.cpp:1:
/usr/include/c++/9/bits/stl_set.h:654:7: note: candidate: ‘std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator)