记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
自测
题目
3-5 计算器
语言
C++
递交时间
2023-08-15 16:52:20
评测时间
2023-08-15 16:52:20
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes