Problem | exam |
---|---|
User | sthe2nd |
Submission Time | 2024-06-24 22:26:33 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exam.cpp: In function ‘int main()’:
exam.cpp:5:5: 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:8:9: error: ‘cout’ was not declared in this scope
8 | cout<<"Hello World";
| ^~~~
exam.cpp:8:9: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
exam.cpp:14:9: error: ‘cout’ was not declared in this scope
14 | cout<<num1*num2;
| ^~~~
exam.cpp:14:9: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?