foo.cc:1:6: error: 'Calculator' has not been declared
1 | void Calculator::Compute() {
| ^~~~~~~~~~
foo.cc: In function 'void Compute()':
foo.cc:4:13: error: 'GetTwoOperands' was not declared in this scope
4 | b = GetTwoOperands(left, right);
| ^~~~~~~~~~~~~~
foo.cc:6:17: error: 'cout' was not declared in this scope
6 | cout << "Error\n";
| ^~~~
foo.cc:7:17: error: 'Clear' was not declared in this scope
7 | Clear();
| ^~~~~
foo.cc:10:27: error: 'ch' was not declared in this scope
10 | char op = ch.Top();
| ^~
foo.cc:24:33: error: 'cout' was not declared in this scope
24 | cout << "Error\n";
| ^~~~
foo.cc:25:33: error: 'Clear' was not declared in this scope
25 | Clear();
| ^~~~~
foo.cc:31:17: error: 'num' was not declared in this scope; did you mean 'enum'?
31 | num.Push(left);
| ^~~
| enum
[Hydro](https://hydro.ac)提供评测服务