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_29588951_24776.cpp:12:1: error: 'intlen' does not name a type
 intlen[N<<3];
 ^
0_0_29588951_24776.cpp:13:1: error: 'intadd' does not name a type
 intadd[N<<3], mul[N<<3], tag[N<<3];
 ^
0_0_29588951_24776.cpp:14:1: error: 'intval' does not name a type
 intval[N<<3], sqr[N<<3], cub[N<<3];
 ^
0_0_29588951_24776.cpp: In function 'void SegT::pushup(int)':
0_0_29588951_24776.cpp:17:2: error: 'val' was not declared in this scope
  val[root] = (val[lson] + val[rson]) % P;
  ^
0_0_29588951_24776.cpp:18:2: error: 'sqr' was not declared in this scope
  sqr[root] = (sqr[lson] + sqr[rson]) % P;
  ^
0_0_29588951_24776.cpp:19:2: error: 'cub' was not declared in this scope
  cub[root] = (cub[lson] + cub[rson]) % P;
  ^
0_0_29588951_24776.cpp: In function 'void SegT::pushdown(int)':
0_0_29588951_24776.cpp:23:6: error: 'tag' was not declared in this scope
  if (tag[root] != 0) {
      ^
0_0_29588951_24776.cpp:24:3: error: 'val' was not declared in this scope
   val[lson] = len[lson] * tag[root] % P;
   ^
0_0_29588951_24776.cpp:24:15: error: 'len' was not declared in this scope
   val[lson] = len[lson] * tag[root] % P;
               ^
0_0_29588951_24776.cpp:25:3: error: 'sqr' was not declared in this scope
   sqr[lson] = val[lson] * tag[root] % P;
   ^
0_0_29588951_24776.cpp:26:3: error: 'cub' was not declared in this scope
   cub[lson] = sqr[lson] * tag[root] % P;
   ^
0_0_29588951_24776.cpp:28:3: error: 'mul' was not declared in this scope
   mul[lson] = 1;
   ^
0_0_29588951_24776.cpp:29:3: error: 'add' was not declared in this scope
   add[lson] = 0;
   ^
0_0_29588951_24776.cpp:38:6: error: 'mul' was not declared in this scope
  if (mul[root] != 1) {
      ^
0_0_29588951_24776.cpp:39:35: error: 'add' was not declared in this scope
   (mul[lson] *= mul[root]) %= P, (add[lson] *= mul[root]) %= P;
                                   ^
0_0_29588951_24776.cpp:40:4: error: 'val' was not declared in this scope
   (val[lson] *= mul[root]) %= P;
    ^
0_0_29588951_24776.cpp:41:4: error: 'sqr' was not declared in this scope
   (sqr[lson] *= (mul[root] * mul[root] % P)) %= P;
    ^
0_0_29588951_24776.cpp:42:4: error: 'cub' was not declared in this scope
   (cub[lson] *= (mul[root] * mul[root] % P * mul[root] % P)) %= P;
    ^
0_0_29588951_24776.cpp:49:6: error: 'add' was not declared in this scope
  if (add[root] != 0) {
      ^
0_0_29588951_24776.cpp:51:3: error: 'cub' was not declared in this scope
   cub[lson] = (cub[lson] + 3 * add[root] * sqr[lson] % P +
   ^
0_0_29588951_24776.cpp:51:44: error: 'sqr' was not declared in this scope
   cub[lson] = (cub[lson] + 3 * add[root] * sqr[lson] % P +
                                            ^
0_0_29588951_24776.cpp:52:36: error: 'val' was not declared in this scope
    3 * add[root] * add[root] % P * val[lson] % P +
                                    ^
0_0_29588951_24776.cpp:53:4: error: 'len' was not declared in this scope
    len[lson] * add[root] % P * add[root] % P * add[root] % P) % P;
    ^
0_0_29588951_24776.cpp: In function 'void SegT::build(int, int, int)':
0_0_29588951_24776.cpp:69:2: error: 'len' was not declared in this scope
  len[root] = r - l + 1;
  ^
0_0_29588951_24776.cpp:70:2: error: 'add' was not declared in this scope
  add[root] = 0;
  ^
0_0_29588951_24776.cpp:71:2: error: 'mul' was not declared in this scope
  mul[root] = 1;
  ^
0_0_29588951_24776.cpp:72:2: error: 'tag' was not declared in this scope
  tag[root] = 0; //1 <= c <= 10000.
  ^
0_0_29588951_24776.cpp:73:2: error: 'val' was not declared in this scope
  val[root] = 0;
  ^
0_0_29588951_24776.cpp:74:2: error: 'sqr' was not declared in this scope
  sqr[root] = 0;
  ^
0_0_29588951_24776.cpp:75:2: error: 'cub' was not declared in this scope
  cub[root] = 0;
  ^
0_0_29588951_24776.cpp: In function 'void SegT::Tag(int, int, int, int, int, int)':
0_0_29588951_24776.cpp:85:3: error: 'tag' was not declared in this scope
   tag[root] = v;
   ^
0_0_29588951_24776.cpp:86:3: error: 'add' was not declared in this scope
   add[root] = 0;
   ^
0_0_29588951_24776.cpp:87:3: error: 'mul' was not declared in this scope
   mul[root] = 1;
   ^
0_0_29588951_24776.cpp:88:3: error: 'val' was not declared in this scope
   val[root] = v * len[root] % P;
   ^
0_0_29588951_24776.cpp:88:19: error: 'len' was not declared in this scope
   val[root] = v * len[root] % P;
                   ^
0_0_29588951_24776.cpp:89:3: error: 'sqr' was not declared in this scope
   sqr[root] = v * val[root] % P;
   ^
0_0_29588951_24776.cpp:90:3: error: 'cub' was not declared in this scope
   cub[root] = v * sqr[root] % P;
   ^
0_0_29588951_24776.cpp: In function 'void SegT::Add(int, int, int, int, int, int)':
0_0_29588951_24776.cpp:108:4: error: 'add' was not declared in this scope
   (add[root] += v) %= P;
    ^
0_0_29588951_24776.cpp:109:3: error: 'cub' was not declared in this scope
   cub[root] = (cub[root] + 3 * sqr[root] * v % P +
   ^
0_0_29588951_24776.cpp:109:32: error: 'sqr' was not declared in this scope
   cub[root] = (cub[root] + 3 * sqr[root] * v % P +
                                ^
0_0_29588951_24776.cpp:110:8: error: 'val' was not declared in this scope
    3 * val[root] * v % P * v % P +
        ^
0_0_29588951_24776.cpp:111:4: error: 'len' was not declared in this scope
    len[root] * v % P * v % P * v % P) % P;
    ^
0_0_29588951_24776.cpp: In function 'void SegT::Mul(int, int, int, int, int, int)':
0_0_29588951_24776.cpp:132:4: error: 'mul' was not declared in this scope
   (mul[root] *= v) %= P;
    ^
0_0_29588951_24776.cpp:133:4: error: 'add' was not declared in this scope
   (add[root] *= v) %= P;
    ^
0_0_29588951_24776.cpp:134:3: error: 'val' was not declared in this scope
   val[root] = val[root] * v % P;
   ^
0_0_29588951_24776.cpp:135:3: error: 'sqr' was not declared in this scope
   sqr[root] = sqr[root] * v % P * v % P;
   ^
0_0_29588951_24776.cpp:136:3: error: 'cub' was not declared in this scope
   cub[root] = cub[root] * v % P * v % P * v % P;
   ^
0_0_29588951_24776.cpp: In function 'int SegT::intquery(int, int, int, int, int, int)':
0_0_29588951_24776.cpp:155:11: error: 'val' was not declared in this scope
    return val[root];
           ^
0_0_29588951_24776.cpp:157:11: error: 'sqr' was not declared in this scope
    return sqr[root];
           ^
0_0_29588951_24776.cpp:159:11: error: 'cub' was not declared in this scope
    return cub[root];
           ^
0_0_29588951_24776.cpp:164:37: error: 'query' was not declared in this scope
   return query(lson, l, mid, s, t, p);
                                     ^
0_0_29588951_24776.cpp:166:39: error: 'query' was not declared in this scope
   return query(rson, mid+1, r, s, t, p);
                                       ^
0_0_29588951_24776.cpp:168:38: error: 'query' was not declared in this scope
   return (query(lson, l, mid, s, t, p) + query(rson, mid+1, r, s, t, p)) % P;
                                      ^
0_0_29588951_24776.cpp: In function 'int main()':
0_0_29588951_24776.cpp:186:20: error: 'query' is not a member of 'SegT'
     printf("%d\n", SegT::query(1, 1, n, x, y, c));
                    ^


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-16 20:45:22, Gzip enabled