Problem gap
User Sans12345
Submission Time 2023-10-22 12:46:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gap.cpp: In function ‘ll findGap(int, int)’:
gap.cpp:24:19: error: ‘n’ was not declared in this scope
24 | for (int i=0; i<n-1; ++i) ans=max(ans, a[i+1]-a[i]);
| ^