| Problem | addition |
|---|---|
| User | edricteokf |
| Submission Time | 2026-07-10 16:53:51 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
addition.cpp: In function ‘int main()’:
addition.cpp:3:10: 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:5:10: error: ‘cout’ is not a member of ‘std’
5 | std::cout << a + b << std::endl;
| ^~~~
addition.cpp:5:10: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
addition.cpp:5:32: error: ‘endl’ is not a member of ‘std’
5 | std::cout << a + b << std::endl;
| ^~~~
addition.cpp:1:1: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
+++ |+#include <ostream>
1 | int main() {