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_39045826_4620.cpp:146:10: error: redefinition of 'const ll mod1'
  146 | const ll mod1 = 1e9+7,mod2 = 998244353;
      |          ^~~~
0_0_39045826_4620.cpp:7:10: note: 'const ll mod1' previously defined here
    7 | const ll mod1 = 1e9+7,mod2 = 998244353;
      |          ^~~~
0_0_39045826_4620.cpp:146:23: error: redefinition of 'const ll mod2'
  146 | const ll mod1 = 1e9+7,mod2 = 998244353;
      |                       ^~~~
0_0_39045826_4620.cpp:7:23: note: 'const ll mod2' previously defined here
    7 | const ll mod1 = 1e9+7,mod2 = 998244353;
      |                       ^~~~
0_0_39045826_4620.cpp:148:4: error: redefinition of 'll w [100005]'
  148 | ll w[100005],expe;
      |    ^
0_0_39045826_4620.cpp:9:4: note: 'll w [100005]' previously declared here
    9 | ll w[100005],expe;
      |    ^
0_0_39045826_4620.cpp:148:14: error: redefinition of 'll expe'
  148 | ll w[100005],expe;
      |              ^~~~
0_0_39045826_4620.cpp:9:14: note: 'll expe' previously declared here
    9 | ll w[100005],expe;
      |              ^~~~
0_0_39045826_4620.cpp:149:5: error: redefinition of 'int n'
  149 | int n;
      |     ^
0_0_39045826_4620.cpp:10:5: note: 'int n' previously declared here
   10 | int n;
      |     ^
0_0_39045826_4620.cpp:150:8: error: redefinition of 'std::string str'
  150 | string str;
      |        ^~~
0_0_39045826_4620.cpp:11:8: note: 'std::string str' previously defined here
   11 | string str;
      |        ^~~
0_0_39045826_4620.cpp:151:12: error: redefinition of 'std::vector<int> e [100005]'
  151 | vector<int>e[100005];
      |            ^
0_0_39045826_4620.cpp:12:12: note: 'std::vector<int> e [100005]' previously defined here
   12 | vector<int>e[100005];
      |            ^
0_0_39045826_4620.cpp:152:6: error: redefinition of 'bool del [100005]'
  152 | bool del[100005];
      |      ^~~
0_0_39045826_4620.cpp:13:6: note: 'bool del [100005]' previously declared here
   13 | bool del[100005];
      |      ^~~
0_0_39045826_4620.cpp:153:4: error: redefinition of 'll ans'
  153 | ll ans = 0;
      |    ^~~
0_0_39045826_4620.cpp:14:4: note: 'll ans' previously defined here
   14 | ll ans = 0;
      |    ^~~
0_0_39045826_4620.cpp:154:5: error: redefinition of 'int siz [100005]'
  154 | int siz[100005];
      |     ^~~
0_0_39045826_4620.cpp:15:5: note: 'int siz [100005]' previously declared here
   15 | int siz[100005];
      |     ^~~
0_0_39045826_4620.cpp:156:6: error: redefinition of 'void solve(int, int)'
  156 | void solve(int x,int sz)
      |      ^~~~~
0_0_39045826_4620.cpp:17:6: note: 'void solve(int, int)' previously defined here
   17 | void solve(int x,int sz)
      |      ^~~~~
0_0_39045826_4620.cpp:233:6: error: redefinition of 'void test()'
  233 | void test()
      |      ^~~~
0_0_39045826_4620.cpp:94:6: note: 'void test()' previously defined here
   94 | void test()
      |      ^~~~
0_0_39045826_4620.cpp:255:5: error: redefinition of 'int main()'
  255 | int main()
      |     ^~~~
0_0_39045826_4620.cpp:116:5: note: 'int main()' previously defined here
  116 | int main()
      |     ^~~~
0_0_39045826_4620.cpp:285:10: error: redefinition of 'const ll mod1'
  285 | const ll mod1 = 1e9+7,mod2 = 998244353;
      |          ^~~~
0_0_39045826_4620.cpp:7:10: note: 'const ll mod1' previously defined here
    7 | const ll mod1 = 1e9+7,mod2 = 998244353;
      |          ^~~~
0_0_39045826_4620.cpp:285:23: error: redefinition of 'const ll mod2'
  285 | const ll mod1 = 1e9+7,mod2 = 998244353;
      |                       ^~~~
0_0_39045826_4620.cpp:7:23: note: 'const ll mod2' previously defined here
    7 | const ll mod1 = 1e9+7,mod2 = 998244353;
      |                       ^~~~
0_0_39045826_4620.cpp:287:4: error: redefinition of 'll w [100005]'
  287 | ll w[100005],expe;
      |    ^
0_0_39045826_4620.cpp:9:4: note: 'll w [100005]' previously declared here
    9 | ll w[100005],expe;
      |    ^
0_0_39045826_4620.cpp:287:14: error: redefinition of 'll expe'
  287 | ll w[100005],expe;
      |              ^~~~
0_0_39045826_4620.cpp:9:14: note: 'll expe' previously declared here
    9 | ll w[100005],expe;
      |              ^~~~
0_0_39045826_4620.cpp:288:5: error: redefinition of 'int n'
  288 | int n;
      |     ^
0_0_39045826_4620.cpp:10:5: note: 'int n' previously declared here
   10 | int n;
      |     ^
0_0_39045826_4620.cpp:289:8: error: redefinition of 'std::string str'
  289 | string str;
      |        ^~~
0_0_39045826_4620.cpp:11:8: note: 'std::string str' previously defined here
   11 | string str;
      |        ^~~
0_0_39045826_4620.cpp:290:12: error: redefinition of 'std::vector<int> e [100005]'
  290 | vector<int>e[100005];
      |            ^
0_0_39045826_4620.cpp:12:12: note: 'std::vector<int> e [100005]' previously defined here
   12 | vector<int>e[100005];
      |            ^
0_0_39045826_4620.cpp:291:6: error: redefinition of 'bool del [100005]'
  291 | bool del[100005];
      |      ^~~
0_0_39045826_4620.cpp:13:6: note: 'bool del [100005]' previously declared here
   13 | bool del[100005];
      |      ^~~
0_0_39045826_4620.cpp:292:4: error: redefinition of 'll ans'
  292 | ll ans = 0;
      |    ^~~
0_0_39045826_4620.cpp:14:4: note: 'll ans' previously defined here
   14 | ll ans = 0;
      |    ^~~
0_0_39045826_4620.cpp:293:5: error: redefinition of 'int siz [100005]'
  293 | int siz[100005];
      |     ^~~
0_0_39045826_4620.cpp:15:5: note: 'int siz [100005]' previously declared here
   15 | int siz[100005];
      |     ^~~
0_0_39045826_4620.cpp:295:6: error: redefinition of 'void solve(int, int)'
  295 | void solve(int x,int sz)
      |      ^~~~~
0_0_39045826_4620.cpp:17:6: note: 'void solve(int, int)' previously defined here
   17 | void solve(int x,int sz)
      |      ^~~~~
0_0_39045826_4620.cpp:372:6: error: redefinition of 'void test()'
  372 | void test()
      |      ^~~~
0_0_39045826_4620.cpp:94:6: note: 'void test()' previously defined here
   94 | void test()
      |      ^~~~
0_0_39045826_4620.cpp:394:5: error: redefinition of 'int main()'
  394 | int main()
      |     ^~~~
0_0_39045826_4620.cpp:116:5: note: 'int main()' previously defined here
  116 | int main()
      |     ^~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/functional:59,
                 from .\stdc++.h:53:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/std_function.h: In constructor 'std::function<_Res(_ArgTypes ...)>::function(_Functor&&) [with _Functor = solve(int, int)::<lambda(int, int, ll)>; _Constraints = void; _Res = void; _ArgTypes = {int, int, long long int}]':
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/std_function.h:435:9: error: mangling of 'std::function<_Res(_ArgTypes ...)>::function(_Functor&&) [with _Functor = solve(int, int)::<lambda(int, int, ll)>; _Constraints = void; _Res = void; _ArgTypes = {int, int, long long int}]' as '_ZNSt8functionIFviixEEC2IZ5solveiiEUliixE_vEEOT_' conflicts with a previous mangle
  435 |         function(_Functor&& __f)
      |         ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/std_function.h:435:9: note: previous mangling 'std::function<_Res(_ArgTypes ...)>::function(_Functor&&) [with _Functor = solve(int, int)::<lambda(int, int, ll)>; _Constraints = void; _Res = void; _ArgTypes = {int, int, long long int}]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/std_function.h:435:9: note: a later '-fabi-version=' (or =0) avoids this error with a change in mangling
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/std_function.h: In static member function 'static bool std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_manager(std::_Any_data&, const std::_Any_data&, std::_Manager_operation) [with _Res = void; _Functor = solve(int, int)::<lambda(int, int, ll)>; _ArgTypes = {int, int, long long int}]':
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/std_function.h:267:7: error: mangling of 'static bool std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_manager(std::_Any_data&, const std::_Any_data&, std::_Manager_operation) [with _Res = void; _Functor = solve(int, int)::<lambda(int, int, ll)>; _ArgTypes = {int, int, long long int}]' as '_ZNSt17_Function_handlerIFviixEZ5solveiiEUliixE_E10_M_managerERSt9_Any_dataRKS3_St18_Manager_operation' conflicts with a previous mangle
  267 |       _M_manager(_Any_data& __dest, const _Any_data& __source,
      |       ^~~~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/std_function.h:267:7: note: previous mangling 'static bool std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_manager(std::_Any_data&, const std::_Any_data&, std::_Manager_operation) [with _Res = void; _Functor = solve(int, int)::<lambda(int, int, ll)>; _ArgTypes = {int, int, long long int}]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/std_function.h:267:7: note: a later '-fabi-version=' (or =0) avoids this error with a change in mangling
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/std_function.h: In static member function 'static _Functor* std::_Function_base::_Base_manager<_Functor>::_M_get_pointer(const std::_Any_data&) [with _Functor = solve(int, int)::<lambda(int, int, ll)>]':
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/std_function.h:134:9: error: mangling of 'static _Functor* std::_Function_base::_Base_manager<_Functor>::_M_get_pointer(const std::_Any_data&) [with _Functor = solve(int, int)::<lambda(int, int, ll)>]' as '_ZNSt14_Function_base13_Base_managerIZ5solveiiEUliixE_E14_M_get_pointerERKSt9_Any_data' conflicts with a previous mangle
  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-26 02:39:06, Gzip enabled