Problem bracketex
User wtnetlegend
Submission Time 2025-02-08 12:15:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketex.cpp:4:18: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
4 | bool good(char a[n], stack<char> s){
| ^
| yn
bracketex.cpp:4:20: error: expected ‘)’ before ‘,’ token
4 | bool good(char a[n], stack<char> s){
| ~ ^
| )
bracketex.cpp:4:34: error: invalid declarator before ‘s’
4 | bool good(char a[n], stack<char> s){
| ^
bracketex.cpp: In function ‘int main()’:
bracketex.cpp:39:20: error: array bound is not an integer constant before ‘]’ token
39 | bool good(char b[n], stack<char> t);
| ^
bracketex.cpp:39:21: error: expected ‘)’ before ‘,’ token
39 | bool good(char b[n], stack<char> t);
| ~ ^
| )
bracketex.cpp:39:35: error: invalid declarator before ‘t’