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_37929053_23440.cpp:5:7: error: 'uint' does not name a type
 const uint maxn = 1e5 + 2;
       ^
0_0_37929053_23440.cpp:6:1: error: 'uint' does not name a type
 uint n, m, trie[maxn * 32][2], tot;
 ^
0_0_37929053_23440.cpp: In function 'void insert()':
0_0_37929053_23440.cpp:9:3: error: 'uint' was not declared in this scope
   uint u = 0, s;
   ^
0_0_37929053_23440.cpp:10:10: error: 's' was not declared in this scope
   cin >> s;
          ^
0_0_37929053_23440.cpp:11:13: error: expected ';' before 'i'
   for (uint i = 31; i < 32; --i) {
             ^
0_0_37929053_23440.cpp:11:21: error: 'i' was not declared in this scope
   for (uint i = 31; i < 32; --i) {
                     ^
0_0_37929053_23440.cpp:12:10: error: expected ';' before 'idx'
     uint idx = (s >> i & 1);
          ^
0_0_37929053_23440.cpp:13:10: error: 'trie' was not declared in this scope
     if (!trie[u][idx]) trie[u][idx] = ++tot;
          ^
0_0_37929053_23440.cpp:13:15: error: 'u' was not declared in this scope
     if (!trie[u][idx]) trie[u][idx] = ++tot;
               ^
0_0_37929053_23440.cpp:13:18: error: 'idx' was not declared in this scope
     if (!trie[u][idx]) trie[u][idx] = ++tot;
                  ^
0_0_37929053_23440.cpp:13:41: error: 'tot' was not declared in this scope
     if (!trie[u][idx]) trie[u][idx] = ++tot;
                                         ^
0_0_37929053_23440.cpp:14:5: error: 'u' was not declared in this scope
     u = trie[u][idx];
     ^
0_0_37929053_23440.cpp:14:9: error: 'trie' was not declared in this scope
     u = trie[u][idx];
         ^
0_0_37929053_23440.cpp:14:17: error: 'idx' was not declared in this scope
     u = trie[u][idx];
                 ^
0_0_37929053_23440.cpp: In function 'void query()':
0_0_37929053_23440.cpp:19:3: error: 'uint' was not declared in this scope
   uint u = 0, k = 0, s;
   ^
0_0_37929053_23440.cpp:20:10: error: 's' was not declared in this scope
   cin >> s;
          ^
0_0_37929053_23440.cpp:21:13: error: expected ';' before 'i'
   for (uint i = 31; i < 32; --i) {
             ^
0_0_37929053_23440.cpp:21:21: error: 'i' was not declared in this scope
   for (uint i = 31; i < 32; --i) {
                     ^
0_0_37929053_23440.cpp:22:10: error: expected ';' before 'x'
     uint x = (s >> i & 1);
          ^
0_0_37929053_23440.cpp:23:9: error: 'trie' was not declared in this scope
     if (trie[u][x ^ 1]) u = trie[u][x ^ 1], k |= ((x ^ 1) << i);
         ^
0_0_37929053_23440.cpp:23:14: error: 'u' was not declared in this scope
     if (trie[u][x ^ 1]) u = trie[u][x ^ 1], k |= ((x ^ 1) << i);
              ^
0_0_37929053_23440.cpp:23:17: error: 'x' was not declared in this scope
     if (trie[u][x ^ 1]) u = trie[u][x ^ 1], k |= ((x ^ 1) << i);
                 ^
0_0_37929053_23440.cpp:23:45: error: 'k' was not declared in this scope
     if (trie[u][x ^ 1]) u = trie[u][x ^ 1], k |= ((x ^ 1) << i);
                                             ^
0_0_37929053_23440.cpp:24:26: error: 'k' was not declared in this scope
     else u = trie[u][x], k |= (x << i);
                          ^
0_0_37929053_23440.cpp:26:11: error: 'k' was not declared in this scope
   cout << k << "\n";
           ^
0_0_37929053_23440.cpp: In function 'void clear()':
0_0_37929053_23440.cpp:30:8: error: 'uint' was not declared in this scope
   for (uint i = 0; i <= tot; ++i) {
        ^
0_0_37929053_23440.cpp:30:20: error: 'i' was not declared in this scope
   for (uint i = 0; i <= tot; ++i) {
                    ^
0_0_37929053_23440.cpp:30:25: error: 'tot' was not declared in this scope
   for (uint i = 0; i <= tot; ++i) {
                         ^
0_0_37929053_23440.cpp:31:5: error: 'trie' was not declared in this scope
     trie[i][0] = trie[i][1] = 0;
     ^
0_0_37929053_23440.cpp:33:3: error: 'tot' was not declared in this scope
   tot = 0;
   ^
0_0_37929053_23440.cpp: In function 'int main()':
0_0_37929053_23440.cpp:38:3: error: 'uint' was not declared in this scope
   uint t;
   ^
0_0_37929053_23440.cpp:39:10: error: 't' was not declared in this scope
   cin >> t;
          ^
0_0_37929053_23440.cpp:40:13: error: expected ';' before 'kase'
   for (uint kase = 1; kase <= t; ++kase) {
             ^
0_0_37929053_23440.cpp:40:23: error: 'kase' was not declared in this scope
   for (uint kase = 1; kase <= t; ++kase) {
                       ^
0_0_37929053_23440.cpp:42:12: error: 'n' was not declared in this scope
     cin >> n >> m;
            ^
0_0_37929053_23440.cpp:42:17: error: 'm' was not declared in this scope
     cin >> n >> m;
                 ^


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-10-06 20:17:05, Gzip enabled