记录详情

Compile Error

/in/foo.cc:10:2: error: expected unqualified-id before '{' token
  {
  ^
/in/foo.cc:39:2: error: expected ';' after class definition
 }
  ^
  ;
/in/foo.cc: In member function 'T SeqStack<T, MaxSize>::Pop()':
/in/foo.cc:25:3: error: 'x' was not declared in this scope
   x=data[top];
   ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:53:20: error: 'int SeqStack<char, 100>::top' is private within this context
    int pre_op=OPTR.top();
                    ^~~
/in/foo.cc:7:6: note: declared private here
  int top;
      ^~~
/in/foo.cc:53:24: error: expression cannot be used as a function
    int pre_op=OPTR.top();
                        ^
/in/foo.cc:54:11: error: 'Precede' was not declared in this scope
    switch(Precede())
           ^~~~~~~
/in/foo.cc:53:8: warning: unused variable 'pre_op' [-Wunused-variable]
    int pre_op=OPTR.top();
        ^~~~~~

信息

递交者
类型
递交
题目
2-5 二进制表达式求值
比赛
南师大2018年蓝桥杯热身赛
语言
C++
递交时间
2018-12-12 16:28:03
评测时间
2018-12-12 16:28:03
评测机
分数
0
总耗时
241ms
峰值内存
29.562 MiB