0_0_39822160_9567.cpp:4:21: error: no matching function for call to 'acos(int, int)'
4 | const double pi=acos(-1,0);
| ~~~~^~~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/valarray:605,
from .\stdc++.h:166:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/valarray_after.h:447:5: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_UnClos<std::_Acos, std::_ValArray, _Tp>, _Tp> std::acos(const valarray<_Tp>&)'
447 | _DEFINE_EXPR_UNARY_FUNCTION(acos, struct std::_Acos)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/valarray_after.h:447:5: note: template argument deduction/substitution failed:
0_0_39822160_9567.cpp:4:21: note: mismatched types 'const std::valarray<_Tp>' and 'int'
4 | const double pi=acos(-1,0);
| ~~~~^~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/valarray_after.h:447:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_UnClos<std::_Acos, std::_Expr, _Dom>, typename _Dom::value_type> std::acos(const _Expr<_Dom1, typename _Dom1::value_type>&)'
447 | _DEFINE_EXPR_UNARY_FUNCTION(acos, struct std::_Acos)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/valarray_after.h:447:5: note: template argument deduction/substitution failed:
0_0_39822160_9567.cpp:4:21: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'int'
4 | const double pi=acos(-1,0);
| ~~~~^~~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ccomplex:39,
from .\stdc++.h:127:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/complex:2195:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::acos(const complex<_Tp>&)'
2195 | acos(const std::complex<_Tp>& __z)
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/complex:2195:5: note: template argument deduction/substitution failed:
0_0_39822160_9567.cpp:4:21: note: mismatched types 'const std::complex<_Tp>' and 'int'
4 | const double pi=acos(-1,0);
| ~~~~^~~~~~
In file included from .\stdc++.h:114:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:101:5: note: candidate: 'template<class _Tp> constexpr typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::acos(_Tp)'
101 | acos(_Tp __x)
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:101:5: note: template argument deduction/substitution failed:
0_0_39822160_9567.cpp:4:21: note: candidate expects 1 argument, 2 provided
4 | const double pi=acos(-1,0);
| ~~~~^~~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:47:
gcc-13.1.0/x86_64-w64-mingw32/include/math.h:185:18: note: candidate: 'double acos(double)'
185 | double __cdecl acos(double _X);
| ^~~~
gcc-13.1.0/x86_64-w64-mingw32/include/math.h:185:18: note: candidate expects 1 argument, 2 provided
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:93:3: note: candidate: 'constexpr long double std::acos(long double)'
93 | acos(long double __x)
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:93:3: note: candidate expects 1 argument, 2 provided
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:89:3: note: candidate: 'constexpr float std::acos(float)'
89 | acos(float __x)
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:89:3: note: candidate expects 1 argument, 2 provided
0_0_39822160_9567.cpp: In function 'bool OnLeft(Line, Point)':
0_0_39822160_9567.cpp:28:50: error: 'p' was not declared in this scope
28 | bool OnLeft(Line L,Point P){return sgn(Cross(L.v,p-L.p))>0}
| ^
0_0_39822160_9567.cpp:28:59: error: expected ';' before '}' token
28 | bool OnLeft(Line L,Point P){return sgn(Cross(L.v,p-L.p))>0}
| ^
| ;
0_0_39822160_9567.cpp: In function 'std::vector<Point> HPI(std::vector<Line>)':
0_0_39822160_9567.cpp:35:10: error: expected initializer before '-' token
35 | int n-L.size();
| ^
0_0_39822160_9567.cpp:38:20: error: 'n' was not declared in this scope
38 | vector<Point>p(n);
| ^
0_0_39822160_9567.cpp:52:33: error: 'i' was not declared in this scope
52 | while(first<last&&!OnLeft(L[i],p[last-1])) last--;
| ^
|