0_0_16113355_7104.cpp:127:2: error: expected initializer before 'while' while (scanf("%d", &n) == 1) solve(); ^ 0_0_16113355_7104.cpp:128:1: error: expected declaration before '}' token } ^