Problem exam
User 90Dream09
Submission Time 2026-01-27 22:24:27
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:8:5: error: ‘cin’ was not declared in this scope
8 | 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:11:5: error: expected ‘(’ before ‘x’
11 | if x = 1;
| ^
| (
exam.cpp:12:3: error: ‘cout’ was not declared in this scope
12 | cout << "Hello World";
| ^~~~
exam.cpp:12:3: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
exam.cpp:13:2: error: ‘else’ without a previous ‘if’
13 | else;
| ^~~~