Problem | bracketex |
---|---|
User | Henries |
Submission Time | 2024-06-22 16:28:18 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bracketex.cpp: In function ‘int main()’:
bracketex.cpp:12:3: error: expected ‘}’ before ‘else’
12 | else{
| ^~~~
bracketex.cpp:10:49: note: to match this ‘{’
10 | if (a[i] == '(' || a[i] == '[' || a[i] == '{'){
| ^
bracketex.cpp:18:13: error: ‘class std::vector<char>’ has no member named ‘pop’
18 | if (vec.pop()!= a[i]){
| ^~~
bracketex.cpp:25:3: error: expected ‘}’ at end of input
25 | }
| ^
bracketex.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^