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_22746096_263.cpp:27:21: error: ""input.txt"" may not appear in macro parameter list
 #define readfreopen("input.txt","r",stdin)
                     ^
0_0_22746096_263.cpp:28:22: error: ""output.txt"" may not appear in macro parameter list
 #define writefreopen("output.txt","w",stdout)
                      ^
0_0_22746096_263.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_22746096_263.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_22746096_263.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_22746096_263.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_22746096_263.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_22746096_263.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_22746096_263.cpp:59:11: error: 'typenameT' has not been declared
 template <typenameT> Tmodinv(Tnum,Tm) {return bigmod(num,m-2,m);}
           ^
0_0_22746096_263.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_22746096_263.cpp: In function 'int main()':
0_0_22746096_263.cpp:47:21: error: 'LLi' was not declared in this scope
 #define fr(i,n) for(LLi=0;i<n;i++)
                     ^
0_0_22746096_263.cpp:88:9: note: in expansion of macro 'fr'
         fr(i,n)
         ^
0_0_22746096_263.cpp:88:12: error: 'i' was not declared in this scope
         fr(i,n)
            ^
0_0_22746096_263.cpp:47:27: note: in definition of macro 'fr'
 #define fr(i,n) for(LLi=0;i<n;i++)
                           ^
0_0_22746096_263.cpp:47:21: error: 'LLi' was not declared in this scope
 #define fr(i,n) for(LLi=0;i<n;i++)
                     ^
0_0_22746096_263.cpp:99:9: note: in expansion of macro 'fr'
         fr(i,n)
         ^
0_0_22746096_263.cpp:99:12: error: 'i' was not declared in this scope
         fr(i,n)
            ^
0_0_22746096_263.cpp:47:27: note: in definition of macro 'fr'
 #define fr(i,n) for(LLi=0;i<n;i++)
                           ^


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-16 05:10:21, Gzip enabled