scales.cpp: In function 'void init(int)':
scales.cpp:17:15: warning: unused parameter 'T' [-Wunused-parameter]
17 | void init(int T) {
| ~~~~^
scales.cpp: In function 'void orderCoins()':
scales.cpp:44:11: warning: declaration of 'x' shadows a previous local [-Wshadow]
44 | int x=a[i], y=b[j], z;
| ^
scales.cpp:23:9: note: shadowed declaration is here
23 | int x=getLightest(1,2,3), y=getMedian(1,2,3), z;
| ^
scales.cpp:44:19: warning: declaration of 'y' shadows a previous local [-Wshadow]
44 | int x=a[i], y=b[j], z;
| ^
scales.cpp:23:31: note: shadowed declaration is here
23 | int x=getLightest(1,2,3), y=getMedian(1,2,3), z;
| ^
scales.cpp:44:27: warning: declaration of 'z' shadows a previous local [-Wshadow]
44 | int x=a[i], y=b[j], z;
| ^
scales.cpp:23:51: note: shadowed declaration is here
23 | int x=getLightest(1,2,3), y=getMedian(1,2,3), z;
| ^
scales.cpp:26:16: warning: 'z' may be used uninitialized in this function [-Wmaybe-uninitialized]
26 | vi a={x,y,z};
| ^