criyle/codenet-compile-errors huggingface dataset:
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++;
      |                         ^~~~~~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:10:1: error: stray '\343' in program
   10 | <U+3000> }
      | ^~~~~~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:10:1: error: stray '\343' in program
   10 | <U+3000> }
      | ^~~~~~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:11:1: error: stray '\343' in program
   11 | <U+3000> }
      | ^~~~~~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:11:1: error: stray '\343' in program
   11 | <U+3000> }
      | ^~~~~~~~
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",x, y);}
  if(x >= y){
   printf("%d %d\n",y, x);}
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:1: error: stray '\343' in program
   11 | <U+3000> }
      | ^~~~~~~~
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
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",x, y);}
  if(x >= y){
   printf("%d %d\n",y, x);}
return 0;
}


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


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

#i#include <stdio.h>

int main(void) {
	// your code goes here
	int a[3000],b[3000],i,n=0;
	for(i=0;i<3000;i++){
		scanf("%d %d",&a[i],&b[i]);
		if(a[i]==0&&b[i]==0)break;
	}
	while(i>=n){
		printf("%d %d",(a[n]<b[n])?a[n]:b[n],(a[n]>b[n])?a[n]:b[n]);
		n++;
		if(i>=n)puts("");
	}
	return 0;
}



Compiler output:
main.c:1:2: error: invalid preprocessing directive #i; did you mean #if?
    1 | #i#include <stdio.h>
      |  ^
      |  if
main.c: In function 'main':
main.c:7:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |                 scanf("%d %d",&a[i],&b[i]);
      |                 ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #i#include <stdio.h>
main.c:7:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |                 scanf("%d %d",&a[i],&b[i]);
      |                 ^~~~~
main.c:7:17: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |                 printf("%d %d",(a[n]<b[n])?a[n]:b[n],(a[n]>b[n])?a[n]:b[n]);
      |                 ^~~~~~
main.c:11:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:25: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
   13 |                 if(i>=n)puts("");
      |                         ^~~~
main.c:13:25: note: include '<stdio.h>' or provide a declaration of 'puts'
Language: C

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



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

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



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

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



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

#include <stdio.h>

int main(int argc, const char * argv[])
{
int i, x, y, tmp;


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


}
return 0;


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

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


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

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


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

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


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

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


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

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


Compiler output:
main.c: In function 'main':
main.c:8:35: error: expected ';' before '}' token
    8 |         else{printf("%d %d\n",y,x)}
      |                                   ^
      |                                   ;
Language: C

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



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

#include<stdio.h>

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

    return 0 ;
  }


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

#include<stdio.h>

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

    return 0 ;
  }


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

#include<stdio.h>

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

    return 0 ;
  }


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

#include<stdio.h>

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

    return 0 ;
  }
      
  


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

#include<stdio.h>

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

  for(i=0;i<3000; i++){
    scanf("%d%d", &a, %b);

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

    if(a>b){
      temp = a;
      a = b;
      b = temp;
    }

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

  return 0;
}



Compiler output:
main.c: In function 'main':
main.c:9:23: error: expected expression before '%' token
    9 |     scanf("%d%d", &a, %b);
      |                       ^
Language: C

#include<stdio.h>

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

  for(i=0;i<3000; i++){
    scanf("%d %d", &a, %b);

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

    if(a > b){
      temp = a;
      a = b;
      b = temp;
    }

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

  return 0;
}



Compiler output:
main.c: In function 'main':
main.c:9:24: error: expected expression before '%' token
    9 |     scanf("%d %d", &a, %b);
      |                        ^
Language: C

#include<stdio.h>
int main(){
  int x,y;
  int n;
  for(n = 0;n < 3000;n++){
    scanf("%d %d",&x,&y);
    if (x == 0 && y == 0) break;
    else if (x < y){
      printf("%d %d\n",x,y);
    }else if(x > y){
      printf("%d %d\n",y,x);
    }
  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;
  int n;
  for(n = 0;n < 3000;n++){
    scanf("%d %d",&x,&y);
    if (x == 0 && y == 0) break;
    else if (x < y){
      printf("%d %d\n",x,y);
    }else 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:15:3: error: expected declaration or statement at end of input
   15 |   }
      |   ^
Language: C

include<stdio.h>
int main(void)
{
  int x,y;
  while(1){
    scanf("%d%d\n",&x,&y);
    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:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

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


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


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

#include<stdio.h>

int main(){
 int x, y;

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




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;
  scanf("%d%d", &x,&y);
  if ( x > y);
  printf("%y %x\n")
  else;
  printf("%x %y");
  return 0;
}



Compiler output:
main.c: In function 'main':
main.c:6:20: error: expected ';' before 'else'
    6 |   printf("%y %x\n")
      |                    ^
      |                    ;
    7 |   else;
      |   ~~~~
Language: C

#include <stdio.h>
int main (){
  int x,y;
  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:7:2: error: 'else' without a previous 'if'
    7 |  else;
      |  ^~~~
Language: C

#include <iostream>
using namespace std;
int main(){
   int x,y,k;
   while(1){
   cin>>x>>y;
   if(x*y==0){
         break;
   }
   if(x>y){
     k=y;
     y=x;
     x=k;
   }
   
   cout<<x<<" "<<y<<endl;
}
   return 0;
}


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(void)
{
	int x,y,a;
	scanf("%d %d",&x,&y);

	if(x==0 && y==0)break;
	if(x<y)
		{
		a=x;
		x=y;
		y=a;
		}
	if(x>y)
		{
		a=y;
		y=x;
		x=a;
		}

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

return 0;
}



Compiler output:
main.c: In function 'main':
main.c:8:25: error: break statement not within loop or switch
    8 |         if(x==0 && y==0)break;
      |                         ^~~~~
main.c:22:22: error: expected ';' before 'return'
   22 | printf("%d %d\n",x,y)
      |                      ^
      |                      ;
   23 | 
   24 | return 0;
      | ~~~~~~
Language: C

#include <stdio.h>
void swap(int *a,int *b){
    int temp;
    if(*a>*b){
        temp=*a;
        *a=*b;
        *b=temp;
    }
    
}




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


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

#include <stdio.h>
void swap(int *a, int *b)
{
	int tmp;
	tmp = *a;
	*a = *b;
	*b = tmp;
}

void sort(int *c, int *d)
{
	if (*c > *d)
		swap(c, d);
}

int main(void) 
{
	int x, y, i;
	while (scanf("%d %d", &x, &y) != EOF) {
		if (x == 0 && y == 0)
			break;
		for (i = 0; i < 3000; i++) {
			if (x < y) 
				sort(&x, &y);
			else
		}
		printf("%d %d", x, y);
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:26:17: error: expected expression before '}' token
   26 |                 }
      |                 ^
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||x==0){
            printf("%d %d\n",x,y);
        }
        else if(y<<x||y==0){
            printf("%d %d\n",y,x);
            }
    }
    if(x=0&&y=0)
    return 0;
}


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

#include<stdio.h>

int main(void){

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

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



Compiler output:
main.c: In function 'main':
main.c:6:14: error: expected '(' before '{' token
    6 |         while{
      |              ^
      |              (
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||x==0){
			printf("%d %d\n",x,y);
		}
		else if(y<<x||y==0){
			printf("%d %d\n",y,x);
	        }
 	}
	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:6:15: error: 'true' undeclared (first use in this function)
    6 |         while(true){
      |               ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:6:15: note: each undeclared identifier is reported only once for each function it appears in
    6 |         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||(x==0&&y=!0)){
			printf("%d %d\n",x,y);
		}
		else if(y<<x||(y==0&&x=!0)){
			printf("%d %d\n",y,x);
	        }
 	}
	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:13:34: error: lvalue required as left operand of assignment
   13 |                 if(x<=y||(x==0&&y=!0)){
      |                                  ^
main.c:16:39: error: lvalue required as left operand of assignment
   16 |                 else if(y<<x||(y==0&&x=!0)){
      |                                       ^
Language: C

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

    int x, y, tmp;

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

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

    return 0; 
}



Compiler output:
main.c: In function 'main':
main.c:16:27: error: 'a' undeclared (first use in this function)
   16 |         printf("%d %d\n", a, b);
      |                           ^
main.c:16:27: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:30: error: 'b' undeclared (first use in this function)
   16 |         printf("%d %d\n", a, b);
      |                              ^
Language: C

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



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

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


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

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



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

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


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

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

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

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:33: error: expected ')' before 'x'
   11 |                 printf("%d %d\n"x,y);
      |                       ~         ^
      |                                 )
main.c:13:21: error: expected ')' before 'y'
   13 |     printf("%d %d\n"y,x);
      |           ~         ^
      |                     )
Language: C

#include <stdio.h>
int main (void){
  int i;
  int x[i];
  int y[i];
  for(i = 0 ; i<3000 ; i++){
    scanf("%d %d\n",&x[i],&y[i]);
    if(x[i] == 0 && y[i] == 0){
      break;
    }
  }
  
  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:7: error: 'if\U0000ff08x' undeclared (first use in this function)
   14 |       if（x[j] < y[j]){
      |       ^~~~~
main.c:14:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:22: error: expected ';' before ')' token
   14 |       if（x[j] < y[j]){
      |                      ^
      |                      ;
main.c:14:22: error: expected statement before ')' token
main.c:16:8: error: 'else' without a previous 'if'
   16 |       }else{
      |        ^~~~
Language: C

#include<stdio.h>
int main()
{
 int a,b=1,c;
 while(1){
  scanf("%d%d\n",%a,&b);
  if(a==0 && b==0)
  {break;}
  else 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:6:18: error: expected expression before '%' token
    6 |   scanf("%d%d\n",%a,&b);
      |                  ^
main.c:12:24: error: expected ';' before '}' token
   12 |   printf("%d %d/n",a,b)
      |                        ^
      |                        ;
   13 |  }
      |  ~
Language: C

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


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

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


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

#include <stdio.h>
int main(void){
    
   int x,y;
    do{
        scanf("%d %d", &x,&y);
        
        if(x==0 && y==0){
            break;
        }
        
        if(x > y)
            tmp=b;
　　　　　　a=b;
            tmp=a;

        printf("%d %d\n", x,y);
    }while(x != 0 && y != 0);
        
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:13:13: error: 'tmp' undeclared (first use in this function)
   13 |             tmp=b;
      |             ^~~
main.c:13:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:17: error: 'b' undeclared (first use in this function)
   13 |             tmp=b;
      |                 ^
main.c:14:1: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>a=b;
      | ^~~~~~~~
main.c:14:3: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>a=b;
      |         ^~~~~~~~
main.c:14:5: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>a=b;
      |                 ^~~~~~~~
main.c:14:7: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>a=b;
      |                         ^~~~~~~~
main.c:14:9: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>a=b;
      |                                 ^~~~~~~~
main.c:14:11: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>a=b;
      |                                         ^~~~~~~~
main.c:14:13: error: 'a' undeclared (first use in this function)
   14 | 　　　　　　a=b;
      |             ^
Language: C

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

        printf("%d %d\n", x,y);
    }while(x != 0 && y != 0);
        
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:14:1: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>y=x;
      | ^~~~~~~~
main.c:14:3: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>y=x;
      |         ^~~~~~~~
main.c:14:5: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>y=x;
      |                 ^~~~~~~~
main.c:14:7: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>y=x;
      |                         ^~~~~~~~
main.c:14:9: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>y=x;
      |                                 ^~~~~~~~
main.c:14:11: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>y=x;
      |                                         ^~~~~~~~
main.c:15:13: error: 'a' undeclared (first use in this function)
   15 |             a=tmp;
      |             ^
main.c:15:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

        printf("%d %d\n", x,y);
    }while(x != 0 && y != 0);
        
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:14:1: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>y=x;
      | ^~~~~~~~
main.c:14:3: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>y=x;
      |         ^~~~~~~~
main.c:14:5: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>y=x;
      |                 ^~~~~~~~
main.c:14:7: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>y=x;
      |                         ^~~~~~~~
main.c:14:9: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>y=x;
      |                                 ^~~~~~~~
main.c:14:11: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>y=x;
      |                                         ^~~~~~~~
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:14:1: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>y=x;
      | ^~~~~~~~
main.c:14:3: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>y=x;
      |         ^~~~~~~~
main.c:14:5: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>y=x;
      |                 ^~~~~~~~
main.c:14:7: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>y=x;
      |                         ^~~~~~~~
main.c:14:9: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>y=x;
      |                                 ^~~~~~~~
main.c:14:11: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>y=x;
      |                                         ^~~~~~~~
Language: C

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

    }while(x != 0 && y != 0);
        
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:14:1: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>y=x;
      | ^~~~~~~~
main.c:14:3: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>y=x;
      |         ^~~~~~~~
main.c:14:5: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>y=x;
      |                 ^~~~~~~~
main.c:14:7: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>y=x;
      |                         ^~~~~~~~
main.c:14:9: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>y=x;
      |                                 ^~~~~~~~
main.c:14:11: error: stray '\343' in program
   14 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>y=x;
      |                                         ^~~~~~~~
Language: C

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


Compiler output:
main.c:1:18: warning: extra tokens at end of #include directive
    1 | #include<stdio.h><font></font>
      |                  ^~~~~~
main.c: In function 'main':
main.c:2:11: error: expected declaration specifiers before '<' token
    2 | int main()<font></font>
      |           ^
main.c:13:2: error: expected declaration specifiers before '<' token
   13 | }<font></font>
      |  ^
Language: C

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


Compiler output:
main.c:1:19: warning: extra tokens at end of #include directive
    1 | #include <stdio.h><font></font>
      |                   ^~~~~~
main.c:2:20: warning: extra tokens at end of #include directive
    2 | #include <stdlib.h><font></font>
      |                    ^~~~~~
main.c:3:1: error: expected identifier or '(' before '<' token
    3 | <font></font>
      | ^
main.c:16:2: error: expected identifier or '(' before '<' token
   16 | }<font></font>
      |  ^
Language: C

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


Compiler output:
main.c:1:19: warning: extra tokens at end of #include directive
    1 | #include <stdio.h><font></font>
      |                   ^~~~~~
main.c: In function 'main':
main.c:3:15: error: expected declaration specifiers before '<' token
    3 | int main(void)<font></font>
      |               ^
main.c:36:2: error: expected declaration specifiers before '<' token
   36 | }<font></font>
      |  ^
Language: C

#include<stdio.h>

int main(void){

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

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


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

#include<stdio.h>

int main(void){

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

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


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

#include<stdio.h>

int main(void){

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

	while(1){
 
	if(x==0&&y==0){
		break;
	}
	else{

		if(x<=y||(x==0&&y>>0)){
			printf("%d %d\n",x,y);
		}
		else if(y<<x||(y==0&&x>>0)){
			printf("%d %d\n",y,x);
		}
	}
	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>

//関数のプロトタイプ宣言
void swap(float *a, float *b);

//メイン関数
int main(void){
  int x, y;
  int i = 1;
  while(1){
    scanf("%d %d", &x, &y);
    if(x == 0　&& y == 0) {
      break;
    }
    if(x > y){
      swap(x,y);
    }
    printf("%d %d\n", x, y);
    i++;
  }
  return 0;
}

//swap関数
void swap(int *a,int *b){
  int temp;
  temp = *a;
  *a = *b;
  *b = temp;
  return;
}



Compiler output:
main.c: In function 'main':
main.c:12:14: error: stray '\343' in program
   12 |     if(x == 0<U+3000>&& y == 0) {
      |              ^~~~~~~~
main.c:16:12: error: passing argument 1 of 'swap' makes pointer from integer without a cast [-Wint-conversion]
   16 |       swap(x,y);
      |            ^
      |            |
      |            int
main.c:4:18: note: expected 'float *' but argument is of type 'int'
    4 | void swap(float *a, float *b);
      |           ~~~~~~~^
main.c:16:14: error: passing argument 2 of 'swap' makes pointer from integer without a cast [-Wint-conversion]
   16 |       swap(x,y);
      |              ^
      |              |
      |              int
main.c:4:28: note: expected 'float *' but argument is of type 'int'
    4 | void swap(float *a, float *b);
      |                     ~~~~~~~^
main.c: At top level:
main.c:25:6: error: conflicting types for 'swap'; have 'void(int *, int *)'
   25 | void swap(int *a,int *b){
      |      ^~~~
main.c:4:6: note: previous declaration of 'swap' with type 'void(float *, float *)'
    4 | void swap(float *a, float *b);
      |      ^~~~
Language: C

#include <stdio.h>

int main(void){
int a;
int b;
scanf("%d%d",&a,&b);
for(;a>0;){
printf("%d %d\n",a,b);
scanf("%d%d",&a&b);
}
}


Compiler output:
main.c: In function 'main':
main.c:9:16: error: invalid operands to binary & (have 'int *' and 'int')
    9 | scanf("%d%d",&a&b);
      |              ~~^
      |              |
      |              int *
Language: C

#include <stdio.h>

int main(void){
int a;
int aa;
int b;
scanf("%d%d",&a,&b);
for(; a>0 && b>0 ;){
if(a > b){
aa = a;
a = b;
b = aa;}
printf("%d %d\n",a,b);
scanf("%d%d",&a,&b);
}}}


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

#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:14:23: error: expected ';' before '}' token
   14 | if(a==0 && b==0){break};
      |                       ^
      |                       ;
Language: C

#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:10:13: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |             print("%d %d\n",x,y);
      |             ^~~~~
      |             printf
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",x, y);
		else printf("%d %d\n",y, x);
	}
}


Compiler output:
main.c: In function 'main':
main.c:5:15: error: 'true' undeclared (first use in this function)
    5 |         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:5:15: note: each undeclared identifier is reported only once for each function it appears in
    5 |         while(true){
      |               ^~~~
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",x, y);
		else printf("%d %d\n",y, x);
	}
	return 0;
}



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

#include <stdio.h>
int main(void)
{
	int x, y;
	int time = 1;
	while (time!=3001) {
		scanf("%d", &x);
		scanf("%d", &y);

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

		else if (x<y) {
			pritnf("%d %d", x, y);
		}

		else if (y < x) {
			pritnf("%d %d", y, x);
		}
		
		else if (x == y) {
			pritnf("%d %d", x, y);
		}
		time++;
	}
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:15:25: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   15 |                         pritnf("%d %d", x, y);
      |                         ^~~~~~
      |                         printf
Language: C

#include <stdio.h>
int main(void)
{
	int x, y;
	int time = 1;
	while (time!=3001) {
		scanf("%d", &x);
		scanf("%d", &y);

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

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

		else if (y < x) {
			pritnf("%d %d\n", y, x);
		}
		
		else if (x == y) {
			pritnf("%d %d\n", x, y);
		}
		time++;
	}
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:15:25: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   15 |                         pritnf("%d %d\n", x, y);
      |                         ^~~~~~
      |                         printf
Language: C

#include<stdio.h>

 int main(){

 int x,y,z;
 
 for(i=0;;i++){

 scanf("%d%d",x,y)
 if(x==0&&Y==0)break;
 if(x<y){z=x,x=y,y=z}

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

}

 return 0;
}
 



Compiler output:
main.c: In function 'main':
main.c:7:6: error: 'i' undeclared (first use in this function)
    7 |  for(i=0;;i++){
      |      ^
main.c:7:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:19: error: expected ';' before 'if'
    9 |  scanf("%d%d",x,y)
      |                   ^
      |                   ;
   10 |  if(x==0&&Y==0)break;
      |  ~~                
main.c:11:21: error: expected ';' before '}' token
   11 |  if(x<y){z=x,x=y,y=z}
      |                     ^
      |                     ;
Language: C

#include<stdio.h>

 int main(){

 int x,y,z;
 
 for(;;){

 scanf("%d%d",x,y)
 if(x==0&&Y==0)break;
 if(x<y){z=x,x=y,y=z};

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

}

 return 0;
}
 



Compiler output:
main.c: In function 'main':
main.c:9:19: error: expected ';' before 'if'
    9 |  scanf("%d%d",x,y)
      |                   ^
      |                   ;
   10 |  if(x==0&&Y==0)break;
      |  ~~                
main.c:11:21: error: expected ';' before '}' token
   11 |  if(x<y){z=x,x=y,y=z};
      |                     ^
      |                     ;
Language: C

#include<stdio.h>

 int main(){

 int x,y,z;
 
 for(;;){

 scanf("%d%d",x,y)
 if(x==0&&Y==0)break;
 if(x<y)z=x,x=y,y=z;

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

}

 return 0;
}
 



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

#include<stdio.h>

 int main(){

 int x,y,z;
 
 for(;;){

 scanf("%d%d",x,y);
 if(x==0&&Y==0)break;
 if(x<y)z=x,x=y,y=z;

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

}

 return 0;
}
 



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

#include<stdio.h>

 int main(){

 int x,y,z;
 
 for(;;){

 scanf("%d%d",x,y);
 if(x==0 && Y==0)break;
 if(x>y)z=x,x=y,y=z;

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

}

 return 0;
}
 



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

#include<stdio.h>

 int main(){

 int x,y,z;
 
 for(;;){

 scanf("%d%d",&x,&y);
 if(x==0 && Y==0)break;
 if(x>y)z=x,x=y,y=z;

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

}

 return 0;
}
 



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

#include<stdio.h>

 int main(){

 int x,y,z;
 
     for(i=1;;i++){

              scanf("%d%d",&x,&y);
              if(x==0 && Y==0)break;
              if(x>y)z=x,x=y,y=z;

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

              }

             return 0;
             }
 



Compiler output:
main.c: In function 'main':
main.c:7:10: error: 'i' undeclared (first use in this function)
    7 |      for(i=1;;i++){
      |          ^
main.c:7:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:26: error: 'Y' undeclared (first use in this function)
   10 |               if(x==0 && Y==0)break;
      |                          ^
Language: C

#include<stdio.h>

 int main(){

 int x,y,z;
 
     for (;;) {
		scanf("%d%d", &x, &y);
		if (x == 0 && y == 0) break;
		if (x > y) t = x, x = y, y = t;
		printf("%d %d\n", x, y);
	}

             return 0;
             }
 



Compiler output:
main.c: In function 'main':
main.c:10:28: error: 't' undeclared (first use in this function)
   10 |                 if (x > y) t = x, x = y, y = t;
      |                            ^
main.c:10:28: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

 int main(){

int x, y;
	int t;
 
     for(i=1;;i++){

              scanf("%d%d",&x,&y);
              if(x==0 && Y==0)break;
              if(x>y)z=x,x=y,y=z;

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

              }

             return 0;
             }
 



Compiler output:
main.c: In function 'main':
main.c:8:10: error: 'i' undeclared (first use in this function)
    8 |      for(i=1;;i++){
      |          ^
main.c:8:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:26: error: 'Y' undeclared (first use in this function)
   11 |               if(x==0 && Y==0)break;
      |                          ^
main.c:12:22: error: 'z' undeclared (first use in this function)
   12 |               if(x>y)z=x,x=y,y=z;
      |                      ^
Language: C

#include<stdio.h>

 int main(){

 int x,y,t;
 
     for(i=1;;i++){

             scanf("%d%d", &x, &y);
		if (x == 0 && y == 0) break;
		if (x > y) t = x, x = y, y = t;
		printf("%d %d\n", x, y);


              }

             return 0;
             }
 



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

#include<stdio.h>

 int main(){

 int x,y,z;
 
    for (;;) {

              scanf("%d%d",&x,&y);
              if(x==0 && Y==0)break;
              if(x>y) z=x,x=y,y=z;

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

              }

             return 0;
             }
 



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

#include<stdio.h>

 int main(){

 int i,x,y,z;
 
     for(i=1;;i++){

              scanf("%d%d",&x,&y);
              if(x==0 && Y==0)break;
              if(x>y) z=x,x=y,y=z;

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

              }

             return 0;
             }
 



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