0_0_32480779_11299.cpp: In function 'int main()':
0_0_32480779_11299.cpp:24:22: error: no matching function for call to 'atan2(double)'
a=atan2(y1/x1)*180/PI;
^
0_0_32480779_11299.cpp:24:22: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:44:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:41,
from 0_0_32480779_11299.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:147:18: note: double atan2(double, double)
double __cdecl atan2(double _Y,double _X);
^
GCC4.9.2/x86_64-w64-mingw32/include/math.h:147:18: note: candidate expects 2 arguments, 1 provided
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:587:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94,
from 0_0_32480779_11299.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/valarray_after.h:543:1: note: template<class _Tp> std::_Expr<std::_BinClos<std::_Atan2, std::_Constant, std::_ValArray, _Tp, _Tp>, _Tp> std::atan2(const _Tp&, const std::valarray<_Tp>&)
_DEFINE_EXPR_BINARY_FUNCTION(atan2, _Atan2)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/valarray_after.h:543:1: note: template argument deduction/substitution failed:
0_0_32480779_11299.cpp:24:22: note: candidate expects 2 arguments, 1 provided
a=atan2(y1/x1)*180/PI;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:587:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94,
from 0_0_32480779_11299.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/valarray_after.h:543:1: note: template<class _Tp> std::_Expr<std::_BinClos<std::_Atan2, std::_ValArray, std::_Constant, _Tp, _Tp>, _Tp> std::atan2(const std::valarray<_Tp>&, const _Tp&)
_DEFINE_EXPR_BINARY_FUNCTION(atan2, _Atan2)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/valarray_after.h:543:1: note: template argument deduction/substitution failed:
0_0_32480779_11299.cpp:24:22: note: mismatched types 'const std::valarray<_Tp>' and 'double'
a=atan2(y1/x1)*180/PI;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:587:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94,
from 0_0_32480779_11299.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/valarray_after.h:543:1: note: template<class _Tp> std::_Expr<std::_BinClos<std::_Atan2, std::_ValArray, std::_ValArray, _Tp, _Tp>, _Tp> std::atan2(const std::valarray<_Tp>&, const std::valarray<_Tp>&)
_DEFINE_EXPR_BINARY_FUNCTION(atan2, _Atan2)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/valarray_after.h:543:1: note: template argument deduction/substitution failed:
0_0_32480779_11299.cpp:24:22: note: mismatched types 'const std::valarray<_Tp>' and 'double'
a=atan2(y1/x1)*180/PI;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:587:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94,
from 0_0_32480779_11299.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/valarray_after.h:543:1: note: template<class _Dom> std::_Expr<std::_BinClos<std::_Atan2, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename _Dom::value_type> std::atan2(const typename _Dom::value_type&, const std::_Expr<_Dom1, typename _Dom1::value_type>&)
_DEFINE_EXPR_BINARY_FUNCTION(atan2, _Atan2)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/valarray_after.h:543:1: note: template argument deduction/substitution failed:
0_0_32480779_11299.cpp:24:22: note: candidate expects 2 arguments, 1 provided
a=atan2(y1/x1)*180/PI;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:587:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94,
from 0_0_32480779_11299.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/valarray_after.h:543:1: note: template<class _Dom> std::_Expr<std::_BinClos<std::_Atan2, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename _Dom::value_type> std::atan2(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)
_DEFINE_EXPR_BINARY_FUNCTION(atan2, _Atan2)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/valarray_after.h:543:1: note: template argument deduction/substitution failed:
0_0_32480779_11299.cpp:24:22: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'double'
a=atan2(y1/x1)*180/PI;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:587:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94,
from 0_0_32480779_11299.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/valarray_after.h:543:1: note: template<class _Dom> std::_Expr<std::_BinClos<std::_Atan2, std::_ValArray, std::_Expr, typename _Dom::value_type, _Dom>, typename _Dom::value_type> std::atan2(const std::valarray<typename _Dom::valarray>&, const std::_Expr<_Dom1, typename _Dom1::value_type>&)
_DEFINE_EXPR_BINARY_FUNCTION(atan2, _Atan2)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/valarray_after.h:543:1: note: template argument deduction/substitution failed:
0_0_32480779_11299.cpp:24:22: note: candidate expects 2 arguments, 1 provided
a=atan2(y1/x1)*180/PI;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:587:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94,
from 0_0_32480779_11299.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/valarray_after.h:543:1: note: template<class _Dom> std::_Expr<std::_BinClos<std::_Atan2, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename _Dom::value_type> std::atan2(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const std::valarray<typename _Dom::value_type>&)
_DEFINE_EXPR_BINARY_FUNCTION(atan2, _Atan2)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/valarray_after.h:543:1: note: template argument deduction/substitution failed:
0_0_32480779_11299.cpp:24:22: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'double'
a=atan2(y1/x1)*180/PI;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:587:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94,
from 0_0_32480779_11299.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/valarray_after.h:543:1: note: template<class _Dom1, class _Dom2> std::_Expr<std::_BinClos<std::_Atan2, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename _Dom1::value_type> std::atan2(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const std::_Expr<_Dom2, typename _Dom2::value_type>&)
_DEFINE_EXPR_BINARY_FUNCTION(atan2, _Atan2)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/valarray_after.h:543:1: note: template argument deduction/substitution failed:
0_0_32480779_11299.cpp:24:22: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'double'
a=atan2(y1/x1)*180/PI;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:41:0,
from 0_0_32480779_11299.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:174:5: note: template<class _Tp, class _Up> constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type std::atan2(_Tp, _Up)
atan2(_Tp __y, _Up __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:174:5: note: template argument deduction/substitution failed:
0_0_32480779_11299.cpp:24:22: note: candidate expects 2 arguments, 1 provided
a=atan2(y1/x1)*180/PI;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:41:0,
from 0_0_32480779_11299.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:167:3: note: constexpr long double std::atan2(long double, long double)
atan2(long double __y, long double __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:167:3: note: candidate expects 2 arguments, 1 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:163:3: note: constexpr float std::atan2(float, float)
atan2(float __y, float __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:163:3: note: candidate expects 2 arguments, 1 provided
0_0_32480779_11299.cpp:25:22: error: no matching function for call to 'atan2(double)'
b=atan2(y2/x2)*180/PI;
^
0_0_32480779_11299.cpp:25:22: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:44:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:41,
|