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

Compile Error

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