Borderou de evaluare (job #2947048)

Utilizator cilteaioanaIoana C cilteaioana Data 25 noiembrie 2022 17:04:22
Problema Retea2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'double distanta(std::pair<double, double>, std::pair<double, double>)': main.cpp:14:12: error: 'sqrt' was not declared in this scope 14 | return sqrt((a.first - b.first) * (a.first - b.first) + (a.second - b.second) * (a.second - b.second)); | ^~~~ main.cpp: In function 'int main()': main.cpp:37:29: error: 'INT_MAX' was not declared in this scope 37 | distantaCurent[i] = INT_MAX; | ^~~~~~~ main.cpp:6:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 5 | #include <vector> +++ |+#include <climits> 6 | using namespace std; main.cpp:47:24: error: 'INT_MAX' was not declared in this scope 47 | double minim = INT_MAX; | ^~~~~~~ main.cpp:47:24: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? Non zero exit status: 1

Ceva nu functioneaza?