Problem addition
User Magenta
Submission Time 2026-06-22 21:23:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp: In function ‘int main()’:
addition.cpp:7:6: error: redeclaration of ‘long long int b’
7 | int b = 2;
| ^
addition.cpp:6:9: note: ‘long long int b’ previously declared here
6 | int a, b;
| ^
addition.cpp:8:15: error: expected ‘;’ before ‘cout’
8 | cin >> a >> b
| ^
| ;
9 | cout << a+b
| ~~~~