Problem catfight
User blackpanther
Submission Time 2025-05-13 21:56:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catfight.cpp: In function ‘int main()’:
catfight.cpp:8:16: error: ‘power’ was not declared in this scope
8 | cin >> power[i];
| ^~~~~
catfight.cpp:17:19: error: ‘power’ was not declared in this scope
17 | curSum += power[r]; // Add the current cat's battle power to the sum
| ^~~~~