Problem addition
User canpeti
Submission Time 2024-06-18 10:37:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp: In function ‘int main()’:
addition.cpp:8:1: error: ‘cin’ was not declared in this scope
8 | cin >> x;
| ^~~
addition.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 |
addition.cpp:10:5: error: ‘cout’ was not declared in this scope
10 | cout << x + y;
| ^~~~
addition.cpp:10:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?