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_38712344_28152.cpp: In function 'long long int quick_power(long long int, long long int)':
0_0_38712344_28152.cpp:43:43: error: 'mod' was not declared in this scope; did you mean 'modf'?
   43 |         if (power & 1) ret = ret * base % mod;
      |                                           ^~~
      |                                           modf
0_0_38712344_28152.cpp:44:30: error: 'mod' was not declared in this scope; did you mean 'modf'?
   44 |         base = base * base % mod;
      |                              ^~~
      |                              modf
0_0_38712344_28152.cpp: At global scope:
0_0_38712344_28152.cpp:51:13: error: 'maxn' was not declared in this scope
   51 |     int sum[maxn * 4], maxx[maxn * 4];
      |             ^~~~
0_0_38712344_28152.cpp:51:29: error: 'maxn' was not declared in this scope
   51 |     int sum[maxn * 4], maxx[maxn * 4];
      |                             ^~~~
0_0_38712344_28152.cpp: In member function 'void SegTree::build(long long int, long long int, long long int)':
0_0_38712344_28152.cpp:55:13: error: 'sum' was not declared in this scope
   55 |             sum[o] = maxx[o] = w[rnk[l]];
      |             ^~~
0_0_38712344_28152.cpp:55:22: error: 'maxx' was not declared in this scope
   55 |             sum[o] = maxx[o] = w[rnk[l]];
      |                      ^~~~
0_0_38712344_28152.cpp:55:32: error: 'w' was not declared in this scope
   55 |             sum[o] = maxx[o] = w[rnk[l]];
      |                                ^
0_0_38712344_28152.cpp:55:34: error: 'rnk' was not declared in this scope; did you mean 'rnd'?
   55 |             sum[o] = maxx[o] = w[rnk[l]];
      |                                  ^~~
      |                                  rnd
0_0_38712344_28152.cpp:59:15: error: 'lc' was not declared in this scope; did you mean 'll'?
   59 |         build(lc, l, mid);
      |               ^~
      |               ll
0_0_38712344_28152.cpp:60:15: error: 'rc' was not declared in this scope; did you mean 'r'?
   60 |         build(rc, mid + 1, r);
      |               ^~
      |               r
0_0_38712344_28152.cpp:61:9: error: 'sum' was not declared in this scope
   61 |         sum[o] = sum[lc] + sum[rc];
      |         ^~~
0_0_38712344_28152.cpp:62:9: error: 'maxx' was not declared in this scope
   62 |         maxx[o] = std::max(maxx[lc], maxx[rc]);
      |         ^~~~
0_0_38712344_28152.cpp: In member function 'long long int SegTree::query1(long long int, long long int, long long int, long long int, long long int)':
0_0_38712344_28152.cpp:66:39: error: 'inf' was not declared in this scope; did you mean 'sinf'?
   66 |         if (l > qr || r < ql) return -inf;
      |                                       ^~~
      |                                       sinf
0_0_38712344_28152.cpp:67:40: error: 'maxx' was not declared in this scope
   67 |         if (ql <= l && r <= qr) return maxx[o];
      |                                        ^~~~
0_0_38712344_28152.cpp:69:32: error: 'lc' was not declared in this scope; did you mean 'll'?
   69 |         return std::max(query1(lc, l, mid, ql, qr), query1(rc, mid + 1, r, ql, qr));
      |                                ^~
      |                                ll
0_0_38712344_28152.cpp:69:60: error: 'rc' was not declared in this scope; did you mean 'r'?
   69 |         return std::max(query1(lc, l, mid, ql, qr), query1(rc, mid + 1, r, ql, qr));
      |                                                            ^~
      |                                                            r
0_0_38712344_28152.cpp: In member function 'long long int SegTree::query2(long long int, long long int, long long int, long long int, long long int)':
0_0_38712344_28152.cpp:74:40: error: 'sum' was not declared in this scope
   74 |         if (ql <= l && r <= qr) return sum[o];
      |                                        ^~~
0_0_38712344_28152.cpp:76:23: error: 'lc' was not declared in this scope; did you mean 'll'?
   76 |         return query2(lc, l, mid, ql, qr) + query2(rc, mid + 1, r, ql, qr);
      |                       ^~
      |                       ll
0_0_38712344_28152.cpp:76:52: error: 'rc' was not declared in this scope; did you mean 'r'?
   76 |         return query2(lc, l, mid, ql, qr) + query2(rc, mid + 1, r, ql, qr);
      |                                                    ^~
      |                                                    r
0_0_38712344_28152.cpp: In member function 'void SegTree::update(long long int, long long int, long long int, long long int, long long int)':
0_0_38712344_28152.cpp:81:13: error: 'maxx' was not declared in this scope
   81 |             maxx[o] = sum[o] = t;
      |             ^~~~
0_0_38712344_28152.cpp:81:23: error: 'sum' was not declared in this scope
   81 |             maxx[o] = sum[o] = t;
      |                       ^~~
0_0_38712344_28152.cpp:86:20: error: 'lc' was not declared in this scope; did you mean 'll'?
   86 |             update(lc, l, mid, x, t);  // ×óÓÒ·Ö±ð¸üÐÂ
      |                    ^~
      |                    ll
0_0_38712344_28152.cpp:88:20: error: 'rc' was not declared in this scope; did you mean 'r'?
   88 |             update(rc, mid + 1, r, x, t);
      |                    ^~
      |                    r
0_0_38712344_28152.cpp:89:9: error: 'sum' was not declared in this scope
   89 |         sum[o] = sum[lc] + sum[rc];
      |         ^~~
0_0_38712344_28152.cpp:89:22: error: 'lc' was not declared in this scope; did you mean 'll'?
   89 |         sum[o] = sum[lc] + sum[rc];
      |                      ^~
      |                      ll
0_0_38712344_28152.cpp:89:32: error: 'rc' was not declared in this scope; did you mean 'r'?
   89 |         sum[o] = sum[lc] + sum[rc];
      |                                ^~
      |                                r
0_0_38712344_28152.cpp:90:9: error: 'maxx' was not declared in this scope
   90 |         maxx[o] = std::max(maxx[lc], maxx[rc]);
      |         ^~~~
0_0_38712344_28152.cpp: In function 'void solve()':
0_0_38712344_28152.cpp:98:28: error: 'mod' was not declared in this scope; did you mean 'modf'?
   98 |     inv = quick_power(sum, mod - 2);
      |                            ^~~
      |                            modf


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 18:04:25, Gzip enabled