Problem addition
User Yannwen09
Submission Time 2023-11-08 09:53:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp: In function ‘int main()’:
addition.cpp:9:6: error: redeclaration of ‘int a’
9 | int a = 4;
| ^
addition.cpp:5:9: note: ‘int a’ previously declared here
5 | int a = 4;
| ^
addition.cpp:10:9: error: redeclaration of ‘int b’
10 | int b = 5;
| ^
addition.cpp:6:9: note: ‘int b’ previously declared here
6 | int b = 5;
| ^
addition.cpp:11:9: error: redeclaration of ‘int c’
11 | int c = (a + b);
| ^
addition.cpp:7:9: note: ‘int c’ previously declared here
7 | int c = (a + b);
| ^
addition.cpp:13:6: error: redeclaration of ‘int a’
13 | int a = 4;
| ^
addition.cpp:5:9: note: ‘int a’ previously declared here
5 | int a = 4;
| ^
addition.cpp:14:9: error: redeclaration of ‘int b’
14 | int b = 5;
| ^
addition.cpp:6:9: note: ‘