Problem addition
User Maskaphobia
Submission Time 2024-01-31 15:33:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp: In function ‘int main()’:
addition.cpp:3:10: error: found ‘:’ in nested-name-specifier, expected ‘::’
3 | int a, b:
| ^
| ::
addition.cpp:3:9: error: ‘b’ has not been declared
3 | int a, b:
| ^
addition.cpp:4:11: error: qualified-id in declaration before ‘>>’ token
4 | std::cin >> a >> b;
| ^~
addition.cpp:5:16: error: ‘b’ was not declared in this scope
5 | int sum = a + b;
| ^
addition.cpp:7:10: error: expected ‘;’ before ‘}’ token
7 | return 0
| ^
| ;
8 | }
| ~