Problem devour
User aj
Submission Time 2025-02-20 14:24:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

devour.cpp: In function ‘int main()’:
devour.cpp:11:5: error: ‘vetcor’ was not declared in this scope
11 | vetcor<int>monster_health;
| ^~~~~~
devour.cpp:11:12: error: expected primary-expression before ‘int’
11 | vetcor<int>monster_health;
| ^~~
devour.cpp:15:9: error: ‘monster_health’ was not declared in this scope
15 | monster_health.push_back(health);
| ^~~~~~~~~~~~~~
devour.cpp:22:17: error: ‘monster_health’ was not declared in this scope
22 | monster_health[z]-=1;
| ^~~~~~~~~~~~~~
devour.cpp:27:26: error: ‘monster_health’ was not declared in this scope
27 | for (int elem=0;elem<monster_health.size();elem++){
| ^~~~~~~~~~~~~~