Problem addition
User thechillguy123456
Submission Time 2025-01-21 19:29:13
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>’?