name lookup of 'i' changed for new ISO 'for' scoping

    for (int i = 1500; i >= 1000; i --);
    {

You've accidentally put a ; after the for line.