Problem | addition3 |
---|---|
User | KaiYuan |
Submission Time | 2024-07-06 11:15:43 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
addition3.cpp: In function ‘int main()’:
addition3.cpp:1:21: error: ‘cin’ is not a member of ‘std’
1 | main(){int a,b;std::cin>>a>>b;std::cout<<a+b;}
| ^~~
addition3.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | main(){int a,b;std::cin>>a>>b;std::cout<<a+b;}
addition3.cpp:1:36: error: ‘cout’ is not a member of ‘std’
1 | main(){int a,b;std::cin>>a>>b;std::cout<<a+b;}
| ^~~~
addition3.cpp:1:36: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?