0_0_27440887_13691.cpp:14:1: error: 'point' does not name a type
point tmp[100010];
^
0_0_27440887_13691.cpp:19:17: error: 'point' was not declared in this scope
double distance(point a, point b);
^
0_0_27440887_13691.cpp:19:26: error: 'point' was not declared in this scope
double distance(point a, point b);
^
0_0_27440887_13691.cpp:19:33: error: expression list treated as compound expression in initializer [-fpermissive]
double distance(point a, point b);
^
0_0_27440887_13691.cpp:52:17: error: redefinition of 'double distance'
double distance(point a, point b)
^
0_0_27440887_13691.cpp:19:8: note: 'double distance' previously defined here
double distance(point a, point b);
^
0_0_27440887_13691.cpp:52:17: error: 'point' was not declared in this scope
double distance(point a, point b)
^
0_0_27440887_13691.cpp:52:26: error: 'point' was not declared in this scope
double distance(point a, point b)
^
0_0_27440887_13691.cpp: In function 'double ans(int, int)':
0_0_27440887_13691.cpp:60:10: error: reference to 'distance' is ambiguous
return distance(p[left], p[right]);
^
0_0_27440887_13691.cpp:19:8: note: candidates are: double distance
double distance(point a, point b);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_27440887_13691.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:114:5: note: template<class _InputIterator> typename std::iterator_traits<_Iterator>::difference_type std::distance(_InputIterator, _InputIterator)
distance(_InputIterator __first, _InputIterator __last)
^
0_0_27440887_13691.cpp:62:14: error: reference to 'distance' is ambiguous
return min(distance(p[left], p[left + 1]), min(distance(p[left], p[right]), distance(p[left + 1], p[right])));
^
0_0_27440887_13691.cpp:19:8: note: candidates are: double distance
double distance(point a, point b);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_27440887_13691.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:114:5: note: template<class _InputIterator> typename std::iterator_traits<_Iterator>::difference_type std::distance(_InputIterator, _InputIterator)
distance(_InputIterator __first, _InputIterator __last)
^
0_0_27440887_13691.cpp:62:50: error: reference to 'distance' is ambiguous
return min(distance(p[left], p[left + 1]), min(distance(p[left], p[right]), distance(p[left + 1], p[right])));
^
0_0_27440887_13691.cpp:19:8: note: candidates are: double distance
double distance(point a, point b);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_27440887_13691.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:114:5: note: template<class _InputIterator> typename std::iterator_traits<_Iterator>::difference_type std::distance(_InputIterator, _InputIterator)
distance(_InputIterator __first, _InputIterator __last)
^
0_0_27440887_13691.cpp:62:79: error: reference to 'distance' is ambiguous
return min(distance(p[left], p[left + 1]), min(distance(p[left], p[right]), distance(p[left + 1], p[right])));
^
0_0_27440887_13691.cpp:19:8: note: candidates are: double distance
double distance(point a, point b);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_27440887_13691.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:114:5: note: template<class _InputIterator> typename std::iterator_traits<_Iterator>::difference_type std::distance(_InputIterator, _InputIterator)
distance(_InputIterator __first, _InputIterator __last)
^
0_0_27440887_13691.cpp:75:4: error: 'tmp' was not declared in this scope
tmp[k++] = p[i];
^
0_0_27440887_13691.cpp:77:7: error: 'tmp' was not declared in this scope
sort(tmp, tmp + k, cmpy);
^
0_0_27440887_13691.cpp:84:20: error: reference to 'distance' is ambiguous
Ans = min(Ans, distance(tmp[i], tmp[j]));
^
0_0_27440887_13691.cpp:19:8: note: candidates are: double distance
double distance(point a, point b);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_27440887_13691.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:114:5: note: template<class _InputIterator> typename std::iterator_traits<_Iterator>::difference_type std::distance(_InputIterator, _InputIterator)
distance(_InputIterator __first, _InputIterator __last)
^
|