Problem addition
User Anonymouse
Submission Time 2023-06-01 12:51:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp: In function ‘int main()’:
addition.cpp:3:7: error: ‘cin’ is not a member of ‘std’
3 | std::cin>>a>>b;
| ^~~
addition.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | int main(){
addition.cpp:4:7: error: ‘cout’ is not a member of ‘std’
4 | std::cout<<a+b;
| ^~~~
addition.cpp:4:7: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?