Problem | bracketex |
---|---|
User | NgMinSong123 |
Submission Time | 2023-12-31 14:30:09 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bracketex.cpp: In function ‘int main()’:
bracketex.cpp:12:2: error: expected initializer before ‘for’
12 | for (long long i = 0; i < L; i++) {
| ^~~
bracketex.cpp:12:24: error: ‘i’ was not declared in this scope
12 | for (long long i = 0; i < L; i++) {
| ^
bracketex.cpp:16:6: error: ‘arr’ was not declared in this scope
16 | if (arr[0] == '(') {
| ^~~
bracketex.cpp:22:6: error: ‘arr’ was not declared in this scope
22 | if (arr[0] == '[') {
| ^~~
bracketex.cpp:28:6: error: ‘arr’ was not declared in this scope
28 | if (arr[0] == '{') {
| ^~~
bracketex.cpp:34:6: error: ‘arr’ was not declared in this scope
34 | if (arr[1] == '(' && arr[2] != ')') {
| ^~~
bracketex.cpp:38:6: error: ‘arr’ was not declared in this scope
38 | if (arr[1] == '[' && arr[2] != ']') {
| ^~~
bracketex.cpp:42:6: error: ‘arr’ was n