Today I have tried many time to hack with generator. But Codeforces system always responsed "Generator compilation error" when I submitted my file "gen.cc", in details "g++.exe: error: gen.cpp: No such file or directory".
Finally I renamed the generator from "gen.cc" to "gg.cpp", the compilation passed. It wasted a lot of my time.