Borderou de evaluare (job #1920868)

Utilizator sandupetrascoPetrasco Sandu sandupetrasco Data 10 martie 2017 10:30:08
Problema Infasuratoare convexa Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘double check(std::pair<double, double>, std::pair<double, double>, std::pair<double, double>)’: user.cpp:12:22: error: ‘struct std::pair<double, double>’ has no member named ‘x’ return 1.0 * ((b.x - a.x) * (c.y - a.y) - (c.x - a.x) * (b.y - a.y)); ^ user.cpp:12:28: error: ‘struct std::pair<double, double>’ has no member named ‘x’ return 1.0 * ((b.x - a.x) * (c.y - a.y) - (c.x - a.x) * (b.y - a.y)); ^ user.cpp:12:36: error: ‘struct std::pair<double, double>’ has no member named ‘y’ return 1.0 * ((b.x - a.x) * (c.y - a.y) - (c.x - a.x) * (b.y - a.y)); ^ user.cpp:12:42: error: ‘struct std::pair<double, double>’ has no member named ‘y’ return 1.0 * ((b.x - a.x) * (c.y - a.y) - (c.x - a.x) * (b.y - a.y)); ^ user.cpp:12:50: error: ‘struct std::pair<double, double>’ has no member named ‘x’ return 1.0 * ((b.x - a.x) * (c.y - a.y) - (c.x - a.x) * (b.y - a.y)); ^ user.cpp:12:56: error: ‘struct std::pair<double, double>’ has no member named ‘x’ return 1.0 * ((b.x - a.x) * (c.y - a.y) - (c.x - a.x) * (b.y - a.y)); ^ user.cpp:12:64: error: ‘struct std::pair<double, double>’ has no member named ‘y’ return 1.0 * ((b.x - a.x) * (c.y - a.y) - (c.x - a.x) * (b.y - a.y)); ^ user.cpp:12:70: error: ‘struct std::pair<double, double>’ has no member named ‘y’ return 1.0 * ((b.x - a.x) * (c.y - a.y) - (c.x - a.x) * (b.y - a.y)); ^ user.cpp: In function ‘int main()’: user.cpp:24:43: error: ‘struct std::pair<double, double>’ has no member named ‘x’ for (int i = 1; i <= n; i++) cin >> p[i].x >> p[i].y; ^ user.cpp:24:53: error: ‘struct std::pair<double, double>’ has no member named ‘y’ for (int i = 1; i <= n; i++) cin >> p[i].x >> p[i].y; ^ user.cpp:38:21: error: ‘struct std::pair<double, double>’ has no member named ‘x’ cout << S[cnt].x << " " << S[cnt].y << "\n"; ^ user.cpp:38:40: error: ‘struct std::pair<double, double>’ has no member named ‘y’ cout << S[cnt].x << " " << S[cnt].y << "\n"; ^ user.cpp: In function ‘double check(std::pair<double, double>, std::pair<double, double>, std::pair<double, double>)’: user.cpp:13:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?