/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:3:10: error: 'std::ios' has not been declared
     std::ios::sync_with_stdio(false);
          ^~~
/in/foo.cc:4:5: error: 'cin' was not declared in this scope
     cin>>n>>k;
     ^~~
/in/foo.cc:4:10: error: 'n' was not declared in this scope
     cin>>n>>k;
          ^
/in/foo.cc:4:13: error: 'k' was not declared in this scope
     cin>>n>>k;
             ^
/in/foo.cc:5:5: error: 'stack_' was not declared in this scope
     stack_[0]=-1;
     ^~~~~~
/in/foo.cc:7:14: error: 'tmp' was not declared in this scope
         cin>>tmp;
              ^~~
/in/foo.cc:9:19: error: 'top' was not declared in this scope
             while(top>=1)
                   ^~~
/in/foo.cc:12:22: error: 'top' was not declared in this scope
             stack_[++top]=tmp;
                      ^~~
/in/foo.cc:15:27: error: 'top' was not declared in this scope
             if(tmp>stack_[top]) stack_[++top]=tmp;
                           ^~~
/in/foo.cc:17:56: error: 'lower_bound' was not declared in this scope
                 int j=lower_bound(stack_,stack_+top,tmp)-stack_;
                                                        ^
/in/foo.cc:21:5: error: 'cout' was not declared in this scope
     cout<<top<<endl;
     ^~~~
/in/foo.cc:21:11: error: 'top' was not declared in this scope
     cout<<top<<endl;
           ^~~
/in/foo.cc:21:16: error: 'endl' was not declared in this scope
     cout<<top<<endl;
                ^~~~

信息

递交者
类型
递交
题目
P1369 难解的问题
语言
C++
递交时间
2018-08-13 22:22:23
评测时间
2018-08-13 22:22:23
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes