Problem | gap |
---|---|
User | Sans12345 |
Submission Time | 2023-10-22 00:45:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gap.cpp: In function ‘ll findGap(int, int)’:
gap.cpp:30:7: error: ‘n’ was not declared in this scope
30 | if (n == 2) return rf-lf;
| ^
gap.cpp:32:18: error: ‘n’ was not declared in this scope
32 | ll ans=(rf-lf)/n, d=(rf-lf+(n-2))/(n-1), lst=lf;
| ^
gap.cpp:34:31: error: ‘d’ was not declared in this scope
34 | ll mn, mx; MinMax(lf+1, lf+d, &mn, &mx);
| ^
gap.cpp:35:34: error: ‘lst’ was not declared in this scope
35 | if (mn != -1) ans=max(ans, mn-lst), lst=mx;
| ^~~