I am new to C ++ and am currently working with the STL container. I had a serious problem with the execution of nodeStack.push(startnode) - appears in the compiler
Fatal error c0000374 detected
The tracking function code shows the function in which the indicated error:
vector<int> Graph::iterativeDepthSearch(map<int, vector<int>> adjlist, int startnode) { stack<int> nodeStack; vector<int> visitList;
The error occurs in the line nodeStack.push(startnode); , startnode is initialized to 0.
source share