Problem addition
User PrunJuice
Submission Time 2023-10-22 10:48:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp:5:1: error: expected initializer before ‘int’
5 | int a,b;
| ^~~
addition.cpp:6:1: error: ‘cin’ does not name a type
6 | cin >> a >> b;
| ^~~
addition.cpp:7:11: error: ‘a’ was not declared in this scope
7 | int sum = a + b;
| ^
addition.cpp:7:15: error: ‘b’ was not declared in this scope
7 | int sum = a + b;
| ^
addition.cpp:8:1: error: ‘cout’ does not name a type
8 | cout << sum
| ^~~~