Pagini recente » Borderou de evaluare (job #502526) | Borderou de evaluare (job #1947908) | Borderou de evaluare (job #2982271) | Borderou de evaluare (job #898994) | Borderou de evaluare (job #2814140)
Borderou de evaluare (job #2814140)
Raport evaluator
Compilare:
main.cpp: In member function 'int Graph::getGraphDiameter()':
main.cpp:108:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
108 | for(int i = 1; i <= distance.size(); i++) { // the maximum distance to a endNode
| ~~^~~~~~~~~~~~~~~~~~
main.cpp:117:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
117 | for(int i = 1; i<= distance.size(); i++) {
| ~^~~~~~~~~~~~~~~~~~
main.cpp: In member function 'bool Graph::havelHakim(std::vector<int>)':
main.cpp:187:18: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
187 | if(grades[0] > grades.size()-1)
main.cpp: In function 'int main()':
main.cpp:412:18: warning: unused variable 'nrEdges' [-Wunused-variable]
412 | int nrNodes, nrEdges;
| ^~~~~~~
main.cpp:417:15: warning: unused variable 'z' [-Wunused-variable]
417 | int x ,y ,z;
| ^
main.cpp: In member function 'int Graph::getGraphDiameter()':
main.cpp:116:27: warning: 'endNode' may be used uninitialized in this function [-Wmaybe-uninitialized]
116 | distance = BFS(endNode); // bfs from the endNode with the maximum distance
| ^
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 | 851kb | OK | 10 |
6 | 44ms | 2781kb | OK | 10 |
7 | 68ms | 3850kb | OK | 10 |
8 | 116ms | 5746kb | OK | 10 |
9 | 83ms | 6471kb | Incorect | 0 |
10 | 158ms | 7421kb | OK | 10 |
Punctaj total | 90 |