/ Vijos /

记录详情

Compile Error

/in/foo.cc:57:10: error: expected primary-expression before 'auto'
 decltype(auto) get_val_and_pop (stack<T>& s)
          ^~~~
/in/foo.cc:57:10: error: expected ')' before 'auto'
/in/foo.cc:57:1: error: expected unqualified-id before 'decltype'
 decltype(auto) get_val_and_pop (stack<T>& s)
 ^~~~~~~~
/in/foo.cc: In function 'int64_t calc(const string&, int64_t)':
/in/foo.cc:82:41: error: 'get_val_and_pop' was not declared in this scope
    for(string op;(op=get_val_and_pop(ops))!="(";)
                                         ^
/in/foo.cc:91:44: error: 'get_val_and_pop' was not declared in this scope
     vars.push(functions[get_val_and_pop(ops)](get_val_and_pop(vars),get_val_and_pop(vars)));
                                            ^
/in/foo.cc:99:42: error: 'get_val_and_pop' was not declared in this scope
   vars.push(functions[get_val_and_pop(ops)](get_val_and_pop(vars),get_val_and_pop(vars)));
                                          ^

信息

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