Borderou de evaluare (job #3292289)

Utilizator MAT696912Tudor Andrei MAT696912 Data 7 aprilie 2025 20:04:50
Problema Cele mai apropiate puncte din plan Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'double dist(std::pair<int, int>, std::pair<int, int>)': main.cpp:12:17: error: 'pow' was not declared in this scope 12 | return sqrt(pow(a.first - b.first, 2) + pow(a.second - b.second, 2)); | ^~~ main.cpp:12:12: error: 'sqrt' was not declared in this scope 12 | return sqrt(pow(a.first - b.first, 2) + pow(a.second - b.second, 2)); | ^~~~ main.cpp: In function 'double min_dist(std::vector<std::pair<int, int> >&, int, int)': main.cpp:37:16: error: 'DBL_MAX' was not declared in this scope 37 | return DBL_MAX; | ^~~~~~~ main.cpp:6:1: note: 'DBL_MAX' is defined in header '<cfloat>'; did you forget to '#include <cfloat>'? 5 | #include <fstream> +++ |+#include <cfloat> 6 | using namespace std; main.cpp:59:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 59 | for (int i = 0; i < closer_to_median.size(); i++) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:60:40: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 60 | for (int j = 1; j < 6 && i + j < closer_to_median.size(); j++) { | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:84:5: error: 'fopen_s' was not declared in this scope; did you mean 'fopen64'? 84 | fopen_s(&f, "cmap.out", "w"); | ^~~~~~~ | fopen64 Non zero exit status: 1

Ceva nu functioneaza?