Problem f7
User PoTheSloth
Submission Time 2023-11-21 17:04:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

f7.cpp: In function ‘int32_t main()’:
f7.cpp:10:57: error: reference to ‘real’ is ambiguous
10 | for(int i=0; i<n; ++i){int x;cin>>x;ideal.push_back(x);real.push_back(x);}
| ^~~~
In file included from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from f7.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)
| ^~~~
f7.cpp:6:19: note: ‘std::vector<int> real’
6 | vector<int>ideal, real;
| ^~~