Problem exam
User PeanutButter
Submission Time 2025-03-07 14:39:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int32_t main()’:
exam.cpp:11:30: error: expected ‘;’ before ‘}’ token
11 | cout << "Hello World"
| ^
| ;
12 | }
| ~
exam.cpp:15:13: error: no match for ‘operator<<’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘long long int’)
15 | cin << A << B
| ~~~ ^~ ~
| | |
| | long long int
| std::istream {aka std::basic_istream<char>}
exam.cpp:15:13: note: candidate: ‘operator<<(int, long long int)’ <built-in>
15 | cin << A << B
| ~~~~^~~~
exam.cpp:15:13: note: no known conversion for argument 1 from ‘std::istream’ {aka ‘std::basic_istream<char>’} to ‘int’
In file included from /usr/include/c++/9/regex:62,