0_0_15029949_17584.cpp:132:1: error: expected unqualified-id before 'int'
int dist[maxm][maxm];
^
0_0_15029949_17584.cpp: In function 'int main()':
0_0_15029949_17584.cpp:172:103: error: no matching function for call to 'atan2(double, double&, double&)'
slope[cntsl].s = atan2(convex[cntsl+1].y-convex[cntsl].y,convex[cntsl+1].x,convex[cntsl].x);
^
0_0_15029949_17584.cpp:172:103: 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++/random:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_15029949_17584.cpp:4:
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, 3 provided
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:38:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_15029949_17584.cpp:4:
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_15029949_17584.cpp:172:103: note: candidate expects 2 arguments, 3 provided
slope[cntsl].s = atan2(convex[cntsl+1].y-convex[cntsl].y,convex[cntsl+1].x,convex[cntsl].x);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:38:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_15029949_17584.cpp:4:
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, 3 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, 3 provided
0_0_15029949_17584.cpp:177:103: error: no matching function for call to 'atan2(double, double&, double&)'
slope[cntsl].s = atan2(convex[cntsl+1].y-convex[cntsl].y,convex[cntsl+1].x,convex[cntsl].x);
^
0_0_15029949_17584.cpp:177:103: 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++/random:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_15029949_17584.cpp:4:
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, 3 provided
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:38:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_15029949_17584.cpp:4:
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_15029949_17584.cpp:177:103: note: candidate expects 2 arguments, 3 provided
slope[cntsl].s = atan2(convex[cntsl+1].y-convex[cntsl].y,convex[cntsl+1].x,convex[cntsl].x);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:38:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_15029949_17584.cpp:4:
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, 3 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, 3 provided
0_0_15029949_17584.cpp:185:36: error: ISO C++ forbids applying 'sizeof' to an expression of function type [-fpermissive]
memset(dist,inf,sizeof(dist));
^
0_0_15029949_17584.cpp:185:37: error: invalid conversion from 'double (*)(const Point&, const Point&)' to 'void*' [-fpermissive]
memset(dist,inf,sizeof(dist));
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstring:42:0,
from 0_0_15029949_17584.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/string.h:43:18: note: initializing argument 1 of 'void* memset(void*, int, size_t)'
void * __cdecl memset(void *_Dst,int _Val,size_t _Size);
^
0_0_15029949_17584.cpp:192:87: error: no matching function for call to 'atan2(double, double&, double&)'
double tmp = atan2(monitor[i].y-monitor[j].y,monitor[i].x,monitor[j].x);
^
0_0_15029949_17584.cpp:192:87: 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++/random:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_15029949_17584.cpp:4:
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, 3 provided
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:38:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_15029949_17584.cpp:4:
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_15029949_17584.cpp:192:87: note: candidate expects 2 arguments, 3 provided
double tmp = atan2(monitor[i].y-monitor[j].y,monitor[i].x,monitor[j].x);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:38:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_15029949_17584.cpp:4:
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, 3 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, 3 provided
0_0_15029949_17584.cpp:196:60: error: no matching function for call to 'lower_bound(Slope [100100], Slope*)'
int pos = lower_bound(slope,slope+cntsl)-slope;
|