Pagini recente » Borderou de evaluare (job #740524) | Borderou de evaluare (job #2631114) | Borderou de evaluare (job #2484567) | Borderou de evaluare (job #1740009) | Borderou de evaluare (job #2908129)
Borderou de evaluare (job #2908129)
Raport evaluator
Compilare:
main.cpp: In member function 'void Graf::DFS(int, std::vector<bool>&)':
main.cpp:138:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
138 | for(int i = 1; i < lista_vecini[nod].size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Graf::hakimi(int, std::vector<int>&, std::ostream&)':
main.cpp:206:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
206 | if(aux > lista.size())
| ~~~~^~~~~~~~~~~~~~
main.cpp: In member function 'int Graf::DFS_sortaret(std::queue<int>&)':
main.cpp:226:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
226 | for(int j = 1; j < lista_vecini[i].size(); j++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:236:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
236 | for(int i = 1; i < lista_vecini[aux].size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:243:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::queue<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
243 | if(nr_noduri == lista.size())
| ~~~~~~~~~~^~~~~~~~~~~~~~~
main.cpp: In member function 'void Graf::dijkstra(std::vector<std::vector<std::pair<int, int> > >&, std::vector<int>&, int)':
main.cpp:316:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
316 | for(int i = 0; i < muchii[nod].size(); i++) // ma plimb in muchiile care incep cu nodul respectiv
| ~~^~~~~~~~~~~~~~~~~~~~
main.cpp:314:17: warning: unused variable 'd' [-Wunused-variable]
314 | int d = s.begin()->first;
| ^
main.cpp: In member function 'void Graf::darb(int, int*, bool*, std::queue<int>, int&, int&)':
main.cpp:374:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
374 | for(i = 1; i < lista_vecini[el].size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'int Graf::ciclu_hamiltonian(std::istream&, std::vector<int>*, int (*)[21], int (*)[21], int)':
main.cpp:414:39: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
414 | for (int k = 0; k < lista[j].size(); ++k)
| ~~^~~~~~~~~~~~~~~~~
main.cpp:419:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
419 | for (int i = 0; i < lista_vecini[0].size(); ++i)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'void pb_biconex()':
main.cpp:539:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
539 | for(int i = 0; i < componente_biconexe.size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:543:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
543 | for(int j = 0; j < componente_biconexe[i].size(); j++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:529:15: warning: unused variable 'nr_biconexe' [-Wunused-variable]
529 | int N, M, nr_biconexe = 0;
| ^~~~~~~~~~~
main.cpp: In function 'void pb_apm()':
main.cpp:646:25: warning: unused variable 'cost1' [-Wunused-variable]
646 | int N, M, cost = 0, cost1 = 0;
| ^~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 5ms | 831kb | Corect! | 10 |
2 | 3ms | 860kb | Corect! | 10 |
3 | 5ms | 831kb | Corect! | 10 |
4 | 40ms | 1339kb | Corect! | 10 |
5 | 76ms | 2445kb | Corect! | 10 |
6 | 99ms | 2805kb | Corect! | 10 |
7 | 100ms | 2756kb | Corect! | 10 |
8 | 128ms | 3338kb | Corect! | 10 |
9 | 100ms | 3362kb | Corect! | 10 |
10 | 153ms | 3723kb | Corect! | 10 |
Punctaj total | 100 |