prog.cpp: In function ‘int input()’:
prog.cpp:22:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
prog.cpp: In function ‘int add()’:
prog.cpp:27:26: error: ‘x’ was not declared in this scope
cout << "X + Y =" << x + y << endl;
^
prog.cpp:27:30: error: ‘y’ was not declared in this scope
cout << "X + Y =" << x + y << endl;
^
prog.cpp:28:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
prog.cpp: At global scope:
prog.cpp:30:12: error: ‘::main’ must return ‘int’
void main ()
^