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_39328917_1768.cpp:2:7: error: 'N' was not declared in this scope
    2 | int f[N];
      |       ^
0_0_39328917_1768.cpp:3:8: error: 'PII' was not declared in this scope
    3 | vector<PII> g[N];
      |        ^~~
0_0_39328917_1768.cpp:3:8: error: 'PII' was not declared in this scope
0_0_39328917_1768.cpp:3:8: error: 'PII' was not declared in this scope
0_0_39328917_1768.cpp:3:8: error: 'PII' was not declared in this scope
0_0_39328917_1768.cpp:3:8: error: 'PII' was not declared in this scope
0_0_39328917_1768.cpp:3:8: error: 'PII' was not declared in this scope
0_0_39328917_1768.cpp:3:8: error: 'PII' was not declared in this scope
0_0_39328917_1768.cpp:3:8: error: 'PII' was not declared in this scope
0_0_39328917_1768.cpp:3:8: error: 'PII' was not declared in this scope
0_0_39328917_1768.cpp:3:1: error: 'vector' does not name a type
    3 | vector<PII> g[N];
      | ^~~~~~
0_0_39328917_1768.cpp: In function 'void dfs(int, int)':
0_0_39328917_1768.cpp:6:20: error: 'g' was not declared in this scope
    6 |     for (auto ed : g[u])
      |                    ^
0_0_39328917_1768.cpp:10:9: error: 'f' was not declared in this scope
   10 |         f[ed.xx] = f[u] ^ ed.yy;
      |         ^
0_0_39328917_1768.cpp: In function 'void solve()':
0_0_39328917_1768.cpp:28:5: error: 'cin' was not declared in this scope
   28 |     cin >> n;
      |     ^~~
0_0_39328917_1768.cpp:31:9: error: 'g' was not declared in this scope
   31 |         g[i].clear();
      |         ^
0_0_39328917_1768.cpp:32:9: error: 'f' was not declared in this scope
   32 |         f[i] = 0;
      |         ^
0_0_39328917_1768.cpp:34:16: error: 'inf' was not declared in this scope; did you mean 'int'?
   34 |     int root = inf;
      |                ^~~
      |                int
0_0_39328917_1768.cpp:39:9: error: 'g' was not declared in this scope
   39 |         g[a].pb({b, c});
      |         ^
0_0_39328917_1768.cpp:41:16: error: 'min' was not declared in this scope
   41 |         root = min({a, b, root});
      |                ^~~
0_0_39328917_1768.cpp:44:12: error: 'vector' was not declared in this scope
   44 |     vector<vector<int>> sum1(n + 2, vector<int>(32));
      |            ^~~~~~
0_0_39328917_1768.cpp:44:19: error: expected primary-expression before 'int'
   44 |     vector<vector<int>> sum1(n + 2, vector<int>(32));
      |                   ^~~
0_0_39328917_1768.cpp:45:19: error: expected primary-expression before 'int'
   45 |     vector<vector<int>> sum0(n + 2, vector<int>(32));
      |                   ^~~
0_0_39328917_1768.cpp:50:22: error: 'f' was not declared in this scope
   50 |             int x = (f[i] >> j & 1);
      |                      ^
0_0_39328917_1768.cpp:52:17: error: 'sum1' was not declared in this scope
   52 |                 sum1[i][j]++;
      |                 ^~~~
0_0_39328917_1768.cpp:54:17: error: 'sum0' was not declared in this scope
   54 |                 sum0[i][j]++;
      |                 ^~~~
0_0_39328917_1768.cpp:55:13: error: 'sum1' was not declared in this scope
   55 |             sum1[i][j] += sum1[i - 1][j];
      |             ^~~~
0_0_39328917_1768.cpp:56:13: error: 'sum0' was not declared in this scope
   56 |             sum0[i][j] += sum0[i - 1][j];
      |             ^~~~
0_0_39328917_1768.cpp:68:22: error: 'f' was not declared in this scope
   68 |             int t = (f[x] >> i & 1);
      |                      ^
0_0_39328917_1768.cpp:70:38: error: 'sum0' was not declared in this scope
   70 |                 ans += qpow(2, i) * (sum0[r][i] - sum0[l - 1][i]);
      |                                      ^~~~
0_0_39328917_1768.cpp:72:38: error: 'sum1' was not declared in this scope
   72 |                 ans += qpow(2, i) * (sum1[r][i] - sum1[l - 1][i]);
      |                                      ^~~~
0_0_39328917_1768.cpp:74:9: error: 'cout' was not declared in this scope
   74 |         cout << ans << endl;
      |         ^~~~
0_0_39328917_1768.cpp:74:24: error: 'endl' was not declared in this scope
   74 |         cout << ans << endl;
      |                        ^~~~
0_0_39328917_1768.cpp: In function 'int main()':
0_0_39328917_1768.cpp:79:5: error: 'Yshanqian' was not declared in this scope
   79 |     Yshanqian;
      |     ^~~~~~~~~
0_0_39328917_1768.cpp:82:5: error: 'cin' was not declared in this scope
   82 |     cin >> T;
      |     ^~~


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-11-22 22:30:48, Gzip enabled