Language: C

#include<stdio.h>
struct ABC{
	int p,r,no;
};
int main()
{
	for(;;){
		int n,m,l,x,a;
		ABC d[100],s;
		for(n=0;n<100;n++){
			d[n].r=n+1;
			d[n].no=n;
			d[n].p=0;
		}
		scanf("%d%d",&n,&l);
		if(n==0&&l==0)
		break;
		for(m=0;m<n;m++){
			for(x=0;x<l;x++){
				scanf("%d",&a);
				d[x].p+=a;
			}
		}
		for(m=0;m<l;m++){
			for(x=m+1;x<l;x++){
				if(d[m].p<d[x].p){
					s.p=d[m].p;
					d[m].p=d[x].p;
					d[x].p=s.p;
					s.no=d[m].no;
					d[m].no=d[x].no;
					d[x].no=s.no;
				}
			}
		}
		for(m=0;m<l;m++){
			for(x=m+1;x<l;x++){
				if(d[m].no>d[x].no){
					s=d[m];
					d[m]=d[x];
					d[x]=s;
				}
			}
		}
		for(m=0;m<l;m++){
			printf("%d",d[m].r);
			if(m!=l-1)
			printf(" ");
		}
		printf("\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:17: error: unknown type name 'ABC'; use 'struct' keyword to refer to the type
    9 |                 ABC d[100],s;
      |                 ^~~
      |                 struct 
main.c:11:29: error: request for member 'r' in something not a structure or union
   11 |                         d[n].r=n+1;
      |                             ^
main.c:12:29: error: request for member 'no' in something not a structure or union
   12 |                         d[n].no=n;
      |                             ^
main.c:13:29: error: request for member 'p' in something not a structure or union
   13 |                         d[n].p=0;
      |                             ^
main.c:21:37: error: request for member 'p' in something not a structure or union
   21 |                                 d[x].p+=a;
      |                                     ^
main.c:26:40: error: request for member 'p' in something not a structure or union
   26 |                                 if(d[m].p<d[x].p){
      |                                        ^
main.c:26:47: error: request for member 'p' in something not a structure or union
   26 |                                 if(d[m].p<d[x].p){
      |                                               ^
main.c:27:42: error: request for member 'p' in something not a structure or union
   27 |                                         s.p=d[m].p;
      |                                          ^
main.c:27:49: error: request for member 'p' in something not a structure or union
   27 |                                         s.p=d[m].p;
      |                                                 ^
main.c:28:45: error: request for member 'p' in something not a structure or union
   28 |                                         d[m].p=d[x].p;
      |                                             ^
main.c:28:52: error: request for member 'p' in something not a structure or union
   28 |                                         d[m].p=d[x].p;
      |                                                    ^
main.c:29:45: error: request for member 'p' in something not a structure or union
   29 |                                         d[x].p=s.p;
      |                                             ^
main.c:29:49: error: request for member 'p' in something not a structure or union
   29 |                                         d[x].p=s.p;
      |                                                 ^
main.c:30:42: error: request for member 'no' in something not a structure or union
   30 |                                         s.no=d[m].no;
      |                                          ^
main.c:30:50: error: request for member 'no' in something not a structure or union
   30 |                                         s.no=d[m].no;
      |                                                  ^
main.c:31:45: error: request for member 'no' in something not a structure or union
   31 |                                         d[m].no=d[x].no;
      |                                             ^
main.c:31:53: error: request for member 'no' in something not a structure or union
   31 |                                         d[m].no=d[x].no;
      |                                                     ^
main.c:32:45: error: request for member 'no' in something not a structure or union
   32 |                                         d[x].no=s.no;
      |                                             ^
main.c:32:50: error: request for member 'no' in something not a structure or union
   32 |                                         d[x].no=s.no;
      |                                                  ^
main.c:38:40: error: request for member 'no' in something not a structure or union
   38 |                                 if(d[m].no>d[x].no){
      |                                        ^
main.c:38:48: error: request for member 'no' in something not a structure or union
   38 |                                 if(d[m].no>d[x].no){
      |                                                ^
main.c:46:41: error: request for member 'r' in something not a structure or union
   46 |                         printf("%d",d[m].r);
      |                                         ^