Problem entropy
User ilikeeggs
Submission Time 2026-02-28 08:59:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

entropy.cpp: In function ‘int32_t main()’:
entropy.cpp:40:6: error: redeclaration of ‘long long int x’
40 | int x = max(e[1] - e[0], e.back() - e[n-2]);
| ^
entropy.cpp:21:9: note: ‘long long int x’ previously declared here
21 | int x = 0; //let x be the amount of weakness you can decrease
| ^