Problem addition
User estkn
Submission Time 2025-02-21 15:00:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp: In function ‘int main()’:
addition.cpp:6:2: error: ‘cin’ was not declared in this scope
6 | cin >> a;
| ^~~
addition.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | //#include <bits/stdc++.h>
addition.cpp:9:2: error: ‘cout’ was not declared in this scope
9 | cout >> a+b;
| ^~~~
addition.cpp:9:2: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
addition.cpp:11:10: error: expected ‘;’ before ‘}’ token
11 | return 0
| ^
| ;
12 | }
| ~