Problem f7
User PerihelionfromAphelion
Submission Time 2026-07-17 22:42:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

f7.cpp: In function ‘bool can(int)’:
f7.cpp:5:7: error: ‘i’ was not declared in this scope
5 | for (i = 0; i < n - 1; i++) {
| ^
f7.cpp:5:18: error: ‘n’ was not declared in this scope
5 | for (i = 0; i < n - 1; i++) {
| ^
f7.cpp:6:11: error: ‘b’ was not declared in this scope
6 | if (x < b[i] + n - 1 - i) return false;
| ^