Borderou de evaluare (job #3171492)
Utilizator | Data | 18 noiembrie 2023 23:09:06 | |
---|---|---|---|
Problema | Cablaj | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'double calculateDistance(std::pair<int, int>&, std::pair<int, int>&)':
main.cpp:62:17: error: 'pow' was not declared in this scope
62 | return sqrt(pow(coord1.first - coord2.first, 2) + pow(coord1.second - coord2.second, 2));
| ^~~
main.cpp:62:12: error: 'sqrt' was not declared in this scope
62 | return sqrt(pow(coord1.first - coord2.first, 2) + pow(coord1.second - coord2.second, 2));
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !