Problem bracketex
User Kannan
Submission Time 2024-02-23 17:57:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketex.cpp: In function ‘bool contains(auto:22, auto:23)’:
bracketex.cpp:5:16: error: ‘b’ was not declared in this scope
5 | for(auto it = b.begin(); it != b.end(); it++) {
| ^
bracketex.cpp:12:12: error: a function-definition is not allowed here before ‘{’ token
12 | int main() {
| ^
bracketex.cpp:39:17: error: expected ‘}’ at end of input
39 | cout << "Valid";
| ^
bracketex.cpp:4:31: note: to match this ‘{’
4 | bool contains(auto s, auto a) {
| ^