Problem fallingbricks
User vadar2525
Submission Time 2026-06-24 11:15:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fallingbricks.cpp: In function ‘int main()’:
fallingbricks.cpp:11:9: error: ‘n’ was not declared in this scope
11 | char a[n];
| ^
fallingbricks.cpp:14:10: error: ‘a’ was not declared in this scope
14 | cin >> a[i];
| ^
fallingbricks.cpp:17:10: error: ‘b’ was not declared in this scope
17 | cin >> b[i];
| ^
fallingbricks.cpp:20:6: error: ‘a’ was not declared in this scope
20 | if(a[i] == '.' and b[i] > 0){
| ^
fallingbricks.cpp:20:22: error: ‘b’ was not declared in this scope
20 | if(a[i] == '.' and b[i] > 0){
| ^