Problem lightningrod
User coder030
Submission Time 2025-01-03 14:14:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:30:18: error: ‘pref’ was not declared in this scope
30 | ans+=((i==0) ||pref[i]>pref[i-1])&&((i==n-1)||suff[i]>suff[i+1]);
| ^~~~
lightningrod.cpp:30:49: error: ‘suff’ was not declared in this scope
30 | ans+=((i==0) ||pref[i]>pref[i-1])&&((i==n-1)||suff[i]>suff[i+1]);
| ^~~~