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