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_36449352_17954.cpp:18:14: error: '__int128l' was not declared in this scope
 __int128 add(__int128l x, __int128 y) { return (x += y) %= P;}
              ^
0_0_36449352_17954.cpp:18:27: error: expected primary-expression before '__int128'
 __int128 add(__int128l x, __int128 y) { return (x += y) %= P;}
                           ^
0_0_36449352_17954.cpp:18:37: error: expression list treated as compound expression in initializer [-fpermissive]
 __int128 add(__int128l x, __int128 y) { return (x += y) %= P;}
                                     ^
0_0_36449352_17954.cpp:18:39: error: expected ',' or ';' before '{' token
 __int128 add(__int128l x, __int128 y) { return (x += y) %= P;}
                                       ^
0_0_36449352_17954.cpp: In function 'void doit()':
0_0_36449352_17954.cpp:24:63: error: 'add' cannot be used as a function
  __int128 tp = sub(mul(mul(n, mul(n+1, n+1)), add(mul(2, n), 1)) * qpow(6, P-2), mul(mul(n, n),mul(n+1, n+1))*qpow(4, P-2)); 
                                                               ^
0_0_36449352_17954.cpp:25:75: error: 'add' cannot be used as a function
  ll mi = add(mul(mul(n+1, n+1),mul(n, n)) * qpow(4, P-2), mul(mul(add(2, n), sub(n, 1)) * qpow(2, P-2), tp));
                                                                           ^
0_0_36449352_17954.cpp:25:108: error: 'add' cannot be used as a function
  ll mi = add(mul(mul(n+1, n+1),mul(n, n)) * qpow(4, P-2), mul(mul(add(2, n), sub(n, 1)) * qpow(2, P-2), tp));
                                                                                                            ^
0_0_36449352_17954.cpp:26:41: error: 'add' cannot be used as a function
  ll mx = mul(mul(mul(n, n), mul(add(n, 1), n)*qpow(2, P-2)), mul(mul(n, n+1), add(mul(2, n), 1))*qpow(6, P-2));
                                         ^
0_0_36449352_17954.cpp:26:95: error: 'add' cannot be used as a function
  ll mx = mul(mul(mul(n, n), mul(add(n, 1), n)*qpow(2, P-2)), mul(mul(n, n+1), add(mul(2, n), 1))*qpow(6, P-2));
                                                                                               ^


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-27 05:55:46, Gzip enabled