Problem | exam |
---|---|
User | broccolini37 |
Submission Time | 2025-01-20 17:08:13 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exam.cpp: In function ‘int main()’:
exam.cpp:5:10: error: ‘cin’ is not a member of ‘std’
5 | std::cin >> x;
| ^~~
exam.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 |
exam.cpp:8:8: error: ‘cout’ is not a member of ‘std’
8 | std::cout << "Hello World";
| ^~~~
exam.cpp:8:8: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
exam.cpp:13:10: error: ‘cin’ is not a member of ‘std’
13 | std::cin >> a >> b;
| ^~~
exam.cpp:13:10: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
exam.cpp:15:8: error: ‘cout’ is not a member of ‘std’
15 | std::cout << a * b;
| ^~~~
exam.cpp:15:8: note: ‘std::cout’ is defined in header