Problem guards
User YSH2020
Submission Time 2025-02-06 17:24:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

guards.cpp: In function ‘long long int f(long long int, long long int)’:
guards.cpp:13:6: error: ‘x’ was not declared in this scope
13 | if (x > 0) return (e-s+1)*(pref[e]-pref[s-1]);
| ^