scales.cpp: In function 'void init(int)':
scales.cpp:26:15: warning: unused parameter 'T' [-Wunused-parameter]
26 | void init(int T) {
| ~~~~^
scales.cpp: In function 'void orderCoins()':
scales.cpp:42: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]
42 | W[1] = getLightest(t2, a1[0], a1[1]);
| ^
scales.cpp:42: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:45: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]
45 | W[1] = getLightest(t1, a2[0], a2[1]);
| ^
scales.cpp:45: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:53:51: 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]
53 | ll res = getLightest(left[0], left[1], left[2]);
| ^
scales.cpp:53:51: 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:53:51: 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:56:25: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
56 | ll res2 = getMedian(res, other, left[3]);
| ^~~
scales.cpp:56:30: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
56 | ll res2 = getMedian(res, other, left[3]);
| ^~~~~
scales.cpp:56: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]
56 | ll res2 = getMedian(res, other, left[3]);
| ^
scales.cpp:58:16: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
58 | W[2] = res;
| ^~~
scales.cpp:64:53: 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]
64 | W[3] = getLightest(left[0], left[1], left[2]);
| ^
scales.cpp:64:53: 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:64:53: 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:65:51: 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]
65 | W[4] = getMedian(left[0], left[1], left[2]);
| ^
scales.cpp:65:51: 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:65:51: 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:16: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
69 | W[2] = res2;
| ^~~~
scales.cpp:70:16: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
70 | W[3] = res;
| ^~~
scales.cpp:71:51: 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 | W[4] = getMedian(left[0], left[1], left[2]);
| ^
scales.cpp:71:51: 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:51: 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:17: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
75 | W[5] = i+1;
| ~^~
/usr/bin/ld: /tmp/ccgkXqfY.o: in function `orderCoins()':
scales.cpp:(.text+0x6e): undefined reference to `getLightest(int, int, int)'
/usr/bin/ld: scales.cpp:(.text+0x85): undefined reference to `getLightest(int, int, int)'
/usr/bin/ld: scales.cpp:(.text+0x160): undefined reference to `getLightest(int, int, int)'
/usr/bin/ld: scales.cpp:(.text+0x190): undefined reference to `getLightest(int, int, int)'
/usr/bin/ld: scales.cpp:(.text+0x21b): undefined reference to `getLightest(int, int, int)'
/usr/bin/ld: scales.cpp:(.text+0x242): undefined reference to `getMedian(int, int, int)'
/usr/bin/ld: scales.cpp:(.text+0x2e0): undefined reference to `getLightest(int, int, int)'
/usr/bin/ld: scales.cpp:(.text+0x2fc): undefined reference to `getMedian(int, int, int)'
/usr/bin/ld: scales.cpp:(.text+0x382): undefined reference to `answer(int*)'
/usr/bin/ld: scales.cpp:(.text+0x42f): undefined reference to `getMedian(int, int, int)'
/usr/bin/ld: scales.cpp:(.text+0x459): undefined reference to `getLightest(int, int, int)'
/usr/bin/ld: /tmp/ccEkgrSV.o: in function `main':
grader.c:(.text.startup+0x7e): undefined reference to `init'
/usr/bin/ld: grader.c:(.text.startup+0xfb): undefined reference to `orderCoins'
collect2: error: ld returned 1 exit status