Problem | logs |
---|---|
User | G |
Submission Time | 2024-03-09 18:02:08 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
logs.cpp: In function ‘int main()’:
logs.cpp:14:19: error: no match for ‘operator/’ (operand types are ‘std::vector<double>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<double*, std::vector<double> >’} and ‘int’)
14 | double x=a.end()/2;
| ~~~~~~~^~
| | |
| | int
| std::vector<double>::iterator {aka __gnu_cxx::__normal_iterator<double*, std::vector<double> >}
In file included from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from logs.cpp:1:
/usr/include/c++/9/complex:421:5: note: candidate: ‘template<class _Tp> std::complex<_Tp> std::operator/(const std::complex<_Tp>&, const std::complex<_Tp>&)’
421 | operator/(const complex<_Tp>& __x, const complex<_Tp>& __y)
| ^~~~~~~~
/usr/include/c++/9/co