Pagini recente » Borderou de evaluare (job #1353188) | Borderou de evaluare (job #2626293) | Borderou de evaluare (job #1872012) | Borderou de evaluare (job #2308550) | Borderou de evaluare (job #2811579)
Borderou de evaluare (job #2811579)
Raport evaluator
Compilare:
main.cpp: In member function 'void Graph::DFS(int, std::vector<int>&, int)':
main.cpp:80:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
80 | for(int i = 0; i<Ad[node].size(); ++i)
| ~^~~~~~~~~~~~~~~~
main.cpp: In member function 'void Graph::BFS(int, std::vector<int>&)':
main.cpp:105:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
105 | for(int i = 0; i<Ad[parent].size(); ++i)
| ~^~~~~~~~~~~~~~~~~~
main.cpp:98:17: warning: unused variable 'distance' [-Wunused-variable]
98 | int parent, distance;
| ^~~~~~~~
main.cpp: In member function 'void Graph::topSortDFS(int, std::vector<int>&, std::stack<int>&)':
main.cpp:122:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
122 | for(int i = 0; i<Ad[node].size(); ++i)
| ~^~~~~~~~~~~~~~~~
main.cpp: In member function 'std::vector<std::tuple<int, int, int> > Graph::getMST()':
main.cpp:179:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<edgeCost>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
179 | for(int j = 0; j<AdCost[i].size(); ++i)
| ~^~~~~~~~~~~~~~~~~
main.cpp:183:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::tuple<int, int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
183 | for(int i = 0; i<edges.size() && solSize < n-1; ++i){
| ~^~~~~~~~~~~~~
main.cpp:172:22: warning: unused variable 'cost' [-Wunused-variable]
172 | int solSize = 0, cost = 0;
| ^~~~
main.cpp:173:11: warning: unused variable 'm' [-Wunused-variable]
173 | int n,m,x,y,c;
| ^
main.cpp:173:17: warning: unused variable 'c' [-Wunused-variable]
173 | int n,m,x,y,c;
| ^
main.cpp: In member function 'void Graph::dfsSCC(int, int&, std::vector<int>&, std::vector<int>&, std::vector<bool>&, std::stack<int>&, std::vector<std::vector<int> >&)':
main.cpp:199:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
199 | for(int i = 0; i<Ad[node].size(); ++i){
| ~^~~~~~~~~~~~~~~~
main.cpp: In member function 'void Graph::dfsBCC(int, int, int&, std::vector<int>&, std::vector<int>&, std::vector<int>&, std::vector<std::vector<int> >&)':
main.cpp:239:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
239 | for(int i = 0; i<Ad[node].size(); ++i){
| ~^~~~~~~~~~~~~~~~
main.cpp: In member function 'void Graph::bellman(bool&, std::vector<int>&, int)':
main.cpp:295:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
295 | for(int i = 0; i<Ad[currentNode].size(); ++i){
| ~^~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Graph::dijkstra(std::vector<int>&, int)':
main.cpp:344:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
344 | for(int i = 0; i < Ad[currentNode].size(); ++i){
| ~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'std::vector<int> Graph::getDijkstraDistance(int)':
main.cpp:366:1: warning: no return statement in function returning non-void [-Wreturn-type]
366 | }
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 184kb | OK | 10 |
2 | 2ms | 184kb | OK | 10 |
3 | 2ms | 184kb | OK | 10 |
4 | 2ms | 184kb | OK | 10 |
5 | 2ms | 184kb | OK | 10 |
6 | 1ms | 184kb | OK | 10 |
7 | 6ms | 385kb | OK | 10 |
8 | 6ms | 356kb | OK | 10 |
9 | 6ms | 323kb | OK | 10 |
10 | 11ms | 462kb | OK | 10 |
Punctaj total | 100 |