Borderou de evaluare (job #2821942)
Utilizator | Data | 23 decembrie 2021 13:02:08 | |
---|---|---|---|
Problema | Parcurgere DFS - componente conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'void graf::new_mat(int, int)':
main.cpp:85:5: error: 'mat' was not declared in this scope
85 | mat[nod1-1][nod2-1] = 1;
| ^~~
main.cpp: In member function 'void graf::afisare_mat(std::ostream&)':
main.cpp:119:17: error: 'mat' was not declared in this scope
119 | fg<<mat[i][j]<<" ";
| ^~~
main.cpp: In member function 'void graf::afisare_lista()':
main.cpp:128:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
128 | for(auto j=0 ; j<lista[i].size(); j++)
| ~^~~~~~~~~~~~~~~~
main.cpp: In member function 'void graf::afisare_muchii()':
main.cpp:149:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
149 | for(auto i=0 ; i<muchii.size(); i++)
| ~^~~~~~~~~~~~~~
main.cpp: In member function 'bool graf::havel_hakimi_verificare(std::vector<int>&)':
main.cpp:307:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
307 | if( cnt > secv.size()) return false; //verific ca nu ies din secventa
| ~~~~~^~~~~~~~~~~~~
main.cpp:291:23: warning: unused variable 'nr' [-Wunused-variable]
291 | int sum= 0, ok=1, nr;
| ^~
main.cpp: In member function 'void graf::royfloyd()':
main.cpp:797:20: error: 'mat' was not declared in this scope
797 | if(mat[j][i] && mat[i][k] && (mat[j][k] > mat[j][i] + mat[i][k] || !mat[j][k]) && j!=k)
| ^~~
main.cpp: In member function 'void graf::solve_royfloyd()':
main.cpp:812:13: error: 'mat' was not declared in this scope
812 | mat[i][j] = a;
| ^~~
main.cpp: In member function 'void graf::solve_euler()':
main.cpp:1031:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
1031 | for(int i=0 ; i< rez.size() -1 ; i++)
| ~^~~~~~~~~~~~~~~
main.cpp:991:9: warning: unused variable 'start' [-Wunused-variable]
991 | int start=0;
| ^~~~~
main.cpp:992:9: warning: unused variable 'dest' [-Wunused-variable]
992 | int dest=n-1;
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !