Problem devour
User blob
Submission Time 2023-11-24 12:53:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

devour.cpp: In function ‘bool Dead()’:
devour.cpp:8:4: error: ‘s’ was not declared in this scope
8 | s.size(H-1) = alive;
| ^
devour.cpp: In function ‘int main()’:
devour.cpp:22:5: error: ‘class std::set<int>’ has no member named ‘push_back’
22 | s.push_back(H);
| ^~~~~~~~~
devour.cpp:25:13: error: no match for ‘operator+=’ (operand types are ‘std::set<int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<int>’} and ‘int’)
25 | s.begin() += N-1;
| ~~~~~~~~~~^~~~~~