prog.cpp:15:20: error: ‘y’ has not been declared
int reasult(int op,y,x)
^
prog.cpp:15:22: error: ‘x’ has not been declared
int reasult(int op,y,x)
^
prog.cpp: In function ‘int reasult(int, int, int)’:
prog.cpp:18:8: error: ‘x’ was not declared in this scope
return x+y;
^
prog.cpp:18:10: error: ‘y’ was not declared in this scope
return x+y;
^
prog.cpp:19:8: error: ‘ie’ was not declared in this scope
ie(op=2)
^
prog.cpp:22:8: error: ‘x’ was not declared in this scope
return x*y;
^
prog.cpp:22:10: error: ‘y’ was not declared in this scope
return x*y;
^
prog.cpp:24:8: error: ‘x’ was not declared in this scope
return x/y;
^
prog.cpp:24:10: error: ‘y’ was not declared in this scope
return x/y;
^
prog.cpp: At global scope:
prog.cpp:27:1: error: ‘Void’ does not name a type
Void Printreasult(int reasult)
^~~~
prog.cpp: In function ‘int main()’:
prog.cpp:34:5: error: expected unqualified-id before numeric constant
int 2=value1();
^
prog.cpp:35:1: error: ‘op’ was not declared in this scope
op=oparetion();
^~
prog.cpp:36:5: error: expected unqualified-id before numeric constant
int 6=value1();
^
prog.cpp:37:15: error: ‘reasult1’ was not declared in this scope
reasult1(5,2,4);
^
prog.cpp:39:1: error: expected initializer before ‘return’
return 0;
^~~~~~