Problem addition
User taylorpoh1
Submission Time 2024-06-03 23:36:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp:1:20: error: expected ‘;’ before ‘int’
1 | using namespace std
| ^
| ;
2 | int main()
| ~~~
addition.cpp: In function ‘int main()’:
addition.cpp:6:2: error: ‘cout’ was not declared in this scope
6 | cout << "a: " << endl;
| ^~~~
addition.cpp:1:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std
addition.cpp:6:19: error: ‘endl’ was not declared in this scope
6 | cout << "a: " << endl;
| ^~~~
addition.cpp:1:1: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
+++ |+#include <ostream>
1 | using namespace std
addition.cpp:7:2: error: ‘cin’ was not declared in this scope
7 | cin >>