scales.cpp: In function 'void orderCoins()':
scales.cpp:14:31: error: cannot convert '<brace-enclosed initializer list>' to 'int'
14 | int x = getLightest({1, 2, 3});
| ^
| |
| <brace-enclosed initializer list>
In file included from scales.cpp:2:
scales.h:14:21: note: initializing argument 1 of 'int getLightest(int, int, int)'
14 | int getLightest(int A, int B, int C);
| ~~~~^
scales.cpp:15:31: error: cannot convert '<brace-enclosed initializer list>' to 'int'
15 | int y = getLightest({4, 5, 6});
| ^
| |
| <brace-enclosed initializer list>
In file included from scales.cpp:2:
scales.h:14:21: note: initializing argument 1 of 'int getLightest(int, int, int)'
14 | int getLightest(int A, int B, int C);
| ~~~~^
scales.cpp:23:29: error: cannot convert '<brace-enclosed initializer list>' to 'int'
23 | a = getLightest({x, y, aux});
| ^
| |
| <brace-enclosed initializer list>
In file included from scales.cpp:2:
scales.h:14:21: note: initializing argument 1 of 'int getLightest(int, int, int)'
14 | int getLightest(int A, int B, int C);
| ~~~~^
scales.cpp:29:12: error: 'st' was not declared in this scope; did you mean 'it'?
29 | auto it = st.begin();
| ^~
| it
scales.cpp:30:41: error: cannot convert '<brace-enclosed initializer list>' to 'int'
30 | x = getLightest({*it, *(++it), *(++it)});
| ^
| |
| <brace-enclosed initializer list>
In file included from scales.cpp:2:
scales.h:14:21: note: initializing argument 1 of 'int getLightest(int, int, int)'
14 | int getLightest(int A, int B, int C);
| ~~~~^
scales.cpp:31:39: error: cannot convert '<brace-enclosed initializer list>' to 'int'
31 | b = getLightest({x, *(++it), *(++it)});
| ^
| |
| <brace-enclosed initializer list>
In file included from scales.cpp:2:
scales.h:14:21: note: initializing argument 1 of 'int getLightest(int, int, int)'
14 | int getLightest(int A, int B, int C);
| ~~~~^
scales.cpp:38:41: error: cannot convert '<brace-enclosed initializer list>' to 'int'
38 | x = getHeaviest({*it, *(++it), *(++it)});
| ^
| |
| <brace-enclosed initializer list>
In file included from scales.cpp:2:
scales.h:13:21: note: initializing argument 1 of 'int getHeaviest(int, int, int)'
13 | int getHeaviest(int A, int B, int C);
| ~~~~^
scales.cpp:39:33: error: cannot convert '<brace-enclosed initializer list>' to 'int'
39 | z = getHeaviest({x, *(++it), a});
| ^
| |
| <brace-enclosed initializer list>
In file included from scales.cpp:2:
scales.h:13:21: note: initializing argument 1 of 'int getHeaviest(int, int, int)'
13 | int getHeaviest(int A, int B, int C);
| ~~~~^
scales.cpp:46:41: error: cannot convert '<brace-enclosed initializer list>' to 'int'
46 | c = getLightest({*it, *(++it), *(++it)});
| ^
| |
| <brace-enclosed initializer list>
In file included from scales.cpp:2:
scales.h:14:21: note: initializing argument 1 of 'int getLightest(int, int, int)'
14 | int getLightest(int A, int B, int C);
| ~~~~^
scales.cpp:52:35: error: cannot convert '<brace-enclosed initializer list>' to 'int'
52 | d = getLightest({*it, *(++it), z});
| ^
| |
| <brace-enclosed initializer list>
In file included from scales.cpp:2:
scales.h:14:21: note: initializing argument 1 of 'int getLightest(int, int, int)'
14 | int getLightest(int A, int B, int C);
| ~~~~^
scales.cpp:59:27: error: cannot convert '<brace-enclosed initializer list>' to 'int*'
59 | answer({a, b, c, d, e, z});
| ^
| |
| <brace-enclosed initializer list>
In file included from scales.cpp:2:
scales.h:10:17: note: initializing argument 1 of 'void answer(int*)'
10 | void answer(int W[]);
| ~~~~^~~