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_38113703_22123.cpp:5:54: error: 'enable_if_t' in namespace 'std' does not name a template type
         template<class...Cond> using require_ = std::enable_if_t<std::__and_<Cond...>::value, bool>;
                                                      ^
0_0_38113703_22123.cpp:6:33: error: 'szc::util::require_' has not been declared
         template<class T, util::require_<std::is_integral<T>> = true> T ceil_div(const T & a, const T & b) { return ((a + b - 1) / b); }
                                 ^
0_0_38113703_22123.cpp:6:41: error: expected '>' before '<' token
         template<class T, util::require_<std::is_integral<T>> = true> T ceil_div(const T & a, const T & b) { return ((a + b - 1) / b); }
                                         ^
0_0_38113703_22123.cpp:12:33: error: 'szc::util::require_' has not been declared
         template<class T, util::require_<std::is_signed<T>> = true>
                                 ^
0_0_38113703_22123.cpp:12:41: error: expected '>' before '<' token
         template<class T, util::require_<std::is_signed<T>> = true>
                                         ^
0_0_38113703_22123.cpp:22:33: error: 'szc::util::require_' has not been declared
         template<class T, util::require_<std::is_unsigned<T>> = true>
                                 ^
0_0_38113703_22123.cpp:22:41: error: expected '>' before '<' token
         template<class T, util::require_<std::is_unsigned<T>> = true>
                                         ^
0_0_38113703_22123.cpp:23:14: error: redefinition of 'template<class T, int <anonymous> > void szc::io::read(T&)'
         void read(T & x) {
              ^
0_0_38113703_22123.cpp:13:14: note: 'template<class T, int <anonymous> > void szc::io::read(T&)' previously declared here
         void read(T & x) {
              ^
0_0_38113703_22123.cpp:44:38: error: 'szc::util::require_' has not been declared
         template<class T, szc::util::require_<std::is_base_of<traits::Display, T>> = true>
                                      ^
0_0_38113703_22123.cpp:44:46: error: expected '>' before '<' token
         template<class T, szc::util::require_<std::is_base_of<traits::Display, T>> = true>
                                              ^
0_0_38113703_22123.cpp:47:38: error: 'szc::util::require_' has not been declared
         template<class T, szc::util::require_<std::__or_<std::is_integral<T>, std::is_same<std::remove_cv<T>, __int128>>> = true>
                                      ^
0_0_38113703_22123.cpp:47:46: error: expected '>' before '<' token
         template<class T, szc::util::require_<std::__or_<std::is_integral<T>, std::is_same<std::remove_cv<T>, __int128>>> = true>
                                              ^
0_0_38113703_22123.cpp:73:31: error: template declaration of 'constexpr const T INF'
 template<class T> constexpr T INF = std::numeric_limits<T>::max() / 2 - 5;
                               ^
0_0_38113703_22123.cpp:74:31: error: template declaration of 'constexpr const T NINF'
 template<class T> constexpr T NINF = std::numeric_limits<T>::min() / 2 + 5;
                               ^
0_0_38113703_22123.cpp:80:64: error: 'Add' function uses 'auto' type specifier without trailing return type
     template<class T, class U> inline auto Add(T a, const U & b) { a += b; while (a >= Mod) a -= Mod; while (a < 0) a += Mod; return a; }
                                                                ^
0_0_38113703_22123.cpp:80:64: note: deduced return type only available with -std=c++1y or -std=gnu++1y
0_0_38113703_22123.cpp:81:50: error: 'Add' function uses 'auto' type specifier without trailing return type
     template<class T> inline auto Add(const T & a) { return Add(a, 0); }
                                                  ^
0_0_38113703_22123.cpp:81:50: note: deduced return type only available with -std=c++1y or -std=gnu++1y
0_0_38113703_22123.cpp:82:108: error: 'Add' function uses 'auto' type specifier without trailing return type
     template<class T, class U, class...Args> inline auto Add(const T & a, const U & b, const Args & ...args) { return (Add(Add(a, b), args...)); }
                                                                                                            ^
0_0_38113703_22123.cpp:82:108: note: deduced return type only available with -std=c++1y or -std=gnu++1y
0_0_38113703_22123.cpp:83:105: error: 'cAdd' function uses 'auto' type specifier without trailing return type
     template<class T, class U, class...Args> inline auto & cAdd(T & a, const U & b, const Args & ...args) { return (a = Add(a, b, args...)); }
                                                                                                         ^
0_0_38113703_22123.cpp:83:105: note: deduced return type only available with -std=c++1y or -std=gnu++1y
0_0_38113703_22123.cpp:85:72: error: 'Mul' function uses 'auto' type specifier without trailing return type
     template<class T, class U> inline auto Mul(const T & a, const U & b) { return (1ll * a * b % Mod); }
                                                                        ^
0_0_38113703_22123.cpp:85:72: note: deduced return type only available with -std=c++1y or -std=gnu++1y
0_0_38113703_22123.cpp:86:108: error: 'Mul' function uses 'auto' type specifier without trailing return type
     template<class T, class U, class...Args> inline auto Mul(const T & a, const U & b, const Args & ...args) { return (Mul(Mul(a, b), args...)); }
                                                                                                            ^
0_0_38113703_22123.cpp:86:108: note: deduced return type only available with -std=c++1y or -std=gnu++1y
0_0_38113703_22123.cpp:87:105: error: 'cMul' function uses 'auto' type specifier without trailing return type
     template<class T, class U, class...Args> inline auto & cMul(T & a, const U & b, const Args & ...args) { return (a = Mul(a, b, args...)); }
                                                                                                         ^
0_0_38113703_22123.cpp:87:105: note: deduced return type only available with -std=c++1y or -std=gnu++1y
0_0_38113703_22123.cpp:90:30: error: 'qPow' function uses 'auto' type specifier without trailing return type
     inline auto qPow(T a, U b) {
                              ^
0_0_38113703_22123.cpp:90:30: note: deduced return type only available with -std=c++1y or -std=gnu++1y
0_0_38113703_22123.cpp: In function 'int C(int, int)':
0_0_38113703_22123.cpp:103:56: error: invalid use of 'auto'
     return (n < m) ? 0 : Mul(fac[n], inv[m], inv[n - m]);
                                                        ^
0_0_38113703_22123.cpp: In function 'void init(int)':
0_0_38113703_22123.cpp:109:35: error: invalid use of 'auto'
         fac[i] = Mul(fac[i - 1], i);
                                   ^
0_0_38113703_22123.cpp:111:34: error: invalid use of 'auto'
     inv[n] = qPow(fac[n], Mod - 2);
                                  ^
0_0_38113703_22123.cpp:113:39: error: invalid use of 'auto'
         inv[i] = Mul(inv[i + 1], i + 1);
                                       ^
0_0_38113703_22123.cpp: In function 'int dfs(int)':
0_0_38113703_22123.cpp:134:45: error: invalid use of 'auto'
     return Mul(res, C(siz[x] - 1, siz[l[x]]));
                                             ^
0_0_38113703_22123.cpp: In function 'void solve(int)':
0_0_38113703_22123.cpp:161:41: error: invalid use of 'auto'
     print(Mul(n, inv[2], inv[n], dfs(rt)), '\n');
                                         ^
0_0_38113703_22123.cpp: In instantiation of 'auto Modulo::Mul(const T&, const U&, const Args& ...) [with T = int; U = int; Args = {int}]':
0_0_38113703_22123.cpp:103:56:   required from here
0_0_38113703_22123.cpp:86:132: error: invalid use of 'auto'
     template<class T, class U, class...Args> inline auto Mul(const T & a, const U & b, const Args & ...args) { return (Mul(Mul(a, b), args...)); }
                                                                                                                                    ^
0_0_38113703_22123.cpp: In instantiation of 'void szc::io::read(T&, Args& ...) [with T = int; Args = {}]':
0_0_38113703_22123.cpp:139:11:   required from here
0_0_38113703_22123.cpp:42:95: error: no matching function for call to 'read()'
         template<class T, class...Args> void read(T & x, Args&...args) { read(x); read(args...); }
                                                                                               ^
0_0_38113703_22123.cpp:42:95: note: candidates are:
0_0_38113703_22123.cpp:13:14: note: template<class T, int <anonymous> > void szc::io::read(T&)
         void read(T & x) {
              ^
0_0_38113703_22123.cpp:13:14: note:   template argument deduction/substitution failed:
0_0_38113703_22123.cpp:42:95: note:   candidate expects 1 argument, 0 provided
         template<class T, class...Args> void read(T & x, Args&...args) { read(x); read(args...); }
                                                                                               ^
0_0_38113703_22123.cpp:30:14: note: void szc::io::read(std::string&)
         void read(std::string & x) {
              ^
0_0_38113703_22123.cpp:30:14: note:   candidate expects 1 argument, 0 provided
0_0_38113703_22123.cpp:37:14: note: void szc::io::read(char&)
         void read(char & x) {
              ^
0_0_38113703_22123.cpp:37:14: note:   candidate expects 1 argument, 0 provided
0_0_38113703_22123.cpp:42:46: note: template<class T, class ... Args> void szc::io::read(T&, Args& ...)
         template<class T, class...Args> void read(T & x, Args&...args) { read(x); read(args...); }
                     


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-06-16 06:37:01, Gzip enabled