Bruno.cpp: In function 'std::vector<int> Bruno(int, std::vector<int>)':
Bruno.cpp:17:13: error: reference to 'sample' is ambiguous
17 | sample[i][f]=1;
| ^~~~~~
Bruno.cpp:10:5: note: candidates are: 'int {anonymous}::sample [8][8]'
10 | int sample[8][8];
| ^~~~~~
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from Bruno.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:5854:5: note: 'template<class _PopulationIterator, class _SampleIterator, class _Distance, class _UniformRandomBitGenerator> _SampleIterator std::sample(_PopulationIterator, _PopulationIterator, _SampleIterator, _Distance, _UniformRandomBitGenerator&&)'
5854 | sample(_PopulationIterator __first, _PopulationIterator __last,
| ^~~~~~
Bruno.cpp:18:13: error: reference to 'sample' is ambiguous
18 | sample[i][f+1]=2;
| ^~~~~~
Bruno.cpp:10:5: note: candidates are: 'int {anonymous}::sample [8][8]'
10 | int sample[8][8];
| ^~~~~~
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from Bruno.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:5854:5: note: 'template<class _PopulationIterator, class _SampleIterator, class _Distance, class _UniformRandomBitGenerator> _SampleIterator std::sample(_PopulationIterator, _PopulationIterator, _SampleIterator, _Distance, _UniformRandomBitGenerator&&)'
5854 | sample(_PopulationIterator __first, _PopulationIterator __last,
| ^~~~~~
Bruno.cpp:19:13: error: reference to 'sample' is ambiguous
19 | sample[i][f+2]=3;
| ^~~~~~
Bruno.cpp:10:5: note: candidates are: 'int {anonymous}::sample [8][8]'
10 | int sample[8][8];
| ^~~~~~
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from Bruno.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:5854:5: note: 'template<class _PopulationIterator, class _SampleIterator, class _Distance, class _UniformRandomBitGenerator> _SampleIterator std::sample(_PopulationIterator, _PopulationIterator, _SampleIterator, _Distance, _UniformRandomBitGenerator&&)'
5854 | sample(_PopulationIterator __first, _PopulationIterator __last,
| ^~~~~~
Bruno.cpp:21:13: error: reference to 'sample' is ambiguous
21 | sample[i+1][f]=4;
| ^~~~~~
Bruno.cpp:10:5: note: candidates are: 'int {anonymous}::sample [8][8]'
10 | int sample[8][8];
| ^~~~~~
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from Bruno.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:5854:5: note: 'template<class _PopulationIterator, class _SampleIterator, class _Distance, class _UniformRandomBitGenerator> _SampleIterator std::sample(_PopulationIterator, _PopulationIterator, _SampleIterator, _Distance, _UniformRandomBitGenerator&&)'
5854 | sample(_PopulationIterator __first, _PopulationIterator __last,
| ^~~~~~
Bruno.cpp:22:13: error: reference to 'sample' is ambiguous
22 | sample[i+1][f+1]=5;
| ^~~~~~
Bruno.cpp:10:5: note: candidates are: 'int {anonymous}::sample [8][8]'
10 | int sample[8][8];
| ^~~~~~
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from Bruno.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:5854:5: note: 'template<class _PopulationIterator, class _SampleIterator, class _Distance, class _UniformRandomBitGenerator> _SampleIterator std::sample(_PopulationIterator, _PopulationIterator, _SampleIterator, _Distance, _UniformRandomBitGenerator&&)'
5854 | sample(_PopulationIterator __first, _PopulationIterator __last,
| ^~~~~~
Bruno.cpp:23:13: error: reference to 'sample' is ambiguous
23 | sample[i+1][f+2]=6;
| ^~~~~~
Bruno.cpp:10:5: note: candidates are: 'int {anonymous}::sample [8][8]'
10 | int sample[8][8];
| ^~~~~~
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from Bruno.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:5854:5: note: 'template<class _PopulationIterator, class _SampleIterator, class _Distance, class _UniformRandomBitGenerator> _SampleIterator std::sample(_PopulationIterator, _PopulationIterator, _SampleIterator, _Distance, _UniformRandomBitGenerator&&)'
5854 | sample(_PopulationIterator __first, _PopulationIterator __last,
| ^~~~~~
Bruno.cpp:25:13: error: reference to 'sample' is ambiguous
25 | sample[i+2][f]=7;
| ^~~~~~
Bruno.cpp:10:5: note: candidates are: 'int {anonymous}::sample [8][8]'
10 | int sample[8][8];
| ^~~~~~
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from Bruno.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:5854:5: note: 'template<class _PopulationIterator, class _SampleIterator, class _Distance, class _UniformRandomBitGenerator> _SampleIterator std::sample(_PopulationIterator, _PopulationIterator, _SampleIterator, _Distance, _UniformRandomBitGenerator&&)'
5854 | sample(_PopulationIterator __first, _PopulationIterator __last,
| ^~~~~~
Bruno.cpp:26:13: error: reference to 'sample' is ambiguous
26 | sample[i+2][f+1]=-1;
| ^~~~~~
Bruno.cpp:10:5: note: candidates are: 'int {anonymous}::sample [8][8]'
10 | int sample[8][8];
| ^~~~~~
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from Bruno.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:5854:5: note: 'template<class _PopulationIterator, class _SampleIterator, class _Distance, class _UniformRandomBitGenerator> _SampleIterator std::sample(_PopulationIterator, _PopulationIterator, _SampleIterator, _Distance, _UniformRandomBitGenerator&&)'
5854 | sample(_PopulationIterator __first, _PopulationIterator __last,
| ^~~~~~
Bruno.cpp:27:13: error: reference to 'sample' is ambiguous
27 | sample[i+2][f+2]=-1;
| ^~~~~~
Bruno.cpp:10:5: note: candidates are: 'int {anonymous}::sample [8][8]'
10 | int sample[8][8];
| ^~~~~~
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from Bruno.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:5854:5: note: 'template<class _PopulationIterator, class _SampleIterator, class _Distance, class _UniformRandomBitGenerator> _SampleIterator std::sample(_PopulationIterator, _PopulationIterator, _SampleIterator, _Distance, _UniformRandomBitGenerator&&)'
5854 | sample(_PopulationIterator __first, _PopulationIterator __last,
| ^~~~~~
Bruno.cpp:31:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | for(int i=0;i<value.size();i++){
| ~^~~~~~~~~~~~~
Bruno.cpp:41:44: error: reference to 'sample' is ambiguous
41 | if(table[k][t]==14 and sample[i+k-1][f+t-1]!=-1)dali=false;
| ^~~~~~
Bruno.cpp:10:5: note: candidates are: 'int {anonymous}::sample [8][8]'
10 | int sample[8][8];
| ^~~~~~
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from Bruno.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:5854:5: note: 'template<class _PopulationIterator, class _SampleIterator, class _Distance, class _UniformRandomBitGenerator> _SampleIterator std::sample(_PopulationIterator, _PopulationIterator, _SampleIterator, _Distance, _UniformRandomBitGenerator&&)'
5854 | sample(_PopulationIterator __first, _PopulationIterator __last,
| ^~~~~~
Bruno.cpp:51:30: error: reference to 'sample' is ambiguous
51 | to[k][t]=sample[i+k-1][f+t-1];
| ^~~~~~
Bruno.cpp:10:5: note: candidates are: 'int {anonymous}::sample [8][8]'
10 | int sample[8][8];
| ^~~~~~
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from Bruno.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:5854:5: note: 'template<class _PopulationIterator, class _SampleIterator, class _Distance, class _UniformRandomBitGenerator> _SampleIterator std::sample(_PopulationIterator, _PopulationIterator, _SampleIterator, _Distance, _UniformRandomBitGenerator&&)'
5854 | sample(_PopulationIterator __first, _PopulationIterator __last,
| ^~~~~~
Bruno.cpp: At global scope:
Bruno.cpp:10:5: warning: '{anonymous}::sample' defined but not used [-Wunused-variable]
10 | int sample[8][8];
| ^~~~~~
Bruno.cpp:7:28: warning: '{anonymous}::y' defined but not used [-Wunused-variable]
7 | int num[8],shiftx,shifty,x,y;
| ^
Bruno.cpp:7:26: warning: '{anonymous}::x' defined but not used [-Wunused-variable]
7 | int num[8],shiftx,shifty,x,y;
| ^
Bruno.cpp:7:5: warning: '{anonymous}::num' defined but not used [-Wunused-variable]
7 | int num[8],shiftx,shifty,x,y;
| ^~~