记录详情

Compile Error

foo.cc:8:5: error: ISO C++ forbids declaration of 'yh' with no type [-fpermissive]
    8 |  yh()
      |     ^
foo.cc:13:5: error: expected class-name before '(' token
   13 |  ~yh(){}
      |     ^
foo.cc: In member function 'int RPN::yh()':
foo.cc:12:2: warning: no return statement in function returning non-void [-Wreturn-type]
   12 |  }
      |  ^
foo.cc: In function 'int main()':
foo.cc:83:2: error: 'yh' was not declared in this scope
   83 |  yh r;
      |  ^~
foo.cc:84:8: error: 'r' was not declared in this scope
   84 |  cout<<r.Val(data)<<endl;
      |        ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
DS2-2 后缀表达式的求值
语言
C++
递交时间
2022-01-02 23:01:29
评测时间
2022-01-02 23:01:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes