Problem | addition |
---|---|
User | nandini37 |
Submission Time | 2024-06-24 14:33:20 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
addition.cpp: In function ‘int main()’:
addition.cpp:4:9: error: ‘cin’ was not declared in this scope
4 | int a; cin>>a;
| ^~~
addition.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
addition.cpp:6:15: error: ‘cout’ was not declared in this scope
6 | int c = a+b; cout>>c;
| ^~~~
addition.cpp:6:15: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?