Problem housevisit2
User Pan
Submission Time 2026-08-18 12:10:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

housevisit2.cpp: In function ‘void solve()’:
housevisit2.cpp:66:4: error: ‘now’ was not declared in this scope; did you mean ‘pow’?
66 | now++;
| ^~~
| pow
housevisit2.cpp:68:31: error: ‘now’ was not declared in this scope; did you mean ‘pow’?
68 | ans3 = max(ans3, (i-hi+1) + now);
| ^~~
| pow