Problem | bracketex |
---|---|
User | Henries |
Submission Time | 2024-06-22 16:26:33 |
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 if (
| ^~~~
bracketex.cpp:10:49: note: to match this ‘{’
10 | if (a[i] == '(' || a[i] == '[' || a[i] == '{'){
| ^
bracketex.cpp:13:4: error: expected primary-expression before ‘if’
13 | if (vec.size()<1){
| ^~
bracketex.cpp:12:12: error: expected ‘)’ before ‘if’
12 | else if (
| ~^
| )
13 | if (vec.size()<1){
| ~~
bracketex.cpp:22:16: error: expected statement at end of input
22 | cout <<"Valid";
| ^
bracketex.cpp:22:16: error: expected ‘}’ at end of input
bracketex.cpp:9:23: note: to match this ‘{’
9 | for (int i=0;i<n;i++){
| ^
bracketex.cpp:22:16: error: expected ‘}’ at end of input
22 | c