Problem addition
User LXY
Submission Time 2026-02-14 09:44:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp: In function ‘int main()’:
addition.cpp:8:6: error: ‘c’ was not declared in this scope
8 | if (c==+){
| ^
addition.cpp:8:10: error: expected primary-expression before ‘)’ token
8 | if (c==+){
| ^
addition.cpp:9:30: error: expected ‘}’ at end of input
9 | cout<<"the sum is "<<a+b;
| ^
addition.cpp:8:11: note: to match this ‘{’
8 | if (c==+){
| ^
addition.cpp:9:30: error: expected ‘}’ at end of input
9 | cout<<"the sum is "<<a+b;
| ^
addition.cpp:4:11: note: to match this ‘{’
4 | int main(){
| ^