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_37828654_17158.cpp: In member function 'typename std::enable_if<std::is_same<typename Modular<U>::Type, int>::value, Modular<T> >::type& Modular<T>::operator*=(const Modular<T>&)':
0_0_37828654_17158.cpp:61:7: error: expected ')' before ':' token
       : "=a" (d), "=d" (m)
       ^
0_0_37828654_17158.cpp:61:26: error: expression cannot be used as a function
       : "=a" (d), "=d" (m)
                          ^
0_0_37828654_17158.cpp:62:26: error: expression cannot be used as a function
       : "d" (xh), "a" (xl), "r" (mod())
                          ^
0_0_37828654_17158.cpp: At global scope:
0_0_37828654_17158.cpp:198:31: error: array must be initialized with a brace-enclosed initializer
     array<Mint, 3> sum{0, 0, 0};
                               ^
0_0_37828654_17158.cpp:198:31: error: too many initializers for 'std::array<Modular<std::integral_constant<int, 10007> >, 3ull>'
0_0_37828654_17158.cpp: In instantiation of 'typename std::enable_if<std::is_same<typename Modular<U>::Type, int>::value, Modular<T> >::type& Modular<T>::operator*=(const Modular<T>&) [with U = std::integral_constant<int, 10007>; T = std::integral_constant<int, 10007>; typename std::enable_if<std::is_same<typename Modular<U>::Type, int>::value, Modular<T> >::type = Modular<std::integral_constant<int, 10007> >]':
0_0_37828654_17158.cpp:118:111:   required from 'Modular<T> operator*(const Modular<T>&, U) [with T = std::integral_constant<int, 10007>; U = long long int]'
0_0_37828654_17158.cpp:200:25:   required from here
0_0_37828654_17158.cpp:62:39: error: expression cannot be used as a function
       : "d" (xh), "a" (xl), "r" (mod())
                                       ^
0_0_37828654_17158.cpp:63:5: error: 'asm' was not declared in this scope
     );
     ^


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-28 21:23:00, Gzip enabled