Problem | add1 |
---|---|
User | CoconutNut100 |
Submission Time | 2024-04-03 18:18:57 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
add1.cpp: In function ‘int main()’:
add1.cpp:5:10: error: ‘cout’ is not a member of ‘std’
5 | std::cout << "Enter a number: ";
| ^~~~
add1.cpp:1:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | int main() {
add1.cpp:6:10: error: ‘cin’ is not a member of ‘std’
6 | std::cin >> num;
| ^~~
add1.cpp:6:10: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
add1.cpp:12:10: error: ‘cout’ is not a member of ‘std’
12 | std::cout << "Result: " << result << std::endl;
| ^~~~
add1.cpp:12:10: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
add1.cpp:12:47: error: ‘endl’ is not a member of ‘std’
12 | std::cout << "Result: " << re