Borderou de evaluare (job #2930629)

Utilizator isa_edi_cristeaEdi Cristea isa_edi_cristea Data 28 octombrie 2022 22:47:17
Problema Componente tare conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:16:1: error: 'stack' does not name a type; did you mean 'obstack'? 16 | stack<int>stiva; | ^~~~~ | obstack main.cpp: In function 'void DFS(int)': main.cpp:20:18: 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<List[node].size();i++){ | ~^~~~~~~~~~~~~~~~~~ main.cpp:24:5: error: 'stiva' was not declared in this scope 24 | stiva.push(node); | ^~~~~ main.cpp: In function 'void ReverseDFS(int)': main.cpp:30:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 30 | for(int i=0;i<ReverseList[node].size();i++){ | ~^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:50:12: error: 'stiva' was not declared in this scope 50 | while(!stiva.empty()){ | ^~~~~ main.cpp:62:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 62 | for(i=0;i<SCC[j].size();i++) | ~^~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?