Problem | bracketex |
---|---|
User | ZiErn |
Submission Time | 2023-11-08 14:34:46 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bracketex.cpp: In function ‘int main()’:
bracketex.cpp:7:7: error: conflicting declaration ‘char s’
7 | char s;
| ^
bracketex.cpp:5:15: note: previous declaration as ‘std::stack<char> s’
5 | stack <char> s;
| ^
bracketex.cpp:11:19: error: expected ‘;’ before ‘<’ token
11 | for (int i = 0, i < L, i++){
| ^~
| ;
bracketex.cpp:11:20: error: expected primary-expression before ‘<’ token
11 | for (int i = 0, i < L, i++){
| ^
bracketex.cpp:11:28: error: expected ‘;’ before ‘)’ token
11 | for (int i = 0, i < L, i++){
| ^
| ;
bracketex.cpp:12:7: error: no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘std::stack<char>’)
12 | cin >> s
|