Problem addition
User Presidentfaheem
Submission Time 2025-06-16 14:08:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp: In function ‘int main()’:
addition.cpp:9:5: error: ‘cin’ was not declared in this scope
9 | cin >> a >> b;
| ^~~
addition.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 |
addition.cpp:12:5: error: ‘cout’ was not declared in this scope
12 | cout << a + b << endl;
| ^~~~
addition.cpp:12:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
addition.cpp:12:22: error: ‘endl’ was not declared in this scope
12 | cout << a + b << endl;
| ^~~~
addition.cpp:1:1: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
+++ |+#include <ostream>
1 |