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));
^
|