Pagini recente » Borderou de evaluare (job #1353582) | Borderou de evaluare (job #3204149) | Borderou de evaluare (job #288722) | Borderou de evaluare (job #637324) | Borderou de evaluare (job #2818544)
Borderou de evaluare (job #2818544)
Raport evaluator
Compilare:
main.cpp: In member function 'std::vector<int> Graf::primPQ()':
main.cpp:174:12: warning: unused variable 'costf' [-Wunused-variable]
174 | int nodp, costf = 0;
| ^~~~~
main.cpp: In member function 'std::vector<int> Graf::bfs(int)':
main.cpp:503:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
503 | for (int i = 0; i < adiacenta2[p].size(); ++i)
| ~~^~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Graf::dfs(int, bool*)':
main.cpp:546:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
546 | for (int i = 0; i < adiacenta2[nod].size(); ++i)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'void p12()':
main.cpp:1031:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
1031 | if (val > havelH.size())
| ~~~~^~~~~~~~~~~~~~~
main.cpp: In member function 'int Graf::drumMin(std::vector<bool>, std::vector<int>)':
main.cpp:110:9: warning: 'nod' may be used uninitialized in this function [-Wmaybe-uninitialized]
110 | return nod;
| ^~~
main.cpp: In member function 'int Graf::bfsArbore(int&)':
main.cpp:880:15: warning: 'nodp' may be used uninitialized in this function [-Wmaybe-uninitialized]
880 | return h[nodp];
| ^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 184kb | Corect | 10 |
2 | 2ms | 184kb | Corect | 10 |
3 | 2ms | 184kb | Cost incorect | 0 |
4 | 2ms | 184kb | Cost incorect | 0 |
5 | 2ms | 184kb | Cost incorect | 0 |
6 | 201ms | 8802kb | Cost incorect | 0 |
7 | 446ms | 18755kb | Cost incorect | 0 |
8 | 68ms | 3584kb | Cost incorect | 0 |
9 | 59ms | 3608kb | Cost incorect | 0 |
10 | 373ms | 14835kb | Cost incorect | 0 |
Punctaj total | 20 |