Problem | bracketex |
---|---|
User | P55D2K |
Submission Time | 2023-04-17 11:07:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bracketex.cpp: In function ‘int main()’:
bracketex.cpp:9:9: error: structured binding declaration cannot have type ‘char’
9 | char[n] brackets; cin >> brackets;
| ^~~
bracketex.cpp:9:9: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
bracketex.cpp:9:10: error: conflicting declaration ‘auto n’
9 | char[n] brackets; cin >> brackets;
| ^
bracketex.cpp:8:15: note: previous declaration as ‘long long int n’
8 | long long n; cin >> n;
| ^
bracketex.cpp:9:13: error: expected initializer before ‘brackets’
9 | char[n] brackets; cin >> brackets;
| ^~~~~~~~
bracketex.cpp:9:30: error: ‘brackets’ was not declared in this scope
9 | char[n] brackets; cin >> brackets;
| ^~~~~~~~