Problem bracketex
User blob
Submission Time 2024-01-02 16:44:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketex.cpp:1:2: error: invalid preprocessing directive #Include; did you mean #include?
1 | #Include <bits/stdc++.h>
| ^~~~~~~
| include
bracketex.cpp:4:42: error: ‘string’ does not name a type
4 | bool isValidBracketSequence(int L, const string& bracketSequence) {
| ^~~~~~
bracketex.cpp: In function ‘bool isValidBracketSequence(int, const int&)’:
bracketex.cpp:5:5: error: ‘stack’ was not declared in this scope
5 | stack<char> brackets;
| ^~~~~
bracketex.cpp:1:1: note: ‘std::stack’ is defined in header ‘<stack>’; did you forget to ‘#include <stack>’?
+++ |+#include <stack>
1 | #Include <bits/stdc++.h>
bracketex.cpp:5:11: error: expected primary-expression before ‘char’
5 | stack<char> brackets;
| ^~~~
bracketex.cpp:6:5: error: ‘unordered_map’ was not declared in this scope