criyle/codenet-compile-errors huggingface dataset:
Language: C

#include<stdio.h>
main(){
  int x,y,tmp;
  while(1){
    scanf("%d %d",&x,&y);
    if(x==0 || y==0){
      break;
    }
    if(x>y){
      tmp=y;
      x=y;
      y=tmp;
    }
    prinf("%d %d\n",x,y);
  }
  return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:14:5: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   14 |     prinf("%d %d\n",x,y);
      |     ^~~~~
      |     printf
Language: C

#include <stdio.h>

int main(){
    int x,y,tmp;

    scanf("%d%d",&x,&y);

    while(x!=-&&y!=0){
        if(x>y){
            tmp=x;
            x=y;
            y=tmp;
        }
        printf("%d %d\n",x,y);
        scanf("%d%d",&x,&y);
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:14: error: wrong type argument to unary minus
    8 |     while(x!=-&&y!=0){
      |              ^
main.c:8:5: error: label 'y' used but not defined
    8 |     while(x!=-&&y!=0){
      |     ^~~~~
Language: C

#include<stdio.h>
int main(void)
{
	int x,y;
	scanf("%d %d"&x,&y);
	if(x>y)
		printf("%d %d\n",x,y);
	else
		printf("%d %d\n",y,x);
	return 0;
}
		

Compiler output:
main.c: In function 'main':
main.c:5:22: error: invalid operands to binary & (have 'char *' and 'int')
    5 |         scanf("%d %d"&x,&y);
      |               ~~~~~~~^
      |               |
      |               char *
Language: C

#include<stdio.h>
int main(void)
{
	int x,y;
	scanf("%d %d",&x,&y);
	for()
	{
	if(x==y)
		break;
	else if(x>y)
		printf("%d %d\n",x,y);
	else
		printf("%d %d\n",y,x);
	}
	return 0;
}
		

Compiler output:
main.c: In function 'main':
main.c:6:13: error: expected expression before ')' token
    6 |         for()
      |             ^
main.c:6:13: error: expected expression before ')' token
Language: C

#include<stdio.h>
int main(void)
{
	int i,x,y;
	scanf("%d %d",&x,&y);
	for(;;)
	{
	if(x==y)
		break;
	else if(
		printf("%d %d\n",x,y);
	else
		printf("%d %d\n",y,x);
	}
	return 0;
}
		

Compiler output:
main.c: In function 'main':
main.c:11:38: error: expected ')' before ';' token
   11 |                 printf("%d %d\n",x,y);
      |                                      ^
      |                                      )
main.c:10:16: note: to match this '('
   10 |         else if(
      |                ^
main.c:14:9: error: expected expression before '}' token
   14 |         }
      |         ^
Language: C

#include<stdio.h>
int main(void)
{
	int i,x,y;
	scanf("%d %d",&x,&y);
	for(i=0;;i++)
	{
	if(x==y)
		break;
	else if(
		printf("%d %d\n",x,y);
	else
		printf("%d %d\n",y,x);
	}
	return 0;
}
		

Compiler output:
main.c: In function 'main':
main.c:11:38: error: expected ')' before ';' token
   11 |                 printf("%d %d\n",x,y);
      |                                      ^
      |                                      )
main.c:10:16: note: to match this '('
   10 |         else if(
      |                ^
main.c:14:9: error: expected expression before '}' token
   14 |         }
      |         ^
Language: C

#include <stdio.h>

int main(){

int a,b,c;

while(1){

scanf("%d %d",&a,&b);

if(a==0&&b==0)

break;

if(a>b){

c=a;

a=b;

b=c;

}

printf("%d %d\n",&a,&b);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:29:1: error: expected declaration or statement at end of input
   29 | }
      | ^
Language: C

#include <stdio.h>

int main(){

int a,b,c;

while(1){

scanf("%d %d",&a,&b);

if(a==0&&b==0)

break;

if(a>b){

c=a;

a=b;

b=c;

}

printf("%d %d\n",a,b);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:29:1: error: expected declaration or statement at end of input
   29 | }
      | ^
Language: C

#include<stdio.h>
	int main(void)
{
	int x, y, temp;
	while(1){
		scanf("%d %d", &x, &y);
		if(x > y){
			temp = x;
			x = y;
			y = temp;
		}else if(x == 0 && y == 0){
			break;
		}
		printf("%d %d\n", x, y);
	}
	return 0;
}#include<stdio.h>
	int main(void)
{
	int x, y, temp;
	while(1){
		scanf("%d %d", &x, &y);
		if(x > y){
			temp = x;
			x = y;
			y = temp;
		}else if(x == 0 && y == 0){
			break;
		}
		printf("%d %d\n", x, y);
	}
	return 0;
}#include<stdio.h>
	int main(void)
{
	int x, y, temp;
	while(1){
		scanf("%d %d", &x, &y);
		if(x > y){
			temp = x;
			x = y;
			y = temp;
		}else if(x == 0 && y == 0){
			break;
		}
		printf("%d %d\n", x, y);
	}
	return 0;
}#include<stdio.h>
	int main(void)
{
	int x, y, temp;
	while(1){
		scanf("%d %d", &x, &y);
		if(x > y){
			temp = x;
			x = y;
			y = temp;
		}else if(x == 0 && y == 0){
			break;
		}
		printf("%d %d\n", x, y);
	}
	return 0;
}#include<stdio.h>
	int main(void)
{
	int x, y, temp;
	while(1){
		scanf("%d %d", &x, &y);
		if(x > y){
			temp = x;
			x = y;
			y = temp;
		}else if(x == 0 && y == 0){
			break;
		}
		printf("%d %d\n", x, y);
	}
	return 0;
}#include<stdio.h>
	int main(void)
{
	int x, y, temp;
	while(1){
		scanf("%d %d", &x, &y);
		if(x > y){
			temp = x;
			x = y;
			y = temp;
		}else if(x == 0 && y == 0){
			break;
		}
		printf("%d %d\n", x, y);
	}
	return 0;
}

Compiler output:
main.c:17:2: error: stray '#' in program
   17 | }#include<stdio.h>
      |  ^
main.c:17:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   17 | }#include<stdio.h>
      |          ^
main.c:33:2: error: stray '#' in program
   33 | }#include<stdio.h>
      |  ^
main.c:33:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   33 | }#include<stdio.h>
      |          ^
main.c:49:2: error: stray '#' in program
   49 | }#include<stdio.h>
      |  ^
main.c:49:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   49 | }#include<stdio.h>
      |          ^
main.c:65:2: error: stray '#' in program
   65 | }#include<stdio.h>
      |  ^
main.c:65:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   65 | }#include<stdio.h>
      |          ^
main.c:81:2: error: stray '#' in program
   81 | }#include<stdio.h>
      |  ^
main.c:81:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   81 | }#include<stdio.h>
      |          ^
Language: C

#include <stdio.h>

int main(void)
{
        int a, b, tmp;
        
        do {
                scanf("%d%d", &a, &b);
                if (a > b) {
                        tmp = a;
                        a = b;
                        b = tmp;
                }
                printf("%d %d\n", a, b);
        }while (!(a == 0 && b == 0))
        return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:37: error: expected ';' before 'return'
   15 |         }while (!(a == 0 && b == 0))
      |                                     ^
      |                                     ;
   16 |         return 0;
      |         ~~~~~~
Language: C

#include<stdio.h>

int main(void){
int a,b,temp;
 while(1){
  scanf("%d%d", a,b);
 if(a == 0 && b==0){
  return 0;
 }
 if(a > b){
  temp = b;
  b = a;
  a = temp;
 }
 printf("%d %d", a, b);
}
 

Compiler output:
main.c: In function 'main':
main.c:16:1: error: expected declaration or statement at end of input
   16 | }
      | ^
Language: C

#include<stdio.h>

int main(void){
int a,b,temp;
 while(1){
  scanf("%d", &a);
　scanf("%d", &b);
 if((a == 0) && (b==0)){
  break;
 }
 if(a > b){
  temp = b;
  b = a;
  a = temp;
 }
 printf("%d %d", a, b);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: stray '\343' in program
    7 | <U+3000>scanf("%d", &b);
      | ^~~~~~~~
Language: C

#include <stdio.h>

int main(){
    int x, y;
    
    while(0){
        scanf("%d %d", &x, &y);
        if(x == 0 && y == 0) break;
        if(x <= y){
            printf("%d %d\n", x, y);
        }else{
            printf("%d %d\n", y, x);
        }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:1: error: expected declaration or statement at end of input
   15 | }
      | ^
Language: C

#include <stdio.h>

int main(){
    int x, y;
    
    while(1){
        scanf("%d %d", &x, &y);
        if(x == 0 && y == 0) break;
        if(x <= y){
            printf("%d %d\n", x, y);
        }else{
            printf("%d %d\n", y, x);
        }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:1: error: expected declaration or statement at end of input
   15 | }
      | ^
Language: C

#include < stdio.h>

int main(){
int a,b;

scanf("%d %d",&a,&b);
if(a = b && a=0 )return 0;

if(a <= b){
  printf("%d %d\n",a,b);
} else {
  printf("%d %d\n",b,a);
}

return 0;
}

Compiler output:
main.c:1:10: fatal error:  stdio.h: No such file or directory
    1 | #include < stdio.h>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>

int main(){
int a,b;

scanf("%d %d",&a,&b);
if(a = b && a=0 )return 0;

if(a <= b){
  printf("%d %d\n",a,b);
} else {
  printf("%d %d\n",b,a);
}

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:14: error: lvalue required as left operand of assignment
    7 | if(a = b && a=0 )return 0;
      |              ^
Language: C

#include<stdio.h>

int main(){
int a,b;

scanf("%d %d",&a,&b);
if(a = b && a=0 )return 0;

if(a <= b){
  printf("%d %d\n",a,b);
} else {
  printf("%d %d\n",b,a);
}

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:14: error: lvalue required as left operand of assignment
    7 | if(a = b && a=0 )return 0;
      |              ^
Language: C

#include <stdio.h>
int main (void)
{
	int x, i=0;

	while (scanf("%d %d", &x, &y) != EOF || x != 0 && y != 0){

		if (x != 0 && y != 0){
				if (x < y)
					printf("%d %d\n", x, y);
				else
					printf("%d %d\n", y, x);
		}
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:36: error: 'y' undeclared (first use in this function)
    6 |         while (scanf("%d %d", &x, &y) != EOF || x != 0 && y != 0){
      |                                    ^
main.c:6:36: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void)
{
	int a, b;

	for (;;) {
		scanf("%d %d", &a, &b);
		if (a == 0 && b == 0) {
			break;
		}
		if (a > b) {
			printf("%d %d\n", b, a);
		}
		else {
			printf("%d %d\n", a, b);
		}
	}

Compiler output:
main.c: In function 'main':
main.c:18:9: error: expected declaration or statement at end of input
   18 |         }
      |         ^
Language: C

#include<stdio.h>

int main(void)
{
	int i,x,y,tmp;
	y=x=999;
	for( i=1; 0 != x && 0 != y; i++ ) {
		scanf( "%d%d",&x,&y )
		if( 0 != x && 0 != y ) {
			if( y < x ) {
				tmp=y;
				y=x;
				x=tmp;
			}
			printf( "%d %d\n", x, y );
		}
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:38: error: expected ';' before 'if'
    8 |                 scanf( "%d%d",&x,&y )
      |                                      ^
      |                                      ;
    9 |                 if( 0 != x && 0 != y ) {
      |                 ~~
Language: C

#include <stdio.h>
int main()
{
	int x, y;
	while(1){
		scanf("%d %d", &x, &y);
		if(x=0 && y=0){
			break;
		} else if(x<y){
			printf("%d %d\n", x, y);
		} else {
			printf("%d %d\n", y, x);
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:28: error: lvalue required as left operand of assignment
    7 |                 if(x=0 && y=0){
      |                            ^
Language: C

#include <stdio.h>
#define TATE 16000
#define YOKO 16000
int main(void){

  int x[TATE],y[YOKO],i=0,a=0;

  for(i = 0 ; i < YOKO ; i++){
    scanf("%d  %d",&x[i],&y[i]);
    if(x[i] == 0 && y[i] == 0){
      break;
    }
  }

  printf("\n");
    for(i = 0 ; i < TATE ; i++){
     if(x[i] > y[i]){
      a = x[i];
      x[i] = y[i];
      y[i] = a;
    }
    printf("%d  %d\n",x[i],y[i]);
    }
   if(x[i] == 0 && y[i] == 0){
        break;
      }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:25:9: error: break statement not within loop or switch
   25 |         break;
      |         ^~~~~
Language: C

#include <stdio.h>

int main(void){

  int x,y;
  int change;

  while(1){
    scanf("%d %d",&x,&y);
    if((x == 0) & (y == 0)){
      break;
    }
    if(x > y){
      change = x;
      x = y;
      y = change;
    }
    printf("%d %d",x,y);
  }
  

Compiler output:
main.c: In function 'main':
main.c:19:3: error: expected declaration or statement at end of input
   19 |   }
      |   ^
Language: C

#include <stdio.h>
 
int main(void){
 
  int x,y;
  int change;
 
  while(1){
    scanf("%d %d",&x,&y);
    if((x == 0) & (y == 0)){
      break;
    }
    if(x > y){
      change = x;
      x = y;
      y = change;
    }
    printf("%d %d\n",x,y);
  }
  

Compiler output:
main.c: In function 'main':
main.c:19:3: error: expected declaration or statement at end of input
   19 |   }
      |   ^
Language: C

include<stdio.h>

int main( ){

int x,y;

while(1){scanf("%d%d",&x,&y);
  if (x==0&&y==0) break;
  if (x<y){printf("%d %d",x,y);}
  else if (x>y){printf("%d %d",y,x);}
  else if (x==y){printf("%d %d",x,y);}
 }


return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

#include <stdio.h>

int main(void)
{
	int a,b,x;
	
	scanf("%d %d",&a,&b);
	
	while(1){
		
		if(a > b){
			x = a;
			a = b;
			b = x;
		}
		if ( x == 0 && y == 0 ) break;  
		printf("%d %d\n",a,b);
		scanf("%d %d",&a,&b);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:32: error: 'y' undeclared (first use in this function)
   16 |                 if ( x == 0 && y == 0 ) break;
      |                                ^
main.c:16:32: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main (){
  int x,y;

  for(i=1;;i++){
    scanf("%d %d",&x &y);
    if((x == 0) && (y ==0)) break;
    if(x>y) printf("%d %d\n",y,x);
    else printf("%d %d\n",x,y);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:7: error: 'i' undeclared (first use in this function)
    6 |   for(i=1;;i++){
      |       ^
main.c:6:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:22: error: invalid operands to binary & (have 'int *' and 'int')
    7 |     scanf("%d %d",&x &y);
      |                   ~~ ^
      |                   |
      |                   int *
Language: C

#include <stdio.h>

int main(){
	int a,b
	for(;;){
		scanf("%d%d",&a,&b);
		//a=0 & b=0-> end
		if(a==0&&b==0) return 0;
		if(a<b) printf("%d %d\n",a,b);
		else printf("%d %d\n",b,a);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for'
    5 |         for(;;){
      |         ^~~
main.c:5:15: error: expected statement before ')' token
    5 |         for(;;){
      |               ^
main.c:6:34: error: 'b' undeclared (first use in this function)
    6 |                 scanf("%d%d",&a,&b);
      |                                  ^
main.c:6:34: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main()
{
  int x, y, n;
  while(1){
    scanf("%d %d", &x, &y);
    if(x == 0 && y == 0)
      break;
    if(a < b){
      n = a;
      a = b;
      b = n;
    }
    printf("%d %d\n", x, y);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:8: error: 'a' undeclared (first use in this function)
   10 |     if(a < b){
      |        ^
main.c:10:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:12: error: 'b' undeclared (first use in this function)
   10 |     if(a < b){
      |            ^
Language: C

#include<stdio.h>

int main()
{
  int x, y, n;
  while(1){
    scanf("%d %d", &x, &y);
    if(x == 0 && y == 0){
      break;
    }
    if(a < b){
      n = a;
      a = b;
      b = n;
    }
    printf("%d %d\n", x, y);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:8: error: 'a' undeclared (first use in this function)
   11 |     if(a < b){
      |        ^
main.c:11:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:12: error: 'b' undeclared (first use in this function)
   11 |     if(a < b){
      |            ^
Language: C

#include<stdio.h>

int main()
{
  int x, y, n;
  while(1){
    scanf("%d %d", &x, &y);
    if(x == 0 && y == 0){
      break;
    }
    else if(a < b){
      n = a;
      a = b;
      b = n;
    }
    printf("%d %d\n", x, y);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:13: error: 'a' undeclared (first use in this function)
   11 |     else if(a < b){
      |             ^
main.c:11:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:17: error: 'b' undeclared (first use in this function)
   11 |     else if(a < b){
      |                 ^
Language: C

#include <stdio.h>
int main(){
  int x,y;
  while(x != 0 || y != 0){
    scanf("%d%d",&x,&y);
    
    else if(x > y)printf("%d %d\n",y,x);
    else if(x < y)printf("%d %d\n",x,y);
    else if(x == y)printf("%d %d\n",x,y);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:5: error: 'else' without a previous 'if'
    7 |     else if(x > y)printf("%d %d\n",y,x);
      |     ^~~~
Language: C

#include<stdio.h>
int main(){
int a,b=1,x;
while(1){
scanf("%d %d",&a,&b);
if(a==0&&b==0)
break;
if(b<c)
x=a;
a=b;
b=x;
printf("%d %d\n",a,b);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:6: error: 'c' undeclared (first use in this function)
    8 | if(b<c)
      |      ^
main.c:8:6: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main(void)
{
int a, b;

while(1){
scanf("%d %d",&a,&b);
   if(a = 0 && b = 0) break;
if(a > b)
printf("%d %d",b,a);
else
printf("%d %d",a,b);
printf("\n");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:18: error: lvalue required as left operand of assignment
    8 |    if(a = 0 && b = 0) break;
      |                  ^
Language: C

#include <stdio.h>
int main(void)
{
int a, b;

while(1){
scanf("%d %d",&a,&b);
   if(a = 0 && b = 0)
break;
if(a > b)
printf("%d %d",b,a);
else
printf("%d %d",a,b);
printf("\n");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:18: error: lvalue required as left operand of assignment
    8 |    if(a = 0 && b = 0)
      |                  ^
Language: C

#include <stdio.h>
int main(void)
{
int a, b;

while(1){
scanf("%d %d",&a,&b);
if(a = 0 && b = 0)
break;
if(a > b)
printf("%d %d",b,a);
else
printf("%d %d",a,b);
printf("\n");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:15: error: lvalue required as left operand of assignment
    8 | if(a = 0 && b = 0)
      |               ^
Language: C

#include <stdio.h>
int main(void)
{
int a, b;

while(1){
scanf("%d %d",&a,&b);
if(a = 0 && b = 0)
break;
else if(a > b)
printf("%d %d",b,a);
else
printf("%d %d",a,b);
printf("\n");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:15: error: lvalue required as left operand of assignment
    8 | if(a = 0 && b = 0)
      |               ^
Language: C


#include <stdio.h>
int main(void)
{
int a, b;

while(1){
scanf("%d %d",&a,&b);
if(a = 0 && b = 0){
break;
}

if(a > b)
printf("%d %d",b,a);

else
printf("%d %d",a,b);

printf("\n");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:15: error: lvalue required as left operand of assignment
    9 | if(a = 0 && b = 0){
      |               ^
Language: C

#include <stdio.h>
 
int main(void) {
	int a,b;

	scanf("%d %d",&a,&b);
	do{
		if(a > b){
			printf("%d %d\n",b,a);
		}else if{
			printf("%d %d\n",a,b);
		}
		scanf("%d %d",&a,&b);
	}while(a != 0 || b != 0);
	return 0;
}
 

Compiler output:
main.c: In function 'main':
main.c:10:25: error: expected '(' before '{' token
   10 |                 }else if{
      |                         ^
      |                         (
Language: C

#include <stdio.h>
int main(){
	int x, y;

	while (1){
		scanf("%d %d", &x, &y);
		if (x = 0 && y = 0)break;

		if (x > y){
			printf("%d %d\n", y, x);
		}
		else{
			printf("%d %d\n", x, y);
		}
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:32: error: lvalue required as left operand of assignment
    7 |                 if (x = 0 && y = 0)break;
      |                                ^
Language: C

#include<stdio.h>
int main(void){
 int x, y;
 while(1){
 scanf("%d %d", &x, &y);
 if(x == 0 && y == 0)break;{
 if(x > y){printf("%d %d\n", y, x);
 }
 else{printf("%d %d\n", x, y);
 }
 }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:1: error: expected declaration or statement at end of input
   13 | }
      | ^
Language: C

#include <stdio.h>
int main(int argc,const char * argv[]){
int x,y,i,tmp;
i=0;
while(x!=0&&y!=0){
scanf(%d %d,&x,&y);
tmp=x;
x=y;
y=tmp;
printf("%d %d",x,y);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:7: error: expected expression before '%' token
    6 | scanf(%d %d,&x,&y);
      |       ^
Language: C

#include <stdio.h>

int main(void)
{
    int x, y;
    scanf("%d %d\n", &x, &y);
    if (x == 0 && y = 0) {
    	break;
    } elseif (x >= y) {
	printf("%d %d\n", y, x);
    } else {
 	printf("%d %d\n", x, y);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:21: error: lvalue required as left operand of assignment
    7 |     if (x == 0 && y = 0) {
      |                     ^
main.c:8:9: error: break statement not within loop or switch
    8 |         break;
      |         ^~~~~
main.c:9:7: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    9 |     } elseif (x >= y) {
      |       ^~~~~~
main.c:9:22: error: expected ';' before '{' token
    9 |     } elseif (x >= y) {
      |                      ^~
      |                      ;
Language: C

#include <stdio.h>

int main(void)
{
    while (1) {
 	int x, y;
	scanf("%d %d", &x, &y);
	if (x == 0 && y == 0) {
       	    break;
	} elseif (x >= y) {
       	    printf("%d %d\n", y, x);
	} else {
	    printf("%d %d\n", x, y);
        }
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:11: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   10 |         } elseif (x >= y) {
      |           ^~~~~~
main.c:10:26: error: expected ';' before '{' token
   10 |         } elseif (x >= y) {
      |                          ^~
      |                          ;
Language: C

#include <stdio.h>
#include <stdilb.h> 
int main()
{
 int *point,y=0,i=0;
 
 point=(int*)malloc(10000*sizeof(int));
 
 
while(1)
{
    scanf("%d %d ",&point[i],&point[i+1]);
     
    if(point[i]>point[i+1])
    {
        y=point[i];
        point[i]=point[i+1];
        point[i+1]=y;
    }
 
     
    if(point[i]!=0&&point[i+1]!=0)
    break;
 
    i+=2;
}
 
 
 
while(1)
{
     
    if(point[i]!=0&&point[i+1]!=0)
    break;
 
    printf("%d %d\n",point[i],point[i+1]);
 
     
 
    i+=2;
}
free(point);
return 0;
}

Compiler output:
main.c:2:10: fatal error: stdilb.h: No such file or directory
    2 | #include <stdilb.h>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>
#include <stdlib.h> 
int main()
{
 int *point,x,=0,y=0,z=0;
while(1)
{
    scanf("%d %d ",&x,&y);
      
    if(x>y)
    {
        z=x;
        x=y;
        y=z;
    }
      
    if(x!=0&&y!=0)
    break;
	
	printf("%d %d\n",x,y);
  
  
    i+=2;
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:15: error: expected identifier or '(' before '=' token
    5 |  int *point,x,=0,y=0,z=0;
      |               ^
main.c:8:24: error: 'y' undeclared (first use in this function)
    8 |     scanf("%d %d ",&x,&y);
      |                        ^
main.c:8:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:9: error: 'z' undeclared (first use in this function)
   12 |         z=x;
      |         ^
main.c:23:5: error: 'i' undeclared (first use in this function)
   23 |     i+=2;
      |     ^
Language: C

#include <stdio.h>
int main(void)
{
	int x,=0,y=0,z=0;
	
	while(1)
	{
		scanf("%d %d ",&x,&y);
		
		if(x>y)
		{
			z=x;
			x=y;
			y=z;
		}
      
    if(x!=0&&y!=0)
		break;
	
	printf("%d %d\n",x,y);
	i+=2;
	}
	
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:15: error: expected identifier or '(' before '=' token
    4 |         int x,=0,y=0,z=0;
      |               ^
main.c:8:36: error: 'y' undeclared (first use in this function)
    8 |                 scanf("%d %d ",&x,&y);
      |                                    ^
main.c:8:36: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:25: error: 'z' undeclared (first use in this function)
   12 |                         z=x;
      |                         ^
main.c:21:9: error: 'i' undeclared (first use in this function)
   21 |         i+=2;
      |         ^
Language: C

#include <stdio.h>

int main(void)
{
	int x, y;
	scanf(%d %d, &x, &y);
	while(x = y != 0){
	if (x <= y){
		printf("%d %d\n", x, y);
	}
	else{
		printf("%d %d\n", y, x);
	}
	}

	return 0;


}

Compiler output:
main.c: In function 'main':
main.c:6:15: error: expected expression before '%' token
    6 |         scanf(%d %d, &x, &y);
      |               ^
Language: C

#include <stdio.h>

int main(void){
  int x,y;
  x = 1;
  y = 1;
  while(x != 0 && y != 0){
  scanf("%d %d", &x, &y);
  if (x < y){
    puts("%d %d", x,y)
  }
  else{
    puts("%d %d", y,x)
  }
 }
 return(0);
}

Compiler output:
main.c: In function 'main':
main.c:10:5: error: too many arguments to function 'puts'
   10 |     puts("%d %d", x,y)
      |     ^~~~
In file included from main.c:1:
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
main.c:10:23: error: expected ';' before '}' token
   10 |     puts("%d %d", x,y)
      |                       ^
      |                       ;
   11 |   }
      |   ~                    
main.c:13:5: error: too many arguments to function 'puts'
   13 |     puts("%d %d", y,x)
      |     ^~~~
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
main.c:13:23: error: expected ';' before '}' token
   13 |     puts("%d %d", y,x)
      |                       ^
      |                       ;
   14 |   }
      |   ~
Language: C

#include <stdio.h>

int main(void){
  int x,y;
  while(1){
  scanf("%d %d", &x, &y);
  if (x == 0 && y == 0){
    break;
  }
  if (x < y){
    puts("%d %d", x,y);
  }
  else{
    puts("%d %d", y,x);
  }
 }
 return(0);
}

Compiler output:
main.c: In function 'main':
main.c:11:5: error: too many arguments to function 'puts'
   11 |     puts("%d %d", x,y);
      |     ^~~~
In file included from main.c:1:
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
main.c:14:5: error: too many arguments to function 'puts'
   14 |     puts("%d %d", y,x);
      |     ^~~~
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
Language: C

#include <stdio.h>

int main(void){
  int x,y,tmp;
  while(1){
  scanf("%d %d", &x, &y);
  if (x == 0 && y == 0){
    break;
  }
  if (x > y){
    tmp = x;
    x = y;
    y = tmp;
  }
  puts("%d %d",x,y);
 }
 return(0);
}

Compiler output:
main.c: In function 'main':
main.c:15:3: error: too many arguments to function 'puts'
   15 |   puts("%d %d",x,y);
      |   ^~~~
In file included from main.c:1:
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
Language: C

#include<stdio.h>
int main(void){
int x[], y[], i = 0, j = 0;
scanf("%d %d", &x[i], &y[i]);
while(x[i] != 0 && y[i] != 0){
i++;
j++;
scanf("%d %d", &x[i], &y[i]);
}
for(i = 0;i =< j;i++){
printf("%d %d\n", x[i], y[i]);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:5: error: array size missing in 'x'
    3 | int x[], y[], i = 0, j = 0;
      |     ^
main.c:3:10: error: array size missing in 'y'
    3 | int x[], y[], i = 0, j = 0;
      |          ^
main.c:10:14: error: expected expression before '<' token
   10 | for(i = 0;i =< j;i++){
      |              ^
Language: C

#include<stdio.h>
int main(void){
int x[100], y[100], i = 0, j = 0;
scanf("%d %d", &x[i], &y[i]);
while(x[i] != 0 && y[i] != 0){
i++;
j++;
scanf("%d %d", &x[i], &y[i]);
}
for(i = 0;i =< j;i++){
printf("%d %d\n", x[i], y[i]);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:14: error: expected expression before '<' token
   10 | for(i = 0;i =< j;i++){
      |              ^
Language: C

#include<stdio.h>
int main(void){
int x[], y[], i = 0, j = 0;
scanf("%d %d", &x[i], &y[i]);
while(x[i] != 0 && y[i] != 0){
i++;
j++;
scanf("%d %d", &x[i], &y[i]);
}
if(i ==0){
for(i = 0;i =< j;i++){
printf("%d %d\n", x[i], y[i]);
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:5: error: array size missing in 'x'
    3 | int x[], y[], i = 0, j = 0;
      |     ^
main.c:3:10: error: array size missing in 'y'
    3 | int x[], y[], i = 0, j = 0;
      |          ^
main.c:11:14: error: expected expression before '<' token
   11 | for(i = 0;i =< j;i++){
      |              ^
Language: C

#include<stdio.h>
int main(void){
int x[], y[], i = 0, j = 0;
scanf("%d %d", &x[i], &y[i]);
while(x[i] != 0 && y[i] != 0){
i++;
j++;
scanf("%d %d", &x[i], &y[i]);
}
if(i == 0){
for(i = 0;i =< j;i++){
printf("%d %d\n", x[i], y[i]);
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:5: error: array size missing in 'x'
    3 | int x[], y[], i = 0, j = 0;
      |     ^
main.c:3:10: error: array size missing in 'y'
    3 | int x[], y[], i = 0, j = 0;
      |          ^
main.c:11:14: error: expected expression before '<' token
   11 | for(i = 0;i =< j;i++){
      |              ^
Language: C

#include<stdio.h>
int main(void){
int x[], y[], i = 0, j = 0;
scanf("%d %d", &x[i], &y[i]);
while(x[i] != 0 && y[i] != 0){
i++;
j++;
scanf("%d %d", &x[i], &y[i]);
}
if(i != 0){
for(i = 0;i =< j;i++){
printf("%d %d\n", x[i], y[i]);
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:5: error: array size missing in 'x'
    3 | int x[], y[], i = 0, j = 0;
      |     ^
main.c:3:10: error: array size missing in 'y'
    3 | int x[], y[], i = 0, j = 0;
      |          ^
main.c:11:14: error: expected expression before '<' token
   11 | for(i = 0;i =< j;i++){
      |              ^
Language: C

#include<stdio.h>
int main(void){
int x[], y[], i = 0, j = 0;
scanf("%d %d", &x[i], &y[i]);
while(x[i] != 0 && y[i] != 0){
i++;
j++;
scanf("%d %d", &x[i], &y[i]);
}
if(i != 0){
for(i = 0;i <= j;i++){
printf("%d %d\n", x[i], y[i]);
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:5: error: array size missing in 'x'
    3 | int x[], y[], i = 0, j = 0;
      |     ^
main.c:3:10: error: array size missing in 'y'
    3 | int x[], y[], i = 0, j = 0;
      |          ^
Language: C

#include<stdio.h>
int main(void){
int x[], y[], i = 0, j = 0;
scanf("%d%d", &x[i], &y[i]);
while(x[i] != 0 && y[i] != 0){
i++;
j++;
scanf("%d %d", &x[i], &y[i]);
}
if(i != 0){
for(i = 0;i <= j;i++){
printf("%d %d\n", x[i], y[i]);
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:5: error: array size missing in 'x'
    3 | int x[], y[], i = 0, j = 0;
      |     ^
main.c:3:10: error: array size missing in 'y'
    3 | int x[], y[], i = 0, j = 0;
      |          ^
Language: C

#include<stdio.h>
int main(void){
int x[], y[], i = 0, j = 0;
do{
scanf("%d %d", &x[i], &y[i]);
i++;
j++;
}while(x[i - 1] != 0 || y[i - 1] != 0);
j = j - 1;
for(i = 0;i <= j;i++){
if(y[i] < x[i]){
printf("%d %d\n", y[i], x[i]);
}else{
printf("%d %d\n", x[i], y[i]);
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:5: error: array size missing in 'x'
    3 | int x[], y[], i = 0, j = 0;
      |     ^
main.c:3:10: error: array size missing in 'y'
    3 | int x[], y[], i = 0, j = 0;
      |          ^
Language: C

#include<stdio.h>
int main(void){
int x[], y[], i = 0, j = 0;
do{
scanf("%d %d", &x[i], &y[i]);
i++;
j++;
}while(x[i - 1] != 0 || y[i - 1] != 0);
j = j - 1;
if(j != 0){
for(i = 0;i <= j;i++){
if(y[i] < x[i]){
printf("%d %d\n", y[i], x[i]);
}else{
printf("%d %d\n", x[i], y[i]);
}
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:5: error: array size missing in 'x'
    3 | int x[], y[], i = 0, j = 0;
      |     ^
main.c:3:10: error: array size missing in 'y'
    3 | int x[], y[], i = 0, j = 0;
      |          ^
Language: C

#include <stdio.h>

int main()
{
    int x,y;
    while(1){

    scanf("%d %d",&x,&y);
    if(x == 0 && y == 0) break;
	if(x >= y)
	 printf("%d %d\n",y,x);
	else(x =< y)
	 printf("%d %d\n",x,y);
	
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:17: error: expected expression before '<' token
   12 |         else(x =< y)
      |                 ^
main.c:12:21: error: expected ';' before 'printf'
   12 |         else(x =< y)
      |                     ^
      |                     ;
   13 |          printf("%d %d\n",x,y);
      |          ~~~~~~
Language: C

#include<stdio.h>

int main()
{
	int a, b;
	while (true)
	{
		scanf("%d", &a);
		scanf("%d", &b);
		if (a < b || a == b)
		{
			printf("%d", a);
			printf(" %d\n", b);
		}
		if (a > b)
		{
			printf("%d", b);
			printf(" %d\n", a);
		}
		
		if (a == 0 && b == 0)
		{
			break;
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:16: error: 'true' undeclared (first use in this function)
    6 |         while (true)
      |                ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:6:16: note: each undeclared identifier is reported only once for each function it appears in
    6 |         while (true)
      |                ^~~~
Language: C

#include<stdio.h>

int main(){

int x,y,tmp;

while(1){

scanf("%d %d",&x,&y);

if (x==0 && y==0) break;
else{ 
if(x>y){
tmp=x; 
y=x;
y=tmp
}
printf("%d %d\n",x,y);
}

}

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:16:6: error: expected ';' before '}' token
   16 | y=tmp
      |      ^
      |      ;
   17 | }
      | ~
Language: C

#include<stdio.h>

int main(){

int x,y,tmp;

while(1){

scanf("%d %d",&x,&y);

if(x>y){
tmp=x; 
y=x;
y=tmp
}

if (x==0 && y==0) break;

printf("%d %d\n",x,y);
}


return 0;

}

Compiler output:
main.c: In function 'main':
main.c:14:6: error: expected ';' before '}' token
   14 | y=tmp
      |      ^
      |      ;
   15 | }
      | ~
Language: C

include<stdio.h>

int main(){
	int x, y, dum;
	while(1){
		scanf("%d %d", &x, &y);
		if(x == 0&& y == 0) break;
		if(x > y){
			dum = x;
			x = y;
			y = dum;
			printf("%d %d\n", x, y);
		}
		else
		printf("%d %d\n", x,y);
	}
	return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

#include<stdio.h>
int main(void){
int a,b;
while(1){
scanf("%d %d",&a,&b);
if(a==0&&b==0){break;}
if(a>b){
printf("%d %d\n",b,a);
}else{
printf("%d %d\n"a,b);
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:17: error: expected ')' before 'a'
   10 | printf("%d %d\n"a,b);
      |       ~         ^
      |                 )
Language: C

#include<stdio.h>
int main(void){

int x=1,y=1;
while(x<0&&y<0){
scanf("%d %d",&x,&y);
if(x=0&&y=0){break;}
else{
if(y<x){printf("%d %d",y,x);}
else {printf("%d %d",x,y);}
}

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:10: error: lvalue required as left operand of assignment
    7 | if(x=0&&y=0){break;}
      |          ^
main.c:14:1: error: expected declaration or statement at end of input
   14 | }
      | ^
Language: C

#include<stdio.h>
int main(void){

int x=1,y=1;
while(x<0&&y<0){
scanf("%d %d",&x,&y);
if(x==0&&y==0){break;}
else{
if(y<x){printf("%d %d",y,x);}
else {printf("%d %d",x,y);}
}

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:1: error: expected declaration or statement at end of input
   14 | }
      | ^
Language: C

#include<stdio.h>
int main(void){
int a,b;
int i=1;
while(1){
scanf("%d %d",&a,&b);
if(a==0&&b==0) break;
if(b<a){
printf("%d %d",b.a);
}
else{printf("%d %d",a,b);}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:17: error: request for member 'a' in something not a structure or union
    9 | printf("%d %d",b.a);
      |                 ^
Language: C

#include<stdio.h>
int main(void){
int a,b;
int i=1;
while(1){
scanf("%d %d",&a,&b);
if(a==0&&b==0) break;
if(b<a){
printf("%d %d\n",b.a);
}
else{printf("%d %d\n",a,b);}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:19: error: request for member 'a' in something not a structure or union
    9 | printf("%d %d\n",b.a);
      |                   ^
Language: C

#include<stdio.h>
int main(){
int x,y,n;
while(1){
scanf("%d %d",&x,&y);
if(x==0 && y==0)break;
if(x>y){
n = x
x = y;
y = n;
}
printf("%d %d\n",x,y);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:6: error: expected ';' before 'x'
    8 | n = x
      |      ^
      |      ;
    9 | x = y;
      | ~
Language: C

data1 = []
data2 =[]
while 1:
    x,y=map(int,raw_input().split())
    data1.append(x)
    data2.append(y)
    if x==0 and y==0:
        break
i=0
while 1:
    print data1[i],data2[i]
    i+=1
    if data1[i]==0 and data2[i]==0:
        break

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | data1 = []
      | ^~~~~
main.c:1:1: error: type defaults to 'int' in declaration of 'data1' [-Wimplicit-int]
main.c:1:9: error: expected expression before '[' token
    1 | data1 = []
      |         ^
Language: C

data1 = []
data2 =[]
while 1:
    x,y=map(int,raw_input().split())
    data1.append(x)
    data2.append(y)
    if x==0 and y==0:
        break
i=0
while 1:
    if x>y:
        print data2[i],data1[i]
    elif x<y:
        print data1[i],data2[i]
    elif data1[i]==0 and data2[i]==0:
        break

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | data1 = []
      | ^~~~~
main.c:1:1: error: type defaults to 'int' in declaration of 'data1' [-Wimplicit-int]
main.c:1:9: error: expected expression before '[' token
    1 | data1 = []
      |         ^
Language: C

data1 = []
data2 =[]
while 1:
    x,y=map(int,raw_input().split())
    data1.append(x)
    data2.append(y)
    if x==0 and y==0:
        break
i=0
while 1:
    if data1[i]>data2[i]:
        print data2[i],data1[i]
    elif data1[i]<data2[i]:
        print data1[i],data2[i]
    elif data1[i]==0 and data2[i]==0:
        break

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | data1 = []
      | ^~~~~
main.c:1:1: error: type defaults to 'int' in declaration of 'data1' [-Wimplicit-int]
main.c:1:9: error: expected expression before '[' token
    1 | data1 = []
      |         ^
Language: C

include <stdio.h>

int main(){

  int x=1,y=1,z;

  while(x != 0 && y != 0){

    scanf("%d %d", &x, &y);

    if(x == 0  && y == 0){

      break;

    }

    if(x > y){

      z = x;

      x = y;

      y = z;

    }

    printf("%d %d\n",x,y);

  }

  return 0;

}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

#include <stdio.h>

int main(void) {

	int x = 0;
	int y = 0;
	scanf("%d", &x);
	scanf("%d", &y);



	while (x!=0||y!=0) { 

		if (x >= y) {
			printf("%d %d\n", x, y);
		}

		if (x < y) {
			printf("%d %d\n", y, x);
		}

		scanf("%d", &x);
		scanf("%d", &y);
	}

Compiler output:
main.c: In function 'main':
main.c:24:9: error: expected declaration or statement at end of input
   24 |         }
      |         ^
Language: C

while 1:
    x,y=map(int,raw_input().split())
    if x==0 and y==0:
        break
    if x>y:
        print y,x
    elif x<y:
        print x,y

Compiler output:
main.c:1:1: error: expected identifier or '(' before 'while'
    1 | while 1:
      | ^~~~~
Language: C

while 1:
    x,y=map(int,raw_input().split())

    if x>y:
        print y,x
    elif x<y:
        print x,y
    if x==0 and y==0:
        break

Compiler output:
main.c:1:1: error: expected identifier or '(' before 'while'
    1 | while 1:
      | ^~~~~
Language: C

#include<stdio.h>
int main(void){
  int i=1;
  int x=0;
  int y=0;
  while(1){
    scanf("%d %d",&x,&y);
    if(x==0 && y==0 ){
      break;
    };
    if(x<y){
         printf("Case %d: %d %d\n",i,x,y);
    }else{
      
    printf("Case %d: %d %d\n",i,x,y);
    };
    i++;
  }
 return 0;

Compiler output:
main.c: In function 'main':
main.c:19:2: error: expected declaration or statement at end of input
   19 |  return 0;
      |  ^~~~~~
Language: C

#include<stdio.h>
int main()
{
int x,y;
for(;;)
{
scanf("%d %d",&x,&y);
if(x = 0 & y = 0)
{
if(x < y)
{
printf("%d %d\n",x,y);
}
else
{
printf("%d %d\n",y,x);
}
}
else
{
break;
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:14: error: lvalue required as left operand of assignment
    8 | if(x = 0 & y = 0)
      |              ^
main.c:24:1: error: expected declaration or statement at end of input
   24 | }
      | ^
Language: C

#include<stdio.h>
int main()
{
int x,y;
for(;;)
{
scanf("%d %d",&x,&y);
if(x == 0 & y == 0)
{
if(x < y)
{
printf("%d %d\n",x,y);
}
else
{
printf("%d %d\n",y,x);
}
}
else
{
break;
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:24:1: error: expected declaration or statement at end of input
   24 | }
      | ^
Language: C

#include<stdio.h>
int main()
{
int x,y;
for(;;)
{
scanf("%d %d",&x,&y);
if(x != 0 & y != 0)
{
if(x < y)
{
printf("%d %d\n",x,y);
}
else
{
printf("%d %d\n",y,x);
}
}
else
{
break;
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:24:1: error: expected declaration or statement at end of input
   24 | }
      | ^
Language: C

#include<stdio.h>
int main(){
	int x,y;
	while(1){
		scanf("%d %d",&x,&y);
		if(x==0&&y==0)break;
		if(x>y){
			tmp=x;
			x=y;
			y=tmp;
		}
		printf("%d %d",x,y);
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:25: error: 'tmp' undeclared (first use in this function)
    8 |                         tmp=x;
      |                         ^~~
main.c:8:25: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(){
	int x,y;
	while(1){
		scanf("%d %d",&x,&y);
		if(x==0 && y==0) break;
		if(x<y){
			printf("%d %d\n",x.y);
		} else {
			printf("%d %d\n",y,x);
		}
	}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:43: error: request for member 'y' in something not a structure or union
    8 |                         printf("%d %d\n",x.y);
      |                                           ^
Language: C

#include<stdio.h>
int main(){
int x,y

scanf("%d",&x);
scanf("%d",&y);

while(x!=0&&y!=0){
printf("%d: %d\n", x, y);
scanf("%d",&x);

i++;
}
  
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    5 | scanf("%d",&x);
      | ^~~~~
main.c:6:13: error: 'y' undeclared (first use in this function)
    6 | scanf("%d",&y);
      |             ^
main.c:6:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:1: error: 'i' undeclared (first use in this function)
   12 | i++;
      | ^
Language: C

#include<stdio.h>

main(){

int x,y,temp;

while(1){
scanf("%d %d",&x,%y);
if(x==0&&y==0) break;
if(x<=y) printf("%d %d\n",x,y);
else printf("%d %d\n",y,x);
}

return 0;
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:8:18: error: expected expression before '%' token
    8 | scanf("%d %d",&x,%y);
      |                  ^
Language: C

#include<stdio.h>

main(){

int x,y;

while(1){
scanf("%d %d",&x,%y);
if(x==0&&y==0) break;
if(x<=y) printf("%d %d\n",x,y);
else printf("%d %d\n",y,x);
}

return 0;
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:8:18: error: expected expression before '%' token
    8 | scanf("%d %d",&x,%y);
      |                  ^
Language: C

#include <stdio.h>
int main()
{
	int i,j,x,y,box,a[100000][2];
	while(1){
		scanf("%d %d",&a[i][0],&a[i][1]);
		if(x==0 && y==0)
			break;
		a[i][0]>a[i][1] ? (box=a[i][0];a[i][0]=a[i][1];a[i][1]=box;) : ;
		i++;
	}
	for(j=0;j<i;j++)
		printf("%d %d\n",a[j][0],a[j][1]);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:47: error: expected ')' before ';' token
    9 |                 a[i][0]>a[i][1] ? (box=a[i][0];a[i][0]=a[i][1];a[i][1]=box;) : ;
      |                                   ~           ^
      |                                               )
main.c:9:80: error: expected expression before ';' token
    9 |                 a[i][0]>a[i][1] ? (box=a[i][0];a[i][0]=a[i][1];a[i][1]=box;) : ;
      |                                                                                ^
Language: C

#include <stdio.h>

int main(void){

	int x,y;

	while(1){
		scanf("%d %d",&x,&y);
		if(x==0&&y==0)break;
		if(x>y)printf("%d %d\n",y,x);
		else if(x<=y)printf("%d %d\n",x,y);
		i++;
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:17: error: 'i' undeclared (first use in this function)
   12 |                 i++;
      |                 ^
main.c:12:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

include<stdio.h>

int main(void)
{
   int x,y;

   scanf("%d %d",&x,&y);
   if(x<y){
      printf("%d %d",x,y);
   }else{
      printf("%d %d",y,x);
   }

   return 0;
}      
      

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

include<stdio.h>

int main(void)
{
   int x,y;

   scanf("%d %d",&x,&y);
   if(x<y){
      printf("%d %d\n",x,y);
   }else{
      printf("%d %d\n",y,x);
   }

   return 0;
}      
      

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

include<stdio.h>

int main(void)
{
   int x,y;

   scanf("%d %d",&x,&y);
   if(x==0 && y==0){
      break;
   }else if(x<y){
      printf("%d %d\n",x,y);
   }else{
      printf("%d %d\n",y,x);
   }

   return 0;
}      
      

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

include<stdio.h>

int main(void)
{
   int x,y;

   scanf("%d %d",&x,&y);
   if(x==0 && y==0){
      break;
   }else if(x<y){
      printf("%d %d\n",x,y);
   }else{
      printf("%d %d\n",y,x);
   }

   return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

include<stdio.h>

int main(void)
{
   int i,x,y;

   for(;;){
   scanf("%d %d",&x,&y);
   if(x==0 && y==0){
      break;
   }else if(x<y){
      printf("%d %d\n",x,y);
   }else{
      printf("%d %d\n",y,x);
   }
   }

   return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

#include <stdio.h>
int main(void){
   
    int a, b, tmp
   
    while(1){
       scanf("%d%d",&a,&b);
       if(a == 0 && b == 0)  break;
       if (a > b){
          tmp = a;
          a = b;
          b = tmp;
          printf("%d %d\n",a,b);
       }
     return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'while'
    6 |     while(1){
      |     ^~~~~
main.c:16:1: error: expected declaration or statement at end of input
   16 | }
      | ^