Problem bracketex
User LimCheeHann
Submission Time 2026-02-05 18:07:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketex.cpp: In function ‘int main()’:
bracketex.cpp:4:13: error: ‘b2’ was not declared in this scope; did you mean ‘b1’?
4 | int L, b1; b2, b3;
| ^~
| b1
bracketex.cpp:4:17: error: ‘b3’ was not declared in this scope; did you mean ‘b1’?
4 | int L, b1; b2, b3;
| ^~
| b1
bracketex.cpp:5:2: error: ‘string’ was not declared in this scope
5 | string S, answer;
| ^~~~~~
bracketex.cpp:5:2: note: suggested alternatives:
In file included from /usr/include/c++/9/iosfwd:39,
from /usr/include/c++/9/ios:38,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from bracketex.cpp:1:
/usr/include/c++/9/bits/stringfwd.h:79:33: note: ‘std::string’
79 | typedef basic_string<char> string;
| ^~~~~~
In