Pagini recente » Borderou de evaluare (job #1510196) | Borderou de evaluare (job #1435939) | Borderou de evaluare (job #2347957) | Borderou de evaluare (job #1925627) | Borderou de evaluare (job #2795188)
Borderou de evaluare (job #2795188)
Raport evaluator
Compilare:
main.cpp: In member function 'void Graph::printGraph()':
main.cpp:128:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
128 | for(int j = 0; j < adlist[i].size(); ++j)
| ~~^~~~~~~~~~~~~~~~~~
main.cpp: In member function 'Graph Graph::transpose()':
main.cpp:204:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
204 | for(j = 0; j < adlist[i].size(); ++j)
| ~~^~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Graph::stronglyConnectedComponents()':
main.cpp:236:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
236 | for(j = 0; j < comp[i].size(); ++j)
| ~~^~~~~~~~~~~~~~~~
main.cpp: In member function 'bool Graph::graphExistsHakimi(std::vector<int>&, int)':
main.cpp:275:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
275 | if(degree > dg.size())//check if enough elements are in the list
| ~~~~~~~^~~~~~~~~~~
main.cpp:278:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
278 | for(int i = 0; i < dg.size(); ++i) //substract 1 from the following
| ~~^~~~~~~~~~~
main.cpp: In member function 'std::vector<std::vector<int> > Graph::criticalConnections(int, std::vector<std::vector<int> >&)':
main.cpp:332:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
332 | for(int i = 0; i < connections.size(); ++i)//for each edge
| ~~^~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Graph::biconnectedComponents()':
main.cpp:362:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
362 | for(int i = 0; i < biconnected.size(); ++i)
| ~~^~~~~~~~~~~~~~~~~~~~
main.cpp:365:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
365 | for(int j = 0 ; j < comp.size(); ++j)
| ~~^~~~~~~~~~~~~
main.cpp: In member function 'void Graph::kruskal()':
main.cpp:449:41: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
449 | for(int i = 1; i <= m && sol.size() != n-1; ++i)//for each edge until we choose n-1
| ~~~~~~~~~~~^~~~~~
main.cpp:464:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
464 | for(int i = 0; i < sol.size(); ++i)
| ~~^~~~~~~~~~~~
main.cpp: In member function 'void Graph::dijkstra()':
main.cpp:508:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
508 | for(int i = 0; i < adj_cost[node].size(); ++i)//for all nodes that "node" is connected to
| ~~^~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Graph::bellmanford()':
main.cpp:561:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
561 | for(int i = 0; i < adj_cost[node].size(); ++i) //for each neighbour
| ~~^~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:583:9: warning: unused variable 'i' [-Wunused-variable]
583 | int i, first, n, m;
| ^
main.cpp:583:12: warning: unused variable 'first' [-Wunused-variable]
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 19ms | 9531kb | OK | 10 | 10 |
2 | 9ms | 8957kb | OK | 10 | 10 |
3 | 8ms | 9269kb | OK | 10 | 10 |
4 | 13ms | 8695kb | OK | 10 | 10 |
5 | 25ms | 9990kb | OK | 10 | 30 |
6 | 80ms | 9711kb | OK | 10 |
7 | 80ms | 9379kb | OK | 10 |
8 | 70ms | 10235kb | OK | 10 | 10 |
9 | 40ms | 10108kb | OK | 10 | 10 |
10 | 83ms | 9342kb | OK | 10 | 10 |
Punctaj total | 100 |