Problem exam
User 3lvian
Submission Time 2023-03-13 21:02:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:12:15: error: cannot convert ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’} to ‘int’ in initialization
12 | int a = cin >> a;
| ~~~~^~~~
| |
| std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}
exam.cpp:13:15: error: cannot convert ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’} to ‘int’ in initialization
13 | int b = cin >> b;
| ~~~~^~~~
| |
| std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}