| Problem | catfight |
|---|---|
| User | xyzidk9 |
| Submission Time | 2026-05-16 11:15:14 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
catfight.cpp: In function ‘int main()’:
catfight.cpp:6:9: error: expected unqualified-id before ‘,’ token
6 | vector ,int> v ={0},p = {0};
| ^
catfight.cpp:6:10: error: expected unqualified-id before ‘int’
6 | vector ,int> v ={0},p = {0};
| ^~~
catfight.cpp:6:21: error: expected primary-expression before ‘,’ token
6 | vector ,int> v ={0},p = {0};
| ^
catfight.cpp:9:3: error: ‘v’ was not declared in this scope
9 | v.push_back(cur);
| ^
catfight.cpp:10:5: error: request for member ‘push_back’ in ‘p’, which is of non-class type ‘int’
10 | p.push_back(p.back()+cur);
| ^~~~~~~~~
catfight.cpp:10:17: error: request for member ‘back’ in ‘p’, which is of non-class type ‘int’
10 | p.push_back(p.back()+cur);
| ^~~~
catfight.cpp:14:12: error: invalid types ‘int[int]’ for array subscript
14 | while(p[r