Problem brick
User blob
Submission Time 2023-12-11 15:30:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:15:28: error: expected ‘;’ before ‘{’ token
15 | if (x >= v[i].front(){
| ^
| ;
brick.cpp:18:24: error: expected ‘)’ before ‘;’ token
18 | v[i].push_back(x);
| ^
| )
brick.cpp:15:10: note: to match this ‘(’
15 | if (x >= v[i].front(){
| ^
brick.cpp:18:21: error: could not convert ‘v[i].std::vector<int>::push_back(x)’ from ‘void’ to ‘bool’
18 | v[i].push_back(x);
| ~~~~~~~~~~~~~~^~~
| |
| void