Pagini recente » Borderou de evaluare (job #589732) | Borderou de evaluare (job #339953) | Borderou de evaluare (job #1935006) | Borderou de evaluare (job #692066) | Borderou de evaluare (job #2814133)
Borderou de evaluare (job #2814133)
Raport evaluator
Compilare:
main.cpp: In member function 'int Graph::getGraphDiameter()':
main.cpp:108:21: 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<= cost1.size(); i++) { // the maximum distance to a node
| ~^~~~~~~~~~~~~~~
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<= cost2.size(); i++) {
| ~^~~~~~~~~~~~~~~
main.cpp: In member function 'bool Graph::havelHakim(std::vector<int>)':
main.cpp:188: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]
188 | if(grades[0] > grades.size()-1)
main.cpp: In function 'int main()':
main.cpp:413:18: warning: unused variable 'nrEdges' [-Wunused-variable]
413 | int nrNodes, nrEdges;
| ^~~~~~~
main.cpp:418:15: warning: unused variable 'z' [-Wunused-variable]
418 | int x ,y ,z;
| ^
main.cpp: In member function 'int Graph::getGraphDiameter()':
main.cpp:124:22: warning: 'node' may be used uninitialized in this function [-Wmaybe-uninitialized]
124 | return cost2[node];
| ^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 184kb | Incorect | 0 |
2 | 2ms | 184kb | Incorect | 0 |
3 | 2ms | 184kb | Incorect | 0 |
4 | 4ms | 311kb | Incorect | 0 |
5 | 11ms | 946kb | Incorect | 0 |
6 | 44ms | 2781kb | Incorect | 0 |
7 | 68ms | 3850kb | Incorect | 0 |
8 | 116ms | 5746kb | Incorect | 0 |
9 | 82ms | 6545kb | Incorect | 0 |
10 | 158ms | 7421kb | Incorect | 0 |
Punctaj total | 0 |