icc.cpp: In function 'int tanya(std::vector<int>, std::vector<int>)':
icc.cpp:25:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<a.size();i++)
~^~~~~~~~~
icc.cpp:27:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<b.size();i++)
~^~~~~~~~~
icc.cpp: In function 'void print(std::vector<int>)':
icc.cpp:34:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<arr.size();i++)
~^~~~~~~~~~~
icc.cpp: In function 'void perkecil(std::vector<int>&, const std::vector<int>&)':
icc.cpp:53:21: error: no matching function for call to 'random_shuffle(std::vector<int>&)'
random_shuffle(now);
^
In file included from /usr/include/c++/7/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:65,
from icc.cpp:2:
/usr/include/c++/7/bits/stl_algo.h:4568:5: note: candidate: template<class _RAIter> void std::random_shuffle(_RAIter, _RAIter)
random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last)
^~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_algo.h:4568:5: note: template argument deduction/substitution failed:
icc.cpp:53:21: note: candidate expects 2 arguments, 1 provided
random_shuffle(now);
^
In file included from /usr/include/c++/7/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:65,
from icc.cpp:2:
/usr/include/c++/7/bits/stl_algo.h:4603:5: note: candidate: template<class _RAIter, class _Generator> void std::random_shuffle(_RAIter, _RAIter, _Generator&&)
random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last,
^~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_algo.h:4603:5: note: template argument deduction/substitution failed:
icc.cpp:53:21: note: candidate expects 3 arguments, 1 provided
random_shuffle(now);
^
icc.cpp:55:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=now.size()/2;i<now.size();i++)
~^~~~~~~~~~~
icc.cpp: In function 'void bagiDua(std::vector<int>&, int&, std::vector<std::vector<int> >&)':
icc.cpp:71:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<vec.size();i++)
~^~~~~~~~~~~
icc.cpp: In function 'void findAnggota()':
icc.cpp:108:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<baru.size();i++)
~^~~~~~~~~~~~