it's here

for(int c=0;i<188;i++)


should be

for(int c=0;c<188;c++)