| Problem | brick |
|---|---|
| User | xiaocai918 |
| Submission Time | 2026-08-16 10:16:26 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
brick.cpp: In function ‘int main()’:
brick.cpp:9:5: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
9 | cin >> n;
| ^~~
| std::cin
In file included from brick.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
brick.cpp:11:2: error: ‘stack’ was not declared in this scope; did you mean ‘obstack’?
11 | stack<int> s;
| ^~~~~
| obstack
brick.cpp:11:8: error: expected primary-expression before ‘int’
11 | stack<int> s;
| ^~~
brick.cpp:17:10: error: ‘s’ was not declared in this scope
17 | while (!s.empty() && s.top()) {
| ^
brick.cpp:21:2: error: ‘s’ was not declared in this scope
21 | s.push(x);
| ^
brick.cpp:24:9: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?<