View Code of Problem 5

#include<stdio.h>
#include<math.h>
#define MAX 100
void main()
{
	int t;
	int i,j;
	int n,m;
	int apple[MAX]={0},li[MAX]={0};
	scanf("%d",&t);
	for(i=1;i<=t;i++)
	{
		scanf("%d%d",&n,&m);
		for(j=1;j<=n;j++)
		{
			scanf("%d%d",&apple[i],&li[i]);
			if(apple[i]>apple[apple[0]])
		}

	}

}
/*
Main.c:4:6: warning: return type of 'main' is not 'int' [-Wmain]
 void main()
      ^
Main.c: In function 'main':
Main.c:18:3: error: expected expression before '}' token
   }
   ^
*/

Double click to view unformatted code.


Back to problem 5