Problem link: http://www.lightoj.com/volume_showproblem.php?problem=1000
Solution:
This is a EOF related problem.
#include<stdio.h>
int main()
{
int counter,t,a,b,sum,i;
counter=0;
scanf("%d",&t);
for(i=0;i<t;i++)
{
scanf("%d %d",&a,&b);
sum=a+b;++counter;
printf("Case %d: %d\n",counter,sum);
}
return 0;
}