prog.cpp: In function ‘int main(int, char**)’:
prog.cpp:3:2: error: ‘MixedExpression’ was not declared in this scope
MixedExpression res;
^
prog.cpp:3:18: error: expected ‘;’ before ‘res’
MixedExpression res;
^
prog.cpp:4:18: error: expected ‘;’ before ‘op1’
MixedExpression op1;
^
prog.cpp:5:18: error: expected ‘;’ before ‘op2’
MixedExpression op2;
^
prog.cpp:8:2: error: ‘ifstream’ was not declared in this scope
ifstream in;
^
prog.cpp:8:11: error: expected ‘;’ before ‘in’
ifstream in;
^
prog.cpp:9:2: error: ‘ofstream’ was not declared in this scope
ofstream out;
^
prog.cpp:9:11: error: expected ‘;’ before ‘out’
ofstream out;
^
prog.cpp:13:3: error: ‘in’ was not declared in this scope
in.open(argv[1]);
^
prog.cpp:16:4: error: ‘out’ was not declared in this scope
out.open(argv[2]);
^
prog.cpp:19:5: error: ‘res’ was not declared in this scope
res.ReadMixedExp(in);
^
prog.cpp:22:22: error: ‘op1’ was not declared in this scope
case '+': res = op1.add(op2); // Get the sum.
^
prog.cpp:22:30: error: ‘op2’ was not declared in this scope
case '+': res = op1.add(op2); // Get the sum.
^
prog.cpp:37:3: error: ‘out’ was not declared in this scope
out.close();
^
prog.cpp:7:7: warning: unused variable ‘x’ [-Wunused-variable]
long x,y;
^
prog.cpp:7:9: warning: unused variable ‘y’ [-Wunused-variable]
long x,y;
^