scales.cpp: In function 'void init(int)':
scales.cpp:4:15: warning: unused parameter 'T' [-Wunused-parameter]
4 | void init(int T) {
| ~~~~^
scales.cpp: In function 'void orderCoins()':
scales.cpp:93:38: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long int>, long int>::value_type' {aka 'long int'} to 'int' may change value [-Wconversion]
93 | long z=getMedian(v[2],v[3],ans[0]);
| ^
scales.cpp:93:38: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long int>, long int>::value_type' {aka 'long int'} to 'int' may change value [-Wconversion]
scales.cpp:93:38: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long int>, long int>::value_type' {aka 'long int'} to 'int' may change value [-Wconversion]
scales.cpp:94:35: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long int>, long int>::value_type' {aka 'long int'} to 'int' may change value [-Wconversion]
94 | long x=getLightest(v[0],v[1],z);
| ^
scales.cpp:94:35: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long int>, long int>::value_type' {aka 'long int'} to 'int' may change value [-Wconversion]
scales.cpp:94:34: warning: conversion from 'long int' to 'int' may change value [-Wconversion]
94 | long x=getLightest(v[0],v[1],z);
| ^
scales.cpp:103:33: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long int>, long int>::value_type' {aka 'long int'} to 'int' may change value [-Wconversion]
103 | o=getLightest(v[0],v[1],v[2]);
| ^
scales.cpp:103:33: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long int>, long int>::value_type' {aka 'long int'} to 'int' may change value [-Wconversion]
scales.cpp:103:33: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long int>, long int>::value_type' {aka 'long int'} to 'int' may change value [-Wconversion]
scales.cpp:104:34: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long int>, long int>::value_type' {aka 'long int'} to 'int' may change value [-Wconversion]
104 | oo=getHeaviest(v[0],v[1],v[2]);
| ^
scales.cpp:104:34: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long int>, long int>::value_type' {aka 'long int'} to 'int' may change value [-Wconversion]
scales.cpp:104:34: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long int>, long int>::value_type' {aka 'long int'} to 'int' may change value [-Wconversion]
scales.cpp:118:15: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long int>, long int>::value_type' {aka 'long int'} to 'int' may change value [-Wconversion]
118 | W[i]=ans[i];
| ^