La for che hai scritto

for (cont=1; cont=100; cont ++)

non è corretta.

Volevi forse scrivere

for (cont=0; cont<100; cont++)