Problem addition
User Lightningstar22
Submission Time 2023-02-09 17:12:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp: In function ‘int main()’:
addition.cpp:5:10: error: found ‘:’ in nested-name-specifier, expected ‘::’
5 | int a,b:
| ^
| ::
addition.cpp:5:9: error: ‘b’ has not been declared
5 | int a,b:
| ^
addition.cpp:6:6: error: qualified-id in declaration before ‘>>’ token
6 | cin >> a >> b;
| ^~
addition.cpp:7:14: error: ‘b’ was not declared in this scope
7 | cout << a + b;
| ^