nextnextnext数组定义时千万不能写作
... int next[1000001]; ...
因为nextnextnext在洛谷系统里会报编译错(与系统名重名了),写作nxtnxtnxt,nexnexnex,kmpkmpkmp数组都行、
惨痛的教训