tower.cpp: In function 'int main()':
tower.cpp:15:2: error: 'll' was not declared in this scope
15 | ll r = 0, sol = 1;
| ^~
tower.cpp:17:10: error: 'r' was not declared in this scope
17 | while (r < n - 1 && ar[r + 1] - ar[l] <= d) r++;
| ^
tower.cpp:18:14: error: 'r' was not declared in this scope
18 | int dist = r - l + 1; //largest tower we can built when ar[l] block is the base
| ^
tower.cpp:19:3: error: 'sol' was not declared in this scope
19 | sol = (sol * 1LL * dist) % MOD;
| ^~~
tower.cpp:21:10: error: 'sol' was not declared in this scope
21 | cout << sol << '\n';
| ^~~