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_39271506_22271.cpp:368:13: error: redefinition of 'template<class T> constexpr T power(T, i64)'
  368 | constexpr T power(T a, i64 b)
      |             ^~~~~
0_0_39271506_22271.cpp:5:13: note: 'template<class T> constexpr T power(T, i64)' previously declared here
    5 | constexpr T power(T a, i64 b)
      |             ^~~~~
0_0_39271506_22271.cpp:381:15: error: redefinition of 'constexpr i64 mul(i64, i64, i64)'
  381 | constexpr i64 mul(i64 a, i64 b, i64 p)
      |               ^~~
0_0_39271506_22271.cpp:18:15: note: 'constexpr i64 mul(i64, i64, i64)' previously defined here
   18 | constexpr i64 mul(i64 a, i64 b, i64 p)
      |               ^~~
0_0_39271506_22271.cpp:392:8: error: redefinition of 'struct MLong<P>'
  392 | struct MLong
      |        ^~~~~
0_0_39271506_22271.cpp:29:8: note: previous definition of 'struct MLong<P>'
   29 | struct MLong
      |        ^~~~~
0_0_39271506_22271.cpp:510:5: error: redefinition of 'i64 MLong<0>::Mod'
  510 | i64 MLong<0LL>::Mod = i64(1E18) + 9;
      |     ^~~~~~~~~~
0_0_39271506_22271.cpp:147:5: note: 'i64 MLong<0>::Mod' previously declared here
  147 | i64 MLong<0LL>::Mod = i64(1E18) + 9;
      |     ^~~~~~~~~~
0_0_39271506_22271.cpp:513:8: error: redefinition of 'struct MInt<P>'
  513 | struct MInt
      |        ^~~~
0_0_39271506_22271.cpp:150:8: note: previous definition of 'struct MInt<P>'
  150 | struct MInt
      |        ^~~~
0_0_39271506_22271.cpp:631:5: error: redefinition of 'int MInt<0>::Mod'
  631 | int MInt<0>::Mod = 998244353;
      |     ^~~~~~~
0_0_39271506_22271.cpp:268:5: note: 'int MInt<0>::Mod' previously declared here
  268 | int MInt<0>::Mod = 998244353;
      |     ^~~~~~~
0_0_39271506_22271.cpp:634:19: error: redefinition of 'template<int V, int P> constexpr const MInt<P> CInv'
  634 | constexpr MInt<P> CInv = MInt<P>(V).inv();
      |                   ^~~~
0_0_39271506_22271.cpp:271:19: note: 'template<int V, int P> constexpr const MInt<P> CInv<V, P>' previously declared here
  271 | constexpr MInt<P> CInv = MInt<P>(V).inv();
      |                   ^~~~
0_0_39271506_22271.cpp:636:15: error: redefinition of 'constexpr const int P'
  636 | constexpr int P = 1e9 + 7;
      |               ^
0_0_39271506_22271.cpp:273:15: note: 'constexpr const int P' previously defined here
  273 | constexpr int P = 1e9 + 7;
      |               ^
0_0_39271506_22271.cpp:639:8: error: redefinition of 'struct Comb'
  639 | struct Comb
      |        ^~~~
0_0_39271506_22271.cpp:276:8: note: previous definition of 'struct Comb'
  276 | struct Comb
      |        ^~~~
0_0_39271506_22271.cpp:698:3: error: conflicting declaration 'int comb'
  698 | } comb;
      |   ^~~~
0_0_39271506_22271.cpp:335:3: note: previous declaration as 'Comb comb'
  335 | } comb;
      |   ^~~~
0_0_39271506_22271.cpp:700:6: error: redefinition of 'void sol()'
  700 | void sol()
      |      ^~~
0_0_39271506_22271.cpp:337:6: note: 'void sol()' previously defined here
  337 | void sol()
      |      ^~~
0_0_39271506_22271.cpp:717:5: error: redefinition of 'int main()'
  717 | int main()
      |     ^~~~
0_0_39271506_22271.cpp:353:5: note: 'int main()' previously defined here
  353 | int main()
      |     ^~~~


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-30 03:38:27, Gzip enabled