Problem staircase
User Tweoka
Submission Time 2026-06-24 15:43:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

staircase.cpp: In function ‘int main()’:
staircase.cpp:13:13: error: expected initializer before ‘==’ token
13 | int tar == 1;
| ^~
staircase.cpp:15:21: error: ‘tar’ was not declared in this scope; did you mean ‘tan’?
15 | if (a[i] == tar) {
| ^~~
| tan
staircase.cpp:20:13: error: ‘tar’ was not declared in this scope; did you mean ‘tan’?
20 | cout << tar-1 << "\n"
| ^~~
| tan