coins.cpp:26:4: error: structured binding declaration cannot have type 'int'
26 | int[] coin_flips (int[] b, int c)
| ^~
coins.cpp:26:4: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
coins.cpp:26:4: error: empty structured binding declaration
coins.cpp:26:7: error: expected initializer before 'coin_flips'
26 | int[] coin_flips (int[] b, int c)
| ^~~~~~~~~~
coins.cpp:35:22: error: expected ',' or '...' before 'b'
35 | int find_coin (int[] b)
| ^
coins.cpp: In function 'int find_coin(int*)':
coins.cpp:39:21: error: 'b' was not declared in this scope
39 | if (b[i] == 1) T ^= i;
| ^
grader.cpp: In function 'void shuffle(std::vector<int>&)':
grader.cpp:88:23: warning: 'void std::random_shuffle(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator<int*, vector<int> >]' is deprecated: use 'std::shuffle' instead [-Wdeprecated-declarations]
88 | random_shuffle(v.begin(), v.end());
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/13/algorithm:61,
from grader.cpp:5:
/usr/include/c++/13/bits/stl_algo.h:4581:5: note: declared here
4581 | random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last)
| ^~~~~~~~~~~~~~