Problem bracketex
User P55D2K
Submission Time 2023-04-17 11:07:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketex.cpp: In function ‘int main()’:
bracketex.cpp:9:9: error: structured binding declaration cannot have type ‘char’
9 | char[] brackets; cin >> brackets;
| ^~
bracketex.cpp:9:9: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
bracketex.cpp:9:9: error: empty structured binding declaration
bracketex.cpp:9:12: error: expected initializer before ‘brackets’
9 | char[] brackets; cin >> brackets;
| ^~~~~~~~
bracketex.cpp:9:29: error: ‘brackets’ was not declared in this scope
9 | char[] brackets; cin >> brackets;
| ^~~~~~~~