Borderou de evaluare (job #2797643)
| Utilizator | Data | 10 noiembrie 2021 13:00:17 | |
|---|---|---|---|
| Problema | Componente biconexe | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:10:1: error: new types may not be defined in a return type
10 | class Graph {
| ^~~~~
main.cpp:10:1: note: (perhaps a semicolon is missing after the definition of 'Graph')
main.cpp:10:1: error: return type specification for constructor invalid
main.cpp: In member function 'void Graph::DFS(int, std::vector<int>&)':
main.cpp:65:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, double> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
65 | for(int i = 0; i < edges[start].size(); ++i)
| ~~^~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'std::stack<int> DirectedGraph::TopologicalSorting()':
main.cpp:209:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<bool>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
209 | for(int node = 1; node < visited.size(); ++node)
| ~~~~~^~~~~~~~~~~~~~~~
main.cpp: In member function 'std::vector<std::vector<int> > UndirectedGraph::criticalEdges()':
main.cpp:344:9: warning: unused variable 'counterID' [-Wunused-variable]
344 | int counterID = 0;
| ^~~~~~~~~
main.cpp: In member function 'bool UndirectedGraph::havelHakimi(std::vector<int>)':
main.cpp:395:23: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
395 | if(degrees[0] > degrees.size() - loops)
main.cpp: In function 'int main()':
main.cpp:434:20: warning: unused variable 's' [-Wunused-variable]
434 | int n, m, x, y,s;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
