Update generator1.cpp

Compare