/ Vijos /

记录详情

Compile Error

foo.cc:6:1: error: 'stack' does not name a type; did you mean 'obstack'?
 stack<string> stk;
 ^~~~~
 obstack
foo.cc: In function 'void solution(std::__cxx11::string)':
foo.cc:12:3: error: 'stk' was not declared in this scope
   stk.push(tmp);
   ^~~
foo.cc:24:9: error: 'stack' was not declared in this scope
         stack[top++] = tmp;
         ^~~~~
foo.cc:24:9: note: suggested alternative: 'obstack'
         stack[top++] = tmp;
         ^~~~~
         obstack
foo.cc:27:11: error: 'stk' was not declared in this scope
    while(!stk.empty())
           ^~~
foo.cc:31:12: error: 'stk' was not declared in this scope
    cout << stk.top() << endl;
            ^~~
foo.cc:34:11: error: 'branck' was not declared in this scope
     top = branck
           ^~~~~~
foo.cc:34:11: note: suggested alternative: 'branch'
     top = branck
           ^~~~~~
           branch
foo.cc:9:9: warning: unused variable 'branch' [-Wunused-variable]
     int branch = top;
         ^~~~~~
foo.cc: In function 'int main()':
foo.cc:38:12: error: 'aim' was not declared in this scope
     cin >> aim;
            ^~~
foo.cc:38:12: note: suggested alternative: 'main'
     cin >> aim;
            ^~~
            main
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1622 文件查找(HOI)
语言
C++
递交时间
2021-08-04 20:43:23
评测时间
2021-08-04 20:43:23
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes