hello there i was writing a code in a compiler but my compiler had this error :"false expression must have a constant value" in one of the program lines i used other compilers but they didn't say this and i could write my program , but in visual studio 2022 it gives me the error the sample of the program is :
stack<char> stack;
queue<char> queue;
string str;
cin >> str;
char ch[str.length()];
the error is in the
char ch[str.length()];
i dont know how to fix this i would be glad if you guys help me in this