Borderou de evaluare (job #2792245)
Utilizator | Data | 1 noiembrie 2021 11:50:38 | |
---|---|---|---|
Problema | Componente biconexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'void Graf::bfs(int)':
main.cpp:107:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
107 | for(int i=0; i<listaAdiacenta[nodCurent].size(); i++)
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Graf::sortareTopologica(std::ostream&)':
main.cpp:135:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
135 | for(int i = 0; i < listaAdiacenta[nodCurent].size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'void havelHakimi(std::vector<int>, std::ostream&)':
main.cpp:170:9: error: 'sort' was not declared in this scope; did you mean 'qsort'?
170 | sort(grade.begin(), grade.end(), greater<>());
| ^~~~
| qsort
main.cpp: In member function 'void Graf::initializareCompBiconexe(std::ostream&)':
main.cpp:220:22: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
220 | for(int i = 0; i < nrComponenteBiconexe; i++){
| ~~^~~~~~~~~~~~~~~~~~~~~~
main.cpp:221:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
221 | for(int j = 0; j < componenteBiconexe[i].size(); i++){
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:291:65: warning: unused variable 'nodStart' [-Wunused-variable]
291 | int noduri, muchii, extremitateInitiala, extremitateFinala, nodStart;
| ^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !