Problem | brick |
---|---|
User | Johnnie |
Submission Time | 2023-06-11 22:23:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
brick.cpp: In function ‘int main()’:
brick.cpp:16:15: error: expected unqualified-id before ‘.’ token
16 | while (stack.top() < A[i] && !stack.empty())
| ^
brick.cpp:18:9: error: expected unqualified-id before ‘.’ token
18 | stack.pop();
| ^
brick.cpp:20:8: error: expected unqualified-id before ‘.’ token
20 | stack.push(A[i]);
| ^
brick.cpp:22:15: error: missing template arguments before ‘.’ token
22 | while (!stack.empty())
| ^
brick.cpp:24:16: error: missing template arguments before ‘.’ token
24 | cout << stack.top() << endl;
| ^
brick.cpp:25:8: error: expected unqualified-id before ‘.’ token
25 | stack.pop();
| ^