Problem | bracketex |
---|---|
User | thelusidian |
Submission Time | 2024-04-29 16:01:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bracketex.cpp: In function ‘int main()’:
bracketex.cpp:26:5: error: ‘else’ without a previous ‘if’
26 | } else if (val == ']' && ihani[ihani.size()-1] == '['){
| ^~~~
bracketex.cpp:37:4: error: break statement not within loop or switch
37 | break;
| ^~~~~
bracketex.cpp:41:4: error: break statement not within loop or switch
41 | break;
| ^~~~~
bracketex.cpp: At global scope:
bracketex.cpp:44:2: error: expected unqualified-id before ‘if’
44 | if (curl != 0 || square != 0 || paren != 0){
| ^~
bracketex.cpp:47:2: error: ‘cout’ does not name a type
47 | cout << ans;
| ^~~~
bracketex.cpp:48:1: error: expected declaration before ‘}’ token
48 | }
| ^