Problem fallingbricks
User Tweoka
Submission Time 2026-06-24 10:43:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fallingbricks.cpp: In function ‘int main()’:
fallingbricks.cpp:8:28: error: expected ‘;’ before ‘vector’
8 | int H, W; cin >> H >> W
| ^
| ;
9 | vector<string> grid(H);
| ~~~~~~
fallingbricks.cpp:11:16: error: ‘grid’ was not declared in this scope
11 | cin >> grid[i];
| ^~~~
fallingbricks.cpp:20:17: error: ‘grid’ was not declared in this scope
20 | if (grid[i][j] == 'O') {
| ^~~~
fallingbricks.cpp:28:13: error: ‘grid’ was not declared in this scope
28 | grid[i][j] = '#';
| ^~~~
fallingbricks.cpp:33:17: error: ‘grid’ was not declared in this scope
33 | cout << grid[i] << "\n";
| ^~~~