Problem | area |
---|---|
User | AlphanumericUsername |
Submission Time | 2023-04-14 17:02:22 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
area.cpp: In function ‘int main()’:
area.cpp:12:12: error: no match for ‘operator*’ (operand types are ‘long long int’ and ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’})
12 | ans+=in1*(cin>>in1);
| ~~~^~~~~~~~~~~
| | |
| | std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}
| long long int
area.cpp:12:12: note: candidate: ‘operator*(long long int, int)’ <built-in>
12 | ans+=in1*(cin>>in1);
| ~~~^~~~~~~~~~~
area.cpp:12:12: note: no known conversion for argument 2 from ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’} to ‘int’
In file included from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from area.cpp:1:
/usr/include/c++/9/complex:391:5: not