Problem | transmit |
---|---|
User | darius0 |
Submission Time | 2024-12-30 14:55:40 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
transmit.cpp: In function ‘int main()’:
transmit.cpp:11:11: error: no match for ‘operator*’ (operand types are ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} and ‘long long int’)
11 | a += h*(2*(n+l));
| ~^~~~~~~~~~
| | |
| | long long int
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from transmit.cpp:1:
/usr/include/c++/9/complex:391:5: note: candidate: ‘template<class _Tp> std::complex<_Tp> std::operator*(const std::complex<_Tp>&, const std::complex<_Tp>&)’
391 | operator*(const complex<_Tp>& __x, const complex<_Tp>& __y)
| ^~~~~~~~
/usr/include/c++/9/complex:391:5: note: template argument deduction/substitution failed:
transmit.cpp:11:20: note: