0_0_29003032_11652.cpp:3:1: error: expected ';' before 'int' int t,n,m,k; ^ 0_0_29003032_11652.cpp: In function 'int main()': 0_0_29003032_11652.cpp:15:29: error: 'T' was not declared in this scope printf("Case #%d: %d\n",++T,(int)(ans+0.5)); ^