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_39588274_335.cpp:85:10: error: 'N' was not declared in this scope
   85 | ll a[4 * N], b[4 * N], n;
      |          ^
0_0_39588274_335.cpp:85:20: error: 'N' was not declared in this scope
   85 | ll a[4 * N], b[4 * N], n;
      |                    ^
0_0_39588274_335.cpp: In function 'void push_up(long long int)':
0_0_39588274_335.cpp:87:9: error: 'a' was not declared in this scope
   87 |         a[p] = max(a[ls(p)], a[rs(p)]);
      |         ^
0_0_39588274_335.cpp:88:9: error: 'b' was not declared in this scope
   88 |         b[p] = min(b[ls(p)], b[rs(p)]);
      |         ^
0_0_39588274_335.cpp: In function 'void update(long long int, ll, long long int, long long int, long long int)':
0_0_39588274_335.cpp:92:17: error: 'a' was not declared in this scope
   92 |                 a[p] = b[p] = c;
      |                 ^
0_0_39588274_335.cpp:92:24: error: 'b' was not declared in this scope
   92 |                 a[p] = b[p] = c;
      |                        ^
0_0_39588274_335.cpp: In function 'll query_max(long long int, long long int, long long int, long long int, long long int)':
0_0_39588274_335.cpp:102:24: error: 'a' was not declared in this scope
  102 |                 return a[p];
      |                        ^
0_0_39588274_335.cpp: In function 'll query_min(long long int, long long int, long long int, long long int, long long int)':
0_0_39588274_335.cpp:111:24: error: 'b' was not declared in this scope
  111 |                 return b[p];
      |                        ^
0_0_39588274_335.cpp: In function 'll road_tree_query_max(ll, ll)':
0_0_39588274_335.cpp:120:16: error: 'top' was not declared in this scope
  120 |         while (top[u] != top[v]) {
      |                ^~~
0_0_39588274_335.cpp:121:21: error: 'dep' was not declared in this scope; did you mean 'ldexp'?
  121 |                 if (dep[top[u]] < dep[top[v]]) swap(u, v);
      |                     ^~~
      |                     ldexp
0_0_39588274_335.cpp:122:42: error: 'dfn' was not declared in this scope
  122 |                 ans = max(ans, query_max(dfn[top[u]], dfn[u], 1, n, 1));
      |                                          ^~~
0_0_39588274_335.cpp:123:21: error: 'fa' was not declared in this scope; did you mean 'fma'?
  123 |                 u = fa[top[u]];
      |                     ^~
      |                     fma
0_0_39588274_335.cpp:125:13: error: 'dep' was not declared in this scope; did you mean 'ldexp'?
  125 |         if (dep[u] < dep[v]) swap(u, v);
      |             ^~~
      |             ldexp
0_0_39588274_335.cpp:126:34: error: 'dfn' was not declared in this scope
  126 |         ans = max(ans, query_max(dfn[v], dfn[u], 1, n, 1));
      |                                  ^~~
0_0_39588274_335.cpp: In function 'll road_tree_query_min(ll, ll)':
0_0_39588274_335.cpp:131:16: error: 'top' was not declared in this scope
  131 |         while (top[u] != top[v]) {
      |                ^~~
0_0_39588274_335.cpp:132:21: error: 'dep' was not declared in this scope; did you mean 'ldexp'?
  132 |                 if (dep[top[u]] < dep[top[v]]) swap(u, v);
      |                     ^~~
      |                     ldexp
0_0_39588274_335.cpp:133:42: error: 'dfn' was not declared in this scope
  133 |                 ans = min(ans, query_min(dfn[top[u]], dfn[u], 1, n, 1));
      |                                          ^~~
0_0_39588274_335.cpp:134:21: error: 'fa' was not declared in this scope; did you mean 'fma'?
  134 |                 u = fa[top[u]];
      |                     ^~
      |                     fma
0_0_39588274_335.cpp:136:13: error: 'dep' was not declared in this scope; did you mean 'ldexp'?
  136 |         if (dep[u] < dep[v]) swap(u, v);
      |             ^~~
      |             ldexp
0_0_39588274_335.cpp:137:34: error: 'dfn' was not declared in this scope
  137 |         ans = min(ans, query_min(dfn[v], dfn[u], 1, n, 1));
      |                                  ^~~


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-13 09:15:03, Gzip enabled