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

In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:61,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:51,
                 from 0_0_38709784_16234.cpp:2:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h: In instantiation of 'constexpr _ForwardIterator std::search(_ForwardIterator, _ForwardIterator, const _Searcher&) [with _ForwardIterator = int; _Searcher = long long int]':
0_0_38709784_16234.cpp:76:26:   required from here
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:4275:24: error: expression cannot be used as a function
 4275 |     { return __searcher(__first, __last).first; }
      |              ~~~~~~~~~~^~~~~~~~~~~~~~~~~
0_0_38709784_16234.cpp:87:11: error: redefinition of 'const long long int N'
   87 | const int N = 1e5 + 10;
      |           ^
0_0_38709784_16234.cpp:6:11: note: 'const long long int N' previously defined here
    6 | const int N = 1e5 + 10;
      |           ^
0_0_38709784_16234.cpp:88:5: error: redefinition of 'long long int b [100010]'
   88 | int b[N], f[N];
      |     ^
0_0_38709784_16234.cpp:7:5: note: 'long long int b [100010]' previously declared here
    7 | int b[N], f[N];
      |     ^
0_0_38709784_16234.cpp:88:11: error: redefinition of 'long long int f [100010]'
   88 | int b[N], f[N];
      |           ^
0_0_38709784_16234.cpp:7:11: note: 'long long int f [100010]' previously declared here
    7 | int b[N], f[N];
      |           ^
0_0_38709784_16234.cpp:89:8: error: redefinition of 'struct node'
   89 | struct node
      |        ^~~~
0_0_38709784_16234.cpp:8:8: note: previous definition of 'struct node'
    8 | struct node
      |        ^~~~
0_0_38709784_16234.cpp:93:3: error: conflicting declaration 'int tr [400040]'
   93 | } tr[N << 2];
      |   ^~
0_0_38709784_16234.cpp:12:3: note: previous declaration as 'node tr [400040]'
   12 | } tr[N << 2];
      |   ^~
0_0_38709784_16234.cpp:94:6: error: redefinition of 'void build(long long int, long long int, long long int)'
   94 | void build(int u, int l, int r)
      |      ^~~~~
0_0_38709784_16234.cpp:13:6: note: 'void build(long long int, long long int, long long int)' previously defined here
   13 | void build(int u, int l, int r)
      |      ^~~~~
0_0_38709784_16234.cpp:108:6: error: redefinition of 'void add(long long int, long long int)'
  108 | void add(int u, int dis)
      |      ^~~
0_0_38709784_16234.cpp:27:6: note: 'void add(long long int, long long int)' previously defined here
   27 | void add(int u, int dis)
      |      ^~~
0_0_38709784_16234.cpp:122:5: error: redefinition of 'long long int search(long long int, long long int, long long int)'
  122 | int search(int u, int l, int r)
      |     ^~~~~~
0_0_38709784_16234.cpp:41:5: note: 'long long int search(long long int, long long int, long long int)' previously defined here
   41 | int search(int u, int l, int r)
      |     ^~~~~~
0_0_38709784_16234.cpp:130:8: error: redefinition of 'int main()'
  130 | signed main() // 先离散化,再每次求i-query 再加abs(b[f[i]]-b[i])-abs(i-f[i])
      |        ^~~~
0_0_38709784_16234.cpp:49:8: note: 'int main()' previously defined here
   49 | signed main() // 先离散化,再每次求i-query 再加abs(b[f[i]]-b[i])-abs(i-f[i])
      |        ^~~~


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 14:53:31, Gzip enabled