/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:2: error: 'stack' was not declared in this scope
  stack<int>a;
  ^~~~~
/in/foo.cc:7:8: error: expected primary-expression before 'int'
  stack<int>a;
        ^~~
/in/foo.cc:8:8: error: expected primary-expression before 'char'
  stack<char>b;
        ^~~~
/in/foo.cc:9:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<m.size();i++)
              ~^~~~~~~~~
/in/foo.cc:13:4: error: 'a' was not declared in this scope
    a.push(m[i]-'0');
    ^
/in/foo.cc:17:7: error: 'a' was not declared in this scope
    if(a.size()<2)
       ^
/in/foo.cc:22:10: error: 'a' was not declared in this scope
    int x=a.top();
          ^
/in/foo.cc:41:8: error: 'a' was not declared in this scope
  cout<<a.top();
        ^

信息

递交者
类型
自测
题目
P2019 表达式求值2
语言
C++
递交时间
2019-10-26 14:28:40
评测时间
2019-10-26 14:28:40
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes