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_21800913_29008.cpp:7:14: error: 'LL' was not declared in this scope
 typedef pair<LL, LL> PLL;
              ^
0_0_21800913_29008.cpp:7:18: error: 'LL' was not declared in this scope
 typedef pair<LL, LL> PLL;
                  ^
0_0_21800913_29008.cpp:7:20: error: template argument 1 is invalid
 typedef pair<LL, LL> PLL;
                    ^
0_0_21800913_29008.cpp:7:20: error: template argument 2 is invalid
0_0_21800913_29008.cpp:7:25: error: invalid type in declaration before ';' token
 typedef pair<LL, LL> PLL;
                         ^
0_0_21800913_29008.cpp:16:1: error: 'LL' does not name a type
 LL Delta[maxn];
 ^
0_0_21800913_29008.cpp:18:8: error: 'LL' was not declared in this scope
 vector<LL> delta[maxn];
        ^
0_0_21800913_29008.cpp:18:10: error: template argument 1 is invalid
 vector<LL> delta[maxn];
          ^
0_0_21800913_29008.cpp:18:10: error: template argument 2 is invalid
0_0_21800913_29008.cpp:18:23: error: invalid type in declaration before ';' token
 vector<LL> delta[maxn];
                       ^
0_0_21800913_29008.cpp:22:2: error: 'LL' does not name a type
  LL dis, fac, sum;
  ^
0_0_21800913_29008.cpp:23:10: error: expected ')' before 'dis'
  node(LL dis, LL fac, LL sum):dis(dis), fac(fac), sum(sum) {}
          ^
0_0_21800913_29008.cpp: In function 'void dfs(int, int)':
0_0_21800913_29008.cpp:41:21: error: 'w' was not declared in this scope
  dis[x] = dis[fa] + w[x];
                     ^
0_0_21800913_29008.cpp: In function 'void build(int, int, int)':
0_0_21800913_29008.cpp:50:16: error: '__gnu_cxx::__alloc_traits<std::allocator<node> >::value_type' has no member named 'dis'
   seg[rt][tot].dis = w[l];
                ^
0_0_21800913_29008.cpp:50:22: error: 'w' was not declared in this scope
   seg[rt][tot].dis = w[l];
                      ^
0_0_21800913_29008.cpp: At global scope:
0_0_21800913_29008.cpp:57:62: error: 'LL' has not been declared
 void modify1(int tot, int l, int r, int st, int ed, int dis, LL ret) { //change weight
                                                              ^
0_0_21800913_29008.cpp: In function 'void modify1(int, int, int, int, int, int, int)':
0_0_21800913_29008.cpp:58:2: error: 'LL' was not declared in this scope
  LL tmp = seg[rt][tot].K * dis;
  ^
0_0_21800913_29008.cpp:60:16: error: '__gnu_cxx::__alloc_traits<std::allocator<node> >::value_type' has no member named 'dis'
   seg[rt][tot].dis += dis;
                ^
0_0_21800913_29008.cpp:61:16: error: '__gnu_cxx::__alloc_traits<std::allocator<node> >::value_type' has no member named 'sum'
   seg[rt][tot].sum += ret - tmp;
                ^
0_0_21800913_29008.cpp:61:29: error: invalid operands of types 'int' and 'int [100010]' to binary 'operator-'
   seg[rt][tot].sum += ret - tmp;
                             ^
0_0_21800913_29008.cpp:65:61: error: invalid operands of types 'int' and 'int [100010]' to binary 'operator-'
  if (st <= mid) modify1(tot * 2, l, mid, st, ed, dis, ret - tmp);
                                                             ^
0_0_21800913_29008.cpp:66:68: error: invalid operands of types 'int' and 'int [100010]' to binary 'operator-'
  if (mid < ed) modify1(tot * 2 + 1, mid + 1, r, st, ed, dis, ret - tmp);
                                                                    ^
0_0_21800913_29008.cpp: At global scope:
0_0_21800913_29008.cpp:68:60: error: 'LL' has not been declared
 void modify2(int tot, int l, int r, int st, int ed, int K, LL ret) { //change factor
                                                            ^
0_0_21800913_29008.cpp: In function 'void modify2(int, int, int, int, int, int, int)':
0_0_21800913_29008.cpp:70:16: error: '__gnu_cxx::__alloc_traits<std::allocator<node> >::value_type' has no member named 'fac'
   seg[rt][tot].fac += K;
                ^
0_0_21800913_29008.cpp:71:16: error: '__gnu_cxx::__alloc_traits<std::allocator<node> >::value_type' has no member named 'sum'
   seg[rt][tot].sum += ret;
                ^
0_0_21800913_29008.cpp:75:2: error: 'LL' was not declared in this scope
  LL tmp = seg[rt][tot].dis * K;
  ^
0_0_21800913_29008.cpp:76:61: error: invalid operands of types 'int [100010]' and 'int [100010]' to binary 'operator+'
  if (st <= mid) modify2(tot * 2, l, mid, st, ed, K, delta + tmp);
                                                             ^
0_0_21800913_29008.cpp:77:68: error: invalid operands of types 'int [100010]' and 'int [100010]' to binary 'operator+'
  if (mid < ed) modify2(tot * 2 + 1, mid + 1, r, st, ed, K, delta + tmp); 
                                                                    ^
0_0_21800913_29008.cpp: In function 'PLL Query(int, int, int, int)':
0_0_21800913_29008.cpp:80:28: error: cannot convert 'std::vector<node>' to 'PLL {aka int}' in return
  if (l == r) return seg[tot];
                            ^
0_0_21800913_29008.cpp: In function 'void solve()':
0_0_21800913_29008.cpp:91:33: error: no matching function for call to 'std::vector<int>::push_back(pii)'
    son[rt].PB(pii(st + 1, stamp));
                                 ^
0_0_21800913_29008.cpp:91:33: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_21800913_29008.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]
       push_back(const value_type& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note:   no known conversion for argument 1 from 'pii {aka std::pair<int, int>}' to 'const value_type& {aka const int&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]
       push_back(value_type&& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note:   no known conversion for argument 1 from 'pii {aka std::pair<int, int>}' to 'std::vector<int>::value_type&& {aka int&&}'
0_0_21800913_29008.cpp:94:8: error: 'st' was not declared in this scope
  delta[st].clear();
        ^
0_0_21800913_29008.cpp:112:12: error: too many arguments to function 'void solve()'
    solve(rt);
            ^
0_0_21800913_29008.cpp:83:6: note: declared here
 void solve() {
      ^
0_0_21800913_29008.cpp: At global scope:
0_0_21800913_29008.cpp:115:1: error: 'LL' does not name a type
 LL Query(int x) {
 ^
0_0_21800913_29008.cpp: In function 'void Modify1(int, int)':
0_0_21800913_29008.cpp:127:18: error: 'w' was not declared in this scope
  int delta = y - w[x];
                  ^
0_0_21800913_29008.cpp: In function 'void Modify2(int, int)':
0_0_21800913_29008.cpp:140:22: error: 'class std::vector<node>' has no member named 'Query'
   node tmp = seg[rt].Query(1, 1, block[rt], no);
                      ^
0_0_21800913_29008.cpp:141:3: error: 'LL' was not declared in this scope
   LL ret = tmp.dis * y;
   ^
0_0_21800913_29008.cpp:143:3: error: 'Delta' was not declared in this scope
   Delta[rt] += ret;
   ^
0_0_21800913_29008.cpp:143:16: error: 'ret' was not declared in this scope
   Delta[rt] += ret;
                ^
0_0_21800913_29008.cpp:144:18: error: invalid types 'int[int]' for array subscript
   delta[rt][color] += ret;
                  ^
0_0_21800913_29008.cpp:4:11: error: request for member 'first' in 'son[rt].std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >(((std::vector<int>::size_type)color))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}'
 #define F first
           ^
0_0_21800913_29008.cpp:146:22: note: in expansion of macro 'F'
   if (son[rt][color].F > 1) modify2(1, 1, block[rt], 1, son[rt][color].F - 1, y, 0);
                      ^
0_0_21800913_29008.cpp:4:11: error: request for member 'first' in 'son[rt].std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >(((std::vector<int>::size_type)color))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}'
 #define F first
           ^
0_0_21800913_29008.cpp:146:72: note: in expansion of macro 'F'
   if (son[rt][color].F > 1) modify2(1, 1, block[rt], 1, son[rt][color].F - 1, y, 0);
                                                                        ^
0_0_21800913_29008.cpp:5:11: error: request for member 'second' in 'son[rt].std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >(((std::vector<int>::size_type)color))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}'
 #define S second
           ^
0_0_21800913_29008.cpp:147:22: note: in expansion of macro 'S'
   if (son[rt][color].S < block[rt]) modify2(1, 1, block[rt], son[rt][color].S + 1, block[rt], y, 0); 
                      ^
0_0_21800913_29008.cpp:5:11: error: request for member 'second' in 'son[rt].st


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-11 03:53:28, Gzip enabled