Problem exam
User wibblywobb
Submission Time 2025-01-18 15:33:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:3:7: error: ‘cin’ is not a member of ‘std’
3 | std::cin >> x;
| ^~~
exam.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | int main() {
exam.cpp:5:8: error: ‘cout’ is not a member of ‘std’
5 | std::cout << "Hello World";
| ^~~~
exam.cpp:5:8: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
exam.cpp:9:8: error: ‘cin’ is not a member of ‘std’
9 | std::cin >> A >> B;
| ^~~
exam.cpp:9:8: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
exam.cpp:11:8: error: ‘cout’ is not a member of ‘std’
11 | std::cout << product;
| ^~~~
exam.cpp:11:8: note: ‘std::cout’ is defined in header ‘