scales.cpp:49:5: warning: "/*" within comment [-Wcomment]
/*cout<<"test\n";
scales.cpp: In function 'void init(int)':
scales.cpp:9:35: warning: declaration of '_b' shadows a previous local [-Wshadow]
#define forinc(i,a,b) for(int i=a,_b=b;i<=_b;++i)
^
scales.cpp:66:19: note: in expansion of macro 'forinc'
forinc(A,1,6) forinc(B,A+1,6) forinc(C,B+1,6)
^~~~~~
scales.cpp:9:35: note: shadowed declaration is here
#define forinc(i,a,b) for(int i=a,_b=b;i<=_b;++i)
^
scales.cpp:66:5: note: in expansion of macro 'forinc'
forinc(A,1,6) forinc(B,A+1,6) forinc(C,B+1,6)
^~~~~~
scales.cpp:9:35: warning: declaration of '_b' shadows a previous local [-Wshadow]
#define forinc(i,a,b) for(int i=a,_b=b;i<=_b;++i)
^
scales.cpp:66:35: note: in expansion of macro 'forinc'
forinc(A,1,6) forinc(B,A+1,6) forinc(C,B+1,6)
^~~~~~
scales.cpp:9:35: note: shadowed declaration is here
#define forinc(i,a,b) for(int i=a,_b=b;i<=_b;++i)
^
scales.cpp:66:19: note: in expansion of macro 'forinc'
forinc(A,1,6) forinc(B,A+1,6) forinc(C,B+1,6)
^~~~~~
scales.cpp:9:35: warning: declaration of '_b' shadows a previous local [-Wshadow]
#define forinc(i,a,b) for(int i=a,_b=b;i<=_b;++i)
^
scales.cpp:68:9: note: in expansion of macro 'forinc'
forinc(i,1,6) if(A==i||B==i||C==i) q[++cnt]={1,A,B,C,0,i};
^~~~~~
scales.cpp:9:35: note: shadowed declaration is here
#define forinc(i,a,b) for(int i=a,_b=b;i<=_b;++i)
^
scales.cpp:66:35: note: in expansion of macro 'forinc'
forinc(A,1,6) forinc(B,A+1,6) forinc(C,B+1,6)
^~~~~~
scales.cpp:9:35: warning: declaration of '_b' shadows a previous local [-Wshadow]
#define forinc(i,a,b) for(int i=a,_b=b;i<=_b;++i)
^
scales.cpp:69:9: note: in expansion of macro 'forinc'
forinc(i,1,6) if(A==i||B==i||C==i) q[++cnt]={2,A,B,C,0,i};
^~~~~~
scales.cpp:9:35: note: shadowed declaration is here
#define forinc(i,a,b) for(int i=a,_b=b;i<=_b;++i)
^
scales.cpp:66:35: note: in expansion of macro 'forinc'
forinc(A,1,6) forinc(B,A+1,6) forinc(C,B+1,6)
^~~~~~
scales.cpp:9:35: warning: declaration of '_b' shadows a previous local [-Wshadow]
#define forinc(i,a,b) for(int i=a,_b=b;i<=_b;++i)
^
scales.cpp:70:9: note: in expansion of macro 'forinc'
forinc(i,1,6) if(A==i||B==i||C==i) q[++cnt]={3,A,B,C,0,i};
^~~~~~
scales.cpp:9:35: note: shadowed declaration is here
#define forinc(i,a,b) for(int i=a,_b=b;i<=_b;++i)
^
scales.cpp:66:35: note: in expansion of macro 'forinc'
forinc(A,1,6) forinc(B,A+1,6) forinc(C,B+1,6)
^~~~~~
scales.cpp:9:35: warning: declaration of '_b' shadows a previous local [-Wshadow]
#define forinc(i,a,b) for(int i=a,_b=b;i<=_b;++i)
^
scales.cpp:72:19: note: in expansion of macro 'forinc'
forinc(D,1,6) forinc(A,1,6) forinc(B,A+1,6) forinc(C,B+1,6)
^~~~~~
scales.cpp:9:35: note: shadowed declaration is here
#define forinc(i,a,b) for(int i=a,_b=b;i<=_b;++i)
^
scales.cpp:72:5: note: in expansion of macro 'forinc'
forinc(D,1,6) forinc(A,1,6) forinc(B,A+1,6) forinc(C,B+1,6)
^~~~~~
scales.cpp:9:35: warning: declaration of '_b' shadows a previous local [-Wshadow]
#define forinc(i,a,b) for(int i=a,_b=b;i<=_b;++i)
^
scales.cpp:72:33: note: in expansion of macro 'forinc'
forinc(D,1,6) forinc(A,1,6) forinc(B,A+1,6) forinc(C,B+1,6)
^~~~~~
scales.cpp:9:35: note: shadowed declaration is here
#define forinc(i,a,b) for(int i=a,_b=b;i<=_b;++i)
^
scales.cpp:72:19: note: in expansion of macro 'forinc'
forinc(D,1,6) forinc(A,1,6) forinc(B,A+1,6) forinc(C,B+1,6)
^~~~~~
scales.cpp:9:35: warning: declaration of '_b' shadows a previous local [-Wshadow]
#define forinc(i,a,b) for(int i=a,_b=b;i<=_b;++i)
^
scales.cpp:72:49: note: in expansion of macro 'forinc'
forinc(D,1,6) forinc(A,1,6) forinc(B,A+1,6) forinc(C,B+1,6)
^~~~~~
scales.cpp:9:35: note: shadowed declaration is here
#define forinc(i,a,b) for(int i=a,_b=b;i<=_b;++i)
^
scales.cpp:72:33: note: in expansion of macro 'forinc'
forinc(D,1,6) forinc(A,1,6) forinc(B,A+1,6) forinc(C,B+1,6)
^~~~~~
scales.cpp:9:35: warning: declaration of '_b' shadows a previous local [-Wshadow]
#define forinc(i,a,b) for(int i=a,_b=b;i<=_b;++i)
^
scales.cpp:73:26: note: in expansion of macro 'forinc'
if(A!=D&&B!=D&&C!=D) forinc(i,1,6) if(A==i||B==i||C==i) q[++cnt]={4,A,B,C,D,i};
^~~~~~
scales.cpp:9:35: note: shadowed declaration is here
#define forinc(i,a,b) for(int i=a,_b=b;i<=_b;++i)
^
scales.cpp:72:49: note: in expansion of macro 'forinc'
forinc(D,1,6) forinc(A,1,6) forinc(B,A+1,6) forinc(C,B+1,6)
^~~~~~
scales.cpp:9:35: warning: declaration of '_b' shadows a previous local [-Wshadow]
#define forinc(i,a,b) for(int i=a,_b=b;i<=_b;++i)
^
scales.cpp:74:21: note: in expansion of macro 'forinc'
forinc(i,1,720) forinc(j,1,360)
^~~~~~
scales.cpp:9:35: note: shadowed declaration is here
#define forinc(i,a,b) for(int i=a,_b=b;i<=_b;++i)
^
scales.cpp:74:5: note: in expansion of macro 'forinc'
forinc(i,1,720) forinc(j,1,360)
^~~~~~
scales.cpp:55:15: warning: unused parameter 'T' [-Wunused-parameter]
void init(int T)
^
scales.cpp: In function 'void orderCoins()':
scales.cpp:131:17: warning: declaration of 'a' shadows a global declaration [-Wshadow]
vector<int> a;
^
scales.cpp:24:5: note: shadowed declaration is here
int a[N],p[M][N],kt[M][M],res;
^
scales.cpp:139:20: warning: declaration of 'j' shadows a previous local [-Wshadow]
forinc(j,0,2)
^
scales.cpp:9:31: note: in definition of macro 'forinc'
#define forinc(i,a,b) for(int i=a,_b=b;i<=_b;++i)
^
scales.cpp:135:22: note: shadowed declaration is here
int ret=1000,j;
^
scales.cpp:9:35: warning: declaration of '_b' shadows a previous local [-Wshadow]
#define forinc(i,a,b) for(int i=a,_b=b;i<=_b;++i)
^
scales.cpp:139:13: note: in expansion of macro 'forinc'
forinc(j,0,2)
^~~~~~
scales.cpp:9:35: note: shadowed declaration is here
#define forinc(i,a,b) for(int i=a,_b=b;i<=_b;++i)
^
scales.cpp:136:9: note: in expansion of macro 'forinc'
forinc(i,1,360) if(i%3==1)
^~~~~~
scales.cpp:154:20: warning: declaration of 'j' shadows a previous local [-Wshadow]
forinc(j,0,2) if(q[i+j].E==E)
^
scales.cpp:9:31: note: in definition of macro 'forinc'
#define forinc(i,a,b) for(int i=a,_b=b;i<=_b;++i)
^
scales.cpp:135:22: note: shadowed declaration is here
int ret=1000,j;
^
scales.cpp:9:35: warning: declaration of '_b' shadows a previous local [-Wshadow]
#define forinc(i,a,b) for(int i=a,_b=b;i<=_b;++i)
^
scales.cpp:154:13: note: in expansion of macro 'forinc'
forinc(j,0,2) if(q[i+j].E==E)
^~~~~~
scales.cpp:9:35: note: shadowed declaration is here
#define forinc(i,a,b) for(int i=a,_b=b;i<=_b;++i)
^
scales.cpp:152:9: note: in expansion of macro 'forinc'
forinc(i,1,360) if(i==j)
^~~~~~
scales.cpp:154:27: warning: 'E' may be used uninitialized in this function [-Wmaybe-uninitialized]
forinc(j,0,2) if(q[i+j].E==E)
^~
scales.cpp:147:51: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized]
int it=q[j].it,A=q[j].A,B=q[j].B,C=q[j].C,D=q[j].D,E;
^