Problem brick
User Hengweezy
Submission Time 2024-01-31 23:53:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:18:12: error: ‘class std::stack<int>’ has no member named ‘begin’
18 | reverse(c.begin(), c.end());
| ^~~~~
brick.cpp:18:23: error: ‘class std::stack<int>’ has no member named ‘end’
18 | reverse(c.begin(), c.end());
| ^~~
brick.cpp:18:2: error: ‘reverse’ was not declared in this scope
18 | reverse(c.begin(), c.end());
| ^~~~~~~
brick.cpp:21:10: error: expected ‘;’ before ‘}’ token
21 | c.pop()
| ^
| ;
22 | }
| ~