Borderou de evaluare (job #2946635)

Utilizator miruna_georgescuMiruna Georgescu miruna_georgescu Data 25 noiembrie 2022 00:42:57
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 calculDistanta(Coordonate, Coordonate)': main.cpp:38:12: error: 'sqrt' was not declared in this scope 38 | return sqrt(1.0 * (punct2.x-punct1.x) * (punct2.x - punct1.x) + 1.0 * (punct2.y - punct1.y) * (punct2.y - punct1.y)); | ^~~~ main.cpp: In function 'int main()': main.cpp:72:19: error: 'INT_MAX' was not declared in this scope 72 | distMin = INT_MAX; | ^~~~~~~ main.cpp:20:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 19 | #include <iomanip> +++ |+#include <climits> 20 | Non zero exit status: 1

Ceva nu functioneaza?