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_38537842_27889.cpp: In function 'constexpr ll qmul(ll, ll, ll)':
0_0_38537842_27889.cpp:55:1: error: body of constexpr function 'constexpr ll qmul(ll, ll, ll)' not a return-statement
 }
 ^
0_0_38537842_27889.cpp: In function 'constexpr ull mul(ull, ull, ull)':
0_0_38537842_27889.cpp:64:1: error: body of constexpr function 'constexpr ull mul(ull, ull, ull)' not a return-statement
 }
 ^
0_0_38537842_27889.cpp: In function 'constexpr ull qpow(ull, ull, int)':
0_0_38537842_27889.cpp:73:1: error: body of constexpr function 'constexpr ull qpow(ull, ull, int)' not a return-statement
 }
 ^
0_0_38537842_27889.cpp: In function 'constexpr ull qpow_safe(ull, ull, ull)':
0_0_38537842_27889.cpp:86:1: error: body of constexpr function 'constexpr ull qpow_safe(ull, ull, ull)' not a return-statement
 }
 ^
0_0_38537842_27889.cpp: In function 'constexpr ll inverse::exgcd_mod(const ll&, const ll&, ll&, ll&, const ll&)':
0_0_38537842_27889.cpp:102:2: error: body of constexpr function 'constexpr ll inverse::exgcd_mod(const ll&, const ll&, ll&, ll&, const ll&)' not a return-statement
  }
  ^
0_0_38537842_27889.cpp: In function 'constexpr ll inverse::inv(const ll&, const ll&)':
0_0_38537842_27889.cpp:108:2: error: body of constexpr function 'constexpr ll inverse::inv(const ll&, const ll&)' not a return-statement
  }
  ^
0_0_38537842_27889.cpp: At global scope:
0_0_38537842_27889.cpp:111:10: error: 'in' function uses 'auto' type specifier without trailing return type
 auto& in() { return (std::cin); }
          ^
0_0_38537842_27889.cpp:111:10: note: deduced return type only available with -std=c++1y or -std=gnu++1y
0_0_38537842_27889.cpp:113:33: error: 'in' function uses 'auto' type specifier without trailing return type
 auto& in(T& first, Args&... args) { std::cin >> first; return in(args...); }
                                 ^
0_0_38537842_27889.cpp:113:33: note: deduced return type only available with -std=c++1y or -std=gnu++1y
0_0_38537842_27889.cpp:139:51: error: 'inv12' declared as an 'inline' field
   static inline ll inv12 = inverse::inv(mod1, mod2), inv12_3 = inverse::inv(1LL * mod1 * mod2 % mod3, mod3), mod12 = 1LL * mod1 * mod2;
                                                   ^
0_0_38537842_27889.cpp:139:51: error: ISO C++ forbids in-class initialization of non-const static member 'cov::MttInt<mod1, mod2, mod3>::inv12'
0_0_38537842_27889.cpp:139:107: error: 'inv12_3' declared as an 'inline' field
   static inline ll inv12 = inverse::inv(mod1, mod2), inv12_3 = inverse::inv(1LL * mod1 * mod2 % mod3, mod3), mod12 = 1LL * mod1 * mod2;
                                                                                                           ^
0_0_38537842_27889.cpp:139:107: error: ISO C++ forbids in-class initialization of non-const static member 'cov::MttInt<mod1, mod2, mod3>::inv12_3'
0_0_38537842_27889.cpp:139:131: error: 'mod12' declared as an 'inline' field
   static inline ll inv12 = inverse::inv(mod1, mod2), inv12_3 = inverse::inv(1LL * mod1 * mod2 % mod3, mod3), mod12 = 1LL * mod1 * mod2;
                                                                                                                                   ^
0_0_38537842_27889.cpp:139:131: error: ISO C++ forbids in-class initialization of non-const static member 'cov::MttInt<mod1, mod2, mod3>::mod12'
0_0_38537842_27889.cpp: In function 'constexpr bool prime::millerRabin(int)':
0_0_38537842_27889.cpp:395:2: error: body of constexpr function 'constexpr bool prime::millerRabin(int)' not a return-statement
  }
  ^
0_0_38537842_27889.cpp: In function 'constexpr bool prime::primeTest(ll)':
0_0_38537842_27889.cpp:404:2: error: body of constexpr function 'constexpr bool prime::primeTest(ll)' not a return-statement
  }
  ^
0_0_38537842_27889.cpp: At global scope:
0_0_38537842_27889.cpp:405:33: error: template declaration of 'constexpr const bool prime::is_prime'
  template <ll n> constexpr bool is_prime = primeTest(n);
                                 ^
0_0_38537842_27889.cpp: In function 'constexpr int prime::primitive_root_constexpr(int)':
0_0_38537842_27889.cpp:431:2: error: body of constexpr function 'constexpr int prime::primitive_root_constexpr(int)' not a return-statement
  }
  ^
0_0_38537842_27889.cpp: At global scope:
0_0_38537842_27889.cpp:432:86: error: template declaration of 'constexpr const int prime::primitive_root'
  template <ll m, typename std::enable_if<primeTest(m), int>::type = 0> constexpr int primitive_root = primitive_root_constexpr(m);
                                                                                      ^
0_0_38537842_27889.cpp: In function 'int main(int, char**)':
0_0_38537842_27889.cpp:699:17: error: could not convert 'in<int, {int}>((* & n), (* & k))' from 'auto' to 'bool'
   while (in(n, k)) {
                 ^


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-07-04 14:48:24, Gzip enabled