Problem | exam |
---|---|
User | GrainOrBread |
Submission Time | 2024-11-19 20:05:50 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exam.cpp: In function ‘int main()’:
exam.cpp:6:5: error: ‘cin’ was not declared in this scope
6 | 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" << "\n";
| ^~~~
exam.cpp:8:9: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
exam.cpp:12:9: error: ‘cout’ was not declared in this scope
12 | cout << num1*num2 << "\n";
| ^~~~
exam.cpp:12:9: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?