Problem historical
User Pan
Submission Time 2023-12-03 15:57:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

historical.cpp: In function ‘void add(ll)’:
historical.cpp:34:17: error: reference to ‘real’ is ambiguous
34 | ans = max(ans, real[i]*fre[i].second);
| ^~~~
In file included from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from historical.cpp:1:
/usr/include/c++/9/complex:1872:5: note: candidates are: ‘template<class _Tp> constexpr typename __gnu_cxx::__promote<_Tp>::__type std::real(_Tp)’
1872 | real(_Tp __x)
| ^~~~
/usr/include/c++/9/complex:566:5: note: ‘template<class _Tp> constexpr _Tp std::real(const std::complex<_Tp>&)’
566 | real(const complex<_Tp>& __z)
| ^~~~
historical.cpp:13:12: note: ‘std::vector<long long int> real’
13 | vector<ll> real;
| ^~~~
historical.cpp: In function ‘int main()’:
historic