Problem addition
User SideQuesting
Submission Time 2025-06-16 14:08:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp: In function ‘int main()’:
addition.cpp:4:9: error: ‘a’ was not declared in this scope
4 | cin >> a >> b;
| ^
addition.cpp:4:14: error: ‘b’ was not declared in this scope
4 | cin >> a >> b;
| ^
addition.cpp:7:11: error: expected initializer before ‘<’ token
7 | int sum <a+b>;
| ^
addition.cpp:8:11: error: expected primary-expression before ‘<’ token
8 | cout << <a+b>;
| ^
addition.cpp:8:16: error: expected primary-expression before ‘;’ token
8 | cout << <a+b>;
| ^