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

#include <stdio.h>


int main(void){
	int x,y;

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


	return 0;
}

}

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

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

Compiler output:
main.c: In function 'main':
main.c:14:2: error: expected '}' before 'else'
   14 | }else{
      |  ^~~~
Language: C

#include<stdio.h>

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

}

Compiler output:
main.c: In function 'main':
main.c:10:5: error: 'else' without a previous 'if'
   10 |     else if("y=<x");
      |     ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:9: error: 'a' undeclared (first use in this function)
    5 |   while(a==b==0){
      |         ^
main.c:5:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:12: error: 'b' undeclared (first use in this function)
    5 |   while(a==b==0){
      |            ^
Language: C

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

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

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

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

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:26: error: expected expression before '[' token
    8 |     scanf("%d %d",&n[0],&[1]);
      |                          ^
Language: C

include<stdio.h>

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

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:9: error: array size missing in 'x'
    5 |     int x[], y[];
      |         ^
main.c:5:14: error: array size missing in 'y'
    5 |     int x[], y[];
      |              ^
main.c:6:10: error: 'i' undeclared (first use in this function)
    6 |     for (i = 0; i < 10; ++i) {
      |          ^
main.c:6:10: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

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

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

#include <stdio.h>

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

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

#include <stdio.h>

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

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

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

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

#include <stdio.h>

int main(void)
{
  int a, b;

  while (1){
    scnaf("%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:8:5: error: implicit declaration of function 'scnaf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    8 |     scnaf("%d %d", &a, &b);
      |     ^~~~~
      |     scanf
Language: C

#include<stdio.h>
main(){
	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:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:5:30: error: invalid operands to binary & (have 'char *' and 'int')
    5 |                 scanf("%d %d"&x,&y);
      |                       ~~~~~~~^
      |                       |
      |                       char *
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",y,x);
    }
    if(y>x){
      printf("%d %d\n",x,y);
    }
    if(x==y){
      printf("%d %d\n",x,y);
    }
    scanf(" %d %d",&x,&y);
  }
  return(0);
}

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

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

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:11:14: error: 'x' undeclared (first use in this function)
   11 |          if (x > y) {
      |              ^
main.c:11:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:18: error: 'y' undeclared (first use in this function)
   11 |          if (x > y) {
      |                  ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:11:14: error: 'x' undeclared (first use in this function)
   11 |          if (x > y) {
      |              ^
main.c:11:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:18: error: 'y' undeclared (first use in this function)
   11 |          if (x > y) {
      |                  ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:11:11: error: expected expression before '%' token
   11 |     scanf(%d %d", &x, &y);
      |           ^
main.c:11:16: warning: missing terminating " character
   11 |     scanf(%d %d", &x, &y);
      |                ^
main.c:11:16: error: missing terminating " character
   11 |     scanf(%d %d", &x, &y);
      |                ^~~~~~~~~~~
main.c:11:16: error: expected ';' before '}' token
   11 |     scanf(%d %d", &x, &y);
      |                ^
      |                ;
   12 |   }
      |   ~
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",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:18:9: error: expected declaration or statement at end of input
   18 |         return 0;
      |         ^~~~~~
Language: C

#include <stdio.h>
  int main(){
   int x,y,i;
    for(i=0;i>=0;i++){
    scanf("%d%d",&x,&y);
     if(x=0 && y=0){
       brake;
}else {
 x<y ? printf("x y") : printf("y x")
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:17: error: lvalue required as left operand of assignment
    6 |      if(x=0 && y=0){
      |                 ^
main.c:7:8: error: 'brake' undeclared (first use in this function)
    7 |        brake;
      |        ^~~~~
main.c:7:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:37: error: expected ';' before '}' token
    9 |  x<y ? printf("x y") : printf("y x")
      |                                     ^
      |                                     ;
   10 | }
      | ~
Language: C

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

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

//AOJ10006
//http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=10006

#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",y,x );
	}else{
		printf("%d %d",y,x )
	}

	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:37: error: expected ';' before '}' token
   20 |                 printf("%d %d",y,x )
      |                                     ^
      |                                     ;
   21 |         }
      |         ~
Language: C

include <stdio.h>

int main(void){

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


  
  return 0;
}

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

include <stdio.h>

int main(int argc, char *argv[])
{
  int a,b,j=1;
  while(scanf("%d %d",&a,&b) != EOF){
    
    if(a!=0 || b!=0){
      if(a < b)printf ("%d %d\n",a,b);
      else printf ("%d %d\n",b,a);
    }else{
      return 0;
    }
  }
  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 x,y,t;
while(1){
t=0;
scanf("%d %d",&x,&y);
if(x==0&&y==0){
break;
}
if(x>y){
t=x;
x=y;
y=t;
}
printf("%d %d\n",x,y);
}
return(0);
}

Compiler output:
main.c:3:1: error: expected identifier or '(' before 'while'
    3 | while(1){
      | ^~~~~
main.c:16:1: 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(){
int a,b,c;
while(1){
scanf("%d %d",&a,&b);
if(a == 0){
if(b == 0){
break;
}
else{
printf("0 %d",a);
}
else{
if(a > b){
c = a;
a = b;
b = c;
}
printrf("%d %d\n",a,b);
}

Compiler output:
main.c: In function 'main':
main.c:13:1: error: expected '}' before 'else'
   13 | else{
      | ^~~~
main.c:19:1: error: implicit declaration of function 'printrf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   19 | printrf("%d %d\n",a,b);
      | ^~~~~~~
      | printf
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
main.c:20:1: error: expected declaration or statement at end of input
Language: C

#include <stdio.h>
int main(){
int a,b,c;
while(1){
scanf("%d %d",&a,&b);
if(a == 0){
if(b == 0){
break;
}
else{
printf("%d %d\n",a,b);
}
}
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:23:1: error: expected declaration or statement at end of input
   23 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:3: warning: missing terminating ' character
   10 | if'(x < y){
      |   ^
main.c:10:3: error: missing terminating ' character
   10 | if'(x < y){
      |   ^~~~~~~~~
main.c:11:1: error: expected '(' before 'd'
   11 | d = x;
      | ^
      | (
main.c: At top level:
main.c:18:1: error: expected identifier or '(' before 'return'
   18 | return 0;
      | ^~~~~~
main.c:19:1: error: expected identifier or '(' before '}' token
   19 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:15:7: warning: missing terminating ' character
   15 | printf'("%d %d\n",x,y);
      |       ^
main.c:15:7: error: missing terminating ' character
   15 | printf'("%d %d\n",x,y);
      |       ^~~~~~~~~~~~~~~~~
main.c:15:7: error: expected ';' before '}' token
   15 | printf'("%d %d\n",x,y);
      |       ^
      |       ;
   16 | }
      | ~
Language: C

#include<stdio.h>

int main(void){
  int a, b;
  int out1,out2;
  scanf("%d %d",&a,&b);
  while(a=0 && b=0){
    if(a<b){out1=a;out2=b;}
    else{out1=b;out2=a;}
    printf("%d %d",out1,out2);
    scanf("%d %d",&a,&b);
  }
  return 0;
}

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

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

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

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

	printf("整数値を２つ入力入力してください:");
	scanf("%y%y", &x, &y);
	
	if(x > y) {
		
	}
	else if ( x == y) {
		
	}
	else {

	}

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

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

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

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

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

#include<stdio.h>

int main(void)
{
int n1, n2;

while(){
scanf("%d %d", &n1, &n2)
if(n1|n2) 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:7:7: error: expected expression before ')' token
    7 | while(){
      |       ^
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:1:5: error: type of 'a' defaults to 'int' [-Wimplicit-int]
    1 | int main(a,b){for(;;)
      |     ^~~~
main.c:1:5: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:2:19: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    2 |                   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(a,b){for(;;)
main.c:2:19: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    2 |                   scanf("%d%d",&a,&b);
      |                   ^~~~~
main.c:2:19: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:13: error: break statement not within loop or switch
    3 |   if(a+b==0)break;
      |             ^~~~~
main.c:4:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    4 |   printf("%d %d\n",a<b?a,b:b,a);
      |   ^~~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:4:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

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

int main(a,b){for(;scanf("%d%d",&a,&b),a+b;printf("%d %d\n",a<b?a:b,a<b?b:a);}

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

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

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

main(a,b){for(;scanf("%d%d",&a,&b),a+b;printf("%d %d\n",a<b?a,b;(b,a)));}

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:14:46: error: expected ';' before '}' token
   14 |                         printf("%d %d\n",x,y)
      |                                              ^
      |                                              ;
   15 |                 }
      |                 ~
Language: C

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

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

#include <stdio.h>

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

  while(x != 0 && y != 0)
  {
    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:5:12: error: 'y' undeclared (first use in this function)
    5 |   int x=1; y=1;
      |            ^
main.c:5:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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

#include<stdio.h>
#define N 64
int main(){
    int a[N],b[N],i=0，k=0,j,tmp;
    while(k==0){
        scanf("%d%d",&a[i],&b[i]);
        if(a[i]==0&&b[i]==0)
            break;
        }
        if(a[i]>b[i]){
            tmp=a[i];
            a[i]=b[i];
            b[i]=tmp;
        }
        i++;
    }
    for(j=0;j<i;j++){
        printf("%d %d\n",a[j],b[j]);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:21: error: invalid suffix "，k" on integer constant
    4 |     int a[N],b[N],i=0，k=0,j,tmp;
      |                     ^~~~
main.c:5:11: error: 'k' undeclared (first use in this function)
    5 |     while(k==0){
      |           ^
main.c:5:11: note: each undeclared identifier is reported only once for each function it appears in
main.c: At top level:
main.c:17:5: error: expected identifier or '(' before 'for'
   17 |     for(j=0;j<i;j++){
      |     ^~~
main.c:17:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   17 |     for(j=0;j<i;j++){
      |              ^
main.c:17:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   17 |     for(j=0;j<i;j++){
      |                  ^~
main.c:20:5: 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>
#define N 64
int main(){
    int a[N],b[N],i=0，k=0,j,tmp;
    while(k==0){
        scanf("%d%d",&a[i],&b[i]);
        if(a[i]==0&&b[i]==0){
            break;
        }
        if(a[i]>b[i]){
            tmp=a[i];
            a[i]=b[i];
            b[i]=tmp;
        }
        i++;
    }
    for(j=0;j<i;j++){
        printf("%d %d\n",a[j],b[j]);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:21: error: invalid suffix "，k" on integer constant
    4 |     int a[N],b[N],i=0，k=0,j,tmp;
      |                     ^~~~
main.c:5:11: error: 'k' undeclared (first use in this function)
    5 |     while(k==0){
      |           ^
main.c:5:11: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(){
  int a,b;
  while(scanf("%d %d",&a,&b)!=EOF){
      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:9:3: error: expected declaration or statement at end of input
    9 |   return 0;
      |   ^~~~~~
Language: C

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

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

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

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

x;main(y){for(;scanf("%d%d",&x,&y)*(x|y);printf("%d %d\n",y,x);}

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

#include <stdio.h>
#include <stdbool.h>

int main(void)
{
  int n = 2;
  int x[n];
  bool flag = true;
  while (flag){
    scanf("%d %d", &x[n - 2], &x[n - 1]);
    if (x[n - 2] == 0 && x[n - 1] == 0){
      n = n + 2;
      flag = false;
    }
    else{
       n = n + 2;
    }
  }
  for (int j = 2; j < n + 2;j = j + 2){
    if(x[j - 2] == 0 && x[j - 1] == 0){
      break;
    }
    else if (x[j - 2] < x[j - 1]){
      printf("%d %d\n", x[j - 2], x[j - 1]);
    }
    else if(x[j - 2] > x[j - 1]){
      printf("%d %d\n", x[j - 1], x[j - 2]);
    }
    else{
      printf("%d %d\n", x[j - 1], x[j - 2]);
    }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:32:4: error: expected '}' at end of input
   32 |   }
      |    ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include <stdio.h>

int main(void)
{
  int n = 2;
  int x[n];
  for(int k = 0;; k = k + 2){
    scanf("%d %d", &x[k], &x[k + 1]);
    if (x[k] == 0 && x[k + 1] == 0){
      break;
    }
    else{
      n = n + 2;
    }
  }
  for(int j = 0; j < n - 2; j = j + 2){
    if(x[j] < x[j + 1]){
      printf("%d %d\n", x[j], x[j + 1]);
    }
    else if(x[j] >= x[j + 1]){
      printf("%d %d\n",x[j + 1], x[j]);
    }  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>
 
int main(void)
{   
    int x;
    int y;
    while(1){
        scanf("%d %d", &x , &y);
        if(x == 0 && y == 0){
            break;
        }else if(x > y){
            printf("%d %d\n", y, x);
        }else{
            printf("%d %d\n", x, y);
        }
    }
    return 0;
}

Compiler output:
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 1
      | ^
a.cc: In function 'int main()':
a.cc:27:9: error: 'scanf' was not declared in this scope
   27 |         scanf("%d %d", &x , &y);
      |         ^~~~~
a.cc:31:13: error: 'printf' was not declared in this scope
   31 |             printf("%d %d\n", y, x);
      |             ^~~~~~
a.cc:21:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
   20 | #include <stdio.h>
  +++ |+#include <cstdio>
   21 | 
a.cc:33:13: error: 'printf' was not declared in this scope
   33 |             printf("%d %d\n", x, y);
      |             ^~~~~~
a.cc:33:13: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include<stdio.h>

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

Compiler output:
a.cc:11:20: warning: missing terminating " character
   11 |             printf("%d %d, y, x);
      |                    ^
a.cc:11:20: error: missing terminating " character
   11 |             printf("%d %d, y, x);
      |                    ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:23: error: 'Y' was not declared in this scope
    7 |     while(!(x == 0 && Y == 0));{
      |                       ^
a.cc:12:9: error: expected primary-expression before '}' token
   12 |         }
      |         ^
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <stdio.h>

int main(void)
{
    int x;
    int 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);
        }
    }
    printf("0 0/n");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
    8 |     scanf("%d %d", &x &y);
      |                    ~~ ^~
      |                    |   |
      |                    |   int
      |                    int*
Language: C++

#include <stdio.h>
 
int main(void)
{
    int x =1;
    int y =1;
    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);
        }
    }
    printf("0 0/n");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
    8 |     scanf("%d %d", &x &y);
      |                    ~~ ^~
      |                    |   |
      |                    |   int
      |                    int*
Language: C++

#include<stdio.h>

int main(void)

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: expected '}' before 'else'
   13 |         else{
      |         ^~~~
a.cc:11:24: note: to match this '{'
   11 |         }else if(x < y){
      |                        ^
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include <stdio.h>
#include <stdbool.h>

int sort_vars(int* a, int* b)
{
	if (a > b) {
		int c = a;
		*a = *b;
		*b = c;
	}
	return *a, *b;
}
		


int main(void)
{
    while (true) {
        int n, m;

        scanf("%d %d", &n, &m);

        if (n == 0 && m == 0) {
            break;
        }

        sort_vars(&n, &m);
        printf("%d %d\n", n, m);
    }

    return 0;
}

Compiler output:
a.cc: In function 'int sort_vars(int*, int*)':
a.cc:7:25: error: invalid conversion from 'int*' to 'int' [-fpermissive]
    7 |                 int c = a;
      |                         ^
      |                         |
      |                         int*
Language: C++

#include <stdio.h>
#include <stdbool.h>

void sort_vars(int &m, int &n)
{
    if (*n <= *m) {
        int l = *m
        *m = *n
        *n = l
    }
}
    
int main(void)
{
    while (true) {
        int n, m;

        scanf("%d %d", &n, &m);

        if (n == 0 && m == 0) {
            break;
        }

        sort_vars(&n, &m);
        printf("%d %d\n", n, m);
    }

    return 0;
}

Compiler output:
a.cc: In function 'void sort_vars(int&, int&)':
a.cc:6:9: error: invalid type argument of unary '*' (have 'int')
    6 |     if (*n <= *m) {
      |         ^~
a.cc:6:15: error: invalid type argument of unary '*' (have 'int')
    6 |     if (*n <= *m) {
      |               ^~
a.cc:7:17: error: invalid type argument of unary '*' (have 'int')
    7 |         int l = *m
      |                 ^~
a.cc:8:14: error: invalid type argument of unary '*' (have 'int')
    8 |         *m = *n
      |              ^~
a.cc: In function 'int main()':
a.cc:24:19: error: invalid conversion from 'int*' to 'int' [-fpermissive]
   24 |         sort_vars(&n, &m);
      |                   ^~
      |                   |
      |                   int*
a.cc:4:21: note:   initializing argument 1 of 'void sort_vars(int&, int&)'
    4 | void sort_vars(int &m, int &n)
      |                ~~~~~^
a.cc:24:19: error: cannot bind rvalue '(int)(& n)' to 'int&'
   24 |         sort_vars(&n, &m);
      |                   ^~
Language: C++

#include <stdio.h>
#include <stdbool.h>

void sort_vars(int* m, int* n)
{
    if (*n <= *m) {
        int l = *m
        *m = *n
        *n = l
    }
}
    
int main(void)
{
    while (true) {
        int n, m;

        scanf("%d %d", &n, &m);

        if (n == 0 && m == 0) {
            break;
        }

        sort_vars(&n, &m);
        printf("%d %d\n", n, m);
    }

    return 0;
}

Compiler output:
a.cc: In function 'void sort_vars(int*, int*)':
a.cc:8:9: error: invalid operands of types 'int' and 'int*' to binary 'operator*'
    7 |         int l = *m
      |                 ~~
      |                 |
      |                 int
    8 |         *m = *n
      |         ^~
      |          |
      |          int*
a.cc:9:9: error: invalid operands of types 'int' and 'int*' to binary 'operator*'
    8 |         *m = *n
      |              ~~
      |              |
      |              int
    9 |         *n = l
      |         ^~
      |          |
      |          int*
Language: C++

#include <stdio.h>
#include <stdbool.h>

void sort_vars(int*n, int*m);

int main(void)
{
    while (true) {
        int n, m;

        scanf("%d %d", &n, &m);

        if (n == 0 && m == 0) {
            break;
        }

        sort_vars(&n, &m);
        printf("%d %d\n", n, m);
    }

    return 0;
}

void sort_vars(int* n, int* m)
{   
    if (*n < *m) {
        break;
    } else {
        int c = *n;
        *n = *m;
        *m = c;
    }
}

Compiler output:
a.cc: In function 'void sort_vars(int*, int*)':
a.cc:27:9: error: break statement not within loop or switch
   27 |         break;
      |         ^~~~~
Language: C++

#include <stdio.h>
#include <stdbool.h>

void sort_vars(int* pn, int* pm); 

int main(void)
{
    while (true) {
        int n, m;

        scanf("%d %d", &n, &m);

        if (n == 0 && m == 0) {
            break;
        }

        sort_vars(&n, &m);
        printf("%d %d\n", n, m);
    }

    return 0;
}

void sort_vars(int* pn, int* pm)
{
     int temp = *pn;
     if(*pn > *pm){
         *pn = *pm;
         *pm = temp;
}   
     

Compiler output:
a.cc: In function 'void sort_vars(int*, int*)':
a.cc:30:2: error: expected '}' at end of input
   30 | }
      |  ^
a.cc:25:1: note: to match this '{'
   25 | {
      | ^
Language: C++

#include <stdio.h>
#include <stdbool.h>

int main(void)
{
    while (true) {
        int n, m;

        scanf("%d %d", &n, &m);

        if (n == 0 && m == 0) {
            break;
        }

        sort_vars(&n, &m);
        printf("%d %d\n", n, m);
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'sort_vars' was not declared in this scope
   15 |         sort_vars(&n, &m);
      |         ^~~~~~~~~
Language: C++

#include <stdio.h>
#include <stdbool.h>

int main(void)
{
    while (true) {
        int n, m;

        scanf("%d %d", &n, &m);

        if (n == 0 && m == 0) {
            break;
        }

        sort_vars(&n, &m);
        printf("%d %d\n", n, m);
    }

    return 0;
}

void sort_vars(int* n, int* m)
{   
    if (*n < *m) {
        int l = *n;
        *n = *m;
        *m = l;
    }
}
         

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'sort_vars' was not declared in this scope
   15 |         sort_vars(&n, &m);
      |         ^~~~~~~~~
Language: C++

#include <stdio.h>
#include <stdbool.h>

int main(void)
{
    while (true) {
        int n, m;

        scanf("%d %d", &n, &m);

        if (n == 0 && m == 0) {
            break;
        }

        sort_vars(&n, &m);
        printf("%d %d\n", n, m);
    }

    return 0;
}

void sort_vars(int* n, int* m)
{   
    if (*m < *n) {
        int l = *n;
        *n = *m;
        *m = l;
    }
}
         

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'sort_vars' was not declared in this scope
   15 |         sort_vars(&n, &m);
      |         ^~~~~~~~~
Language: C++

#include <stdio.h>
#include <stdbool.h>

int main(void)
{
    while (true) {
        int n, m;

        scanf("%d %d", &n, &m);

        if (n == 0 && m == 0) {
            break;
        }

        sort_vars(&n, &m);
        printf("%d %d\n", n, m);
    }

    return 0;
}

void sort_vars(int* n, int* m)
{   
    if (*n > *m) {
        int l = *n;
        *n = *m;
        *m = l;
    }
}
         

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'sort_vars' was not declared in this scope
   15 |         sort_vars(&n, &m);
      |         ^~~~~~~~~
Language: C++

#include <stdio.h>
#include <stdbool.h>

int main(void)
{
    while (true) {
        int n, m;

        scanf("%d %d", &n, &m);

        if (n == 0 && m == 0) {
            break;
        }

        sort_vars(&n, &m);
        printf("%d %d\n", n, m);
    }

    return 0;
}

void sort_vars(int* n, int* m)
{   
    if (*n > *m) {
        int c = *n;
        *n = *m;
        *m = c;
    }
}         

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'sort_vars' was not declared in this scope
   15 |         sort_vars(&n, &m);
      |         ^~~~~~~~~
Language: C++

#include <iostream>
#include <utility>

using namespace std;

int main() {
int x, y;
cin x >> y;
if (x > y) swap(x,y);
cout << x << " " << y << endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:4: error: expected ';' before 'x'
    8 | cin x >> y;
      |    ^~
      |    ;
Language: C++

#include <iostream>
#include <utility>

using namespace std;

int main() {
int x, y;
while (ture) {
cin>>x>>y;
if (x == 0 && y == 0) break;
if (x > y) swap(x,y);
cout << x << " " << y << endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'ture' was not declared in this scope
    8 | while (ture) {
      |        ^~~~
Language: C++

#include<iostream>
#include<cstdio>
#include<algorithm>
using namespace std;
int main(){
int x,y;
while(scanf("%d%d",&x,&y)&&x&&y){
	if(x>y)swap(x,y);
	printf("%d %d\n",x,y);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:2: error: expected '}' at end of input
   10 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^