Problem | devour |
---|---|
User | blob |
Submission Time | 2023-11-24 14:44:52 |
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: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){
| ~~~~~~~~~~ ^~ ~
| | |
| | int
| std::vector<int>
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from devour.cpp:1:
/usr/include/c++/9/bits/regex.h:1026:5: note: candidate: ‘template<class _BiIter> boo