Problem exam
User ansellee
Submission Time 2023-12-19 23:27:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:10:16: error: no match for ‘operator*’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘std::istream’ {aka ‘std::basic_istream<char>’})
10 | cout << (cin * cin);
| ~~~ ^ ~~~
| | |
| | basic_istream<[...]>
| basic_istream<[...]>
exam.cpp:10:16: note: candidate: ‘operator*(int, int)’ <built-in>
10 | cout << (cin * cin);
| ~~~~^~~~~
exam.cpp:10:16: note: no known conversion for argument 2 from ‘std::istream’ {aka ‘std::basic_istream<char>’} to ‘int’