| Problem | brick |
|---|---|
| User | OMW |
| Submission Time | 2025-01-24 14:25:00 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
brick.cpp:4:7: error: ‘data_type’ was not declared in this scope
4 | stack<data_type> s;
| ^~~~~~~~~
brick.cpp:4:16: error: template argument 1 is invalid
4 | stack<data_type> s;
| ^
brick.cpp:4:16: error: template argument 2 is invalid
brick.cpp:5:12: error: conflicting declaration ‘std::stack<int> s’
5 | stack<int> s;
| ^
brick.cpp:4:18: note: previous declaration as ‘int s’
4 | stack<data_type> s;
| ^
brick.cpp: In function ‘int main()’:
brick.cpp:14:6: error: expected ‘(’ before ‘bro’
14 | if bro > blud{
| ^~~
| (
brick.cpp:18:23: error: request for member ‘size’ in ‘s’, which is of non-class type ‘int’
18 | for (int i = 0;i < s.size();i++){
| ^~~~
brick.cpp:19:13: error: request for member ‘top’ in ‘s’, which is of non-class type ‘int’