>376
4じゃなくて5?
#include <iostream>

int main()
{
for(int i=0, n = 1; i<5; i++) {
std::cout << n << "^2=" << n * n << std::endl;
n = n*10 + 1;
}
}