0_0_18378755_29393.cpp:39:2: error: expected initializer before 'scanf' scanf("%d", &T); ^ 0_0_18378755_29393.cpp:40:2: error: expected unqualified-id before 'while' while (T--) ^