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

Compile Error

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