Problem brick
User wtnetlegend
Submission Time 2025-02-08 00:14:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:18:10: error: expected ‘;’ before ‘a’
18 | s.push a[i];
| ^~
| ;
brick.cpp:18:6: error: statement cannot resolve address of overloaded function
18 | s.push a[i];
| ~~^~~~
brick.cpp:22:12: error: no match for ‘operator[]’ (operand types are ‘std::stack<int>’ and ‘int’)
22 | cout << s[i] << '\n';
| ^
brick.cpp:23:2: error: expected ‘}’ at end of input
23 | }
| ^
brick.cpp:4:12: note: to match this ‘{’
4 | int main (){
| ^