Problem brick
User Yvonne
Submission Time 2024-06-20 15:23:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:12:11: error: ‘ve’ was not declared in this scope; did you mean ‘v’?
12 | while ( !ve.empty () && ve.back() <= v(i)(
| ^~
| v
brick.cpp:12:42: error: no match for call to ‘(std::vector<int>) (int&)’
12 | while ( !ve.empty () && ve.back() <= v(i)(
| ^
brick.cpp:13:16: error: expected ‘)’ before ‘;’ token
13 | ve.pop_back();
| ^
| )
brick.cpp:12:8: note: to match this ‘(’
12 | while ( !ve.empty () && ve.back() <= v(i)(
| ^
brick.cpp:14:1: error: expected primary-expression before ‘)’ token
14 | )
| ^
brick.cpp:16:6: error: expected primary-expression before ‘)’ token
16 | )
| ^
brick.cpp:17:27: error: ‘j’ was not declared in this scope
17 | for(int j= ve.size()-1; j >= 0; j--) {