scales.cpp: In function 'void init(int)':
scales.cpp:20:15: warning: unused parameter 'T' [-Wunused-parameter]
20 | void init(int T) {
| ~~~~^
scales.cpp: In function 'void orderCoins()':
scales.cpp:36: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]
36 | W[1] = getLightest(t2, a1[0], a1[1]);
| ^
scales.cpp:36: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:39: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]
39 | W[1] = getLightest(t1, a2[0], a2[1]);
| ^
scales.cpp:39: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:47: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]
47 | ll res = getLightest(left[0], left[1], left[2]);
| ^
scales.cpp:47: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:47: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:50:25: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
50 | ll res2 = getMedian(res, other, left[3]);
| ^~~
scales.cpp:50:30: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
50 | ll res2 = getMedian(res, other, left[3]);
| ^~~~~
scales.cpp:50: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]
50 | ll res2 = getMedian(res, other, left[3]);
| ^
scales.cpp:52:16: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
52 | W[2] = res;
| ^~~
scales.cpp:58: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]
58 | W[3] = getLightest(left[0], left[1], left[2]);
| ^
scales.cpp:58: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:58: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:59: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]
59 | W[4] = getMedian(left[0], left[1], left[2]);
| ^
scales.cpp:59: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:59: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:63:16: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
63 | W[2] = res2;
| ^~~~
scales.cpp:64:16: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
64 | W[3] = res;
| ^~~
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:17: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
69 | W[5] = i+1;
| ~^~
/usr/bin/ld: /tmp/ccWT4glW.o: in function `main':
scales.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccUORsKW.o:grader.c:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status