Problem | devour |
---|---|
User | blob |
Submission Time | 2023-11-24 14:44:01 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
devour.cpp: In function ‘int main()’:
devour.cpp:8:11: error: request for member ‘insert’ in ‘monster’, which is of non-class type ‘std::vector<int> [N]’
8 | monster.insert[i] // Health
| ^~~~~~
devour.cpp:13:8: error: expected ‘;’ before ‘}’ token
13 | it++
| ^
| ;
14 | }else{
| ~
devour.cpp:15:18: error: request for member ‘size’ in ‘monster’, which is of non-class type ‘std::vector<int> [N]’
15 | it += monster.size() - 1;
| ^~~~
devour.cpp:17:20: error: no match for ‘operator-’ (operand types are ‘std::vector<int>’ and ‘int’)
17 | if (monster[i] - 1 == 0){
| ~~~~~~~~~~ ^ ~
| | |
| | int
| std::vector<int>
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9