Problem bracketex
User Kannan
Submission Time 2024-02-23 17:56:59
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:6: error: ‘it’ was not declared in this scope; did you mean ‘int’?
5 | for(it = b.begin(); it != b.end(); it++) {
| ^~
| int
bracketex.cpp:5:11: error: ‘b’ was not declared in this scope
5 | for(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) {
| ^