Pagini recente » Borderou de evaluare (job #2289744) | Borderou de evaluare (job #2052987) | Borderou de evaluare (job #1567025) | Borderou de evaluare (job #782484) | Borderou de evaluare (job #2819513)
Borderou de evaluare (job #2819513)
Raport evaluator
Compilare:
main.cpp: In member function 'void Graf::functie1(std::vector<int>*, std::vector<std::vector<int> >&)':
main.cpp:58:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
58 | for(int i = 0; i < connections.size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'std::vector<int> Graf::dijkstra2(int, std::vector<std::vector<std::pair<int, int> > >&)':
main.cpp:140:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
140 | for(int i = 1; i < lista_adiacenta2[b].size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'std::vector<int> Graf::bellman_ford2(int, std::vector<std::vector<std::pair<int, int> > >&)':
main.cpp:176:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
176 | for(int i = 1; i < lista_adiacenta2[b].size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Graf::bfs(int)':
main.cpp:293:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
293 | for(int i = 0; i < lista_adiacenta[nod_curent].size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Graf::dfs(std::vector<int>&, int)':
main.cpp:346:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
346 | for(int i = 0; i < lista_adiacenta[nod].size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Graf::parcurgere(std::vector<std::vector<int> >&)':
main.cpp:400:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
400 | for(int j = 0; j < componenta[i].size(); j++)
| ~~^~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Graf::dfs1(int, std::unordered_map<int, bool>&, std::vector<int>&)':
main.cpp:412:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
412 | for(int i = 0; i < lista_adiacenta[nod].size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Graf::dfs2(int, std::unordered_map<int, bool>&, std::vector<int>&, int, std::vector<std::vector<int> >&, std::vector<std::vector<int> >&)':
main.cpp:426:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
426 | for(int i = 0; i < lista_adiacenta1[nod].size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Graf::havel_hakimi()':
main.cpp:460:25: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
460 | if(grade.size() < x)
| ~~~~~~~~~~~~~^~~
main.cpp: In member function 'void Graf::functie(int, int*, std::stack<int>&)':
main.cpp:526:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
526 | for(int i = 0; i < lista_adiacenta[nod].size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Graf::dfs_biconex1()':
main.cpp:564:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
564 | for(int j = 0; j < componente_biconexe[i].size(); j++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Graf::dfs_biconex2(int, int, int&, std::stack<int>&, std::vector<std::vector<int> >&, std::vector<int>&, std::vector<int>&, std::vector<int>&)':
main.cpp:577:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
577 | for(int i = 0; i < lista_adiacenta[x].size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:581:15: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
581 | if(parinte != y)
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 184kb | OK | 10 | 10 |
2 | 2ms | 184kb | OK | 10 | 10 |
3 | 2ms | 184kb | OK | 10 | 10 |
4 | 2ms | 184kb | OK | 10 | 10 |
5 | 2ms | 184kb | OK | 10 | 10 |
6 | 2ms | 184kb | OK | 10 | 10 |
7 | 6ms | 1331kb | OK | 10 | 10 |
8 | 20ms | 4476kb | OK | 10 | 30 |
9 | 25ms | 7086kb | OK | 10 |
10 | 44ms | 8658kb | OK | 10 |
Punctaj total | 100 |