Pagini recente » Borderou de evaluare (job #1466076) | Borderou de evaluare (job #872806) | Borderou de evaluare (job #1514829) | Borderou de evaluare (job #1071104) | Borderou de evaluare (job #2821495)
Borderou de evaluare (job #2821495)
Raport evaluator
Compilare:
main.cpp: In member function 'void Graph::printGraph()':
main.cpp:141:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
141 | for(int j = 0; j < adlist[i].size(); ++j)
| ~~^~~~~~~~~~~~~~~~~~
main.cpp: In member function 'std::vector<std::vector<int> > Graph::transpose()':
main.cpp:267:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
267 | for(int j = 0; j < adlist[i].size(); ++j)
| ~~^~~~~~~~~~~~~~~~~~
main.cpp: In member function 'bool Graph::graphExistsHakimi(std::vector<int>&, int)':
main.cpp:332:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
332 | if(degree > dg.size())//check if enough elements are in the list
| ~~~~~~~^~~~~~~~~~~
main.cpp:335:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
335 | 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:388:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
388 | for(int i = 0; i < connections.size(); ++i)//for each edge
| ~~^~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'int Graph::kruskal(std::vector<std::pair<int, int> >&)':
main.cpp:434: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]
434 | for(int i = 1; i <= m && sol.size() != n-1; ++i)//for each edge until we choose n-1
| ~~~~~~~~~~~^~~~~~
main.cpp: In member function 'std::vector<int> Graph::dijkstra()':
main.cpp:504: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]
504 | for(int i = 0; i < adcost[node].size(); ++i)//for all nodes that "node" is connected to
| ~~^~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'std::vector<int> Graph::bellmanFord()':
main.cpp:567: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]
567 | for(int i = 0; i < adcost[node].size(); ++i) //for each neighbour
| ~~^~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'void solveConnectedComponents()':
main.cpp:828:10: warning: unused variable 'viz' [-Wunused-variable]
828 | bool viz[N] = {0};
| ^~~
main.cpp: In function 'void solveBiconnectedComponents()':
main.cpp:846:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
846 | for(int i = 0; i < biconnected.size(); ++i)
| ~~^~~~~~~~~~~~~~~~~~~~
main.cpp:849:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
849 | for(int j = 0 ; j < comp.size(); ++j)
| ~~^~~~~~~~~~~~~
main.cpp: In function 'void solveStronglyConnectedComponents()':
main.cpp:871:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
871 | for(int j = 0; j < comp[i].size(); ++j)
| ~~^~~~~~~~~~~~~~~~
main.cpp: In function 'void solveCriticalConnections()':
main.cpp:915:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
915 | for(int i = 0; i < sol.size(); ++i)
| ~~^~~~~~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 11ms | 5074kb | OK | 5 |
2 | 11ms | 5177kb | OK | 5 |
3 | 11ms | 5173kb | OK | 5 |
4 | 20ms | 5345kb | OK | 5 |
5 | 10ms | 5177kb | OK | 5 |
6 | 11ms | 5193kb | OK | 5 |
7 | 11ms | 5095kb | OK | 5 |
8 | 11ms | 5136kb | OK | 5 |
9 | 11ms | 5238kb | OK | 5 |
10 | 11ms | 5173kb | OK | 5 |
11 | 40ms | 6242kb | OK | 5 |
12 | 29ms | 6172kb | Incorect | 0 |
13 | 44ms | 6647kb | Incorect | 0 |
14 | 49ms | 6647kb | Incorect | 0 |
15 | 63ms | 7131kb | OK | 5 |
16 | 78ms | 7581kb | OK | 5 |
17 | 102ms | 15187kb | OK | 5 |
18 | 11ms | 5517kb | OK | 5 |
19 | 16ms | 5746kb | OK | 5 |
20 | 87ms | 7925kb | OK | 5 |
Punctaj total | 85 |