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

int main(){
    int x, y, i, n;
    for(i<o; i<4000; i++){
        scanf("%d%d", &x, &y); 
        for(x!=0; y!=0){
        if(x>y){
        n=x;
        x=y;
        y=n;
        printf("%d %d\n", x, y);}
        else{printf("%d %d\n", x, y);}
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:11: error: 'o' undeclared (first use in this function)
    3 |     for(i<o; i<4000; i++){
      |           ^
main.c:3:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |         scanf("%d%d", &x, &y);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:4:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |         scanf("%d%d", &x, &y);
      |         ^~~~~
main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:23: error: expected ';' before ')' token
    5 |         for(x!=0; y!=0){
      |                       ^
      |                       ;
main.c:10:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |         printf("%d %d\n", x, y);}
      |         ^~~~~~
main.c:10:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:14: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   11 |         else{printf("%d %d\n", x, y);}
      |              ^~~~~~
main.c:11:14: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:1: error: expected declaration or statement at end of input
   14 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:24: error: 'x' undeclared (first use in this function)
    5 |         scanf("%d %d",&x,&y);
      |                        ^
main.c:5:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:27: error: 'y' undeclared (first use in this function)
    5 |         scanf("%d %d",&x,&y);
      |                           ^
Language: C

#include <stdio.h>

int main(void){
	int x, y;	

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

Compiler output:
main.c: In function 'main':
main.c:17:9: error: expected 'while' before 'return'
   17 |         return 0;
      |         ^~~~~~
Language: C

#include <stdio.h>

int main(void)
{

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

i=0;

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

i++;

}

n=i;
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:30:2: error: expected declaration or statement at end of input
   30 |  return 0;
      |  ^~~~~~
Language: C

#include <stdio.h>

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

 while(1){

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

  if( x^2 + y^2 == 0 ) break;

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

 return 0;

}

Compiler output:
main.c: In function 'main':
main.c:5:10: error: expected identifier or '(' before ';' token
    5 |  int x,y,;
      |          ^
main.c:21:1: error: expected declaration or statement at end of input
   21 | }
      | ^
Language: C

#include <stdio.h>

int main(void)
{
 int x,y;

 while(1){

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

  if( x^2 + y^2 == 0 ) break;

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

 return 0;

}

Compiler output:
main.c: In function 'main':
main.c:21:1: error: expected declaration or statement at end of input
   21 | }
      | ^
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(y>x){
            printf("%d %d\n",x,y);
        }else{
            printf("%d %d",y,x);
        }
    }
    return 0;
}

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

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:10: error: expected ')' before '!' token
    8 |  while((x! == 0)&&(y !== 0)){
      |        ~ ^
      |          )
main.c:8:24: error: expected expression before '=' token
    8 |  while((x! == 0)&&(y !== 0)){
      |                        ^
Language: C

#include<stdio.h>

int main () {

   int x, y;

   while (i) {
        scanf("%d %d", &x, &y);

        if(x == 0 && y == 0){
           break;
        }else if (x > y) {
           swap = x;
           x = y;
           y = swap;
        }

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

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:11: error: 'i' undeclared (first use in this function)
    7 |    while (i) {
      |           ^
main.c:7:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:12: error: 'swap' undeclared (first use in this function)
   13 |            swap = x;
      |            ^~~~
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) {
           swap = x;
           x = y;
           y = swap;
        }

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

   return 0;
}

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

#include <stdio.h>

void swap(int *x, int *y)
{
  int temp;

  temp = *y;
  *y = *x;
  *x = temp;
}

int main(void)
{
  int a, b;

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

  while(true) {
  scanf("%d %d", &a, &b);
  if(a < b) 
    swap(&a, &b);
  if (a != 0 || b != 0)
    printf("%d %d", &a, &b);
  else
    break;
  }

  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:18:9: error: 'true' undeclared (first use in this function)
   18 |   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:18:9: note: each undeclared identifier is reported only once for each function it appears in
   18 |   while(true) {
      |         ^~~~
Language: C

#include <stdio.h>

void swap(int *x, int *y)
{
  int temp;

  temp = *y;
  *y = *x;
  *x = temp;
}

int main(void)
{
  int a, b;

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

  while(true) {
  scanf("%d %d", &a, &b);
  if(a < b) 
    swap(&a, &b);
  if (a != 0 || b != 0)
    printf("%d %d", a, b);
  else
    break;
  }

  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:18:9: error: 'true' undeclared (first use in this function)
   18 |   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:18:9: note: each undeclared identifier is reported only once for each function it appears in
   18 |   while(true) {
      |         ^~~~
Language: C

#include <stdio.h>

int main(void)
{
  int a, b;

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

  while(true) {
  scanf("%d %d", &a, &b);
  if(a < b) 
    swap(&a, &b);
  if (a != 0 || b != 0)
    printf("%d %d", a, b);
  else
    break;
  }

  return 0;
}

void swap(int *x, int *y)
{
  int temp;

  temp = *y;
  *y = *x;
  *x = temp;
}
  

Compiler output:
main.c: In function 'main':
main.c:9:9: error: 'true' undeclared (first use in this function)
    9 |   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:9:9: note: each undeclared identifier is reported only once for each function it appears in
    9 |   while(true) {
      |         ^~~~
main.c:12:5: error: implicit declaration of function 'swap' [-Wimplicit-function-declaration]
   12 |     swap(&a, &b);
      |     ^~~~
main.c: At top level:
main.c:22:6: warning: conflicting types for 'swap'; have 'void(int *, int *)'
   22 | void swap(int *x, int *y)
      |      ^~~~
main.c:12:5: note: previous implicit declaration of 'swap' with type 'void(int *, int *)'
   12 |     swap(&a, &b);
      |     ^~~~
Language: C

#include <stdio.h>

int main(void)
{
  int a, b, temp;

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

  while(true) {
  scanf("%d %d", &a, &b);
  if(a < b) 
    temp = b;
    b = a;
    a = temp;
  if (a != 0 || b != 0)
    printf("%d %d", a, b);
  else
    break;
  }

  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:9:9: error: 'true' undeclared (first use in this function)
    9 |   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:9:9: note: each undeclared identifier is reported only once for each function it appears in
    9 |   while(true) {
      |         ^~~~
Language: C

#include<stdio.h>

int main(){

  int x, y, z;

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

  return 0;
}

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

#include<stdio.h>

int main(){

  int x, y, z;

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

  return 0;
}

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

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

		if (x == 0 && y == 0) {
			break;
		}
		if (x > y) {
			a = x;
			x = y;
			y = a;
			printf("%d %d", x, y);
		}
		else if (x == y){
			printf("%d %d", x, y);
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:17: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |                 scanf_s("%d%d", &x, &y);
      |                 ^~~~~~~
      |                 scanf
Language: C

#include<stdio.h>

int main(){

 int x,y;

 while(1){

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

    if(a < b){

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

     }

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

    break;

    }

  
    else{

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

   }

  }

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;
    scanf"%d %d", &x, &y);
    while(1){
        if(x == 0 && y == 0){
            break;
        }else 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:4:10: error: expected ';' before string constant
    4 |     scanf"%d %d", &x, &y);
      |          ^~~~~~~
      |          ;
main.c:4:25: error: expected statement before ')' token
    4 |     scanf"%d %d", &x, &y);
      |                         ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:16: error: array size missing in 'min'
    3 |   int i, x, y, min[], max[];
      |                ^~~
main.c:3:23: error: array size missing in 'max'
    3 |   int i, x, y, min[], max[];
      |                       ^~~
main.c:17:3: error: 'n' undeclared (first use in this function)
   17 |   n = i;
      |   ^
main.c:17:3: 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 > y){
   printf("%d %d\n", y, x);
  }else{
   printf("%d %d\n", x, y);
  }
  if(x ==0 && y ==0) break;
 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 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 x[3000],y[3000],n,idx;
for(i=0;i<3000;i++){
scanf("%d %d",&x[i],&y[i]);
if((x[i]==0)&&(y[i]==0)){
n=i-1;
break;
}
if(x[i]>y[i]){
n=x[i];
x[i]=y[i];
y[i]=n;
}
}
for(i=0;i<n;i++){
printf("%d %d?\n",x[i],y[i]);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:5: error: 'i' undeclared (first use in this function)
    4 | for(i=0;i<3000;i++){
      |     ^
main.c:4:5: 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(i=0;i<3000;i++){
scanf("%d %d",&x[i],&y[i]);
if((x[i]==0)&&(y[i]==0)){
n=i-1;
break;
}else if(x[i]>y[i]){
n=x[i];
x[i]=y[i];
y[i]=n;
}
}
for(i=0;i<n;i++){
printf("%d %d?\n",x[i],y[i]);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:5: error: 'i' undeclared (first use in this function)
    4 | for(i=0;i<3000;i++){
      |     ^
main.c:4:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#include<math.h>
int main(){
int x,y,i;
for(i=0;i<3000;i++){
scanf("%d %d",&x,&y);
if((x==0)&&(y==0)){
break;
}
x=fmin(x,y);
y=fmax(x,y);
printf("%d %d?\n",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(){
int x,y,i;
for(i=0;i<3000;i++){
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:10:1: error: 'n' undeclared (first use in this function)
   10 | n=x;
      | ^
main.c:10:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#include<math.h>
int main(){
int i=1,x,y,min,max;
while(i<=3000){
scanf("%d %d",&x,&y);
if(x==0 && y ==0){
break;
}
min=fmin(x,y);
max=fmax(x,y);
printf("%d %d?\n",min,max);
i++;
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,i;
 for(i=1;i<=10000;i++){
 scanf("%d %d",&x,&y);
if(x==0 && y==0) break;
  printf("%d %d\n",x,y);
  }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:20: error: 'y' undeclared (first use in this function)
    5 |  scanf("%d %d",&x,&y);
      |                    ^
main.c:5:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:12: error: expected ';' before 'i'
    4 |  for(i=0; x i<=3000; i++){
      |            ^~
      |            ;
Language: C


/* -*- C -*- */

#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:11:39: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
   11 |                 if (a == 0 && b == 0) exit();
      |                                       ^~~~
main.c:5:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
    4 | #include <stdio.h>
  +++ |+#include <stdlib.h>
    5 | 
main.c:11:39: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
   11 |                 if (a == 0 && b == 0) exit();
      |                                       ^~~~
main.c:11:39: note: include '<stdlib.h>' or provide a declaration of 'exit'
main.c:11:39: error: too few arguments to function 'exit'
Language: C


/* -*- C -*- */

#include <stdio.h>

int main()
{
	double a,b,keep;
    while(1){
        scanf("%f %f",&a,&b);
		if (a == 0 && b == 0) exit();
        keep = a;
        a = b;
        b = keep;
        printf("%f %f\n",a,b);
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:39: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
   11 |                 if (a == 0 && b == 0) exit();
      |                                       ^~~~
main.c:5:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
    4 | #include <stdio.h>
  +++ |+#include <stdlib.h>
    5 | 
main.c:11:39: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
   11 |                 if (a == 0 && b == 0) exit();
      |                                       ^~~~
main.c:11:39: note: include '<stdlib.h>' or provide a declaration of 'exit'
main.c:11:39: error: too few arguments to function 'exit'
Language: C

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

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


Compiler output:
main.c: In function 'main':
main.c:6:23: error: 'y' undeclared (first use in this function)
    6 |     scanf("%d %d",&x,&y);
      |                       ^
main.c:6:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:7: error: implicit declaration of function 'pirntf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |       pirntf("%d %d",x,y);
      |       ^~~~~~
      |       printf
Language: C

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:4:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    4 |    int i,a,b:
      |             ^
main.c:5:23: error: expected ';' before ')' token
    5 |    for(i=1;i<=3000;i++){
      |                       ^
      |                       ;
main.c:5:23: error: expected statement before ')' token
main.c:6:26: error: 'b' undeclared (first use in this function)
    6 |        scanf("%d %d",&a,&b);
      |                          ^
main.c:6:26: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:4:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    4 |    int i,a,b:
      |             ^
main.c:5:23: error: expected ';' before ')' token
    5 |    for(i=1;i<=3000;i++){
      |                       ^
      |                       ;
main.c:5:23: error: expected statement before ')' token
main.c:6:26: error: 'b' undeclared (first use in this function)
    6 |        scanf("%d %d",&a,&b);
      |                          ^
main.c:6:26: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:3:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'i'
    3 | int a[3000],b[3000]i,N=0;
      |                    ^
main.c:4:21: error: 'b' undeclared (first use in this function)
    4 | scanf("%d %d",&a[0],b[0]);
      |                     ^
main.c:4:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:5: error: 'i' undeclared (first use in this function)
    5 | for(i=1;a[i-1]!=0||b[i-1];i++)
      |     ^
main.c:8:1: error: 'N' undeclared (first use in this function)
    8 | N++;
      | ^
Language: C

#include <iostream>
using namespace std;

int main(){
	int x,y,z;
	cin >> x >> y;
	while(x!=0 && y!=0){
		if(x>y){
			cout << y << " " << x << endl;
		}
		else{
			cout << x << " " << y << endl;
		}
		cin >> x >> y;
	} 
}


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

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


Compiler output:
main.c: In function 'main':
main.c:4:9: error: 'i' undeclared (first use in this function)
    4 |   while(i < 10000){
      |         ^
main.c:4: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, work;
  while(i < 3000){
    scanf("%d %d", &x, &y);
    if(x == 0 && y == 0)break;
    if(x > y){
      work = x;
      x = y;
      y = work;
    }      
    printf("%d %d\n", x, y);
    i++;
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:9: error: 'i' undeclared (first use in this function)
    4 |   while(i < 3000){
      |         ^
main.c:4:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main()
{
	int a, b, i ;
	
	for (i=1; i<=3000; i++){
	
	scanf("%d%d",&a ,&b);
	
	if (a <= b) printf("%d %d\n", a, b);
	else printf("%d %d\n", b, a);
	
	if (a=0 && b=0) break;
	
	}


	return 0;
	
}


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

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


Compiler output:
main.c: In function 'main':
main.c:16:25: error: expected '}' before 'else'
   16 |                         else if(x[h]>y[h]){
      |                         ^~~~
Language: C

#include<stdio.h>
int main(){
int i,a,b;
for(i >= 0; i <= 10000; i++){
        if ( a == 0&&b == 0)break;
        scanf("%d %d",&a,&b);
        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:14:9: error: expected ';' before '}' token
   14 | return 0
      |         ^
      |         ;
   15 | }
      | ~
Language: C

#include<stdio.h>
int main(){
int i,a,b;
for(i >= 0; i <= 3000; i++){
        if ( a == 0&&b == 0)break;
        scanf("%d %d",&a,&b);
        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:14:9: error: expected ';' before '}' token
   14 | return 0
      |         ^
      |         ;
   15 | }
      | ~
Language: C

#include <stdio.h>

int main(void)
{
	int x, y;
        0 <= x,y <=10000

	scanf("%d %d", &x, &y);
	
	while (1) {
		


		if (x && y == 0) {
			break;
		}
	}
	
	scanf("%d, %d", &x, &y);
	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:25: error: expected ';' before 'scanf'
    6 |         0 <= x,y <=10000
      |                         ^
      |                         ;
    7 | 
    8 |         scanf("%d %d", &x, &y);
      |         ~~~~~
Language: C

#include<stdio.h>
int main() {
	int x, y;
	scanf("%d", &x);
	scanf("%d", &y);
	if (x == 0 && y == 0) break;
	if (x < y) {
		printf("%d %d\n", x, y);
	}
	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:31: error: break statement not within loop or switch
    6 |         if (x == 0 && y == 0) break;
      |                               ^~~~~
Language: C

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

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:31: error: break statement not within loop or switch
    6 |         if (x == 0 && y == 0) break;
      |                               ^~~~~
Language: C

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

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


Compiler output:
main.c: In function 'main':
main.c:7:16: error: 'true' undeclared (first use in this function)
    7 |         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 | int main() {
main.c:7:16: note: each undeclared identifier is reported only once for each function it appears in
    7 |         while (true) {
      |                ^~~~
Language: C

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

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


Compiler output:
main.c: In function 'main':
main.c:6:16: error: 'true' undeclared (first use in this function)
    6 |         while (true) {scanf("%d", &x);
      |                ^~~~
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 | int main() {
main.c:6:16: note: each undeclared identifier is reported only once for each function it appears in
    6 |         while (true) {scanf("%d", &x);
      |                ^~~~
Language: C

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

	while (true) {
		scanf_s("%d", &x);
		scanf_s("%d", &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: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 | int main() {
main.c:6:16: note: each undeclared identifier is reported only once for each function it appears in
    6 |         while (true) {
      |                ^~~~
main.c:7:17: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    7 |                 scanf_s("%d", &x);
      |                 ^~~~~~~
      |                 scanf
Language: C

#include<stdio.h>
int main() {
	int x, y;
	while (true) {
		scanf_s("%d", &x);
		scanf_s("%d", &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:4:16: error: 'true' undeclared (first use in this function)
    4 |         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 | int main() {
main.c:4:16: note: each undeclared identifier is reported only once for each function it appears in
    4 |         while (true) {
      |                ^~~~
main.c:5:17: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |                 scanf_s("%d", &x);
      |                 ^~~~~~~
      |                 scanf
Language: C

#include<stdio.h>
int main() {
	int x, y;
	while (true) {
		scanf("%d", &x);
		scanf("%d", &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:4:16: error: 'true' undeclared (first use in this function)
    4 |         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 | int main() {
main.c:4:16: note: each undeclared identifier is reported only once for each function it appears in
    4 |         while (true) {
      |                ^~~~
Language: C

#include<stdio.h>
int main() {
	int x, y;
	while (true) {
		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:4:16: error: 'true' undeclared (first use in this function)
    4 |         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 | int main() {
main.c:4:16: note: each undeclared identifier is reported only once for each function it appears in
    4 |         while (true) {
      |                ^~~~
Language: C

#include<stdio.h>
int main() {
	int x, y;
	while () {
		scanf("%d", &x);
		scanf("%d", &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:4:16: error: expected expression before ')' token
    4 |         while () {
      |                ^
Language: C

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

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:16: error: 'true' undeclared (first use in this function)
    4 |         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 | int main() {
main.c:4:16: note: each undeclared identifier is reported only once for each function it appears in
    4 |         while (true) {
      |                ^~~~
Language: C

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

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

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:16: error: 'true' undeclared (first use in this function)
    4 |         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 | int main() {
main.c:4:16: note: each undeclared identifier is reported only once for each function it appears in
    4 |         while (true) {
      |                ^~~~
Language: C

#include<stdio.h>
int main() {
	int x, y;
	while (true) {
		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:4:16: error: 'true' undeclared (first use in this function)
    4 |         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 | int main() {
main.c:4:16: note: each undeclared identifier is reported only once for each function it appears in
    4 |         while (true) {
      |                ^~~~
main.c:14:25: error: expected ';' before '}' token
   14 |                 return 0
      |                         ^
      |                         ;
   15 |         }
      |         ~
Language: C

#include<stdio.h>
int main() {
	int x, y;
	while (true) {
		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:4:16: error: 'true' undeclared (first use in this function)
    4 |         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 | int main() {
main.c:4:16: note: each undeclared identifier is reported only once for each function it appears in
    4 |         while (true) {
      |                ^~~~
main.c:12:25: error: expected ';' before '}' token
   12 |                 return 0
      |                         ^
      |                         ;
   13 | }
      | ~
Language: C

#include<stdio.h>
int main() {
	int x, y;
	while (true) {
		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:4:16: error: 'true' undeclared (first use in this function)
    4 |         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 | int main() {
main.c:4:16: note: each undeclared identifier is reported only once for each function it appears in
    4 |         while (true) {
      |                ^~~~
main.c:14:17: error: expected ';' before '}' token
   14 |         return 0
      |                 ^
      |                 ;
   15 | }
      | ~
Language: C

#include<stdio.h>
int main(void) {
	int x, y;
	while (true) {
		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:4:16: error: 'true' undeclared (first use in this function)
    4 |         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 | int main(void) {
main.c:4:16: note: each undeclared identifier is reported only once for each function it appears in
    4 |         while (true) {
      |                ^~~~
Language: C

#include<stdio.h>
int main() {
	int x, y;
	while (true) {
		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:4:16: error: 'true' undeclared (first use in this function)
    4 |         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 | int main() {
main.c:4:16: note: each undeclared identifier is reported only once for each function it appears in
    4 |         while (true) {
      |                ^~~~
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);
      }
      i=i+1;
  }
  return 0;
}



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

#include<stdio.h>

main(void){

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

        


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(void){
      | ^~~~
main.c: In function 'main':
main.c:5:9: error: array size missing in 'x'
    5 |     int x[],y[];
      |         ^
main.c:5:13: error: array size missing in 'y'
    5 |     int x[],y[];
      |             ^
main.c:14:14: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion]
   14 |             a=y;
      |              ^
main.c:15:14: error: assignment to expression with array type
   15 |             y=x;
      |              ^
main.c:16:14: error: assignment to expression with array type
   16 |             x=a;
      |              ^
Language: C

#include<stdio.h>

main(void){

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

        


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(void){
      | ^~~~
main.c: In function 'main':
main.c:5:9: error: array size missing in 'x'
    5 |     int x[],y[];
      |         ^
main.c:5:13: error: array size missing in 'y'
    5 |     int x[],y[];
      |             ^
main.c:14:14: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion]
   14 |             a=y;
      |              ^
main.c:15:14: error: assignment to expression with array type
   15 |             y=x;
      |              ^
main.c:16:14: error: assignment to expression with array type
   16 |             x=a;
      |              ^
Language: C

#include<stdio.h>

main(void){

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

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

        


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(void){
      | ^~~~
main.c: In function 'main':
main.c:5:9: error: array size missing in 'x'
    5 |     int x[],y[];
      |         ^
main.c:5:13: error: array size missing in 'y'
    5 |     int x[],y[];
      |             ^
main.c:17:14: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion]
   17 |             a=y;
      |              ^
main.c:18:14: error: assignment to expression with array type
   18 |             y=x;
      |              ^
main.c:19:14: error: assignment to expression with array type
   19 |             x=a;
      |              ^
Language: C

#include<stdio.h>

main(void){

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

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

        


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(void){
      | ^~~~
main.c: In function 'main':
main.c:5:9: error: array size missing in 'x'
    5 |     int x[],y[];
      |         ^
main.c:5:13: error: array size missing in 'y'
    5 |     int x[],y[];
      |             ^
main.c:17:14: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion]
   17 |             a=y;
      |              ^
main.c:18:14: error: assignment to expression with array type
   18 |             y=x;
      |              ^
main.c:19:14: error: assignment to expression with array type
   19 |             x=a;
      |              ^
Language: C

#include<stdio.h>

main(void){

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

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

        


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(void){
      | ^~~~
main.c: In function 'main':
main.c:5:9: error: array size missing in 'x'
    5 |     int x[],y[];
      |         ^
main.c:5:13: error: array size missing in 'y'
    5 |     int x[],y[];
      |             ^
main.c:17:14: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion]
   17 |             a=y;
      |              ^
main.c:18:14: error: assignment to expression with array type
   18 |             y=x;
      |              ^
main.c:19:14: error: assignment to expression with array type
   19 |             x=a;
      |              ^
Language: C

#include<stdio.h>

main(void)
{

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

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

        


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(void)
      | ^~~~
main.c: In function 'main':
main.c:6:9: error: array size missing in 'x'
    6 |     int x[],y[];
      |         ^
main.c:6:13: error: array size missing in 'y'
    6 |     int x[],y[];
      |             ^
main.c:19:14: error: assignment to expression with array type
   19 |             y=x[i];
      |              ^
Language: C

#include<stdio.h>

main(void)
{

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

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

        


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(void)
      | ^~~~
main.c: In function 'main':
main.c:6:9: error: array size missing in 'x'
    6 |     int x[],y[];
      |         ^
main.c:6:13: error: array size missing in 'y'
    6 |     int x[],y[];
      |             ^
Language: C

#include<stdio.h>

main(void)
{

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

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

        


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(void)
      | ^~~~
main.c: In function 'main':
main.c:10:1: error: stray '\343' in program
   10 | <U+3000><U+3000><U+3000><U+3000>l++;
      | ^~~~~~~~
main.c:10:3: error: stray '\343' in program
   10 | <U+3000><U+3000><U+3000><U+3000>l++;
      |         ^~~~~~~~
main.c:10:5: error: stray '\343' in program
   10 | <U+3000><U+3000><U+3000><U+3000>l++;
      |                 ^~~~~~~~
main.c:10:7: error: stray '\343' in program
   10 | <U+3000><U+3000><U+3000><U+3000>l++;
      |                         ^~~~~~~~