Borderou de evaluare (job #3172686)

Utilizator radubigColtos Radu radubig Data 21 noiembrie 2023 01:45:35
Problema Cablaj Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

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
10ms303kbOK10
20ms303kbOK10
30ms303kbOK10
42ms303kbOK10
54ms303kbOK10
69ms303kbOK10
714ms303kbOK10
824ms303kbOK10
934ms303kbOK10
1034ms303kbOK10
Punctaj total100

Ceva nu functioneaza?