Problem addition
User anigoenk14
Submission Time 2023-11-08 09:51:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp:7:28: error: stray ‘\342’ in program
7 | int c = ((b + 10) / 5) – a;
| ^
addition.cpp:7:29: error: stray ‘\200’ in program
7 | int c = ((b + 10) / 5) – a;
| ^
addition.cpp:7:30: error: stray ‘\223’ in program
7 | int c = ((b + 10) / 5) – a;
| ^
addition.cpp: In function ‘int main()’:
addition.cpp:7:32: error: expected ‘,’ or ‘;’ before ‘a’
7 | int c = ((b + 10) / 5) – a;
| ^
addition.cpp:9:9: error: conflicting declaration ‘double a’
9 | double a = 3 / 2; // a = 1
| ^
addition.cpp:4:9: note: previous declaration as ‘int a’
4 | int a = 5;
| ^
addition.cpp:10:9: error: conflicting declaration ‘double b’
10 | double b = (double) 3 / 2; // b = 1.5
| ^
addition.cpp:6:9: note: previous de