Problem gap
User coinunderscore
Submission Time 2026-05-08 10:00:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gap.cpp: In function ‘long long int sub1(int)’:
gap.cpp:52:49: error: expected ‘)’ before ‘;’ token
52 | MinMax(fiNum, lastNum, &ans[lptr], &ans[rptr]);
| ^
| )
gap.cpp:51:22: note: to match this ‘(’
51 | while (lptr <= rptr)(
| ^
gap.cpp:57:2: error: expected primary-expression before ‘)’ token
57 | )
| ^
gap.cpp:61:3: error: ‘ret’ was not declared in this scope
61 | ret = max(ret, ans[i] - ans[i-1]);
| ^~~
gap.cpp:63:9: error: ‘ret’ was not declared in this scope
63 | return ret;
| ^~~