Problem catfight
User zyf
Submission Time 2026-04-13 18:27:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catfight.cpp: In function ‘int main()’:
catfight.cpp:12:14: error: ‘class std::vector<int>’ has no member named ‘push’
12 | cats.push(power);
| ^~~~
catfight.cpp:14:17: error: request for member ‘back’ in ‘sum’, which is of non-class type ‘int’
14 | while(r<sum.back() or sum>P){
| ^~~~