Problem exam
User claireau
Submission Time 2024-05-30 18:09:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp:1:2: error: invalid preprocessing directive #included; did you mean #include?
1 | #included <iostream>
| ^~~~~~~~
| include
exam.cpp: In function ‘int main()’:
exam.cpp:7:1: error: ‘cin’ was not declared in this scope
7 | cin >> x;
| ^~~
exam.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #included <iostream>
exam.cpp:9:2: error: ‘cout’ was not declared in this scope
9 | cout << hello world;
| ^~~~
exam.cpp:9:2: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
exam.cpp:9:10: error: ‘hello’ was not declared in this scope
9 | cout << hello world;
| ^~~~~
exam.cpp:16:1: error: ‘cout’ was not declared in this scope
16 | cout << a*b;
| ^~~~
exam.cpp:16:1