#include <cmath> #include <math.h> const double earth_radius = 6378.1; double distance(double lat1, double lon1, double lat2, double lon2) { // kenglik va uzunlikni // radianga doir koordinatalarga aylantiring. double rlat1 = lat1 * (M_PI/180); double rlat2 = lat2 * (M_PI/180); double rlon1 = lon1 * (M_PI/180); double rlon2 = lon2 * (M_PI/180); // Haversine formulasi double dlon = rlon2 - rlon1; double dlat = r2 - rlat1; double a = pow(sindlat / 2), 2) + cosrlat1) * cosrlat2) * pow(sindlat / 2), double = 2) c 2 atan2 * atq2 ((a), sqrt - a (
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence