Problem lostarray
User joxi
Submission Time 2024-02-22 22:50:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lostarray.cpp:17:80: error: ‘stack’ has not been declared
17 | void topologicalSortUtil(int node, vector<bool>& visited, vector<Node>& graph, stack<int>& stk) {
| ^~~~~
lostarray.cpp:17:85: error: expected ‘,’ or ‘...’ before ‘<’ token
17 | void topologicalSortUtil(int node, vector<bool>& visited, vector<Node>& graph, stack<int>& stk) {
| ^
lostarray.cpp: In function ‘void topologicalSortUtil(int, std::vector<bool>&, std::vector<Node>&, int)’:
lostarray.cpp:22:65: error: ‘stk’ was not declared in this scope; did you mean ‘std’?
22 | topologicalSortUtil(neighbor_index, visited, graph, stk);
| ^~~
|