0_0_13080964_8415.cpp:7:10: error: reference to 'get' is ambiguous
bool cmp(get a,get b)
^
0_0_13080964_8415.cpp:6:8: note: candidates are: struct get
struct get{double j,f,r;};
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60:0,
from 0_0_13080964_8415.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:153:5: note: template<long long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(const std::pair<_Tp1, _Tp2>&)
get(const std::pair<_Tp1, _Tp2>& __in) noexcept
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:148:5: note: template<long long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(std::pair<_Tp1, _Tp2>&&)
get(std::pair<_Tp1, _Tp2>&& __in) noexcept
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:143:5: note: template<long long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(std::pair<_Tp1, _Tp2>&)
get(std::pair<_Tp1, _Tp2>& __in) noexcept
^
0_0_13080964_8415.cpp:7:16: error: reference to 'get' is ambiguous
bool cmp(get a,get b)
^
0_0_13080964_8415.cpp:6:8: note: candidates are: struct get
struct get{double j,f,r;};
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60:0,
from 0_0_13080964_8415.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:153:5: note: template<long long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(const std::pair<_Tp1, _Tp2>&)
get(const std::pair<_Tp1, _Tp2>& __in) noexcept
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:148:5: note: template<long long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(std::pair<_Tp1, _Tp2>&&)
get(std::pair<_Tp1, _Tp2>&& __in) noexcept
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:143:5: note: template<long long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(std::pair<_Tp1, _Tp2>&)
get(std::pair<_Tp1, _Tp2>& __in) noexcept
^
0_0_13080964_8415.cpp:7:21: error: expression list treated as compound expression in initializer [-fpermissive]
bool cmp(get a,get b)
^
0_0_13080964_8415.cpp:8:1: error: expected ',' or ';' before '{' token
{
^
0_0_13080964_8415.cpp: In function 'int main()':
0_0_13080964_8415.cpp:13:5: error: reference to 'get' is ambiguous
get a[1005];double m;int n;
^
0_0_13080964_8415.cpp:6:8: note: candidates are: struct get
struct get{double j,f,r;};
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60:0,
from 0_0_13080964_8415.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:153:5: note: template<long long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(const std::pair<_Tp1, _Tp2>&)
get(const std::pair<_Tp1, _Tp2>& __in) noexcept
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:148:5: note: template<long long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(std::pair<_Tp1, _Tp2>&&)
get(std::pair<_Tp1, _Tp2>&& __in) noexcept
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:143:5: note: template<long long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(std::pair<_Tp1, _Tp2>&)
get(std::pair<_Tp1, _Tp2>& __in) noexcept
^
0_0_13080964_8415.cpp:20:29: error: 'a' was not declared in this scope
scanf("%lf%lf",&a[i].j,&a[i].f),a[i].r=a[i].j/a[i].f;
^
0_0_13080964_8415.cpp:21:14: error: 'a' was not declared in this scope
sort(a,a+n,cmp);
^
|