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

Compile Error

fallingbricks.cpp: In function ‘int main()’:
fallingbricks.cpp:11:16: error: ‘grid’ was not declared in this scope
11 | cin >> grid[i];
| ^~~~
fallingbricks.cpp:13:17: error: conflicting declaration ‘std::vector<long long int> A’
13 | vector<int> A(W);
| ^
fallingbricks.cpp:9:25: note: previous declaration as ‘std::vector<std::vector<long long int> > A’
9 | vector<vector<int>> A(H, vector<int>(W, 0));
| ^
fallingbricks.cpp:15:13: error: no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘__gnu_cxx::__alloc_traits<std::allocator<std::vector<long long int> >, std::vector<long long int> >::value_type’ {aka ‘std::vector<long long int>’})
15 | cin >> A[j];
In file included from /usr/include/c++/9/sstream:38,