/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int helper(std::vector<int>&)':
/in/foo.cc:24:5: error: 'stack' was not declared in this scope
     stack<int> stk;
     ^~~~~
/in/foo.cc:24:11: error: expected primary-expression before 'int'
     stack<int> stk;
           ^~~
/in/foo.cc:26:16: error: 'stk' was not declared in this scope
         while(!stk.empty() && row[stk.top()] >= row[i]) {
                ^~~
/in/foo.cc:29:13: error: 'stk' was not declared in this scope
         if(!stk.empty()) {
             ^~~
/in/foo.cc:32:9: error: 'stk' was not declared in this scope
         stk.push(i);
         ^~~
/in/foo.cc:34:5: error: 'stk' was not declared in this scope
     stk = stack<int>();
     ^~~
/in/foo.cc:34:17: error: expected primary-expression before 'int'
     stk = stack<int>();
                 ^~~

信息

递交者
类型
递交
题目
P1057 盖房子
语言
C++
递交时间
2024-10-04 12:14:04
评测时间
2024-10-04 12:14:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes