making compile with gcc main.cpp
Allow iterate to 100