Pagini recente » Borderou de evaluare (job #2641885) | Borderou de evaluare (job #574960) | Borderou de evaluare (job #564665) | Borderou de evaluare (job #439497) | Borderou de evaluare (job #2803545)
Borderou de evaluare (job #2803545)
Raport evaluator
Compilare:
main.cpp: In member function 'std::vector<std::__cxx11::list<Graph::nodeStruct> > Graph::transposed()':
main.cpp:20:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::list<Graph::nodeStruct> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
20 | for(int i = 0; i < adjacent.size(); i++)
| ~~^~~~~~~~~~~~~~~~~
main.cpp: In constructor 'Graph::Graph(std::vector<std::tuple<int, int, int> >&, int, bool)':
main.cpp:88:17: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
88 | for(auto[node1, node2, cost]: data) {
| ^
main.cpp: In function 'std::ostream& operator<<(std::ostream&, Graph)':
main.cpp:96:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::list<Graph::nodeStruct> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
96 | for(int i = 0; i < graph.adjacent.size(); i++) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'int Graph::connected()':
main.cpp:107:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::list<Graph::nodeStruct> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
107 | for(int i = 0; i < adjacent.size(); i++)
| ~~^~~~~~~~~~~~~~~~~
main.cpp: In member function 'std::stack<int> Graph::topologicalSort()':
main.cpp:125:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::list<Graph::nodeStruct> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
125 | for(int i = 0; i < adjacent.size(); i++)
| ~~^~~~~~~~~~~~~~~~~
main.cpp: In member function 'std::pair<std::vector<std::vector<int> >, std::vector<std::pair<int, int> > > Graph::biconnected()':
main.cpp:136:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::list<Graph::nodeStruct> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
136 | for (int i = 0; i < adjacent.size(); i++)
| ~~^~~~~~~~~~~~~~~~~
main.cpp: In member function 'std::vector<std::vector<int> > Graph::hardConnected()':
main.cpp:146:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::list<Graph::nodeStruct> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
146 | for(int i = 0; i < adjacent.size(); i++)
| ~~^~~~~~~~~~~~~~~~~
main.cpp: In member function 'std::vector<int> Graph::dijkstra(int)':
main.cpp:164:13: warning: unused variable 'cost' [-Wunused-variable]
164 | int cost = 0;
| ^~~~
main.cpp: In member function 'std::pair<std::vector<int>, bool> Graph::bellmanFord(int)':
main.cpp:194:41: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} and 'std::vector<std::__cxx11::list<Graph::nodeStruct> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
194 | if(visited[i.node2] >= adjacent.size())
main.cpp: In member function 'std::pair<std::vector<Graph::nodeStruct>, int> Graph::minimumTreeKruskall()':
main.cpp:207:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
207 | for(int i = 0; i < parents.size(); i++)
| ~~^~~~~~~~~~~~~~~~
main.cpp:209:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::list<Graph::nodeStruct> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
209 | for(int i = 0; i < adjacent.size(); i++)
| ~~^~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:242:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Graph::nodeStruct>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
242 | for(int i = 0; i < graph.first.size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~~
main.cpp:231:15: warning: unused variable 'start' [-Wunused-variable]
231 | int n, m, start;
| ^~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 11ms | 184kb | Corect | 10 |
2 | 1ms | 184kb | Corect | 10 |
3 | 1ms | 184kb | Corect | 10 |
4 | 1ms | 184kb | Corect | 10 |
5 | 1ms | 184kb | Corect | 10 |
6 | 1000ms | 9818kb | Time limit exceeded | 0 |
7 | 1001ms | 18432kb | Time limit exceeded | 0 |
8 | 602ms | 4206kb | Corect | 10 |
9 | 192ms | 4718kb | Corect | 10 |
10 | 1005ms | 16207kb | Time limit exceeded | 0 |
Punctaj total | 70 |