Problem addition
User Aniedg
Submission Time 2024-02-03 20:51:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp: In function ‘int main()’:
addition.cpp:4:3: error: ‘cout’ was not declared in this scope
4 | cout << a+b;
| ^~~~
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:4:11: error: ‘a’ was not declared in this scope
4 | cout << a+b;
| ^
addition.cpp:4:13: error: ‘b’ was not declared in this scope
4 | cout << a+b;
| ^