scales.cpp: In function 'void orderCoins()':
scales.cpp:31:24: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
31 | ll c = getHeaviest(a, b, 2);
| ^
scales.cpp:31:27: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
31 | ll c = getHeaviest(a, b, 2);
| ^
scales.cpp:33:12: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
33 | w[5] = c;
| ^
scales.cpp:39:30: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
39 | a4 = getHeaviest(b, 2, 3);
| ^
scales.cpp:41:30: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
41 | a4 = getHeaviest(b, 1, 3);
| ^
scales.cpp:43:30: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
43 | a4 = getHeaviest(b, 2, 3);
| ^
scales.cpp:47:30: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
47 | a4 = getHeaviest(a, 5, 6);
| ^
scales.cpp:49:30: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
49 | a4 = getHeaviest(a, 4, 6);
| ^
scales.cpp:51:30: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
51 | a4 = getHeaviest(a, 4, 5);
| ^
scales.cpp:54:12: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
54 | w[4] = a4;
| ^~
scales.cpp:66:41: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' may change value [-Wconversion]
66 | ll a5 = getHeaviest(v[0], v[1], v[2]);
| ^
scales.cpp:66:41: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' may change value [-Wconversion]
scales.cpp:66:41: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' may change value [-Wconversion]
scales.cpp:69:27: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
69 | a66 = getHeaviest(a5, v[2], v[3]);
| ^~
scales.cpp:69:41: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' may change value [-Wconversion]
69 | a66 = getHeaviest(a5, v[2], v[3]);
| ^
scales.cpp:69:41: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' may change value [-Wconversion]
scales.cpp:71:27: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
71 | a66 = getHeaviest(a5, v[2], v[3]);
| ^~
scales.cpp:71:41: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' may change value [-Wconversion]
71 | a66 = getHeaviest(a5, v[2], v[3]);
| ^
scales.cpp:71:41: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' may change value [-Wconversion]
scales.cpp:73:27: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
73 | a66 = getHeaviest(a5, v[1], v[3]);
| ^~
scales.cpp:73:41: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' may change value [-Wconversion]
73 | a66 = getHeaviest(a5, v[1], v[3]);
| ^
scales.cpp:73:41: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' may change value [-Wconversion]
scales.cpp:75:12: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
75 | w[3] = a66;
| ^~~
scales.cpp:84:44: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' may change value [-Wconversion]
84 | ll a7 = getHeaviest(v1[0], v1[1], v1[2]);
| ^
scales.cpp:84:44: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' may change value [-Wconversion]
scales.cpp:84:44: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' may change value [-Wconversion]
scales.cpp:85:44: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' may change value [-Wconversion]
85 | ll a8 = getLightest(v1[0], v1[1], v1[2]);
| ^
scales.cpp:85:44: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' may change value [-Wconversion]
scales.cpp:85:44: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' may change value [-Wconversion]
scales.cpp:89:20: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
89 | w[2] = a7;
| ^~
scales.cpp:91:20: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
91 | w[0] = a8;
| ^~
scales.cpp:93:24: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' may change value [-Wconversion]
93 | w[1] = v1[i];
| ^