0_0_18919869_12196.cpp: In function 'double dist(Point, Point)':
0_0_18919869_12196.cpp:39:25: error: no matching function for call to 'sqrt(Point)'
return sqrt((x-y)*(x-y));
^
0_0_18919869_12196.cpp:39:25: 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_18919869_12196.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:152:18: note: double sqrt(double)
double __cdecl sqrt(double _X);
^
GCC4.9.2/x86_64-w64-mingw32/include/math.h:152:18: note: no known conversion for argument 1 from 'Point' to 'double'
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_18919869_12196.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/valarray_after.h:455:5: note: template<class _Tp> std::_Expr<std::_UnClos<std::_Sqrt, std::_ValArray, _Tp>, _Tp> std::sqrt(const std::valarray<_Tp>&)
_DEFINE_EXPR_UNARY_FUNCTION(sqrt, _Sqrt)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/valarray_after.h:455:5: note: template argument deduction/substitution failed:
0_0_18919869_12196.cpp:39:25: note: 'Point' is not derived from 'const std::valarray<_Tp>'
return sqrt((x-y)*(x-y));
^
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_18919869_12196.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/valarray_after.h:455:5: note: template<class _Dom> std::_Expr<std::_UnClos<std::_Sqrt, std::_Expr, _Dom>, typename _Dom::value_type> std::sqrt(const std::_Expr<_Dom1, typename _Dom1::value_type>&)
_DEFINE_EXPR_UNARY_FUNCTION(sqrt, _Sqrt)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/valarray_after.h:455:5: note: template argument deduction/substitution failed:
0_0_18919869_12196.cpp:39:25: note: 'Point' is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
return sqrt((x-y)*(x-y));
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_18919869_12196.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:889:5: note: template<class _Tp> std::complex<_Tp> std::sqrt(const std::complex<_Tp>&)
sqrt(const complex<_Tp>& __z) { return __complex_sqrt(__z.__rep()); }
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:889:5: note: template argument deduction/substitution failed:
0_0_18919869_12196.cpp:39:25: note: 'Point' is not derived from 'const std::complex<_Tp>'
return sqrt((x-y)*(x-y));
^
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_18919869_12196.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:494:5: note: template<class _Tp> constexpr typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::sqrt(_Tp)
sqrt(_Tp __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:494:5: note: template argument deduction/substitution failed:
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath: In substitution of 'template<class _Tp> constexpr typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::sqrt(_Tp) [with _Tp = Point]':
0_0_18919869_12196.cpp:39:25: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:494:5: error: no type named '__type' in 'struct __gnu_cxx::__enable_if<false, double>'
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:486:3: note: constexpr long double std::sqrt(long double)
sqrt(long double __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:486:3: note: no known conversion for argument 1 from 'Point' to 'long double'
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:482:3: note: constexpr float std::sqrt(float)
sqrt(float __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:482:3: note: no known conversion for argument 1 from 'Point' to 'float'
0_0_18919869_12196.cpp: In function 'int main()':
0_0_18919869_12196.cpp:48:16: error: no matching function for call to 'std::set<Point>::insert(int, int, int)'
s.insert(0,0,1);
^
0_0_18919869_12196.cpp:48:16: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:86,
from 0_0_18919869_12196.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_set.h:499:7: note: std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = Point; _Compare = std::less<Point>; _Alloc = std::allocator<Point>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<Point>; std::set<_Key, _Compare, _Alloc>::value_type = Point]
insert(const value_type& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_set.h:499:7: note: candidate expects 1 argument, 3 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_set.h:508:7: note: std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = Point; _Compare = std::less<Point>; _Alloc = std::allocator<Point>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<Point>; std::set<_Key, _Compare, _Alloc>::value_type = Point]
insert(value_type&& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_set.h:508:7: note: candidate expects 1 argument, 3 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_set.h:536:7: note: std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::const_iterator, const value_type&) [with _Key = Point; _Compare = std::less<Point>; _Alloc = std::allocator<Point>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<Point>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<Point>; std::set<_Key, _Compare, _Alloc>::value_type = Point]
insert(const_iterator __position, const value_type& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_set.h:536:7: note: candidate expects 2 arguments, 3 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_set.h:541:7: note: std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::const_iterator, std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = Point; _Compare = std::less<Point>; _Alloc = std::allocator<Point>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<Point>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<Point>; std::set<_Key, _Compare, _Alloc>::value_type = Point]
insert(const_iterator __position, value_type&& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_set.h:541:7: note: candidate expects 2 arguments, 3 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_set.h:556:2: note: template<class _InputIterator> void std::set<_Key, _Compare, _Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; _Key = Point; _Compare = std::less<Point>; _Alloc = std::allocator<Point>]
insert(_InputIterator __first, _InputIterator __last)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_set.h:556:2: note: template argument deduction/substitution failed:
0_0_18919869_12196.cpp:48:16: note: candidate expects 2 arguments, 3 provided
s.insert(0,0,1);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:86,
from 0_0_18919869_12196.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_set.h:568:7: note: void std::set<_Key, _Compare, _Alloc>::insert(std::initializer_list<_Tp>) [with _Key = Point; _Compare = std::less<Point>; _Alloc = std::allocator<Point>]
insert(initializer_list<value_type> __l)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_set.h:568:7: note: candidate expects 1 argument, 3 provided
0_0_18919869_12196.cpp:49:6: error: request for member 'insert' in 'ans', which is of non-class type 'std::set<std::set<Point> > [2]'
ans.insert(s[1]);
^
0_0_18919869_12196.cpp:49:14: error: no match for 'operator[]' (o
|