Problem addition
User lohjo02
Submission Time 2026-07-07 10:24:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp:4:9: error: ‘a’ was not declared in this scope
4 | int add(a, b){
| ^
addition.cpp:4:12: error: ‘b’ was not declared in this scope
4 | int add(a, b){
| ^
addition.cpp:4:13: error: expression list treated as compound expression in initializer [-fpermissive]
4 | int add(a, b){
| ^
addition.cpp: In function ‘int main()’:
addition.cpp:9:9: error: ‘a’ was not declared in this scope
9 | cin >> a >> b;
| ^
addition.cpp:9:14: error: ‘b’ was not declared in this scope
9 | cin >> a >> b;
| ^
addition.cpp:10:10: error: ‘solve’ was not declared in this scope
10 | cout << solve(a,b);
| ^~~~~