scales.cpp: In function 'void init(int)':
scales.cpp:5:15: warning: unused parameter 'T' [-Wunused-parameter]
void init(int T) {
^
scales.cpp: In function 'void orderCoins()':
scales.cpp:53:7: warning: declaration of 'res' shadows a previous local [-Wshadow]
int res=getMedian(a[2],b[1],a[3]);
^~~
scales.cpp:39:6: note: shadowed declaration is here
int res=getMedian(a[1],a[2],b[1]);
^~~
scales.cpp:54:45: warning: declaration of 'W' shadows a global declaration [-Wshadow]
if(res==a[3])array<int,6> w={1,2,4,3,5,6},W=w;
^
scales.cpp:10:14: note: shadowed declaration is here
array<int,6> W;
^
scales.cpp:54:45: warning: variable 'W' set but not used [-Wunused-but-set-variable]
if(res==a[3])array<int,6> w={1,2,4,3,5,6},W=w;
^
scales.cpp:55:50: warning: declaration of 'W' shadows a global declaration [-Wshadow]
else if(res==b[1])array<int,6> w={1,2,3,4,5,6},W=w;
^
scales.cpp:10:14: note: shadowed declaration is here
array<int,6> W;
^
scales.cpp:55:50: warning: variable 'W' set but not used [-Wunused-but-set-variable]
else if(res==b[1])array<int,6> w={1,2,3,4,5,6},W=w;
^
scales.cpp:59:8: warning: declaration of 'res' shadows a previous local [-Wshadow]
int res;
^~~
scales.cpp:53:7: note: shadowed declaration is here
int res=getMedian(a[2],b[1],a[3]);
^~~
scales.cpp:72:32: warning: declaration of 'W' shadows a global declaration [-Wshadow]
array<int,6> w={1,2,3,5,4,6},W=w;
^
scales.cpp:10:14: note: shadowed declaration is here
array<int,6> W;
^
scales.cpp:76:8: warning: declaration of 'res' shadows a previous local [-Wshadow]
int res;
^~~
scales.cpp:39:6: note: shadowed declaration is here
int res=getMedian(a[1],a[2],b[1]);
^~~
scales.cpp:88:32: warning: declaration of 'W' shadows a global declaration [-Wshadow]
array<int,6> w={1,2,3,5,6,4},W=w;
^
scales.cpp:10:14: note: shadowed declaration is here
array<int,6> W;
^
scales.cpp:92:8: warning: declaration of 'res' shadows a previous local [-Wshadow]
int res;
^~~
scales.cpp:39:6: note: shadowed declaration is here
int res=getMedian(a[1],a[2],b[1]);
^~~
scales.cpp:104:32: warning: declaration of 'W' shadows a global declaration [-Wshadow]
array<int,6> w={1,3,2,4,5,6},W=w;
^
scales.cpp:10:14: note: shadowed declaration is here
array<int,6> W;
^
scales.cpp:108:8: warning: declaration of 'res' shadows a previous local [-Wshadow]
int res;
^~~
scales.cpp:39:6: note: shadowed declaration is here
int res=getMedian(a[1],a[2],b[1]);
^~~
scales.cpp:121:45: warning: declaration of 'W' shadows a global declaration [-Wshadow]
if(res==b[2])array<int,6> w={1,3,5,2,4,6},W=w;
^
scales.cpp:10:14: note: shadowed declaration is here
array<int,6> W;
^
scales.cpp:121:45: warning: variable 'W' set but not used [-Wunused-but-set-variable]
if(res==b[2])array<int,6> w={1,3,5,2,4,6},W=w;
^
scales.cpp:122:50: warning: declaration of 'W' shadows a global declaration [-Wshadow]
else if(res==a[2])array<int,6> w={1,3,2,5,4,6},W=w;
^
scales.cpp:10:14: note: shadowed declaration is here
array<int,6> W;
^
scales.cpp:122:50: warning: variable 'W' set but not used [-Wunused-but-set-variable]
else if(res==a[2])array<int,6> w={1,3,2,5,4,6},W=w;
^
scales.cpp:126:8: warning: declaration of 'res' shadows a previous local [-Wshadow]
int res;
^~~
scales.cpp:39:6: note: shadowed declaration is here
int res=getMedian(a[1],a[2],b[1]);
^~~
scales.cpp:139:45: warning: declaration of 'W' shadows a global declaration [-Wshadow]
if(res==a[2])array<int,6> w={1,3,5,2,6,4},W=w;
^
scales.cpp:10:14: note: shadowed declaration is here
array<int,6> W;
^
scales.cpp:139:45: warning: variable 'W' set but not used [-Wunused-but-set-variable]
if(res==a[2])array<int,6> w={1,3,5,2,6,4},W=w;
^
scales.cpp:140:50: warning: declaration of 'W' shadows a global declaration [-Wshadow]
else if(res==b[2])array<int,6> w={1,3,2,5,6,4},W=w;
^
scales.cpp:10:14: note: shadowed declaration is here
array<int,6> W;
^
scales.cpp:140:50: warning: variable 'W' set but not used [-Wunused-but-set-variable]
else if(res==b[2])array<int,6> w={1,3,2,5,6,4},W=w;
^
scales.cpp:141:50: warning: declaration of 'W' shadows a global declaration [-Wshadow]
else if(res==b[3])array<int,6> w={1,3,5,6,2,4},W=w;
^
scales.cpp:10:14: note: shadowed declaration is here
array<int,6> W;
^
scales.cpp:141:50: warning: variable 'W' set but not used [-Wunused-but-set-variable]
else if(res==b[3])array<int,6> w={1,3,5,6,2,4},W=w;
^
scales.cpp:145:8: warning: declaration of 'res' shadows a previous local [-Wshadow]
int res;
^~~
scales.cpp:39:6: note: shadowed declaration is here
int res=getMedian(a[1],a[2],b[1]);
^~~
scales.cpp:157:32: warning: declaration of 'W' shadows a global declaration [-Wshadow]
array<int,6> w={3,1,2,4,5,6},W=w;
^
scales.cpp:10:14: note: shadowed declaration is here
array<int,6> W;
^
scales.cpp:161:8: warning: declaration of 'res' shadows a previous local [-Wshadow]
int res;
^~~
scales.cpp:39:6: note: shadowed declaration is here
int res=getMedian(a[1],a[2],b[1]);
^~~
scales.cpp:175:45: warning: declaration of 'W' shadows a global declaration [-Wshadow]
if(res==a[1])array<int,6> w={3,5,1,2,4,6},W=w;
^
scales.cpp:10:14: note: shadowed declaration is here
array<int,6> W;
^
scales.cpp:175:45: warning: variable 'W' set but not used [-Wunused-but-set-variable]
if(res==a[1])array<int,6> w={3,5,1,2,4,6},W=w;
^
scales.cpp:176:50: warning: declaration of 'W' shadows a global declaration [-Wshadow]
else if(res==a[2])array<int,6> w={3,1,2,5,4,6},W=w;
^
scales.cpp:10:14: note: shadowed declaration is here
array<int,6> W;
^
scales.cpp:176:50: warning: variable 'W' set but not used [-Wunused-but-set-variable]
else if(res==a[2])array<int,6> w={3,1,2,5,4,6},W=w;
^
scales.cpp:177:50: warning: declaration of 'W' shadows a global declaration [-Wshadow]
else if(res==b[2])array<int,6> w={3,1,5,2,4,6},W=w;
^
scales.cpp:10:14: note: shadowed declaration is here
array<int,6> W;
^
scales.cpp:177:50: warning: variable 'W' set but not used [-Wunused-but-set-variable]
else if(res==b[2])array<int,6> w={3,1,5,2,4,6},W=w;
^
scales.cpp:181:8: warning: declaration of 'res' shadows a previous local [-Wshadow]
int res;
^~~
scales.cpp:39:6: note: shadowed declaration is here
int res=getMedian(a[1],a[2],b[1]);
^~~
scales.cpp:173:7: warning: unused variable 'k' [-Wunused-variable]
int k[6];
^
scales.cpp:196:32: warning: declaration of 'W' shadows a global declaration [-Wshadow]
array<int,6> w={3,1,2,5,6,4},W=w;
^
scales.cpp:10:14: note: shadowed declaration is here
array<int,6> W;
^
scales.cpp:201:8: warning: declaration of 'res' shadows a previous local [-Wshadow]
int res;
^~~
scales.cpp:39:6: note: shadowed declaration is here
int res=getMedian(a[1],a[2],b[1]);
^~~
scales.cpp:36:6: warning: 'id1' may be used uninitialized in this function [-Wmaybe-uninitialized]
int id1,id2;
^~~
scales.cpp:51:18: warning: 'id2' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(id1==1 && id2==1)
~~~^~~
scales.cpp:208:10: warning: 'res' may be used uninitialized in this function [-Wmaybe-uninitialized]
ans[i]=res;
~~~~~~^~~~
scales.cpp:188:10: warning: 'res' may be used uninitialized in this function [-Wmaybe-uninitialized]
ans[i]=res;
~~~~~~^~~~
scales.cpp:168:10: warning: 'res' may be used uninitialized in this function [-Wmaybe-uninitialized]
ans[i]=res;
~~~~~~^~~~
scales.cpp:152:10: warning: 'res' may be used uninitialized in this function [-Wmaybe-uninitialized]
ans[i]=res;
~~~~~~^~~~
scales.cpp:133:10: warning: 'res' may be used uninitialized in this function [-Wmaybe-uninitialized]
ans[i]=res;
~~~~~~^~~~
scales.cpp:66:10: warning: 'res' may be used uninitialized in this function [-Wmaybe-uninitialized]
ans[i]=res;
~~~~~~^~~~