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_33699810_4364.cpp: In member function 'typename std::enable_if<std::is_same<typename std::Modular<U>::Type, int>::value, std::Modular<T> >::type& std::Modular<T>::operator*=(const std::Modular<T>&)':
0_0_33699810_4364.cpp:165:29: error: expected ')' before ':' token
         asm("divl %4; \n\t" : "=a"(d), "=d"(m) : "d"(xh), "a"(xl), "r"(mod()));
                             ^
0_0_33699810_4364.cpp:165:46: error: expression cannot be used as a function
         asm("divl %4; \n\t" : "=a"(d), "=d"(m) : "d"(xh), "a"(xl), "r"(mod()));
                                              ^
0_0_33699810_4364.cpp:165:65: error: expression cannot be used as a function
         asm("divl %4; \n\t" : "=a"(d), "=d"(m) : "d"(xh), "a"(xl), "r"(mod()));
                                                                 ^
0_0_33699810_4364.cpp: In instantiation of 'typename std::enable_if<std::is_same<typename std::Modular<U>::Type, int>::value, std::Modular<T> >::type& std::Modular<T>::operator*=(const std::Modular<T>&) [with U = std::integral_constant<int, 1000000007>; T = std::integral_constant<int, 1000000007>; typename std::enable_if<std::is_same<typename std::Modular<U>::Type, int>::value, std::Modular<T> >::type = std::Modular<std::integral_constant<int, 1000000007> >]':
0_0_33699810_4364.cpp:284:24:   required from 'std::Modular<T> std::power(const std::Modular<T>&, const U&) [with T = std::integral_constant<int, 1000000007>; U = int]'
0_0_33699810_4364.cpp:325:37:   required from here
0_0_33699810_4364.cpp:165:77: error: expression cannot be used as a function
         asm("divl %4; \n\t" : "=a"(d), "=d"(m) : "d"(xh), "a"(xl), "r"(mod()));
                                                                             ^
0_0_33699810_4364.cpp:165:78: error: 'asm' was not declared in this scope
         asm("divl %4; \n\t" : "=a"(d), "=d"(m) : "d"(xh), "a"(xl), "r"(mod()));
                                                                              ^


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-25 11:50:47, Gzip enabled