Problem brick
User spidermancoolboy
Submission Time 2024-02-02 13:19:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:7:2: error: expected initializer before ‘int’
7 | int stack[10000000000000000000000000000000000000000000000000000000000000]
| ^~~
brick.cpp:8:15: error: ‘i’ was not declared in this scope
8 | for (int i=0;i<brick;i++){
| ^
brick.cpp:13:4: error: ‘stack’ was not declared in this scope
13 | stack.insert(bricks[x]);
| ^~~~~
brick.cpp:2:1: note: ‘std::stack’ is defined in header ‘<stack>’; did you forget to ‘#include <stack>’?
1 | #include <iostream>
+++ |+#include <stack>
2 | using namespace std;
brick.cpp:13:17: error: ‘bricks’ was not declared in this scope; did you mean ‘brick’?
13 | stack.insert(bricks[x]);
| ^~~~~~
| brick
brick.cpp:14:14: error: ‘bricks’ was not declared in this scope; did you mean ‘brick’?
14 | } else if (bricks[x]<=br