Pagini recente » Borderou de evaluare (job #1686734) | Borderou de evaluare (job #3145794) | Borderou de evaluare (job #313321) | Borderou de evaluare (job #1976792) | Borderou de evaluare (job #3172686)
Borderou de evaluare (job #3172686)
Raport evaluator
Compilare:
main.cpp: In instantiation of 'void APM<CostType>::ComputePrim() [with CostType = double]':
main.cpp:96:20: required from here
main.cpp:55:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<short int, short int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
55 | for(int i = 1; i < coordNodes.size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~
main.cpp:60:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<short int, short int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
60 | for(int j = 0; j < coordNodes.size(); j++)
| ~~^~~~~~~~~~~~~~~~~~~
main.cpp: In instantiation of 'void APM<CostType>::InsertNode(int) [with CostType = double]':
main.cpp:54:9: required from 'void APM<CostType>::ComputePrim() [with CostType = double]'
main.cpp:96:20: required from here
main.cpp:43:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<short int, short int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
43 | for(int i = 0; i < coordNodes.size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~
In member function 'CostType APM<CostType>::CalculateCostBetween(int, int) const [with CostType = double]',
inlined from 'void APM<CostType>::InsertNode(int) [with CostType = double]' at main.cpp:46:49,
inlined from 'void APM<CostType>::ComputePrim() [with CostType = double]' at main.cpp:68:23:
main.cpp:34:44: warning: 'nextNode' may be used uninitialized [-Wmaybe-uninitialized]
34 | CostType xdist = abs(coordNodes[i].first - coordNodes[j].first);
main.cpp: In member function 'void APM<CostType>::ComputePrim() [with CostType = double]':
main.cpp:58:17: note: 'nextNode' was declared here
58 | int nextNode;
| ^~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 303kb | OK | 10 |
2 | 0ms | 303kb | OK | 10 |
3 | 0ms | 303kb | OK | 10 |
4 | 2ms | 303kb | OK | 10 |
5 | 4ms | 303kb | OK | 10 |
6 | 9ms | 303kb | OK | 10 |
7 | 14ms | 303kb | OK | 10 |
8 | 24ms | 303kb | OK | 10 |
9 | 34ms | 303kb | OK | 10 |
10 | 34ms | 303kb | OK | 10 |
Punctaj total | 100 |