Borderou de evaluare (job #3171717)
Utilizator | Data | 19 noiembrie 2023 14:40:04 | |
---|---|---|---|
Problema | Cablaj | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'Graph<NodeData, EdgeData> buildGraphFromPoints(const std::vector<std::pair<double, double> >&)':
main.cpp:335:34: error: 'sqrt' is not a member of 'std'; did you mean 'sort'?
335 | double length = std::sqrt(std::pow(points[i].first - points[j].first, 2) + std::pow(points[i].second - points[j].second, 2));
| ^~~~
| sort
main.cpp:335:44: error: 'pow' is not a member of 'std'
335 | double length = std::sqrt(std::pow(points[i].first - points[j].first, 2) + std::pow(points[i].second - points[j].second, 2));
| ^~~
main.cpp:335:93: error: 'pow' is not a member of 'std'
335 | double length = std::sqrt(std::pow(points[i].first - points[j].first, 2) + std::pow(points[i].second - points[j].second, 2));
| ^~~
main.cpp: In function 'int main_cablaj()':
main.cpp:349:22: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
349 | for(int i = 0; i < n; i++){
| ~~^~~
main.cpp:381:32: error: 'setprecision' is not a member of 'std'
381 | fout << std::fixed << std::setprecision(2) << totalLength << "\n";
| ^~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !