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

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

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

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

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

#include <stdio.h>

int main(void)
{
  int n1, n2;
  
  while ( 1 ) {
    scanf("%d %d", &n1, &n2);
    if ( n1 == 0 && n2 == 0 ) {
      break;
    }
    n1 < n2 ? printf("%d %d\n", n1, n2); : printf("%d %d\n", n2, n1);
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:40: error: expected ':' before ';' token
   12 |     n1 < n2 ? printf("%d %d\n", n1, n2); : printf("%d %d\n", n2, n1);
      |                                        ^
      |                                        :
main.c:12:42: error: expected expression before ':' token
   12 |     n1 < n2 ? printf("%d %d\n", n1, n2); : printf("%d %d\n", n2, n1);
      |                                          ^
Language: C

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

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


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

Compiler output:
main.c: In function 'main':
main.c:7:17: error: 'b' undeclared (first use in this function)
    7 |    if(a == 0 && b == 0)printf("\n");
      |                 ^
main.c:7:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:24: error: expected '(' before 'else'
    8 |                     if else(a >= n)printf("%d %d\n",n,a);
      |                        ^~~~
      |                        (
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",y,x);

  }

  return 0;

}

Compiler output:
main.c: In function 'main':
main.c:6:11: error: expected identifier or '(' before ';' token
    6 |   int x,y,;
      |           ^
Language: C

#include<stdio.h>

int main(void){

int a, b;

while(1){

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

if (b>a){

x=a;

a=b;

b=x;

}

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

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

break;

}

}

return 0;

}

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

#include<stdio.h>

int main(void){

int a, b,x;

while(1){

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


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

if(a<=b){

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

else if{

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

Compiler output:
main.c: In function 'main':
main.c:18:22: error: expected ';' before '}' token
   18 | printf("%d %d\n",a,b)
      |                      ^
      |                      ;
   19 | }
      | ~                     
main.c:21:8: error: expected '(' before '{' token
   21 | else if{
      |        ^
      |        (
main.c:23:23: error: expected ';' before '}' token
   23 | printf("%d %d\n",b,a;)
      |                       ^
      |                       ;
   24 | }
      | ~                      
main.c:26:1: error: expected declaration or statement at end of input
   26 | }
      | ^
Language: C

#include<stdio.h>

int main(void){

int a, b,x;

while(1){

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


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

if(a<=b){

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

else if{

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

Compiler output:
main.c: In function 'main':
main.c:21:8: error: expected '(' before '{' token
   21 | else if{
      |        ^
      |        (
main.c:26:1: error: expected declaration or statement at end of input
   26 | }
      | ^
Language: C

#include<stdio.h>

int main(void){

int a, b,x;

while(1){

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


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

if(a<=b){

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

Compiler output:
main.c: In function 'main':
main.c:19:9: error: expected '(' before '{' token
   19 | }else if{
      |         ^
      |         (
main.c:23:1: error: expected declaration or statement at end of input
   23 | }
      | ^
Language: C

#include<stdio.h>

int main(void){

int a, b,x;

while(1){

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


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

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

#include <stdio.h>

int main(){

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

}

Compiler output:
main.c: In function 'main':
main.c:13:9: error: expected '}' before 'else'
   13 |         else
      |         ^~~~
main.c: At top level:
main.c:19:1: error: expected identifier or '(' before '}' token
   19 | }
      | ^
Language: C

#include <stdio.h>

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


while(1)
{
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:11:7: error: expected expression before '%' token
   11 | scanf(%d %d,&x,&y);
      |       ^
Language: C

#include <stdio.h>

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


while(1)
{
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:11:7: error: expected expression before '%' token
   11 | scanf(%d %d,&x,&y);
      |       ^
Language: C

#include <stdio.h>

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

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

}
else
{
break;
}

}




return 0;
}

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

#include <stdio.h>

int main()
{
int x,y;

while(true)
{
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:7:7: error: 'true' undeclared (first use in this function)
    7 | while(true)
      |       ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:7:7: note: each undeclared identifier is reported only once for each function it appears in
    7 | while(true)
      |       ^~~~
main.c:9:7: error: expected expression before '%' token
    9 | 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){

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:9:7: error: expected expression before '%' token
    9 | 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){

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:9:7: error: expected expression before '%' token
    9 | scanf(%d %d,&x,&y);
      |       ^
Language: C

#include <stdio.h>
#include <srdlib.h>

int main()
{
int x,y;

while(1)
{
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:2:10: fatal error: srdlib.h: No such file or directory
    2 | #include <srdlib.h>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>
#include <stdlib.h>

int main()
{
int x,y;

while(1)
{
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:10:7: error: expected expression before '%' token
   10 | scanf(%d %d,&x,&y);
      |       ^
Language: C

#include <stdio.h>

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

#include <stdio.h>

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

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

#include <stdio.h>

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

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

#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

void main() {
	int x = 0;
	int y = 0;
	while (true)
	{
		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);
	}
}

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

#include<stdio.h>

void main() {
	int x = 0;
	int y = 0;
	while (true)
	{
		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);
	}
}

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

#include<stdio.h>

int main() {
	int x = 0;
	int y = 0;
	while (true)
	{
		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: In function 'main':
main.c:6:16: error: 'true' undeclared (first use in this function)
    6 |         while (true)
      |                ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:6:16: note: each undeclared identifier is reported only once for each function it appears in
    6 |         while (true)
      |                ^~~~
Language: C

#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

int main() {
	int x[10];
	int y[10];
	int count = 0;
	while (true)
	{
		scanf("%d %d", &x[count], &y[count]);
		if ((x[count] == 0) && (y[count] == 0))
			break;
		count++;
	}
	for (int i = 0; i < count; i++)
		(x[i] < y[i]) ? printf("%d %d\n", x[i], y[i]) : printf("%d %d\n", y[i], x[i]);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:16: error: 'true' undeclared (first use in this function)
    8 |         while (true)
      |                ^~~~
main.c:3:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    2 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    3 | 
main.c:8:16: note: each undeclared identifier is reported only once for each function it appears in
    8 |         while (true)
      |                ^~~~
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:25:1: error: expected declaration or statement at end of input
   25 | }
      | ^
Language: C

#include <stdio.h>

int main(void){
  
  int x,y;

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

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

int main(void){
  
  int x,y;

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

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

Compiler output:
main.c:24:5: error: redefinition of 'main'
   24 | int main(void){
      |     ^~~~
main.c:3:5: note: previous definition of 'main' with type 'int(void)'
    3 | int main(void){
      |     ^~~~
Language: C

#include <stdio.h>

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

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

#include <stdio.h>

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

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

#include <stdio.h>

int main(){
	int a, b, t;
	while(a != 0 || b != 0){
	scanf("%d %d", &a, &b);
		if(a == 0 && b == 0)???break;
		if(a > b){
			printf("%d %d", a, b);
		}
		else{
		printf("%d %d", b, a);
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:37: error: expected expression before '?' token
    7 |                 if(a == 0 && b == 0)???break;
      |                                     ^
Language: C

#include<cstdio>
 
int main(){
int a,b;
while(true){
scanf("%d %d",&a,&b);
if((a==0)&&(b==0))break;
if(a<=b) printf("%d %d\n",a,b);
if(a>b) printf("%d %d\n",b,a);
}
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 x,y;
	for(;;x=1,y=1)
	scanf("%d %d",&x,&y);
	if((x==0) && (y==0)) break;
	if(x<y){
		printf("%d %d",x,y);
	}
	if(x>y){
		printf("%d %d",y,x);
	}
	return 0;
}

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

#include<stdio.h>

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)
	}	
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(void){
      | ^~~~
main.c: In function 'main':
main.c:7:47: error: expected ';' before 'else'
    7 |                 if(x<=y) printf("%d %d\n",x,y)
      |                                               ^
      |                                               ;
    8 |                 else printf("%d %d\n",y,x)
      |                 ~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:17: error: 'a' undeclared (first use in this function)
    9 |         if(s[0]>a[1])
      |                 ^
main.c:9:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:7: error: expected expression before ')' token
    5 | while(){
      |       ^
main.c:14:8: error: expected expression before '%' token
   14 | printf(%d %d\n",f,s);
      |        ^
main.c:14:13: error: stray '\' in program
   14 | printf(%d %d\n",f,s);
      |             ^
main.c:14:15: warning: missing terminating " character
   14 | printf(%d %d\n",f,s);
      |               ^
main.c:14:15: error: missing terminating " character
   14 | printf(%d %d\n",f,s);
      |               ^~~~~~~
main.c:14:15: error: expected ';' before '}' token
   14 | printf(%d %d\n",f,s);
      |               ^
      |               ;
   15 | }
      | ~
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:14:8: error: expected expression before '%' token
   14 | printf(%d %d\n",f,s);
      |        ^
main.c:14:13: error: stray '\' in program
   14 | printf(%d %d\n",f,s);
      |             ^
main.c:14:15: warning: missing terminating " character
   14 | printf(%d %d\n",f,s);
      |               ^
main.c:14:15: error: missing terminating " character
   14 | printf(%d %d\n",f,s);
      |               ^~~~~~~
main.c:14:15: error: expected ';' before '}' token
   14 | printf(%d %d\n",f,s);
      |               ^
      |               ;
   15 | }
      | ~
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:12:14: error: expected ';' before 'return'
   12 |     }while(1)
      |              ^
      |              ;
   13 | 
   14 |     return 0;
      |     ~~~~~~
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:12:14: error: expected ';' before 'return'
   12 |     }while(1)
      |              ^
      |              ;
   13 | 
   14 |     return 0;
      |     ~~~~~~
Language: C

#include <stdio.h>

int x,y;
int i=1;

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

Compiler output:
main.c:6:1: error: return type defaults to 'int' [-Wimplicit-int]
    6 | main(){
      | ^~~~
main.c: In function 'main':
main.c:11:52: error: 'z' undeclared (first use in this function)
   11 |                                 printf("%d %d\n",y,z);
      |                                                    ^
main.c:11:52: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int x,y;
int i=1;

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

Compiler output:
main.c:6:1: error: return type defaults to 'int' [-Wimplicit-int]
    6 | main(){
      | ^~~~
main.c: In function 'main':
main.c:11:52: error: 'z' undeclared (first use in this function)
   11 |                                 printf("%d %d\n",y,z);
      |                                                    ^
main.c:11:52: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int x,y;
int i=1;

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

Compiler output:
main.c:6:1: error: return type defaults to 'int' [-Wimplicit-int]
    6 | main(){
      | ^~~~
main.c: In function 'main':
main.c:9:31: error: lvalue required as left operand of assignment
    9 |                 if(x = 0 && y = 0){
      |                               ^
Language: C

#include <iostream>
using namespace std;
int main(void){
	int x,y;
	while(1){
		cin >> x >> y;
		if(!(x+y))break;
		if(x<y)
			cout << x << " " << y << endl;;
		else
			cout << y << " " << 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

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

Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |         scanf("%d %d",&s %t);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:5:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |         scanf("%d %d",&s %t);
      |         ^~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:26: error: invalid operands to binary % (have 'int *' and 'int')
    5 |         scanf("%d %d",&s %t);
      |                       ~~ ^
      |                       |
      |                       int *
main.c:11:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |         printf("%d %d\n",s,t);
      |         ^~~~~~
main.c:11:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |         scanf("%d %d",&s %t);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:5:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |         scanf("%d %d",&s %t);
      |         ^~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:26: error: invalid operands to binary % (have 'int *' and 'int')
    5 |         scanf("%d %d",&s %t);
      |                       ~~ ^
      |                       |
      |                       int *
main.c:8:10: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 |          printf("%d %d\n",t,s);
      |          ^~~~~~
main.c:8:10: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:10: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:10: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:10: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   10 |          printf("%d %d\n",s,t);
      |          ^~~~~~
main.c:10:10: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |         scanf("%d %d",&s %t);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:5:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |         scanf("%d %d",&s %t);
      |         ^~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:26: error: invalid operands to binary % (have 'int *' and 'int')
    5 |         scanf("%d %d",&s %t);
      |                       ~~ ^
      |                       |
      |                       int *
main.c:8:10: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 |          printf("%d %d\n",t,s);
      |          ^~~~~~
main.c:8:10: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:10: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:10: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:10: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   10 |          printf("%d %d\n",s,t);
      |          ^~~~~~
main.c:10:10: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |         scanf("%d %d",&s %t);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:5:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |         scanf("%d %d",&s %t);
      |         ^~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:26: error: invalid operands to binary % (have 'int *' and 'int')
    5 |         scanf("%d %d",&s %t);
      |                       ~~ ^
      |                       |
      |                       int *
main.c:8:10: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 |          printf("%d %d\n",t,s);
      |          ^~~~~~
main.c:8:10: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:10: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:10: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:10: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   10 |          printf("%d %d\n",s,t);
      |          ^~~~~~
main.c:10:10: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |         scanf("%d %d",&s &t);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:5:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |         scanf("%d %d",&s &t);
      |         ^~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:26: error: invalid operands to binary & (have 'int *' and 'int')
    5 |         scanf("%d %d",&s &t);
      |                       ~~ ^
      |                       |
      |                       int *
main.c:8:10: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 |          printf("%d %d\n",t,s);
      |          ^~~~~~
main.c:8:10: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:10: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:10: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:10: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   10 |          printf("%d %d\n",s,t);
      |          ^~~~~~
main.c:10:10: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:16: error: expected '(' before '{' token
    9 |         else if{(s<t)
      |                ^
      |                (
main.c:9:22: error: expected ';' before 'printf'
    9 |         else if{(s<t)
      |                      ^
      |                      ;
   10 |          printf("%d %d\n",t,s);}
      |          ~~~~~~
Language: C

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

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

#include <stdio.h>
int main(void)
{
	int x, y, a;
	while(1){
		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);
	}
	return 0;

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

#include <stdio.h>


int main(void) {

	// 1_3-A Print Many Hello World

	int i,x,y;
	int inum;

	for(i=0; i<3000; i++){
		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:20:17: error: expected '}' before 'else'
   20 |                 else{
      |                 ^~~~
Language: C

#include <stdio.h>

int main()
{
    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:8:31: error: expected statement before ')' token
    8 |     while ((x != 0) && y != 0)) {
      |                               ^
Language: C

#include<stdio.h>
int main(void){
??int x,y,i;
for(i=0;i<3000;i++){
??scanf("%d %d",&x,&y);
??if(0<=x&&x<=10000&&0<=y&&y<=10000){
??????if(x==0&&y==0)
??????????return 0;
??????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:3:1: error: expected expression before '?' token
    3 | ??int x,y,i;
      | ^
main.c:4:5: error: 'i' undeclared (first use in this function)
    4 | for(i=0;i<3000;i++){
      |     ^
main.c:4:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:1: error: expected expression before '?' token
    5 | ??scanf("%d %d",&x,&y);
      | ^
main.c:5:18: error: 'x' undeclared (first use in this function)
    5 | ??scanf("%d %d",&x,&y);
      |                  ^
main.c:5:21: error: 'y' undeclared (first use in this function)
    5 | ??scanf("%d %d",&x,&y);
      |                     ^
main.c:6:1: error: expected expression before '?' token
    6 | ??if(0<=x&&x<=10000&&0<=y&&y<=10000){
      | ^
main.c:17:1: error: expected expression before '?' token
   17 | ??return 0;
      | ^
Language: C

#include <stdio.h>

#define  MAX 10000

int main(int argc, char *argv[]) {
	
	int in[MAX][2] = { 0 };
	int tmp = 0;
	int i = 0;
	
	do{
		fscanf(stdin, "%d", &in[i][0], &in[i][1]);
		if(in[i][0] > in[i][1]) {
			tmp = in[i][0];
			in[i][0] = in[i][1];
			in[i][1] = tmp;
		i++;
	}while(in[i-1][0] != 0 && in[i-1][1]);
	
	i = 0;
	while(in[i][0] != 0 && in[i][1]) {
		
		fprintf(stdout, "Case %d: %d\n", , );
		i++;
	}
	
	return 0;
	
}

Compiler output:
main.c: In function 'main':
main.c:23:50: error: expected expression before ',' token
   23 |                 fprintf(stdout, "Case %d: %d\n", , );
      |                                                  ^
main.c:29:1: error: expected 'while' at end of input
   29 | }
      | ^
main.c:29:1: error: expected declaration or statement at end of input
Language: C

#include <stdio.h>

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

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

	i = 0;
	

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

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

		i++;
	}

	return 0;
}

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

#include<stdio.h>

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

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

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

#include<stdio.h>

int main() {
   
   int xy,i=0;
   
   for (i=0; i<10000; i++) {
      scanf("%d%d\n",&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:8:23: error: 'x' undeclared (first use in this function)
    8 |       scanf("%d%d\n",&x,&y);
      |                       ^
main.c:8:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:26: error: 'y' undeclared (first use in this function)
    8 |       scanf("%d%d\n",&x,&y);
      |                          ^
Language: C

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

int x,y;

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

if(x==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:6: error: expected '(' before '{' token
    6 | while{
      |      ^
      |      (
Language: C

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

int x,y;

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

if(x==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:7:7: error: expected expression before '%' token
    7 | scanf(%d %d",&x,&y);
      |       ^
main.c:7:12: warning: missing terminating " character
    7 | scanf(%d %d",&x,&y);
      |            ^
main.c:7:12: error: missing terminating " character
    7 | scanf(%d %d",&x,&y);
      |            ^~~~~~~~~
main.c:11:59: error: expected ';' before '}' token
   11 | if(x<y) printf("%d %d\n",x,y); else printf("%d %d\n",y,x);
      |                                                           ^
      |                                                           ;
   12 | }
      | ~
Language: C

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

int a,b,c,z,i;

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

for(i=a; i<=b; i++){
if(c%i == o){
z++;
}
}


}

Compiler output:
main.c: In function 'main':
main.c:9:11: error: 'o' undeclared (first use in this function)
    9 | if(c%i == o){
      |           ^
main.c:9: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;
do{
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:13:1: error: expected 'while' before 'return'
   13 | return 0;
      | ^~~~~~
Language: C

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

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

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

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

#include<stdio.h>

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

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:9: error: 'n' undeclared (first use in this function)
    6 |         n=0;
      |         ^
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:25: error: expected '}' before 'else'
   13 |                         else
      |                         ^~~~
main.c: At top level:
main.c:17:9: error: expected identifier or '(' before 'return'
   17 |         return 0;
      |         ^~~~~~
main.c:18:1: error: expected identifier or '(' before '}' token
   18 | }
      | ^
Language: C

#include <stdio.h>

int main(void)
{
	int i,x,y;
	for(i=0;;i++){
		scanf("%d",&x);
		scanf("%d",&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:12:25: error: expected '}' before 'else'
   12 |                         else
      |                         ^~~~
main.c: At top level:
main.c:16:9: error: expected identifier or '(' before 'return'
   16 |         return 0;
      |         ^~~~~~
main.c:17:1: error: expected identifier or '(' before '}' token
   17 | }
      | ^
Language: C

#include <stdio.h>

int main(void){

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

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

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

if(x[i] > y[i]){
tmp = x[i];
x[i] = y[i];
y[i] = tmp;
}

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:1: error: 'tmp' undeclared (first use in this function)
   14 | tmp = x[i];
      | ^~~
main.c:14:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:24:1: error: expected declaration or statement at end of input
   24 | }
      | ^
Language: C

#include <stdio.h>

int main(void){

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

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

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

if(x[i] > y[i]){
tmp = x[i];
x[i] = y[i];
y[i] = tmp;
}
}

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

return 0;
}

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:6:26: error: expected ':' before ';' token
    6 |    printf("%d %d\n",x<y?x;y,x>y?x;y);
      |                          ^
      |                          :
main.c:7:19: error: lvalue required as left operand of assignment
    7 |    }while(x=0 || y=0);
      |                   ^
Language: C

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

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

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:27: error: expected ':' before ';' token
    8 |    printf("%d %d\n", x<y?x;y,  x>y?x;y);
      |                           ^
      |                           :
main.c:9:19: error: expected expression before '!=' token
    9 |    }while(x!=0 && !=0);
      |                   ^~
Language: C

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

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

   return 0;
}

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