Problem exam
User Ant1234567890
Submission Time 2025-06-11 12:14:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp:1:2: error: invalid preprocessing directive #<
1 | #<bits/stdc++.h>
| ^
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 | #<bits/stdc++.h>
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:10:3: error: ‘cout’ was not declared in this scope
10 | cout<<y*z
| ^~~~
exam.cpp:10:3: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?