Pagini recente » Borderou de evaluare (job #1395951) | Borderou de evaluare (job #2815129)
Borderou de evaluare (job #2815129)
Raport evaluator
Compilare:
main.cpp: In member function 'void weightedGraph::setEdgeCost(int, int, int)':
main.cpp:52:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
52 | if(i <= m_costMatrix.size()){
| ~~^~~~~~~~~~~~~~~~~~~~~~
main.cpp:53:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
53 | if(j <= m_costMatrix[i].size()){
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'int weightedGraph::bfs_dist(int, std::vector<bool>&, std::vector<int>&)':
main.cpp:85:30: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
85 | for(int i = 0; i < neighbours; ++i){
| ~~^~~~~~~~~~~~
main.cpp: In function 'void diametru_arbore(const string&, const string&)':
main.cpp:19:25: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized]
19 | m_numberOfEdges = numberOfEdges;
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
main.cpp:146:18: note: 'm' was declared here
146 | int n, a, b, m;
| ^
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 | 11ms | 1146kb | OK | 10 |
6 | 54ms | 4521kb | OK | 10 |
7 | 82ms | 6336kb | OK | 10 |
8 | 139ms | 9539kb | OK | 10 |
9 | 102ms | 10989kb | OK | 10 |
10 | 191ms | 12386kb | OK | 10 |
Punctaj total | 100 |