Problem | devour |
---|---|
User | blob |
Submission Time | 2023-11-24 12:44:50 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
devour.cpp: In function ‘bool Dead()’:
devour.cpp:4:7: error: ‘H’ was not declared in this scope
4 | if (H != 0){
| ^
devour.cpp:5:4: error: ‘s’ was not declared in this scope
5 | s.size(H-1) = alive;
| ^
devour.cpp:5:18: error: ‘alive’ was not declared in this scope
5 | s.size(H-1) = alive;
| ^~~~~
devour.cpp: At global scope:
devour.cpp:15:1: error: expected declaration before ‘}’ token
15 | }
| ^
devour.cpp: In function ‘int main()’:
devour.cpp:24:13: error: no match for ‘operator+=’ (operand types are ‘std::set<int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<int>’} and ‘int’)
24 | s.begin() += N-1;
| ~~~~~~~~~~^~~~~~
devour.cpp:30:2: error: expected ‘}’ at end of input
30 | }
| ^
devour.cpp:16:11: note: to match this ‘{’
16 | int main(){
| ^