0_0_26149590_32075.cpp:6:6: error: reference to 'max' is ambiguous
ll k[max], o[max], t[max], e[max], n;
^
0_0_26149590_32075.cpp:5:11: note: candidates are: const int max
const int max = 100050;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_26149590_32075.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3454:5: note: template<class _Tp, class _Compare> _Tp std::max(std::initializer_list<_Tp>, _Compare)
max(initializer_list<_Tp> __l, _Compare __comp)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3449:5: note: template<class _Tp> _Tp std::max(std::initializer_list<_Tp>)
max(initializer_list<_Tp> __l)
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61:0,
from 0_0_26149590_32075.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:261:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:217:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
0_0_26149590_32075.cpp:6:14: error: reference to 'max' is ambiguous
ll k[max], o[max], t[max], e[max], n;
^
0_0_26149590_32075.cpp:5:11: note: candidates are: const int max
const int max = 100050;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_26149590_32075.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3454:5: note: template<class _Tp, class _Compare> _Tp std::max(std::initializer_list<_Tp>, _Compare)
max(initializer_list<_Tp> __l, _Compare __comp)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3449:5: note: template<class _Tp> _Tp std::max(std::initializer_list<_Tp>)
max(initializer_list<_Tp> __l)
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61:0,
from 0_0_26149590_32075.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:261:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:217:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
0_0_26149590_32075.cpp:6:22: error: reference to 'max' is ambiguous
ll k[max], o[max], t[max], e[max], n;
^
0_0_26149590_32075.cpp:5:11: note: candidates are: const int max
const int max = 100050;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_26149590_32075.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3454:5: note: template<class _Tp, class _Compare> _Tp std::max(std::initializer_list<_Tp>, _Compare)
max(initializer_list<_Tp> __l, _Compare __comp)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3449:5: note: template<class _Tp> _Tp std::max(std::initializer_list<_Tp>)
max(initializer_list<_Tp> __l)
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61:0,
from 0_0_26149590_32075.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:261:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:217:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
0_0_26149590_32075.cpp:6:30: error: reference to 'max' is ambiguous
ll k[max], o[max], t[max], e[max], n;
^
0_0_26149590_32075.cpp:5:11: note: candidates are: const int max
const int max = 100050;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_26149590_32075.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3454:5: note: template<class _Tp, class _Compare> _Tp std::max(std::initializer_list<_Tp>, _Compare)
max(initializer_list<_Tp> __l, _Compare __comp)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3449:5: note: template<class _Tp> _Tp std::max(std::initializer_list<_Tp>)
max(initializer_list<_Tp> __l)
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61:0,
from 0_0_26149590_32075.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:261:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:217:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
0_0_26149590_32075.cpp: In function 'bool cmp(int, int)':
0_0_26149590_32075.cpp:10:13: error: 'e' was not declared in this scope
return (e[i] * k[j] < e[j] * k[i]);
^
0_0_26149590_32075.cpp:10:20: error: 'k' was not declared in this scope
return (e[i] * k[j] < e[j] * k[i]);
^
0_0_26149590_32075.cpp: In function 'int main()':
0_0_26149590_32075.cpp:18:29: error: 'e' was not declared in this scope
scanf ("%lld", &e[i]);
^
0_0_26149590_32075.cpp:22:13: error: 'o' was not declared in this scope
o[i] = i;
^
0_0_26149590_32075.cpp:23:29: error: 'k' was not declared in this scope
scanf ("%lld", &k[i]);
^
0_0_26149590_32075.cpp:25:15: error: 'o' was not declared in this scope
sort (o + 1, o + n + 1, cmp);
^
0_0_26149590_32075.cpp:31:13: error: 't' was not declared in this scope
t[j]=t[o[i-1]]+e[j];
^
0_0_26149590_32075.cpp:31:28: error: 'e' was not declared in this scope
t[j]=t[o[i-1]]+e[j];
^
0_0_26149590_32075.cpp:32:20: error: 'k' was not declared in this scope
ans += k[j] * t[j];
^
|