| Problem | catfight |
|---|---|
| User | fueh |
| Submission Time | 2024-12-13 16:55:27 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
catfight.cpp: In function ‘int main()’:
catfight.cpp:4:5: error: ‘cin’ was not declared in this scope
4 | cin >> cats >> power;
| ^~~
catfight.cpp:6:5: error: ‘vector’ was not declared in this scope
6 | vector<int> cat_arr(cats);
| ^~~~~~
catfight.cpp:6:12: error: expected primary-expression before ‘int’
6 | vector<int> cat_arr(cats);
| ^~~
catfight.cpp:8:16: error: ‘cat_arr’ was not declared in this scope
8 | cin >> cat_arr[i];
| ^~~~~~~
catfight.cpp:16:26: error: ‘cat_arr’ was not declared in this scope
16 | current_power -= cat_arr[end];
| ^~~~~~~
catfight.cpp:23:29: error: ‘max’ was not declared in this scope
23 | max_cats_defeated = max(max_cats_defeated, end - start + 1);
| ^~~
catfight.cpp:26:5: error: ‘cout’ was no