| Problem | bracketex |
|---|---|
| User | Arielhst |
| Submission Time | 2026-04-18 10:15:44 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
bracketex.cpp: In function ‘int main()’:
bracketex.cpp:7:2: error: ‘stack’ was not declared in this scope
7 | stack<<char> s;
| ^~~~~
bracketex.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;
bracketex.cpp:7:9: error: expected primary-expression before ‘char’
7 | stack<<char> s;
| ^~~~
bracketex.cpp:8:2: error: ‘s’ was not declared in this scope
8 | s.push('(');
| ^