F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_38328882_17401.cpp:1:10: error: 'mt19937' in namespace 'std' does not name a type
     std::mt19937 rnd(233);
          ^
0_0_38328882_17401.cpp:13:14: error: 'vector' in namespace 'std' does not name a template type
         std::vector<Node> tr;
              ^
0_0_38328882_17401.cpp: In constructor 'treap::treap(int)':
0_0_38328882_17401.cpp:16:30: error: class 'treap' does not have any field named 'tr'
         treap(int n) : n(n), tr(n) {
                              ^
0_0_38328882_17401.cpp: In member function 'int treap::newnode(int)':
0_0_38328882_17401.cpp:21:13: error: 'tr' was not declared in this scope
             tr[ ++ idx].key = rnd();
             ^
0_0_38328882_17401.cpp:21:35: error: 'rnd' was not declared in this scope
             tr[ ++ idx].key = rnd();
                                   ^
0_0_38328882_17401.cpp: In member function 'void treap::pull(int)':
0_0_38328882_17401.cpp:28:13: error: 'tr' was not declared in this scope
             tr[u].siz = tr[tr[u].son[0]].siz + tr[tr[u].son[1]].siz + 1;
             ^
0_0_38328882_17401.cpp: In member function 'void treap::push(int)':
0_0_38328882_17401.cpp:32:13: error: 'swap' is not a member of 'std'
             std::swap(tr[u].son[0], tr[u].son[1]);
             ^
0_0_38328882_17401.cpp:32:23: error: 'tr' was not declared in this scope
             std::swap(tr[u].son[0], tr[u].son[1]);
                       ^
0_0_38328882_17401.cpp: In member function 'void treap::split(int, int, int&, int&)':
0_0_38328882_17401.cpp:41:17: error: 'tr' was not declared in this scope
             if (tr[u].tag) push(u);
                 ^
0_0_38328882_17401.cpp:42:17: error: 'tr' was not declared in this scope
             if (tr[tr[u].son[0]].siz < cnt) {
                 ^
0_0_38328882_17401.cpp: In member function 'int treap::merge(int, int)':
0_0_38328882_17401.cpp:54:17: error: 'tr' was not declared in this scope
             if (tr[u].key < tr[v].key) {
                 ^
0_0_38328882_17401.cpp: In member function 'void treap::reverse(int, int)':
0_0_38328882_17401.cpp:72:13: error: 'tr' was not declared in this scope
             tr[y].tag ^= 1;
             ^
0_0_38328882_17401.cpp: In member function 'void treap::ldr(int)':
0_0_38328882_17401.cpp:78:17: error: 'tr' was not declared in this scope
             if (tr[u].tag) push(u);
                 ^
0_0_38328882_17401.cpp:80:17: error: 'tr' was not declared in this scope
             ldr(tr[u].son[0]);
                 ^
0_0_38328882_17401.cpp:81:13: error: 'cout' is not a member of 'std'
             std::cout << tr[u].val;
             ^
0_0_38328882_17401.cpp:82:31: error: 'cout' is not a member of 'std'
             if (num != n - 1) std::cout << " ";
                               ^
0_0_38328882_17401.cpp: In function 'int main()':
0_0_38328882_17401.cpp:88:6: error: 'cin' is not a member of 'std'
      std::cin.tie(nullptr)->sync_with_stdio(false);
      ^
0_0_38328882_17401.cpp:91:12: error: 'cin' is not a member of 'std'
      while(std::cin >> n >> m, ~n && ~m) {
            ^
0_0_38328882_17401.cpp:98:8: error: 'string' is not a member of 'std'
        std::string s;
        ^
0_0_38328882_17401.cpp:99:8: error: 'cin' is not a member of 'std'
        std::cin >> s;
        ^
0_0_38328882_17401.cpp:99:20: error: 's' was not declared in this scope
        std::cin >> s;
                    ^
0_0_38328882_17401.cpp:102:9: error: 'cin' is not a member of 'std'
         std::cin >> a >> b >> c;
         ^
0_0_38328882_17401.cpp:111:9: error: 'cin' is not a member of 'std'
         std::cin >> a >> b;
         ^
0_0_38328882_17401.cpp:116:7: error: 'cout' is not a member of 'std'
       std::cout << "\n";
       ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-07-02 13:47:28, Gzip enabled