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

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

Compiler output:
main.c: In function 'main':
main.c:6:26: error: expected ':' before ';' token
    6 |    printf("%d %d\n",x<y?x;y,x>y?x;y);
      |                          ^
      |                          :
Language: C

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

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

#include <stdio.h>

int main(){

	int i,a,temp,x[2999],y[2999];

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

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

Compiler output:
main.c: In function 'main':
main.c:8:31: error: expected expression before '%' token
    8 |                 scanf("&d &d",%x[i],%y[i]);
      |                               ^
Language: C

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

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

#include <stdio.h>
int main()
{
   int x, y;
   scanf("%d %d", &x, &y);

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

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:19: error: expected identifier before '(' token
    7 |    while(x!=0) && (y!=0){
      |                   ^
Language: C

#include<stdio.h>

int main()
{
   int x, y, temp;
   scanf("%d %d", &x, &y);

   if(x<y) {
      temp = x;
      x = y;
      y = temp;
   } else if(x==y) {
      break;
   }

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

   return 0;
}

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

#include <stdio.h>

int main()
{
	int x, y;
	int n = 0;
	int x[3000];
	int y[3000];

	for (int i = 0; i < 3000; i++) {
		scanf("%d %d\n", &x[i], &y[i]);
		n++;

		if (x[i] == 0 && y[i] == 0) {
			break;
		}
	}

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:13: error: conflicting types for 'x'; have 'int[3000]'
    7 |         int x[3000];
      |             ^
main.c:5:13: note: previous declaration of 'x' with type 'int'
    5 |         int x, y;
      |             ^
main.c:8:13: error: conflicting types for 'y'; have 'int[3000]'
    8 |         int y[3000];
      |             ^
main.c:5:16: note: previous declaration of 'y' with type 'int'
    5 |         int x, y;
      |                ^
main.c:19:14: error: 'i' undeclared (first use in this function)
   19 |         for (i = 0; i < n; i++) {
      |              ^
main.c:19:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

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

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:29: error: expected ';' before 'return'
   18 |   } while (x != 0 && y != 0)
      |                             ^
      |                             ;
   19 | 
   20 |   return 0;
      |   ~~~~~~
Language: C

#include<stdio.h>

int main()
{
int a,b;

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

if (a != 0 || b != 0) {

do {

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

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

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

} (a != 0 || b != 0)

}


return 0;

}

Compiler output:
main.c: In function 'main':
main.c:21:3: error: expected 'while' before '(' token
   21 | } (a != 0 || b != 0)
      |   ^
main.c:21:21: error: expected ';' before '}' token
   21 | } (a != 0 || b != 0)
      |                     ^
      |                     ;
   22 | 
   23 | }
      | ~                    
main.c:28:1: error: expected declaration or statement at end of input
   28 | }
      | ^
Language: C

#include<stdio.h>
 
int main()
{
int a,b;
 
scanf ("%d" "%d",&a,&b);
 
if (a != 0 || b != 0) {
 
do {
 
if (a >= b)
 printf("%d %d",a,b);
 
if(a < b)
 printf("%d %d",b,a);
 
scanf ("%d" "%d",&a,&b);
 
} while (a != 0 || b != 0)
 
}
 
 
return 0;
 
}

Compiler output:
main.c: In function 'main':
main.c:21:27: error: expected ';' before '}' token
   21 | } while (a != 0 || b != 0)
      |                           ^
      |                           ;
   22 | 
   23 | }
      | ~                          
main.c:28:1: error: expected declaration or statement at end of input
   28 | }
      | ^
Language: C

#include<stdio.h>

int main{

	int x[3000],y[3000];
	int i;

	x[3000] >= 0;
	y[3000] <= 10000;

for(i = 0;i <3000; i++){

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

for(i = 0; i <3000; i++){

	int a,b;
	
	if (x[i] > y[i]){
	a = x[i];
	b = y[i];
	}else{
	a = y[i];
	b = x[i];
	}
	
	printf("%d %d", a, b);
}

return 0;
}

Compiler output:
main.c:3:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | int main{
      |         ^
Language: C

#include<stdio.h>

int main{

	int x[3000],y[3000];
	int i;

	x[3000] >= 0;
	y[3000] <= 10000;

for(i = 0;i <3000; i++){

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

for(i = 0; i <3000; i++){

	int a,b;
	
	if (x[i] > y[i]){
	a = x[i];
	b = y[i];
	}else{
	a = y[i];
	b = x[i];
	}
	
	printf("%d %d\n", a, b);
}

return 0;
}

Compiler output:
main.c:3:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | int main{
      |         ^
Language: C

#include <stdio.h>

int main () {
     int x[3000], y[3000], n;
     for (n = 1; n < 3000; n++) {
          scanf ("%d %d", &a[n], &b[n]);

          if (x[n] == 0 && y[n] == 0)
               break;

          if (x[n] <= y[n]) {
                printf ("%d %d", x[n], y[n]);
          } else {
                printf ("%d %d", y[n], x[n]);
          }
      }

     return 0;

}

Compiler output:
main.c: In function 'main':
main.c:6:28: error: 'a' undeclared (first use in this function)
    6 |           scanf ("%d %d", &a[n], &b[n]);
      |                            ^
main.c:6:28: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:35: error: 'b' undeclared (first use in this function)
    6 |           scanf ("%d %d", &a[n], &b[n]);
      |                                   ^
Language: C

#include<stdio.h>
  
int main()
{
int a, b;
  
scanf ("%d" "%d",&a,&b);
  
if (a != 0 || b != 0) {
  
do {
  
if (a >= b)
 printf("%d %d",a,b);
  
if(a < b)
 printf("%d %d",b,a);
  
scanf ("%d" "%d",&a,&b);
  
} while (a != 0 && b != 0)
  
}
  
  
return 0;
  
}

Compiler output:
main.c: In function 'main':
main.c:21:27: error: expected ';' before '}' token
   21 | } while (a != 0 && b != 0)
      |                           ^
      |                           ;
   22 | 
   23 | }
      | ~                          
main.c:28:1: error: expected declaration or statement at end of input
   28 | }
      | ^
Language: C

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

   do {
     scanf("%d %d\n", &x[], &y[]);
     j = i++
   }while(x[] != 0 && y[] != 0;)

   for (k = 0; k<j; k++) {
     if (x[k] > y[k]) {

       temp = x[k];
       x[k] = y[k];
       y[k] = temp;

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

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:8: error: array size missing in 'x'
    3 |    int x[], y[], i = 0;
      |        ^
main.c:3:13: error: array size missing in 'y'
    3 |    int x[], y[], i = 0;
      |             ^
main.c:6:26: error: expected expression before ']' token
    6 |      scanf("%d %d\n", &x[], &y[]);
      |                          ^
main.c:7:6: error: 'j' undeclared (first use in this function)
    7 |      j = i++
      |      ^
main.c:7:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:13: error: expected ';' before '}' token
    7 |      j = i++
      |             ^
      |             ;
    8 |    }while(x[] != 0 && y[] != 0;)
      |    ~         
main.c:8:13: error: expected expression before ']' token
    8 |    }while(x[] != 0 && y[] != 0;)
      |             ^
main.c:8:33: error: expected ';' before 'for'
    8 |    }while(x[] != 0 && y[] != 0;)
      |                                 ^
      |                                 ;
    9 | 
   10 |    for (k = 0; k<j; k++) {
      |    ~~~                           
main.c:10:16: error: 'k' undeclared (first use in this function)
   10 |    for (k = 0; k<j; k++) {
      |                ^
main.c:10:24: error: expected ';' before ')' token
   10 |    for (k = 0; k<j; k++) {
      |                        ^
      |                        ;
main.c:10:24: error: expected statement before ')' token
main.c:13:8: error: 'temp' undeclared (first use in this function)
   13 |        temp = x[k];
      |        ^~~~
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:21:27: error: expected ';' before '}' token
   21 | } while (a != 0 && b != 0)
      |                           ^
      |                           ;
   22 | 
   23 | }
      | ~                          
main.c:28:1: error: expected declaration or statement at end of input
   28 | }
      | ^
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) {
 temp = x;
 y = temp;
 x = y;
}

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

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c:23:2: error: expected identifier or '(' before 'return'
   23 |  return 0;
      |  ^~~~~~
Language: C

#include <stdio.h>
#define NUMBER 10000
int main () {
   int x[NUMBER], y[NUMBER], i = 0;

   do {
     scanf("%d %d\n", &x[], &y[]);
     j = i++
   }while(x[] != 0 && y[] != 0;)

   for (k = 0; k<j; k++) {
     if (x[k] > y[k]) {

       temp = x[k];
       x[k] = y[k];
       y[k] = temp;

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

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:26: error: expected expression before ']' token
    7 |      scanf("%d %d\n", &x[], &y[]);
      |                          ^
main.c:8:6: error: 'j' undeclared (first use in this function)
    8 |      j = i++
      |      ^
main.c:8:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:13: error: expected ';' before '}' token
    8 |      j = i++
      |             ^
      |             ;
    9 |    }while(x[] != 0 && y[] != 0;)
      |    ~         
main.c:9:13: error: expected expression before ']' token
    9 |    }while(x[] != 0 && y[] != 0;)
      |             ^
main.c:9:33: error: expected ';' before 'for'
    9 |    }while(x[] != 0 && y[] != 0;)
      |                                 ^
      |                                 ;
   10 | 
   11 |    for (k = 0; k<j; k++) {
      |    ~~~                           
main.c:11:16: error: 'k' undeclared (first use in this function)
   11 |    for (k = 0; k<j; k++) {
      |                ^
main.c:11:24: error: expected ';' before ')' token
   11 |    for (k = 0; k<j; k++) {
      |                        ^
      |                        ;
main.c:11:24: error: expected statement before ')' token
main.c:14:8: error: 'temp' undeclared (first use in this function)
   14 |        temp = x[k];
      |        ^~~~
Language: C

#include <stdio.h>
#define NUMBER 10000
int main () {
   int x[NUMBER], y[NUMBER];
   int i = 0, j, k;

   do {
     scanf("%d %d\n", &x[], &y[]);
     j = i++
   }while(x[] != 0 && y[] != 0;)

   for (k = 0; k<j; k++) {
     if (x[k] > y[k]) {

       temp = x[k];
       x[k] = y[k];
       y[k] = temp;

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

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:26: error: expected expression before ']' token
    8 |      scanf("%d %d\n", &x[], &y[]);
      |                          ^
main.c:9:13: error: expected ';' before '}' token
    9 |      j = i++
      |             ^
      |             ;
   10 |    }while(x[] != 0 && y[] != 0;)
      |    ~         
main.c:10:13: error: expected expression before ']' token
   10 |    }while(x[] != 0 && y[] != 0;)
      |             ^
main.c:10:33: error: expected ';' before 'for'
   10 |    }while(x[] != 0 && y[] != 0;)
      |                                 ^
      |                                 ;
   11 | 
   12 |    for (k = 0; k<j; k++) {
      |    ~~~                           
main.c:12:24: error: expected ';' before ')' token
   12 |    for (k = 0; k<j; k++) {
      |                        ^
      |                        ;
main.c:12:24: error: expected statement before ')' token
main.c:15:8: error: 'temp' undeclared (first use in this function)
   15 |        temp = x[k];
      |        ^~~~
main.c:15:8: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main () {
     int x[3000], y[3000], n;
     for (n = 1; n < 3000; n++) {
          scanf ("%d %d", &a[n], &b[n]);

          if (x[n] == 0 && y[n] == 0)
               break;
     }

     for (n = 1; n < 3000; n++) {
          if (x[n] <= y[n]) {
                printf ("%d %d", x[n], y[n]);
          } else {
                printf ("%d %d", y[n], x[n]);
          }
      }

     return 0;

}

Compiler output:
main.c: In function 'main':
main.c:6:28: error: 'a' undeclared (first use in this function)
    6 |           scanf ("%d %d", &a[n], &b[n]);
      |                            ^
main.c:6:28: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:35: error: 'b' undeclared (first use in this function)
    6 |           scanf ("%d %d", &a[n], &b[n]);
      |                                   ^
Language: C

#include<stdio.h>
int main(void)
{
    int x[],y[],i,j;

    do {
    scanf("%d %d",&x[],&y[]);
    j = i++;
    } while(x[] != 0 && y[] != 0);

    for (i = 1;i <= j;i++) {
       if (x[i] > y[i]) {
        printf("%d %d\n",x[i],y[i]);
     } else {
        printf("%d %d\n",y[i],x[i]);
     }
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: array size missing in 'x'
    4 |     int x[],y[],i,j;
      |         ^
main.c:4:13: error: array size missing in 'y'
    4 |     int x[],y[],i,j;
      |             ^
main.c:7:22: error: expected expression before ']' token
    7 |     scanf("%d %d",&x[],&y[]);
      |                      ^
main.c:9:15: error: expected expression before ']' token
    9 |     } while(x[] != 0 && y[] != 0);
      |               ^
Language: C

#include<stdio.h>

int main (void){

	int x[3000],y[3000];
	int i;
	int a,b,c;
	x[3000] >= 0;
	y[3000] <= 10000;

for(i = 0;i <3000; i++){

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

for(i = 0; i < c; i++){

	
	if (x[i] <= y[i]){
	a = x[i];
	b = y[i];
	}else{
	a = y[i];
	b = x[i];
	}
	
	printf("%d %d\n", a, b);
}

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:12: error: expected ';' before '}' token
   18 |         c++
      |            ^
      |            ;
   19 | }
      | ~
Language: C

#include <stdio.h>
#define NUMBER 10000
int main () {
   int x[NUMBER], y[NUMBER];
   int i = 0, j = 0, k, temp;

   do {
     scanf("%d %d\n", &x[j], &y[j]);
     j = i++;
   }while(x[] != 0 && y[] != 0);

   for (k = 0; k<j; k++) {
     if (x[k] > y[k]) {

       temp = x[k];
       x[k] = y[k];
       y[k] = temp;

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

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:13: error: expected expression before ']' token
   10 |    }while(x[] != 0 && y[] != 0);
      |             ^
Language: C

#include<stdio.h>
int main(void)
{
    int x[],y[],i,j;

    do {
      for(i = 0;i <= 3000;i++) {
        scanf("%d %d",&x[i],&y[i]);
        j++;
      }
    } while(x[i] != 0 && y[i] != 0);

    for (i = 0;i < j;i++) {
       if (x[i] >= y[i]) {
        printf("%d %d\n",x[i],y[i]);
     } else {
        printf("%d %d\n",y[i],x[i]);
     }
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: array size missing in 'x'
    4 |     int x[],y[],i,j;
      |         ^
main.c:4:13: error: array size missing in 'y'
    4 |     int x[],y[],i,j;
      |             ^
Language: C

#include <stdio.h>

int main () {
     int x[3000], y[3000], n, m;
     while {
          scanf ("%d %d", &x[n], &y[n]);

          if (x[n] == 0 && y[n] == 0){
               m = n;
               break;
          }
     }

     for (n = 1; n < m+1; n++) {
          if (x[n] <= y[n]) {
                printf ("%d %d", x[n], y[n]);
          } else {
                printf ("%d %d", y[n], x[n]);
          }
      }

     return 0;

}

Compiler output:
main.c: In function 'main':
main.c:5:12: error: expected '(' before '{' token
    5 |      while {
      |            ^
      |            (
Language: C

#include<stdio.h>
int main(void)
{
    int x[],y[],i,j;

    do{
      for (i=0; i<=3000; i++) {
        scanf("%d %d",&x[i],&y[i]);
        j++;
      }
    }while (x[i]!=0 && y[i]!=0);

    for (i=0; i<j; i++) {
       if (x[i] >= y[i]) {
        printf("%d %d\n",x[i],y[i]);
     }else{
        printf("%d %d\n",y[i],x[i]);
     }
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: array size missing in 'x'
    4 |     int x[],y[],i,j;
      |         ^
main.c:4:13: error: array size missing in 'y'
    4 |     int x[],y[],i,j;
      |             ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:21:27: error: expected ';' before '}' token
   21 | } while (a != 0 && b != 0)
      |                           ^
      |                           ;
   22 | 
   23 | }
      | ~                          
main.c:28:1: error: expected declaration or statement at end of input
   28 | }
      | ^
Language: C

#include <stdio.h>

int main()
{
    int x[3000], y[3000];
    int i = 0;

    do
    {
        scanf("%d %d", x[i] ,y[i]);
        i++;
    }while ((x[i - 1] == 0) && (y[i - 1] == 0))

    while (i >= 0)
    {
        if (x[i] > y[i])
        {
            pritf("%d %d\n", x[i], y[i]);
        }
        else if(x[i] < y[i])
        {
            printf ("%d %d\n", y[i] ,x[i]);
        }
    i++;
    }

Compiler output:
main.c: In function 'main':
main.c:12:48: error: expected ';' before 'while'
   12 |     }while ((x[i - 1] == 0) && (y[i - 1] == 0))
      |                                                ^
      |                                                ;
   13 | 
   14 |     while (i >= 0)
      |     ~~~~~                                       
main.c:25:5: error: expected declaration or statement at end of input
   25 |     }
      |     ^
Language: C

#include <stdio.h>

int main () {
     int x[3000], y[3000], n, ;
     for (n = 0; n < 3000; n++) {
          scanf ("%d %d", &x[n], &y[n]);

          if (x[n] == 0 && y[n] == 0)
               break;
          }
     }

     for (n = 0; n < 3000; n++) {
          if (x[n] == 0 && y[n] == 0)
               break;
          if (x[n] <= y[n]) {
                printf ("%d %d", x[n], y[n]);
          } else {
                printf ("%d %d", y[n], x[n]);
          }
      }

     return 0;

}

Compiler output:
main.c: In function 'main':
main.c:4:31: error: expected identifier or '(' before ';' token
    4 |      int x[3000], y[3000], n, ;
      |                               ^
main.c: At top level:
main.c:13:6: error: expected identifier or '(' before 'for'
   13 |      for (n = 0; n < 3000; n++) {
      |      ^~~
main.c:13:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   13 |      for (n = 0; n < 3000; n++) {
      |                    ^
main.c:13:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   13 |      for (n = 0; n < 3000; n++) {
      |                             ^~
main.c:23:6: error: expected identifier or '(' before 'return'
   23 |      return 0;
      |      ^~~~~~
main.c:25:1: error: expected identifier or '(' before '}' token
   25 | }
      | ^
Language: C

#include <stdio.h>
#define NUMBER 10000
int main () {
   int x[NUMBER], y[NUMBER];
   int i = 0, j = 0, k, temp;

   for (i = 0; i<NUMBER; i++) {
     scanf ("%d %d\n", &x[i], &y[i]);
     if (x[i] = 0 && yy[i] = 0) {
       j = i;
       break;
     }
   }

   for (k = 0; k <=i; K++) {
     if (x[k] > y[k]) {

       temp = x[k];
       x[k] = y[k];
       y[k] = temp;
     }

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

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:22: error: 'yy' undeclared (first use in this function); did you mean 'y'?
    9 |      if (x[i] = 0 && yy[i] = 0) {
      |                      ^~
      |                      y
main.c:9:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:23: error: 'K' undeclared (first use in this function)
   15 |    for (k = 0; k <=i; K++) {
      |                       ^
Language: C

#include <stdio.h>

int main () {
     int x[3000], y[3000], n;
     for (n = 0; n < 3000; n++) {
          scanf ("%d %d", &x[n], &y[n]);

          if (x[n] == 0 && y[n] == 0)
               break;
          }
     }

     for (n = 0; n < 3000; n++) {
          if (x[n] == 0 && y[n] == 0)
               break;
          if (x[n] <= y[n]) {
                printf ("%d %d", x[n], y[n]);
          } else {
                printf ("%d %d", y[n], x[n]);
          }
      }

     return 0;

}

Compiler output:
main.c:13:6: error: expected identifier or '(' before 'for'
   13 |      for (n = 0; n < 3000; n++) {
      |      ^~~
main.c:13:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   13 |      for (n = 0; n < 3000; n++) {
      |                    ^
main.c:13:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   13 |      for (n = 0; n < 3000; n++) {
      |                             ^~
main.c:23:6: error: expected identifier or '(' before 'return'
   23 |      return 0;
      |      ^~~~~~
main.c:25:1: error: expected identifier or '(' before '}' token
   25 | }
      | ^
Language: C

#include<stdio.h>
int main(void)
{
    int x[],y[],i,j;

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

    for (i=0; i<j; i++) {
       if (x[i] >= y[i]) {
        printf("%d %d\n",x[i],y[i]);
     }else{
        printf("%d %d\n",y[i],x[i]);
     }
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: array size missing in 'x'
    4 |     int x[],y[],i,j;
      |         ^
main.c:4:13: error: array size missing in 'y'
    4 |     int x[],y[],i,j;
      |             ^
Language: C

#include <stdio.h>
#define NUMBER 10000
int main () {
   int x[NUMBER], y[NUMBER];
   int i = 0, j = 0, k, temp;

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

   for (k = 0; k <=i; K++) {
     if (x[k] > y[k]) {

       temp = x[k];
       x[k] = y[k];
       y[k] = temp;
     }

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

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:27: error: lvalue required as left operand of assignment
    9 |      if (x[i] = 0 && y[i] = 0) {
      |                           ^
main.c:15:23: error: 'K' undeclared (first use in this function)
   15 |    for (k = 0; k <=i; K++) {
      |                       ^
main.c:15:23: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#define NUMBER 10000
int main () {
   int x[NUMBER], y[NUMBER];
   int i = 0, j = 0, k, temp;

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

   for (k = 0; k <=i; k++) {
     if (x[k] > y[k]) {

       temp = x[k];
       x[k] = y[k];
       y[k] = temp;
     }

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

   return 0;
}

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

#include<stdio.h>

int main(){ 
    
    int x, y, z[2];

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

          if(x>=y){
            z[0]=x;
            z[1]=y;
          }
          else if(y>x){
            z[0]=y;
            z[1]=x;
          }
          
          printf("%d %d\n", z[0], z[1]);     
      }
}

Compiler output:
main.c: In function 'main':
main.c:7:14: error: expected ')' before ';' token
    7 |     while(x=0;y=0){
      |          ~   ^
      |              )
Language: C

#include<stdio.h>

int main(){ 
    
    int x, y, z[2];

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

          if(x>=y){
            z[0]=x;
            z[1]=y;
          }
          else{
            z[0]=y;
            z[1]=x;
          }
          
          printf("%d %d\n", z[0], z[1]);     
      }
}

Compiler output:
main.c: In function 'main':
main.c:7:14: error: expected ')' before ';' token
    7 |     while(x=0;y=0){
      |          ~   ^
      |              )
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:4: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    8 |    elseif(x>y)
      |    ^~~~~~
main.c:8:15: error: expected ';' before 'printf'
    8 |    elseif(x>y)
      |               ^
      |               ;
    9 |    printf("%d %d\n",y,x);
      |    ~~~~~~
Language: C

#include <stdio.h>
#define NUMBER 10000
int main () {
   int x[NUMBER], y[NUMBER];
   int i = 0, j = 0, k, temp;

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

   for (k = 0; k <=j; k++) {
     if (x[k] > y[k]) {
      printf ("%d %d\n",x[k], y[k]);
     }else {
      printf ("%d %d\n",y[k], x[k]);
     }

   return 0;
}

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

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

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

#include<stdio.h>
    
int main() {
 
int a[3000], b[3000], i, t = 0;
    
for (i = 0; i < 3000; i ++)
 scanf ("%d" "%d", &a[i], &b[i]);

while (a[t] != 0 && b[t] != 0) {

if(a[i] >= b[i])
printf (%d %d\n,a[i],b[i]);

if(b[i] > a[i])
 printf("%d %d"\n,b[i],a[i]);

}
   
return 0;
    
}

Compiler output:
main.c: In function 'main':
main.c:13:9: error: expected expression before '%' token
   13 | printf (%d %d\n,a[i],b[i]);
      |         ^
main.c:13:14: error: stray '\' in program
   13 | printf (%d %d\n,a[i],b[i]);
      |              ^
main.c:16:16: error: stray '\' in program
   16 |  printf("%d %d"\n,b[i],a[i]);
      |                ^
main.c:16:16: error: expected ')' before 'n'
   16 |  printf("%d %d"\n,b[i],a[i]);
      |        ~       ^~
      |                )
Language: C

#include<stdio.h>

int main(){ 
    
  int x, y, z[2];

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

          if(x>=y){
            z[1]=x;
            z[0]=y;
          }
          else{
            z[1]=y;
            z[0]=x;
          }
          
          printf("%d %d\n", z[0], z[1]);     

Compiler output:
main.c: In function 'main':
main.c:9:36: error: expected statement before ']' token
    9 |           scanf("%d %d\n", &x, &y);]
      |                                    ^
main.c:20:11: error: expected declaration or statement at end of input
   20 |           printf("%d %d\n", z[0], z[1]);
      |           ^~~~~~
main.c:20:11: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>

int main(){ 
    
  int x, y, z[2];

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

          if(x>=y){
            z[1]=x;
            z[0]=y;
          }
          else{
            z[1]=y;
            z[0]=x;
          }
          
          printf("%d %d\n", z[0], z[1]);     

Compiler output:
main.c: In function 'main':
main.c:20:11: error: expected declaration or statement at end of input
   20 |           printf("%d %d\n", z[0], z[1]);
      |           ^~~~~~
main.c:20:11: error: expected declaration or statement at end of input
Language: C

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

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

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

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

#include<stdio.h>

int main(){ 
    
  int x, y, z[2];

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

          if(x>=y){
            z[1]=x;
            z[0]=y;
          }
          else{
            z[1]=y;
            z[0]=x;
          }
          
          printf("%d %d\n", z[0], z[1]);     
   }
}

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

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

Compiler output:
main.c: In function 'main':
main.c:8:4: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    8 |    elseif(x>y)
      |    ^~~~~~
main.c:8:15: error: expected ';' before 'printf'
    8 |    elseif(x>y)
      |               ^
      |               ;
    9 |    printf("%d %d\n",y,x);
      |    ~~~~~~      
main.c:10:24: error: expected ';' before 'printf'
   10 |    elseif(x==0 && y==0)
      |                        ^
      |                        ;
   11 |    printf("");
      |    ~~~~~~
Language: C

#include<stdio.h>

int main(){ 
    
  int x, y, z[2];

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

          if(x>=y){
            z[1]=x;
            z[0]=y;
          }
          else{
            z[1]=y;
            z[0]=x;
          }
          
          printf("%d %d\n", z[0], z[1]);     
   }
}

Compiler output:
main.c: In function 'main':
main.c:7:12: error: expected ')' before ';' token
    7 |   while(x=0;y=0){
      |        ~   ^
      |            )
Language: C

#include<stdio.h>
     
int main() {
  
int a[3000], b[3000], i, t = 0;
     
for (i = 0; i < 3000; i ++)
 scanf ("%d" "%d", &a[i], &b[i]);
 
while (a[t] != 0 || b[t] != 0) {
 
if(a[i] >= b[i])
printf (%d %d\n,a[i],b[i]);
 
if(b[i] > a[i])
 printf("%d %d"\n,b[i],a[i]);
 
}
    
return 0;
     
}

Compiler output:
main.c: In function 'main':
main.c:13:9: error: expected expression before '%' token
   13 | printf (%d %d\n,a[i],b[i]);
      |         ^
main.c:13:14: error: stray '\' in program
   13 | printf (%d %d\n,a[i],b[i]);
      |              ^
main.c:16:16: error: stray '\' in program
   16 |  printf("%d %d"\n,b[i],a[i]);
      |                ^
main.c:16:16: error: expected ')' before 'n'
   16 |  printf("%d %d"\n,b[i],a[i]);
      |        ~       ^~
      |                )
Language: C

#include <stdio.h>

int main(){
 int x[];
 int y[];
 int j = 1;
 int c = 0;
 for(int i = 0; j != 0; i++){
  scanf("%d %d\n", &x[i], &y[i]);
  if(x[i] ==0 && y[i] == 0)
   j = 0;
  else
   c++;
 }

 for(int i = 0; i < c; i++){
  if(x[i] > y[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:4:6: error: array size missing in 'x'
    4 |  int x[];
      |      ^
main.c:5:6: error: array size missing in 'y'
    5 |  int y[];
      |      ^
Language: C

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

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

#include<stdio.h>

int main (void)
{
  int x[3000], y[3000], i = 0, temp;
  do
  {
    scanf("%d %d", &x[i], &y[i]);
    if (x[i] > y[i])
    {
      temp = x[i];
      x[i] = y[i];
      y[i] = temp;
    }
    i++;
  } while (x[i-1] != 0 || y[i-1] != 0);
  
  i = 0;
  
  while (x[i] != 0 || y[i] != 0);
  {
    printf("%d %d\n", x[i], y[i]);
    i++;
  }
  
  return 0;

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

#include <stdio.h>
#define NUMBER 3000
int main () {
   int x[NUMBER], y[NUMBER];
   int i = 0, j = 0, k;

   for (i = 0; i<NUMBER; i++) {

     scanf ("%d %d\n", &x[i], &y[i]);

     if (x[i] == 0 && y[i] == 0) {
       break;
     }
   }

   for (k = 0; k <NUMBER; k++) {
     if (x[k] < y[k]) {
      printf ("%d %d\n",x[k], y[k]);
     } else (y[k] < x[k]) {
      printf ("%d %d\n",y[k], x[k]);
     }
     if (x[k] == 0 && y[k] == 0) {
       break;
     }
   }

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:26: error: expected ';' before '{' token
   19 |      } else (y[k] < x[k]) {
      |                          ^~
      |                          ;
Language: C

#include <stdio.h>
int main () {
   int x[3000],y[3000];
   int i, j;

   for (i = 0; i<3000; i++) {

     scanf ("%d %d\n", &x[i], &y[i]);

     if (x[i] == 0 && y[i] == 0) {
       break;
     }
     j++
   }

   for (i = 0; i < j; i++) {

     if (x[k] <= y[k]) {
      printf ("%d %d\n",x[i], y[i]);
     } else {
      printf ("%d %d\n",y[i], x[i]);
     }

   }

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:9: error: expected ';' before '}' token
   13 |      j++
      |         ^
      |         ;
   14 |    }
      |    ~     
main.c:18:12: error: 'k' undeclared (first use in this function)
   18 |      if (x[k] <= y[k]) {
      |            ^
main.c:18:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(){
 int x[];
 int y[];
 int j = 0;
 int c = 0;
 int i;
 for(i = 0; j = 0; i++){
  scanf("%d %d\n", &x[i], &y[i]);
  if(x[i] ==0 && y[i] == 0)
   j = 1;
  else
   c++;
 }

 for(i = 0; i < c; i++){
  if(x[i] > y[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:4:6: error: array size missing in 'x'
    4 |  int x[];
      |      ^
main.c:5:6: error: array size missing in 'y'
    5 |  int y[];
      |      ^
Language: C

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

 

Compiler output:
main.c: In function 'main':
main.c:9:25: error: expected expression before '==' token
    9 |         if(x[i]==0&&y[i[==0)
      |                         ^~
main.c:9:28: error: expected ']' before ')' token
    9 |         if(x[i]==0&&y[i[==0)
      |                            ^
      |                            ]
Language: C

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

 

Compiler output:
main.c: In function 'main':
main.c:9:25: error: expected expression before '==' token
    9 |         if(x[i]==0&&y[i[==0)
      |                         ^~
main.c:9:28: error: expected ']' before ')' token
    9 |         if(x[i]==0&&y[i[==0)
      |                            ^
      |                            ]
main.c:12:14: error: expected ';' before '}' token
   12 |         i = u
      |              ^
      |              ;
   13 |     }
      |     ~
Language: C

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

 

Compiler output:
main.c: In function 'main':
main.c:12:14: error: expected ';' before '}' token
   12 |         i = u
      |              ^
      |              ;
   13 |     }
      |     ~
Language: C

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

 

Compiler output:
main.c: In function 'main':
main.c:12:14: error: expected ';' before '}' token
   12 |         i = u
      |              ^
      |              ;
   13 |     }
      |     ~
Language: C

#include <stdio.h>

int main(){
 int x[2000];
 int y[2000];
 int i = 0;

 do{
  scanf("%d %d",&x[i], &y[i]);
  if(x[i] == 0 && y[i] == 0) break;
  i++;
 }while(1)

 for(j = 0;j <= i;j++){
  if(x[j] < y[j])
   printf("%d %d\n",x[j], y[j]);
  else
   printf("%d %d\n",y[j], x[j]);
 }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:11: error: expected ';' before 'for'
   12 |  }while(1)
      |           ^
      |           ;
   13 | 
   14 |  for(j = 0;j <= i;j++){
      |  ~~~       
main.c:14:12: error: 'j' undeclared (first use in this function)
   14 |  for(j = 0;j <= i;j++){
      |            ^
main.c:14:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:22: error: expected ';' before ')' token
   14 |  for(j = 0;j <= i;j++){
      |                      ^
      |                      ;
main.c:14:22: error: expected statement before ')' token
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:12:11: error: expected ';' before 'for'
   12 |  }while(1)
      |           ^
      |           ;
   13 | 
   14 |  for(int j = 0;j <= i;j++){
      |  ~~~       
main.c:14:16: error: 'j' undeclared (first use in this function)
   14 |  for(int j = 0;j <= i;j++){
      |                ^
main.c:14:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:26: error: expected ';' before ')' token
   14 |  for(int j = 0;j <= i;j++){
      |                          ^
      |                          ;
main.c:14:26: error: expected statement before ')' token
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:11: error: expected ';' before 'for'
   14 |  }while(c)
      |           ^
      |           ;
   15 | 
   16 |  for(int j = 0;j < i;j++){
      |  ~~~       
main.c:16:16: error: 'j' undeclared (first use in this function)
   16 |  for(int j = 0;j < i;j++){
      |                ^
main.c:16:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:25: error: expected ';' before ')' token
   16 |  for(int j = 0;j < i;j++){
      |                         ^
      |                         ;
main.c:16:25: error: expected statement before ')' token
Language: C

#include<stdio.h>

int main(){
 
 int i=0;
 int k=1;
 int x[3000], y[3000];
 
 do{
     scanf("%d %d\n", &x[i], &y[i]);
     i++;
     if(x[i]==0 && y[i]==0)
        break;
 while(k);

 for(j=0; j<i;j++){
    if(x[j]>=y[j])  
        printf("%d %d\n", x[j], y[j]);
    else 
        printf("%d %d\n", x[j], y[j]);
 }
} 
     
     

 

Compiler output:
main.c: In function 'main':
main.c:16:6: error: 'j' undeclared (first use in this function)
   16 |  for(j=0; j<i;j++){
      |      ^
main.c:16:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:22:1: error: expected 'while' at end of input
   22 | }
      | ^
main.c:22:1: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>

int main(){
 
 int i=0;
 int k=1;
 int j;

 int x[3000], y[3000];
 
 do{
     scanf("%d %d\n", &x[i], &y[i]);
     i++;
     if(x[i]==0 && y[i]==0)
        break;
 while(k);

 for(j=0; j<i;j++){
    if(x[j]>=y[j])  
        printf("%d %d\n", x[j], y[j]);
    else 
        printf("%d %d\n", x[j], y[j]);
 }
} 
     
     

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

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

   return 0;

}



} 

Compiler output:
main.c:31:1: error: expected identifier or '(' before '}' token
   31 | }
      | ^
Language: C

#include<stdio.h>
int main(){
int i,j,temp;
int x[10000];
int y[10000];

for(i=0; i<10000; i++){
   scanf("%d%d", x[i], y[i]);
if(x[i]>y[i]){
 temp = x;
 x = y;
 y = temp;
}

if(x[i]==0 && y[i]==0){
  break;
 }
}

for(j=0; j<i; j++){
 printf(%d %d\n", x[j], y[j]);
}

return 0;

}  

Compiler output:
main.c: In function 'main':
main.c:10:7: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion]
   10 |  temp = x;
      |       ^
main.c:11:4: error: assignment to expression with array type
   11 |  x = y;
      |    ^
main.c:12:4: error: assignment to expression with array type
   12 |  y = temp;
      |    ^
main.c:21:9: error: expected expression before '%' token
   21 |  printf(%d %d\n", x[j], y[j]);
      |         ^
main.c:21:14: error: stray '\' in program
   21 |  printf(%d %d\n", x[j], y[j]);
      |              ^
main.c:21:16: warning: missing terminating " character
   21 |  printf(%d %d\n", x[j], y[j]);
      |                ^
main.c:21:16: error: missing terminating " character
   21 |  printf(%d %d\n", x[j], y[j]);
      |                ^~~~~~~~~~~~~~~
main.c:21:16: error: expected ';' before '}' token
   21 |  printf(%d %d\n", x[j], y[j]);
      |                ^
      |                ;
   22 | }
      | ~
Language: C

#include<stdio.h>
int main(){
int i,j,temp;
int x[10000];
int y[10000];

for(i=0; i<10000; i++){
   scanf("%d%d", x[i], y[i]);
if(x[i]>y[i]){
 temp = x[i];
 x[i] = y[i];
 y[i] = temp;
}

if(x[i]==0 && y[i]==0){
  break;
 }
}

for(j=0; j<i; j++){
 printf(%d %d\n", x[j], y[j]);
}

return 0;

}  

Compiler output:
main.c: In function 'main':
main.c:21:9: error: expected expression before '%' token
   21 |  printf(%d %d\n", x[j], y[j]);
      |         ^
main.c:21:14: error: stray '\' in program
   21 |  printf(%d %d\n", x[j], y[j]);
      |              ^
main.c:21:16: warning: missing terminating " character
   21 |  printf(%d %d\n", x[j], y[j]);
      |                ^
main.c:21:16: error: missing terminating " character
   21 |  printf(%d %d\n", x[j], y[j]);
      |                ^~~~~~~~~~~~~~~
main.c:21:16: error: expected ';' before '}' token
   21 |  printf(%d %d\n", x[j], y[j]);
      |                ^
      |                ;
   22 | }
      | ~
Language: C

#include <stdio.h>

int main(void)
{
    int x,y,i,a;
    for(i=1; i<=3000; i++){
        scanf("%d %d",&x,&y);
        if (x > y){
            a=x;
            x=y;
            y=a;
        }
        printf("%d %d\n",x,y);
    if (n==0) break;
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:9: error: 'n' undeclared (first use in this function)
   14 |     if (n==0) break;
      |         ^
main.c:14:9: 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(;;){
scanf("%d %d",&x,&y);
if(x == 0 && y == 0)break;

x > y ? printf("%d %d/n",y,a):printf("%d %d\n",x,y);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:28: error: 'a' undeclared (first use in this function)
   11 | x > y ? printf("%d %d/n",y,a):printf("%d %d\n",x,y);
      |                            ^
main.c:11:28: note: each undeclared identifier is reported only once for each function it appears in