Problem exam
User supercel980
Submission Time 2024-07-15 16:48:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:5:2: error: ‘cin’ was not declared in this scope
5 | cin >> x;
| ^~~
exam.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
exam.cpp:7:3: error: ‘cout’ was not declared in this scope
7 | cout << "Hello World";
| ^~~~
exam.cpp:7:3: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
exam.cpp:12:3: error: ‘cout’ was not declared in this scope
12 | cout << c;
| ^~~~
exam.cpp:12:3: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?