Borderou de evaluare (job #2792243)

Utilizator Maria23Dutu Maria Maria23 Data 1 noiembrie 2021 11:34:09
Problema Sortare topologica Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:14:5: error: 'bitset' does not name a type 14 | bitset<NMAX> viz; | ^~~~~~ main.cpp:15:5: error: 'stack' does not name a type; did you mean 'obstack'? 15 | stack<int> noduriSortTop; | ^~~~~ | obstack main.cpp: In member function 'void graf::dfsSortTop(const int&)': main.cpp:28:5: error: 'viz' was not declared in this scope 28 | viz[nod] = true; | ^~~ main.cpp:29:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 29 | for(int i = 0; i < listaAd[nod].size(); i++){ | ~~^~~~~~~~~~~~~~~~~~~~~ main.cpp:34:5: error: 'noduriSortTop' was not declared in this scope; did you mean 'dfsSortTop'? 34 | noduriSortTop.push(nod); | ^~~~~~~~~~~~~ | dfsSortTop main.cpp: In member function 'void graf::sortareTopologica()': main.cpp:39:14: error: 'viz' was not declared in this scope 39 | if (!viz[i]) { | ^~~ main.cpp:43:12: error: 'noduriSortTop' was not declared in this scope; did you mean 'dfsSortTop'? 43 | while(!noduriSortTop.empty()){ | ^~~~~~~~~~~~~ | dfsSortTop Non zero exit status: 1

Ceva nu functioneaza?