Borderou de evaluare (job #3123269)

Utilizator adaxndDobrica Nicoleta Adriana adaxnd Data 22 aprilie 2023 19:16:54
Problema Componente tare conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:14:35: error: 'stack' has not been declared 14 | vector<int> &onStack, stack<int> &st, int &index) { | ^~~~~ main.cpp:14:40: error: expected ',' or '...' before '<' token 14 | vector<int> &onStack, stack<int> &st, int &index) { | ^ main.cpp: In function 'void tarjan(int, std::vector<int>*, std::vector<int>&, std::vector<int>&, std::vector<int>&, int)': main.cpp:16:41: error: 'index' was not declared in this scope 16 | nodeIndex[node] = lowlink[node] = ++index; | ^~~~~ main.cpp:17:5: error: 'st' was not declared in this scope; did you mean 'std'? 17 | st.push(node); | ^~ | std main.cpp:20:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 20 | for (int i = 0; i < adj[node].size(); i++) { | ~~^~~~~~~~~~~~~~~~~~ main.cpp: In function 'void find_ctc(int, std::vector<int>*)': main.cpp:50:5: error: 'stack' was not declared in this scope 50 | stack<int> st; | ^~~~~ main.cpp:4:1: note: 'std::stack' is defined in header '<stack>'; did you forget to '#include <stack>'? 3 | #include <vector> +++ |+#include <stack> 4 | main.cpp:50:11: error: expected primary-expression before 'int' 50 | stack<int> st; | ^~~ main.cpp:56:57: error: 'st' was not declared in this scope; did you mean 'std'? 56 | tarjan(i, adj, nodeIndex, lowlink, onStack, st, index); | ^~ | std Non zero exit status: 1

Ceva nu functioneaza?