Problem brick
User elegantarmour
Submission Time 2024-08-11 08:42:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:15:22: error: cannot convert ‘std::vector<int>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’} to ‘int’ in initialization
15 | int end = stack.end();
| ~~~~~~~~~^~
| |
| std::vector<int>::iterator {aka __gnu_cxx::__normal_iterator<int*, std::vector<int> >}
brick.cpp:22:19: error: cannot convert ‘std::vector<int>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’} to ‘int’ in assignment
22 | end = stack.end();
| ~~~~~~~~~^~
| |
| std::vector<int>::iterator {aka __gnu_cxx::__normal_iterator<int*, std::vector<int> >}
brick.cpp:27:30: error: could not convert ‘it’ from ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’ to ‘bool’