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

Compile Error

cc1plus: error: ‘::main’ must return ‘int’
addition.cpp: In function ‘int main()’:
addition.cpp:7:2: error: ‘cin’ was not declared in this scope
7 | cin >> a;
| ^~~
addition.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 |
addition.cpp:10:2: error: ‘cout’ was not declared in this scope
10 | cout << a + b;
| ^~~~
addition.cpp:10:2: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?