Why is this code not working,

Why is this code not working, P,lease tell me asap

line 21 & 37
need to be updated to
while(q1.size() > 1)