Problem addition
User Xavier
Submission Time 2025-06-16 14:10:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp:2:11: error: stray ‘#’ in program
2 | int a, b; #shows that these are the inputs
| ^
addition.cpp:2:12: error: ‘shows’ does not name a type
2 | int a, b; #shows that these are the inputs
| ^~~~~
addition.cpp:4:1: error: ‘cout’ does not name a type
4 | cout << a + b;
| ^~~~
addition.cpp:6:5: error: redefinition of ‘int a’
6 | int a = 10;
| ^
addition.cpp:2:5: note: ‘int a’ previously declared here
2 | int a, b; #shows that these are the inputs
| ^
addition.cpp:7:5: error: redefinition of ‘int b’
7 | int b = 12;
| ^
addition.cpp:2:8: note: ‘int b’ previously declared here
2 | int a, b; #shows that these are the inputs
| ^
addition.cpp:10:1: error: ‘cout’ does not name a type
10 | cout << "Sum:" << sum;
| ^~~~
addition.cpp:12:1: error: expected unqualified-id before ‘ret