Problem | addition |
---|---|
User | Wenqi6666 |
Submission Time | 2025-06-16 14:23:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
addition.cpp: In function ‘int main()’:
addition.cpp:6:5: error: ‘cout’ was not declared in this scope
6 | cout << "Please enter two numbers: ";
| ^~~~
addition.cpp:1:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 |
addition.cpp:7:5: error: ‘cin’ was not declared in this scope
7 | cin >> a >> b;
| ^~~
addition.cpp:7:5: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
addition.cpp:8:37: error: ‘endl’ was not declared in this scope
8 | cout << "Product: " << a * b << endl;
| ^~~~
addition.cpp:1:1: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
+++ |+#include <ostream>
1 |