Problem duckhunt18
User YSH2020
Submission Time 2025-11-20 16:16:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt18.cpp: In function ‘int main()’:
duckhunt18.cpp:10:62: error: expected ‘;’ before ‘)’ token
10 | for (int i=n-1;i>=0;i--){ans=max(ans,max(right,pref[i])+b[i])); right=max(right,a[i]);}
| ^
| ;