Problem brick
User dfsssssssssfsdfdssgdfs
Submission Time 2026-03-25 17:40:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:18:24: error: expected ‘;’ before ‘}’ token
18 | brick.push(num[y+1])
| ^
| ;
19 | }else{
| ~
brick.cpp:20:14: error: expected ‘;’ before ‘{’ token
20 | brick.push{num[y]}
| ^
| ;
brick.cpp:20:10: error: statement cannot resolve address of overloaded function
20 | brick.push{num[y]}
| ~~~~~~^~~~
brick.cpp:23:16: error: cannot convert ‘std::stack<int>::empty’ from type ‘bool (std::stack<int>::)() const’ to type ‘bool’
23 | while (!brick.empty){
| ^~~~~
brick.cpp:23:16: error: in argument to unary !