Problem | exam |
---|---|
User | claireau |
Submission Time | 2024-05-30 18:08:01 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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:8:4: error: expected ‘(’ before ‘x’
8 | if x = 1;
| ^
| (
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
| ^~~~~