it says
"warning: comparison between signed and unsigned integer expressions [-Wsign-compare]"
for
"for(int j = 0; yourNum.size() > j; j++)" in the bool match() function
The problem is with your match() function. The following line:
for(int i = 11; 0 < luckyNum.size(); i--)
needs to be changed to
for(int i = 12; 0 > luckyNum.size(); i--)
The initial value of i needs to be 12 to meet the size of luckyNum and the second n third statements:
0 > luckyNum.size(); i--
state that while 0 is greater than 12, continue to subtract 1 from i for each loop iteration. So the loop will continue to iterate until i = 0 and the for loop is therefore cancelled after it has been run 12 times.