Problem brick
User Nathaniel
Submission Time 2025-08-22 15:55:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:15:12: error: expected ‘(’ before ‘i’
15 | if i > array1[0];{
| ^
| (
brick.cpp:16:20: error: ‘class std::vector<int>’ has no member named ‘pop_front’
16 | array1.pop_front(-1)
| ^~~~~~~~~
brick.cpp:19:9: error: ‘else’ without a previous ‘if’
19 | else if i <= array1[0];{
| ^~~~
brick.cpp:19:17: error: expected ‘(’ before ‘i’
19 | else if i <= array1[0];{
| ^
| (
brick.cpp:20:20: error: ‘class std::vector<int>’ has no member named ‘push_front’
20 | array1.push_front(i)
| ^~~~~~~~~~