/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'void lev(char)':
/in/foo.cc:15:20: error: return-statement with a value, in function returning 'void' [-fpermissive]
  case '+' : return 1;break;
                    ^
/in/foo.cc:16:20: error: return-statement with a value, in function returning 'void' [-fpermissive]
  case '-' : return 1;break;
                    ^
/in/foo.cc:17:20: error: return-statement with a value, in function returning 'void' [-fpermissive]
  case '*' : return 2;break;
                    ^
/in/foo.cc:18:20: error: return-statement with a value, in function returning 'void' [-fpermissive]
  case '^' : return 3;break;
                    ^
/in/foo.cc:19:20: error: return-statement with a value, in function returning 'void' [-fpermissive]
  case '(' : return 0;break;
                    ^
/in/foo.cc: In function 'void work()':
/in/foo.cc:72:40: error: invalid operands of types 'void' and 'void' to binary 'operator<'
   else if(topsym==0 || lev(sym[topsym])<lev(a[p]))
                        ~~~~~~~~~~~~~~~~^~~~~~~~~~
/in/foo.cc:75:36: error: invalid operands of types 'void' and 'void' to binary 'operator>='
    while(topsym>0&&lev(sym[topsym])>=lev(a[p]))
                    ~~~~~~~~~~~~~~~~^~~~~~~~~~~

信息

递交者
类型
递交
题目
P1003 等价表达式
语言
C++
递交时间
2018-07-24 21:21:08
评测时间
2018-07-24 21:21:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes