>258
#include <stdio.h> ってあるから
std::cout << "i: " << i << " i*i: " << i*i << std::endl;
でなくて、
printf("i:%d i*i:%d\n",i,i*i);
でないか。