Borderou de evaluare (job #1759520)

Utilizator akaprosAna Kapros akapros Data 19 septembrie 2016 13:48:01
Problema Camera Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:2: error: invalid preprocessing directive #definr #definr Inf 2000000 ^ user.cpp: In function ‘int Sign(std::pair<double, double>, std::pair<double, double>, std::pair<double, double>)’: user.cpp:16:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘double A(int)’: user.cpp:22:22: error: request for member ‘x’ in ‘v[i]’, which is of non-class type ‘std::pair<double, double> [2002]’ aria += v[i].x * v[i + 1].y - v[i + 1].x * v[i].y; ^ user.cpp:22:35: error: request for member ‘y’ in ‘v[(i + 1)]’, which is of non-class type ‘std::pair<double, double> [2002]’ aria += v[i].x * v[i + 1].y - v[i + 1].x * v[i].y; ^ user.cpp:22:48: error: request for member ‘x’ in ‘v[(i + 1)]’, which is of non-class type ‘std::pair<double, double> [2002]’ aria += v[i].x * v[i + 1].y - v[i + 1].x * v[i].y; ^ user.cpp:22:57: error: request for member ‘y’ in ‘v[i]’, which is of non-class type ‘std::pair<double, double> [2002]’ aria += v[i].x * v[i + 1].y - v[i + 1].x * v[i].y; ^ user.cpp: In function ‘void read()’: user.cpp:31:17: error: no match for ‘operator=’ (operand types are ‘std::pair<double, double>’ and ‘std::pair<double, double> [2002]’) v[0][n + 1] = v[1]; ^ user.cpp:31:17: note: candidates are: In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/sstream:38, from /usr/include/c++/4.8/complex:45, from /usr/include/c++/4.8/ccomplex:38, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:52, from user.cpp:1: /usr/include/c++/4.8/bits/stl_pair.h:158:7: note: std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(const std::pair<_T1, _T2>&) [with _T1 = double; _T2 = double] operator=(const pair& __p) ^ /usr/include/c++/4.8/bits/stl_pair.h:158:7: note: no known conversion for argument 1 from ‘std::pair<double, double> [2002]’ to ‘const std::pair<double, double>&’ /usr/include/c++/4.8/bits/stl_pair.h:166:7: note: std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(std::pair<_T1, _T2>&&) [with _T1 = double; _T2 = double] operator=(pair&& __p) ^ /usr/include/c++/4.8/bits/stl_pair.h:166:7: note: no known conversion for argument 1 from ‘std::pair<double, double> [2002]’ to ‘std::pair<double, double>&&’ /usr/include/c++/4.8/bits/stl_pair.h:177:2: note: template<class _U1, class _U2> std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(const std::pair<_U1, _U2>&) [with _U1 = _U1; _U2 = _U2; _T1 = double; _T2 = double] operator=(const pair<_U1, _U2>& __p) ^ /usr/include/c++/4.8/bits/stl_pair.h:177:2: note: template argument deduction/substitution failed: user.cpp:31:17: note: mismatched types ‘const std::pair<_T1, _T2>’ and ‘std::pair<double, double> [2002]’ v[0][n + 1] = v[1]; ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0,

Ceva nu functioneaza?