0_0_22244800_2646.cpp:27:21: error: ""input.txt"" may not appear in macro parameter list
#define readfreopen("input.txt","r",stdin)
^
0_0_22244800_2646.cpp:28:22: error: ""output.txt"" may not appear in macro parameter list
#define writefreopen("output.txt","w",stdout)
^
0_0_22244800_2646.cpp:56:10: error: 'classT' has not been declared
template<classT> Tbigmod(Tb,Tp,Tm){if(p==0) return 1%m; Tx=b; Tans=1; while(p){ if(p&1) ans=(ans*x)%m; p>>=1; x=(x*x)%m; } return ans; }
^
0_0_22244800_2646.cpp:56:25: error: expected constructor, destructor, or type conversion before '(' token
template<classT> Tbigmod(Tb,Tp,Tm){if(p==0) return 1%m; Tx=b; Tans=1; while(p){ if(p&1) ans=(ans*x)%m; p>>=1; x=(x*x)%m; } return ans; }
^
0_0_22244800_2646.cpp:57:10: error: 'classT' has not been declared
template<classT> Tgcd(Tx, Ty){if (y==0) return x; return gcd(y,x%y);}
^
0_0_22244800_2646.cpp:57:22: error: expected constructor, destructor, or type conversion before '(' token
template<classT> Tgcd(Tx, Ty){if (y==0) return x; return gcd(y,x%y);}
^
0_0_22244800_2646.cpp:58:11: error: 'typenameT' has not been declared
template <typenameT> TPOW(Tb,Tp) { if (p == 1) return b; if (p%2 == 0) { Ts = POW(b,p/2); return s*s; } return b*POW(b,p-1);}
^
0_0_22244800_2646.cpp:58:26: error: expected constructor, destructor, or type conversion before '(' token
template <typenameT> TPOW(Tb,Tp) { if (p == 1) return b; if (p%2 == 0) { Ts = POW(b,p/2); return s*s; } return b*POW(b,p-1);}
^
0_0_22244800_2646.cpp:59:11: error: 'typenameT' has not been declared
template <typenameT> Tmodinv(Tnum,Tm) {return bigmod(num,m-2,m);}
^
0_0_22244800_2646.cpp:59:29: error: expected constructor, destructor, or type conversion before '(' token
template <typenameT> Tmodinv(Tnum,Tm) {return bigmod(num,m-2,m);}
^
0_0_22244800_2646.cpp: In function 'int main()':
0_0_22244800_2646.cpp:47:21: error: 'LLi' was not declared in this scope
#define fr(i,n) for(LLi=0;i<n;i++)
^
0_0_22244800_2646.cpp:88:9: note: in expansion of macro 'fr'
fr(i,n)
^
0_0_22244800_2646.cpp:88:12: error: 'i' was not declared in this scope
fr(i,n)
^
0_0_22244800_2646.cpp:47:27: note: in definition of macro 'fr'
#define fr(i,n) for(LLi=0;i<n;i++)
^
0_0_22244800_2646.cpp:47:21: error: 'LLi' was not declared in this scope
#define fr(i,n) for(LLi=0;i<n;i++)
^
0_0_22244800_2646.cpp:99:9: note: in expansion of macro 'fr'
fr(i,n)
^
0_0_22244800_2646.cpp:99:12: error: 'i' was not declared in this scope
fr(i,n)
^
0_0_22244800_2646.cpp:47:27: note: in definition of macro 'fr'
#define fr(i,n) for(LLi=0;i<n;i++)
^
|