Problem brick
User yongteckrice
Submission Time 2023-02-10 09:14:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:19:15: error: expected ‘;’ before ‘}’ token
19 | stack.pop()
| ^
| ;
20 | }
| ~
brick.cpp:21:21: error: expected ‘;’ before ‘}’ token
21 | stack.push(curry)
| ^
| ;
22 | }
| ~
brick.cpp:26:8: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘void’)
26 | cout << stack.pop() << "\n";
| ~~~~ ^~ ~~~~~~~~~~~
| | |
| | void
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex