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

#include <stdio.h>

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

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

#include <stdio.h>

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

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:17:11: error: expected expression before ')' token
   17 |  } while ();
      |           ^
Language: C

#include <stdio.h>

static int i = 0; //??°?????????????????°i
static int array[100][2];

void swap(int *a, int *b);

int main(int argc, char *argv[]){
	int x;
	int y;
	int j;
	int count = 0;

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

	for(j = 0; j < count; j++){
		printf("%d %d\n", array[j][0], array[j][1]);
	}

	return 0;
}

Compiler output:
/usr/bin/ld: /tmp/ccVFg2iy.o: in function `main':
main.c:(.text+0x44): undefined reference to `swap'
collect2: error: ld returned 1 exit status
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:20: error: expected ')' before '!' token
    5 |   while(a != 0 && b! = 0){
      |        ~           ^
      |                    )
Language: C

#include<stdio.h>

int main(void){

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

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

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

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(x,y){for(;scanf("%d%d",&x,&y)*(x+y);)
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'x' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'y' defaults to 'int' [-Wimplicit-int]
main.c:1:16: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(x,y){for(;scanf("%d%d",&x,&y)*(x+y);)
      |                ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(x,y){for(;scanf("%d%d",&x,&y)*(x+y);)
main.c:1:16: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(x,y){for(;scanf("%d%d",&x,&y)*(x+y);)
      |                ^~~~~
main.c:1:16: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:2:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    2 | if(x<y){printf("%d %d\n,x,y);}else{printf("%d %d\n,y,x);}
      |         ^~~~~~
main.c:2:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:2:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:2:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:2:45: error: 'd' undeclared (first use in this function)
    2 | if(x<y){printf("%d %d\n,x,y);}else{printf("%d %d\n,y,x);}
      |                                             ^
main.c:2:45: note: each undeclared identifier is reported only once for each function it appears in
main.c:2:49: error: stray '\' in program
    2 | if(x<y){printf("%d %d\n,x,y);}else{printf("%d %d\n,y,x);}
      |                                                 ^
main.c:2:49: error: expected ')' before 'n'
    2 | if(x<y){printf("%d %d\n,x,y);}else{printf("%d %d\n,y,x);}
      |               ~                                 ^~
      |                                                 )
Language: C

main(x,y){for(;scanf("%d%d",&x,&y)*(x+y);)
x<y?printf("%d %d\n",x,y):printf("%d %d\n",y,x);}
}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(x,y){for(;scanf("%d%d",&x,&y)*(x+y);)
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'x' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'y' defaults to 'int' [-Wimplicit-int]
main.c:1:16: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(x,y){for(;scanf("%d%d",&x,&y)*(x+y);)
      |                ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(x,y){for(;scanf("%d%d",&x,&y)*(x+y);)
main.c:1:16: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(x,y){for(;scanf("%d%d",&x,&y)*(x+y);)
      |                ^~~~~
main.c:1:16: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:2:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    2 | x<y?printf("%d %d\n",x,y):printf("%d %d\n",y,x);}
      |     ^~~~~~
main.c:2:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:2:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:2:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c: At top level:
main.c:3:1: error: expected identifier or '(' before '}' token
    3 | }
      | ^
Language: C

main(x,y){for(;scanf("%d%d",&x,&y)*(x+y);)
printf("%d %d\n"x<y?,x,y:,y,x);}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(x,y){for(;scanf("%d%d",&x,&y)*(x+y);)
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'x' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'y' defaults to 'int' [-Wimplicit-int]
main.c:1:16: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(x,y){for(;scanf("%d%d",&x,&y)*(x+y);)
      |                ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(x,y){for(;scanf("%d%d",&x,&y)*(x+y);)
main.c:1:16: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(x,y){for(;scanf("%d%d",&x,&y)*(x+y);)
      |                ^~~~~
main.c:1:16: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:2:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    2 | printf("%d %d\n"x<y?,x,y:,y,x);}
      | ^~~~~~
main.c:2:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:2:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:2:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:2:17: error: expected ')' before 'x'
    2 | printf("%d %d\n"x<y?,x,y:,y,x);}
      |       ~         ^
      |                 )
Language: C

#include<stdio.h>

int main(){
int x,y;

while(1){
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:7:12: error: 'd' undeclared (first use in this function)
    7 | scanf("%d"%d,&x, &y);
      |            ^
main.c:7: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;

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:19:1: error: expected declaration or statement at end of input
   19 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:1: error: expected expression before '?' token
    3 | ????int x, y;
      | ^
main.c:4:1: error: expected expression before '?' token
    4 | ??
      | ^
Language: C


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

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


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

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


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

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

#include<stdio.h>
intmain(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",y,x);
		}
	}
	return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | intmain(void){
      | ^~~~~~~
Language: C

#include <stdio.h>

int main(int argc, const char * argv[]) {
    int x,y;
    while(1){
        scanf("%d %d",&x,&y);
        if( x >= 0 && y >= 0 && x<=10000 && y<=10000 ){
            if(x==0)&&y==0){
                break;
            }
            if(x>y){
                printf("%d %d\n",y,x);
            }
            else if(y>x){
                printf("%d %d\n",x,y);
            }
        }
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:27: error: expected ';' before ')' token
    8 |             if(x==0)&&y==0){
      |                           ^
      |                           ;
main.c:8:27: error: expected statement before ')' token
main.c:8:13: error: label 'y' used but not defined
    8 |             if(x==0)&&y==0){
      |             ^~
Language: C

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

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

#include<stdio.h>

int main(){

    int x,y;      // define variable,  0<= x, y<=10000

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

   while(x!=0 || y!=0){
      if(x>y) printf("%d %d\n", y, x);
      else printf("%d %d\n", x, y);

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

   return 0;
}

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

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

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

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

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

#include<stdio.h>

int main(){
  int x,y;
  scanf("%d%d",&x,&y);
  for(x*x+y*y){
    if(x<y){
      printf("%d %d",x,y);}
    else{
      printf("%d %d",y,x);}
    scanf("%d%d",&x,&y);}
  return 0;}

Compiler output:
main.c: In function 'main':
main.c:6:14: error: expected ';' before ')' token
    6 |   for(x*x+y*y){
      |              ^
      |              ;
main.c:6:14: error: expected expression before ')' token
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:10: fatal error: cstdio: No such file or directory
    1 | #include <cstdio>
      |          ^~~~~~~~
compilation terminated.
Language: C

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

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

#include <stdio.h>
using namespace std;

int main()
{
 int a,b;
 scanf("%d",&a);
 scanf("%d",&b);
 int temp=a;
 a=b;
 b=temp;
 printf("%d %d",a,b);
}

Compiler output:
main.c:2:1: error: unknown type name 'using'
    2 | using namespace std;
      | ^~~~~
main.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    2 | using namespace std;
      |                 ^~~
Language: C

#include <stdio.h>
using namespace std;

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

Compiler output:
main.c:2:1: error: unknown type name 'using'
    2 | using namespace std;
      | ^~~~~
main.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    2 | using namespace std;
      |                 ^~~
Language: C

#include <stdio.h>

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

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

Compiler output:
main.c: In function 'main':
main.c:7:25: error: implicit declaration of function 'swap' [-Wimplicit-function-declaration]
    7 |                         swap(x,y);
      |                         ^~~~
main.c:10:27: error: expected ';' before 'return'
   10 |         }while(x!=0&&y!=0)
      |                           ^
      |                           ;
   11 |         return 0;
      |         ~~~~~~
Language: C

#include <stdio.h>

int main(void) {

	int i = 0;
	int x = 0;
	int y = 0;

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

	return 0;
}

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

#include <stdio.h>

int main(void) {

	int i = 0;
	int x = 0;
	int y = 0;

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

	return 0;
}

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

#include <stdio.h>


int main(void) {

	int a,b,i;



	while(1){

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



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

		break;

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



	return 0;

}

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

/*
 * ITP1_1_D.c
 *
 *  Created on: 2017/05/11
 *      Author: sl2-user
 */
#include<stdio.h>

int main(void){

	int x,y,i=1;
	while(1){
	scanf("%d %d" , &x,&y);
	if((x==0 && y==0 ) || i>3000 ){break;}
	if(x>y){printf("%d %d",y,x);}
	else {printf("%d %d",x,y);}
	}
	i++;
	}
return 0;
}

Compiler output:
main.c:20:1: error: expected identifier or '(' before 'return'
   20 | return 0;
      | ^~~~~~
main.c:21:1: error: expected identifier or '(' before '}' token
   21 | }
      | ^
Language: C

#include<stdio.h>

int main(void) {
	int x[3000], y[3000];
	int a, b, s;
	int flag = 1;
	int cnt = 0;
	int i;
	
	do {
		scanf("%d %d", a, b);
		
		if (a > b) {
			s = a;
			a = b;
			b = s;
		}
		if (a == 0 && b == 0) {
			flag = 0;
		} 
		x[cnt] = a;
		y[cnt] = b;
		cnt++;
	} while (flag);
	
	for (i = 0; i < cnt-1; i++) {
		printf("%d %d\n", a[i], b[i]);
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:27:36: error: subscripted value is neither array nor pointer nor vector
   27 |                 printf("%d %d\n", a[i], b[i]);
      |                                    ^
main.c:27:42: error: subscripted value is neither array nor pointer nor vector
   27 |                 printf("%d %d\n", a[i], b[i]);
      |                                          ^
Language: C

#include<stdio.h>

int main(void) {
	int x[3000], y[3000];
	int a, b, s;
	int flag = 1;
	int cnt = 0;
	int i;
	
	do {
		scanf("%d %d", &a, &b);
		
		if (a > b) {
			s = a;
			a = b;
			b = s;
		}
		if (a == 0 && b == 0) {
			flag = 0;
		} 
		x[cnt] = a;
		y[cnt] = b;
		cnt++;
	} while (flag);
	
	for (i = 0; i < cnt-1; i++) {
		printf("%d %d\n", a[i], b[i]);
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:27:36: error: subscripted value is neither array nor pointer nor vector
   27 |                 printf("%d %d\n", a[i], b[i]);
      |                                    ^
main.c:27:42: error: subscripted value is neither array nor pointer nor vector
   27 |                 printf("%d %d\n", a[i], b[i]);
      |                                          ^
Language: C

#include <stdio.h>
#include <string.h>

int swap(int *a, int *b);
int main(void) {
	int temp,a, b,i;
	for (i = 0; i < 3000; i++) {
		scanf("%d %d", &a, &b);
		if (a == 0 && b == 0) break;

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

		
	}

	return 0;
}

void swap(int *a, int *b) {
	int temp;
	temp = *a;
	*a = *b;
	*b = temp;

	
}

Compiler output:
main.c:20:6: error: conflicting types for 'swap'; have 'void(int *, int *)'
   20 | void swap(int *a, int *b) {
      |      ^~~~
main.c:4:5: note: previous declaration of 'swap' with type 'int(int *, int *)'
    4 | int swap(int *a, int *b);
      |     ^~~~
Language: C

#include<stdio.h>
int main(void){
	int x,y,i;
	do{
		scanf("%d %d",&x,&y);
		if(x!=0&&y!=0){
			if(x>y){
				printf("%d %d\n",y,x);
			}else{
			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: expected 'while' at end of input
   14 | }
      | ^
main.c:14:1: error: expected declaration or statement at end of input
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 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:12:9: error: expected declaration or statement at end of input
   12 |         return 0;
      |         ^~~~~~
Language: C

#include<stdio.h>

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

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

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

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:6:19: error: expected ';' before ')' token
    6 | for(i=0,i<3000;i++){
      |                   ^
      |                   ;
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:1: error: expected expression before '?' token
    5 | ????????int x,y;
      | ^
main.c:6:1: error: expected expression before '?' token
    6 | ????????scanf("%d %d",&x,&y);
      | ^
main.c:6:24: error: 'x' undeclared (first use in this function)
    6 | ????????scanf("%d %d",&x,&y);
      |                        ^
main.c:6:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:27: error: 'y' undeclared (first use in this function)
    6 | ????????scanf("%d %d",&x,&y);
      |                           ^
main.c:7:1: error: expected expression before '?' token
    7 | ????????while(1){
      | ^
main.c: At top level:
main.c:19:2: error: expected identifier or '(' before '?' token
   19 | }??????
      |  ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:23: error: lvalue required as left operand of assignment
    8 |         if(x = 0 && y = 0)
      |                       ^
main.c:14:29: error: expected ')' before 'x'
   14 |             printf("%d %d\n"x,y);
      |                   ~         ^
      |                             )
Language: C

#include<stdio.h>

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

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

#include<stdio.h>

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

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

#include<stdio.h>

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

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

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:3:1: error: expected expression before '?' token
    3 | ??????
      | ^
main.c:5:1: error: expected expression before '?' token
    5 | ??????
      | ^
Language: C

#include<stdio.h>

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

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()
{ 
int i;
int x;
int y;
for(i=1;;i++)
{
scanf("%d",&x);
if(x<=y)
{
printf("%d %d\n",x,y);
}
else if(y<x)
{
printf("%d %d\n",y,x);
}
if(x==0 && y==0)
{
break;
}
return 0;
}

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

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

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

#include<stdio.h>
int main(){
    int a[3000]={0};
    int x,y;
    while(1){
        scanf("%d %d",&x,&y);
        if(x == 0 && y == 0){
            break;
        }
        if else(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:12: error: expected '(' before 'else'
   10 |         if else(x<y){
      |            ^~~~
      |            (
Language: C

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


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

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

#include <stdio.h>

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:7:38: error: lvalue required as left operand of assignment
    7 |                 if (x[i] = 0 && y[i] = 0)
      |                                      ^
main.c:11:27: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion]
   11 |                         i = x;
      |                           ^
main.c:12:27: error: assignment to expression with array type
   12 |                         x = y;
      |                           ^
main.c:13:27: error: assignment to expression with array type
   13 |                         y = i;
      |                           ^
Language: C

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

int 0<=x,y<=10000;
int i=1;

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


while(i=3000){

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



}
return 0;}

Compiler output:
main.c: In function 'main':
main.c:4:5: error: expected identifier or '(' before numeric constant
    4 | int 0<=x,y<=10000;
      |     ^
main.c:15:18: error: 'x' undeclared (first use in this function)
   15 | printf("%d %d\n",x,y);
      |                  ^
main.c:15:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:20: error: 'y' undeclared (first use in this function)
   15 | printf("%d %d\n",x,y);
      |                    ^
Language: C

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

  while(1)
    {

      scanf("%d %d" , &x,&y);
      if(x==0 && y==0)break;
      if(x < y)t =x ,x=y , y=t;
      pritf("%d %d" , x,y);
    }

  return 0;

}

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

#include<stdio.h>

int main(){
	int x,y,swap;
	while(1){
	    scanf("%d %d",&x,&y);
		if(x+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:11:1: error: expected declaration or statement at end of input
   11 | }
      | ^
Language: C

#include <stdio.h>
int judge(int a,int b)
{
	int i;
	if(a>b)
	{
		i=0;
	}
	else
	{
		i=1;
	}
	return i;
}
int main(void)
{
	int 0<=x&&x<=10000,0<=y&&y<=10000,i,x[3000],y[3000],j[3000];
	for(i=0;(x1 != 0) || (y1 != 0);i++)
	{
		scanf("%d" "%d", &x1,&y1);
		x[i] = x1;
		y[i] = y1;
		j[i] = judge(x[i],y[i]);
	}
	for(i=0;(x[i] != 0) || (y[i] != 0);i++)
	{
		if(j[i] = 0)
		{
			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:17:13: error: expected identifier or '(' before numeric constant
   17 |         int 0<=x&&x<=10000,0<=y&&y<=10000,i,x[3000],y[3000],j[3000];
      |             ^
main.c:18:13: error: 'i' undeclared (first use in this function)
   18 |         for(i=0;(x1 != 0) || (y1 != 0);i++)
      |             ^
main.c:18:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:18: error: 'x1' undeclared (first use in this function)
   18 |         for(i=0;(x1 != 0) || (y1 != 0);i++)
      |                  ^~
main.c:18:31: error: 'y1' undeclared (first use in this function)
   18 |         for(i=0;(x1 != 0) || (y1 != 0);i++)
      |                               ^~
main.c:21:17: error: 'x' undeclared (first use in this function)
   21 |                 x[i] = x1;
      |                 ^
main.c:22:17: error: 'y' undeclared (first use in this function)
   22 |                 y[i] = y1;
      |                 ^
main.c:23:17: error: 'j' undeclared (first use in this function)
   23 |                 j[i] = judge(x[i],y[i]);
      |                 ^
Language: C

#include <stdio.h>

int main(void){
    int i,x,y;
    while(1){
    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:10: error: expected ';' before 'x'
   11 |     i = x
      |          ^
      |          ;
   12 |     x = y
      |     ~
Language: C

#include <stdio.h>
int main()
{
int i, x, y;
for(i=0;i<3000) {
scanf("%d", &x);
scanf("%d", &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: In function 'main':
main.c:5:15: error: expected ';' before ')' token
    5 | for(i=0;i<3000) {
      |               ^
      |               ;
Language: C

#include <stdio.h>
int main x,y,temp;

for ( ; ; ){

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

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


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

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

}

return 0;
}

Compiler output:
main.c:2:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'x'
    2 | int main x,y,temp;
      |          ^
main.c:4:1: error: expected identifier or '(' before 'for'
    4 | for ( ; ; ){
      | ^~~
main.c:4:11: error: expected identifier or '(' before ')' token
    4 | for ( ; ; ){
      |           ^
main.c:23:1: error: expected identifier or '(' before 'return'
   23 | return 0;
      | ^~~~~~
main.c:24:1: error: expected identifier or '(' before '}' token
   24 | }
      | ^
Language: C

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

for ( ; ; ){

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:24:1: error: expected declaration or statement at end of input
   24 | return 0;
      | ^~~~~~
Language: C

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

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[i], y[i]);
      |                 ^~~~~~~
      |                 scanf
Language: C

#include<stdio.h>

int main(void)
{
	int x=,y;
	while(x!=0 && y!=0){
		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:5:15: error: expected expression before ',' token
    5 |         int x=,y;
      |               ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:15: error: 'aaaaa' undeclared (first use in this function)
    8 |      if(y==0) aaaaa
      |               ^~~~~
main.c:8:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:20: error: expected ';' before 'if'
    8 |      if(y==0) aaaaa
      |                    ^
      |                    ;
    9 |    if(x<=y){
      |    ~~
Language: C

#include <stdio.h>

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

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

#include <stdio.h>

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

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

int main(){
int x, y,i;
for(i=0,i<3000,i+=){
scanf("%d%d", &x, &y);
printf("%d %d", y, x);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:19: error: expected expression before ')' token
    3 | for(i=0,i<3000,i+=){
      |                   ^
main.c:3:19: error: expected expression before ')' token
main.c:4:1: 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:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 | scanf("%d%d", &x, &y);
      | ^~~~~
main.c:4:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 | printf("%d %d", y, x);
      | ^~~~~~
main.c:5:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main(){
int x, y,i;
for(i=0,i<3000,i++){
scanf("%d%d", &x, &y);
printf("%d %d", y, x);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:19: error: expected ';' before ')' token
    3 | for(i=0,i<3000,i++){
      |                   ^
      |                   ;
main.c:3:19: error: expected expression before ')' token
main.c:4:1: 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:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 | scanf("%d%d", &x, &y);
      | ^~~~~
main.c:4:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 | printf("%d %d", y, x);
      | ^~~~~~
main.c:5:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:1: 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:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 | scanf("%d%d", &x, &y);
      | ^~~~~
main.c:4:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 | printf("%d %d", y, x);
      | ^~~~~~
main.c:6:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:11: error: expected ';' before '{' token
    7 | }else(x<y){
      |           ^
      |           ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:1: 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:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 | scanf("%d%d", &x, &y);
      | ^~~~~
main.c:4:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 | printf("%d %d", y, x);
      | ^~~~~~
main.c:6:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:20: error: expected ';' before '{' token
    7 | }else(x==0 && y==0){
      |                    ^
      |                    ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:1: 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:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 | scanf("%d%d", &x, &y);
      | ^~~~~
main.c:4:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 | printf("%d %d\n", y, x);
      | ^~~~~~
main.c:6:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:20: error: expected ';' before '{' token
    7 | }else(x==0 && y==0){
      |                    ^
      |                    ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:1: 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:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 | scanf("%d %d", &x, &y);
      | ^~~~~
main.c:4:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 | printf("%d %d\n", x, y);
      | ^~~~~~
main.c:7:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   10 | printf("%d %d\n", y, x);
      | ^~~~~~
main.c:10:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:25: error: 'i' undeclared (first use in this function)
    3 | for(x = 1 ; x < 10000 ; i++)
      |                         ^
main.c:3:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:2: 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:2: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 | {scanf("%d%d", &x, &y);
      |  ^~~~~
main.c:4:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 | printf("%d%d\n",x, y);
      | ^~~~~~
main.c:6:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 | scanf("%d%d",&a,&b);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 | scanf("%d%d",&a,&b);
      | ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:18: error: break statement not within loop or switch
    4 | if(a==0 && b==0){break;}
      |                  ^~~~~
main.c:6:10: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 | if (a>b){printf("%d %d\n",a,b);}
      |          ^~~~~~
main.c:6:10: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:10: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:10: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:2: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 | {printf("%d %d\n",b,a);}
      |  ^~~~~~
main.c:8:2: note: include '<stdio.h>' or provide a declaration of 'printf'