Borderou de evaluare (job #3181235)

Utilizator bogdy_555Florescu Bogdan-Ilie bogdy_555 Data 6 decembrie 2023 18:27:39
Problema Retea2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:78:57: error: 'sqrt' is not a member of 'std' 78 | double _Distance = std::sqrt((_Positions[_Start].first - _Positions[_End].first) * (_Positions[_Start].first - _Positions[_End].first) + (_Positions[_Start].second - _Positions[_End].second) * (_Positions[_Start].second - _Positions[_End].second)); | ^~~~ main.cpp:86:59: warning: loop variable '_Neighbour' of type 'const std::pair<long unsigned int, long unsigned int>&' binds to a temporary constructed from type 'std::pair<double, long unsigned int>' [-Wrange-loop-construct] 86 | for (const std::pair<uint64_t, uint64_t>& _Neighbour : _Graph[_Node]) | ^~~~~~~~~~ main.cpp:86:59: note: use non-reference type 'const std::pair<long unsigned int, long unsigned int>' to make the copy explicit or 'const std::pair<double, long unsigned int>&' to prevent copying Non zero exit status: 1

Ceva nu functioneaza?