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

#include<stdio.h>

 int main()
{

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

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

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

              }

 return 0;
}
 



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

#include<stdio.h>

 int main()
{

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

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

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

              }

 return 0;
}
 



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

#include<stdio.h>

 int main()
{

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

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

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

              }

 return 0;
}
 



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

#include<stdio.h>

 int main()
{

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

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

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

              }

 return 0;
}
 



Compiler output:
main.c: In function 'main':
main.c:11:28: error: 'Y' undeclared (first use in this function)
   11 |               if(x == 0 && Y == 0)break;
      |                            ^
main.c:11:28: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:40: error: expected ';' before '}' token
   12 |               else if(x>y){ z=x,x=y,y=z};
      |                                        ^
      |                                        ;
Language: C

#include<stdio.h>

 int main()
{

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

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

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

              }

 return 0;
}
 



Compiler output:
main.c: In function 'main':
main.c:11:28: error: 'Y' undeclared (first use in this function)
   11 |               if(x == 0 && Y == 0)break;
      |                            ^
main.c:11:28: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:35: error: expected ';' before '}' token
   12 |               if(x>y){ z=x,x=y,y=z};
      |                                   ^
      |                                   ;
Language: C

#include<stdio.h>

 int main()
{

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

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

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

              }

 return 0;
}
 



Compiler output:
main.c: In function 'main':
main.c:11:28: error: 'Y' undeclared (first use in this function)
   11 |               if(x == 0 && Y == 0) break;
      |                            ^
main.c:11:28: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:35: error: expected ';' before '}' token
   12 |               if(x>y){ z=x,x=y,y=z};
      |                                   ^
      |                                   ;
Language: C

#include<stdio.h>

 int main()
{

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

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

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

              }

 return 0;
}
 



Compiler output:
main.c: In function 'main':
main.c:11:28: error: 'Y' undeclared (first use in this function)
   11 |               if(x == 0 && Y == 0) break;
      |                            ^
main.c:11:28: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:35: error: expected ';' before '}' token
   12 |               if(x>y){ z=x,x=y,y=z};
      |                                   ^
      |                                   ;
Language: C

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

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

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

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

              }

 return 0;
}
 



Compiler output:
main.c: In function 'main':
main.c:11:28: error: 'Y' undeclared (first use in this function)
   11 |               if(x == 0 && Y == 0) break;
      |                            ^
main.c:11:28: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:35: error: expected ';' before '}' token
   12 |               if(x>y){ z=x,x=y,y=z};
      |                                   ^
      |                                   ;
Language: C

#include<stdio.h>

 int main()
{

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

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

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

              }

 return 0;
}
 



Compiler output:
main.c: In function 'main':
main.c:11:28: error: 'Y' undeclared (first use in this function)
   11 |               if(x == 0 && Y == 0) break;
      |                            ^
main.c:11:28: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:35: error: expected ';' before '}' token
   12 |               if(x>y){ z=x,x=y,y=z};
      |                                   ^
      |                                   ;
Language: C

#include<stdio.h>

 int main()
{

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

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

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

              }

 return 0;
}
 



Compiler output:
main.c: In function 'main':
main.c:11:28: error: 'Y' undeclared (first use in this function)
   11 |               if(x == 0 && Y == 0) break
      |                            ^
main.c:11:28: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:41: error: expected ';' before 'if'
   11 |               if(x == 0 && Y == 0) break
      |                                         ^
      |                                         ;
   12 |               if(x>y){ z=x,x=y,y=z}
      |               ~~
Language: C

#include<stdio.h>

 int main()
{

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

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

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

              }

 return 0;
}
 



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

#include<stdio.h>

 int main()
{


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

              }

 return 0;
}
 



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


#include <iostream>
#include <algorithm>

using namespace std;

int
main (
  int   argc,
  char *argv[ ]
  )
{
  for ( ; ; )
  {
    int x, y;

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

    cout << min ( x, y ) << " " << max ( x, y ) << endl;
  }

  return ( 0 );
}

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

#include<stdio.h>
#include<algorithm>

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

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

#include<stdio.h>
#include<algorithm>

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

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

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

	int x,y,i;

	for(i=1; ;i++){

	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;

}

	}

	return 0;

}

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

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

	int x,y,i;

    for (i = 1; ; i++) {

    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;

}

	}

	return 0;

}

	}

	return 0;

}

Compiler output:
main.c:28:9: error: expected identifier or '(' before '}' token
   28 |         }
      |         ^
main.c:30:9: error: expected identifier or '(' before 'return'
   30 |         return 0;
      |         ^~~~~~
main.c:32:1: error: expected identifier or '(' before '}' token
   32 | }
      | ^
main.c:34:9: error: expected identifier or '(' before '}' token
   34 |         }
      |         ^
main.c:36:9: error: expected identifier or '(' before 'return'
   36 |         return 0;
      |         ^~~~~~
main.c:38:1: error: expected identifier or '(' before '}' token
   38 | }
      | ^
Language: C

#include<stdio.h>
main(){
  int x,y;
  while(1){
    scanf("%d",&x);
    if(x==0 && y==0)
      break;
    if(x>y)
      printf("%d %d\n",y,x);
    else
      prinf("%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:11:7: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   11 |       prinf("%d %d\n",x,y);
      |       ^~~~~
      |       printf
Language: C

#include <stdio.h>

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

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

#include <stdio.h>

main(){
	int x=0,y=0;
	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:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:10:23: error: expected expression before ')' token
   10 |                 }else(){
      |                       ^
Language: C

#include <iostream>

int main()
{
   int x, y;
   while(std::cin >> x >> y , x & y )
   {
      if( x > y ) std::cout << y << " " << x << '\n';
      else std::cout << x << " " << y << '\n';
   }
  return 0;
}

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

#include <iostream>
using namespace std;

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

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

#include<stdio.h>
int main(void)
{
  int i,x,y;
  for(i=1;;i++){
    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:7:16: error: lvalue required as left operand of assignment
    7 |     if(x=0 && y=0)break;
      |                ^
Language: C

#include<stdio.h>

int main(){
  int num1,num2;
  while(1) {
    scanf("%d%d", &num1,&num2);
    if(num1==0 && num2==0){
      break;
    }
    if(num1 > num2) int max = num1,min = num2;
    else int max = num2,min = num1;
    printf("%d %d\n", max, min);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:21: error: expected expression before 'int'
   10 |     if(num1 > num2) int max = num1,min = num2;
      |                     ^~~
main.c:11:10: error: expected expression before 'int'
   11 |     else int max = num2,min = num1;
      |          ^~~
main.c:12:23: error: 'max' undeclared (first use in this function)
   12 |     printf("%d %d\n", max, min);
      |                       ^~~
main.c:12:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:28: error: 'min' undeclared (first use in this function); did you mean 'main'?
   12 |     printf("%d %d\n", max, min);
      |                            ^~~
      |                            main
Language: C

#include<stdio.h>

int main(){
  int num1,num2;
  while(1) {
    scanf("%d%d", &num1,&num2);
    if(num1==0 && num2==0){
      break;
    }
    if(num1 > num2){
      int max = num1,min = num2;
    }else{ 
      int max = num2,min = num1;
    }
    printf("%d %d\n", max, min);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:23: error: 'max' undeclared (first use in this function)
   15 |     printf("%d %d\n", max, min);
      |                       ^~~
main.c:15:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:28: error: 'min' undeclared (first use in this function); did you mean 'main'?
   15 |     printf("%d %d\n", max, min);
      |                            ^~~
      |                            main
Language: C

#include<stdio.h>

int main(){
  int num1,num2;
  while(1) {
    scanf("%d%d", &num1,&num2);
    if(num1==0 && num2==0){
      break;
    }
    if(num1 > num2){
      int max = num1; int min = num2;
    }else{ 
      int max = num2; int min = num1;
    }
    printf("%d %d\n", max, min);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:23: error: 'max' undeclared (first use in this function)
   15 |     printf("%d %d\n", max, min);
      |                       ^~~
main.c:15:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:28: error: 'min' undeclared (first use in this function); did you mean 'main'?
   15 |     printf("%d %d\n", max, min);
      |                            ^~~
      |                            main
Language: C

#include<stdio.h>

int main(){
  int num1, num2;
  while(1) {
    scanf("%d%d", &num1,&num2);
    if(num1==0 && num2==0){
      break;
    }
    if(num1 > num2){
      int max = num1; 
      int min = num2;
    }else{ 
      int max = num2; 
      int min = num1;
    }
    printf("%d %d\n", &max, &min);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:24: error: 'max' undeclared (first use in this function)
   17 |     printf("%d %d\n", &max, &min);
      |                        ^~~
main.c:17:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:30: error: 'min' undeclared (first use in this function); did you mean 'main'?
   17 |     printf("%d %d\n", &max, &min);
      |                              ^~~
      |                              main
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:22: error: expected ')' before 'and'
    7 |                 if(!x and !y)
      |                   ~  ^~~~
      |                      )
Language: C

#include<stdio.h>

int swap(int *a,int *b)
{
  int t;
  t=*a;
  *a=*b;
  *b=t;
}

int main(void)
{
  int a,b;
  char buf[256];
  while(1){
  fgets(buf,sizeof(buf),stdin);
  sscanf(buf,"%d%d",&a,&b);
  
  if(*a==0 && *b==0)
    break;
  if(*a>*b)
    swap(&a,&b);

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

Compiler output:
main.c: In function 'main':
main.c:19:6: error: invalid type argument of unary '*' (have 'int')
   19 |   if(*a==0 && *b==0)
      |      ^~
main.c:19:15: error: invalid type argument of unary '*' (have 'int')
   19 |   if(*a==0 && *b==0)
      |               ^~
main.c:21:6: error: invalid type argument of unary '*' (have 'int')
   21 |   if(*a>*b)
      |      ^~
main.c:21:9: error: invalid type argument of unary '*' (have 'int')
   21 |   if(*a>*b)
      |         ^~
main.c:24:20: error: invalid type argument of unary '*' (have 'int')
   24 |   printf("%d %d\n",*a,*b);
      |                    ^~
main.c:24:23: error: invalid type argument of unary '*' (have 'int')
   24 |   printf("%d %d\n",*a,*b);
      |                       ^~
Language: C

loop {
  x,y = gets.chomp.split(' ').map { |i| i.to_i }
  if x == 0 and y == 0 then break
  else
    if x < y
      puts "#{x} #{y}"
    else
      puts "#{y} #{x}"
    end
  end
}

Compiler output:
main.c:1:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    1 | loop {
      |      ^
Language: C

#include<stdio.h>
main(){
  int x;
  int y;
  while(1){
    scanf("%d %d"/&x,&y);
    if(x==0 y==0)break;
    if(x=>y){
      printf("%d %d\n",y,x);
    }
    if(y=>x){
      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:6:18: error: invalid operands to binary / (have 'char *' and 'int *')
    6 |     scanf("%d %d"/&x,&y);
      |           ~~~~~~~^~~
      |           |       |
      |           char *  int *
main.c:7:12: error: expected ')' before 'y'
    7 |     if(x==0 y==0)break;
      |       ~    ^~
      |            )
main.c:8:10: error: expected expression before '>' token
    8 |     if(x=>y){
      |          ^
main.c:11:10: error: expected expression before '>' token
   11 |     if(y=>x){
      |          ^
Language: C

#include<stdio.h>
main(){
  int x;
  int y;
  while(1){
    scanf("%d %d",&x,&y);
    if(x==0 y==0)break;
    if(x=>y){
      printf("%d %d\n",y,x);
    }
    if(y=>x){
      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:7:12: error: expected ')' before 'y'
    7 |     if(x==0 y==0)break;
      |       ~    ^~
      |            )
main.c:8:10: error: expected expression before '>' token
    8 |     if(x=>y){
      |          ^
main.c:11:10: error: expected expression before '>' token
   11 |     if(y=>x){
      |          ^
Language: C

#include<stdio.h>
main(){
  int x;
  int y;
  while(1){
    scanf("%d %d",&x,&y);
    if(x==0 && y==0)break;
    if(x=>y){
      printf("%d %d\n",y,x);
    }
    if(y=>x){
      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:8:10: error: expected expression before '>' token
    8 |     if(x=>y){
      |          ^
main.c:11:10: error: expected expression before '>' token
   11 |     if(y=>x){
      |          ^
Language: C

#include <stdio.h>
int main(){
	int x,y;
	while(1){
		scanf("%d %d",&x ,&y);
		if( x == 0 && y == 0 ) break;
	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:1: error: expected declaration or statement at end of input
   12 | }
      | ^
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:12:1: error: expected declaration or statement at end of input
   12 | }
      | ^
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:12:1: error: expected declaration or statement at end of input
   12 | }
      | ^
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:8:7: error: stray '\342' in program
    8 | scanf(<U+201C> %d %d<U+201C>, &x, &y);
      |       ^~~~~~~~
main.c:8:9: error: expected expression before '%' token
    8 | scanf(“ %d %d“, &x, &y);
      |         ^
main.c:8:14: error: stray '\342' in program
    8 | scanf(<U+201C> %d %d<U+201C>, &x, &y);
      |                     ^~~~~~~~
main.c:12:19: error: stray '\342' in program
   12 | if(x < y){ printf(<U+201C>%d %d\n<U+201C>, x, y); }
      |                   ^~~~~~~~
main.c:12:20: error: expected expression before '%' token
   12 | if(x < y){ printf(“%d %d\n“, x, y); }
      |                    ^
main.c:12:25: error: stray '\' in program
   12 | if(x < y){ printf(“%d %d\n“, x, y); }
      |                         ^
main.c:12:27: error: stray '\342' in program
   12 | if(x < y){ printf(<U+201C>%d %d\n<U+201C>, x, y); }
      |                                  ^~~~~~~~
main.c:13:15: error: stray '\342' in program
   13 | else { printf(<U+201C>%d %d\n<U+201C>, y, x); }
      |               ^~~~~~~~
main.c:13:16: error: expected expression before '%' token
   13 | else { printf(“%d %d\n“, y, x); }
      |                ^
main.c:13:21: error: stray '\' in program
   13 | else { printf(“%d %d\n“, y, x); }
      |                     ^
main.c:13:23: error: stray '\342' in program
   13 | else { printf(<U+201C>%d %d\n<U+201C>, y, x); }
      |                              ^~~~~~~~
Language: C

#include<iostream>
 using namespace std;
 int main()
{
  int x,y;
  cin >> x >> y;
  while(x!=0 || y!=0)
  {
    if (x > y)
       cout << y << " " << x <<endl;
    else
       cout << x << " " << y <<endl;
    cin >> x >> y;
  }
  return 0;
}
    

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

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


Compiler output:
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int main () {
	int a,b,c;
	while ((x!=0)||(y!=0)) {
		cin >> a >> b;
		if ((x!=0)||(y!=0))
			if (a<b) {
				cout<< a << " " << b << endl;
			} else cout<< b << " " << a << endl;
	}
	
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: 'x' was not declared in this scope
    5 |         while ((x!=0)||(y!=0)) {
      |                 ^
a.cc:5:25: error: 'y' was not declared in this scope
    5 |         while ((x!=0)||(y!=0)) {
      |                         ^
Language: C++

#include <stdio.h>

int main() {
	int a, b;
	while (1) {
		scanf_s("%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);
		}
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |                 scanf_s("%d, %d", &a, &b);
      |                 ^~~~~~~
      |                 scanf
Language: C++

//http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_3_C&lang=jp

#include<iostream>
 using namespace std;

int main(){
	int x[3000] y[3000]; 
    int exchange;//xとyを交換するときに一時的に使う変数

 	for (int i=1; i<=3000; i=i+1 )
 	{
 	cin >> x[i] >>y[i] ;

		if( x[i] == 0 )
        {
            if( y[i] == 0 )
            {
            break; //x[i]とy[i]の両方が0なら、forループから抜ける。
            }else{
            //x[i]のみ0の場合。forループから抜けない。
            }

        }else{
         x[i]が0でない場合。forループから抜けない。
        }

         if(x[i] > y[i]) //x[i]がy[i]より大きい場合は、x[i]とy[i]を入れ替える。
         {
        exchange=x[i];
          x[i]=y[i];
          y[i]=exchange;
         }else{
        // そうでなければ、何もしない。
        }

    cout<< x[i] << y[i] << endl;
    }
    
 return 0;
 }


Compiler output:
a.cc:24:14: error: extended character 。 is not valid in an identifier
   24 |          x[i]が0でない場合。forループから抜けない。
      |              ^
a.cc:24:14: error: extended character 。 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:21: error: expected initializer before 'y'
    7 |         int x[3000] y[3000];
      |                     ^
a.cc:12:16: error: 'x' was not declared in this scope
   12 |         cin >> x[i] >>y[i] ;
      |                ^
a.cc:12:23: error: 'y' was not declared in this scope
   12 |         cin >> x[i] >>y[i] ;
      |                       ^
Language: C++

#include <stdio.h>
#define MAXL 3000

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

int main()
{
    int x[MAXL] = {0};
    int y[MAXL] = {0};
    int i = 0;
    while(i < 3000)
    {
        scanf("%d",x+i);
        scanf("%d",y+i);
        
        if(x[i] == 0 && y[i] == 0) break;
        
        i++
    }
    
    int length = i;
    
    for(i = 0; i < length; i++)
    {
        swap(x+i,y+i);
        
        printf("%d %d",x[i],y[i])
    }
}

void swap(int *x,int *y)
{
    int p = *x;
    *x = *y;
    *y = p;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:12: error: expected ';' before '}' token
   18 |         i++
      |            ^
      |            ;
   19 |     }
      |     ~       
a.cc:27:34: error: expected ';' before '}' token
   27 |         printf("%d %d",x[i],y[i])
      |                                  ^
      |                                  ;
   28 |     }
      |     ~
Language: C++

#include<stdio.h>
using namespace std;
int x,y,z = 0;
scanf("%d %d", &x,&y);

int main(){
if (x > y) {
z = x;
x = y;
y = z;
}
printf("%d %d\n", x, y);
}


Compiler output:
a.cc:4:6: error: expected constructor, destructor, or type conversion before '(' token
    4 | scanf("%d %d", &x,&y);
      |      ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main ()
{   int a , b , c,  i;

	while(1)
	{
		cin >> x >> y;
		if (x < y)
		{
			cout << x << y <<endl;
		}
		else 
		{
			cout << y << x <<endl;
		}
		
		if(x == 0 && y == 0) break;
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: 'x' was not declared in this scope
    8 |                 cin >> x >> y;
      |                        ^
a.cc:8:29: error: 'y' was not declared in this scope
    8 |                 cin >> x >> y;
      |                             ^
Language: C++

#include <iostream>

using namespace std;

void swap(const int &a, const int &b){
    int temp = a;
    a = b;
    b = temp;
}

int main(){
    const int DATASET_COUNT = 3000;

    int a, b;
    for(int i=0; i<DATASET_COUNT; ++i)
    {
        cin >> a >> b;
        if(a==0 && b==0) break;
        swap(a, b);
        cout << a << " " << b << endl;
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'void swap(const int&, const int&)':
a.cc:7:7: error: assignment of read-only reference 'a'
    7 |     a = b;
      |     ~~^~~
a.cc:8:7: error: assignment of read-only reference 'b'
    8 |     b = temp;
      |     ~~^~~~~~
Language: C++

#include <iostream>

using namespace std;

inline void swap(const int &a, const int &b){
    int temp = a;
    a = b;
    b = temp;
}

int main(){
    const int DATASET_COUNT = 3000;

    int a, b;
    for(int i=0; i<DATASET_COUNT; ++i)
    {
        cin >> a >> b;
        if(a==0 && b==0) break;
        if(a>b) swap(a, b);
        cout << a << " " << b << endl;
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'void swap(const int&, const int&)':
a.cc:7:7: error: assignment of read-only reference 'a'
    7 |     a = b;
      |     ~~^~~
a.cc:8:7: error: assignment of read-only reference 'b'
    8 |     b = temp;
      |     ~~^~~~~~
Language: C++

#include <iostream>
#include <algorithm>
int main() {
	int i, n,x,y;
	for (i = 0; i < n; ++i) {
		std::cin >> x >> y;
		std::cout << std::min({x,y}) << std::endl;
		if (x, y == 0) {
			std::cout << 0 0 << std::endl;
			break;
		}
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:39: error: expected ';' before numeric constant
    9 |                         std::cout << 0 0 << std::endl;
      |                                       ^~
      |                                       ;
Language: C++

#include <iostream>

using namespace std;

int main(){
int x;
int y;
cin >> x >> y;
while(x || y)
{
int tmp = x;
x = y;
y = tmp;
cout << x << " " << y;
cin >> x >> y
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: expected ';' before '}' token
   15 | cin >> x >> y
      |              ^
      |              ;
   16 | }
      | ~
Language: C++

#include <iostream>
 
using namespace std;
 
int main(){
int x;
int y;
cin >> x >> y;
while(x || y)
{
if( x > y){
int tmp = x;
x = y;
y = tmp;
}
cout << x << " " << y;
cin >> x >> y
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:14: error: expected ';' before '}' token
   17 | cin >> x >> y
      |              ^
      |              ;
   18 | }
      | ~
Language: C++

#include <iostream>
using namespace std;
int main(void){
    
    //変数の宣言
    int x, y;
    
    //繰り返し処理をするときは「　for文　」を使う
    for(int i=1; i<=10000; i++){
        //各Caseの値を入力
        cin >> x >> y;
        
        //if文を使用してxの値とyの値が「 0 」なら終了の条件を考える
        if(x == 0 && y == 0){
            break;  
        }
        
        //else if： ifを満たしてない・成立してない条件下で条件を考える 
        if else(x > y){
            swap(x, y);
        }
        
        //xの値とyの値を交換する　➡　coutで表示の順番を入れ替えるだけ
        cout << y << " " << x << endl;
        }
    }
    
    return 0;
    
}




/****************************************複数の条件式****************************************************
 
 
かつ・AND　➡　&&  ➡　　両方の条件が成立するときのみ成立の所へ行ける
またわ・OR　➡　||　➡　片方の条件が成立する　又は　　両方の条件が成立する　ときは成立の場所へ行ける
         
     
*********************************************************************************************************/




/****************************************　breakとは　***************************************************


☆繰り返し処理を終了・出処理から出たいときに使用

    
*********************************************************************************************************/



/****************************************　swapとは　***************************************************


☆s数字を入れ替える
    swap(a,b) ➡　a と  b の　値を入れ替える　
    
    
*********************************************************************************************************/














Compiler output:
a.cc: In function 'int main()':
a.cc:19:12: error: expected '(' before 'else'
   19 |         if else(x > y){
      |            ^~~~
      |            (
a.cc: At global scope:
a.cc:28:5: error: expected unqualified-id before 'return'
   28 |     return 0;
      |     ^~~~~~
a.cc:30:1: error: expected declaration before '}' token
   30 | }
      | ^
Language: C++

#include<iostream>

using namespace std;

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



Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: lvalue required as left operand of assignment
    9 |     if(x=0&&y=0){}
      |          ~^~~
Language: C++

#include<iostream>
using namespace std;

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



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

#include<iostream>
using namespace std;
int main(){
    for (int x, y; ;){
        cin >> x >> y;
        if ( x== 0 && y == 0 ) break;
    }
    if ( x < y ){
        cout << x << " " << y << endl;
    } else{
        cout << y << " " << x << endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'x' was not declared in this scope
    8 |     if ( x < y ){
      |          ^
a.cc:8:14: error: 'y' was not declared in this scope
    8 |     if ( x < y ){
      |              ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: expected ';' before ')' token
    5 |     for (1){
      |           ^
      |           ;
a.cc:9:5: error: expected primary-expression before 'if'
    9 |     if ( x < y ){
      |     ^~
a.cc:8:6: error: expected ';' before 'if'
    8 |     }
      |      ^
      |      ;
    9 |     if ( x < y ){
      |     ~~
a.cc:9:5: error: expected primary-expression before 'if'
    9 |     if ( x < y ){
      |     ^~
a.cc:8:6: error: expected ')' before 'if'
    8 |     }
      |      ^
      |      )
    9 |     if ( x < y ){
      |     ~~
a.cc:5:9: note: to match this '('
    5 |     for (1){
      |         ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: expected ';' before ')' token
    5 |     for (1){
      |           ^
      |           ;
a.cc:8:6: error: expected primary-expression before 'if'
    8 |     }if ( x < y ){
      |      ^~
a.cc:8:6: error: expected ';' before 'if'
    8 |     }if ( x < y ){
      |      ^~
      |      ;
a.cc:8:6: error: expected primary-expression before 'if'
    8 |     }if ( x < y ){
      |      ^~
a.cc:8:6: error: expected ')' before 'if'
    8 |     }if ( x < y ){
      |      ^~
      |      )
a.cc:5:9: note: to match this '('
    5 |     for (1){
      |         ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:29: error: break statement not within loop or switch
    6 |     if ( x == 0 && y == 0 ) break;
      |                             ^~~~~
a.cc: At global scope:
a.cc:7:7: error: expected unqualified-id before 'if'
    7 |     } if ( x < y ){
      |       ^~
a.cc:9:7: error: expected unqualified-id before 'else'
    9 |     } else{
      |       ^~~~
a.cc:12:5: error: expected unqualified-id before 'return'
   12 |     return 0;
      |     ^~~~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: 'x' was not declared in this scope
    5 |         cin >> x >> y;
      |                ^
a.cc:5:21: error: 'y' was not declared in this scope
    5 |         cin >> x >> y;
      |                     ^
a.cc:7:12: error: 'x' was not declared in this scope
    7 |     } if ( x < y ){
      |            ^
a.cc:7:16: error: 'y' was not declared in this scope
    7 |     } if ( x < y ){
      |                ^
Language: C++

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: 'ture' was not declared in this scope
    5 |     while(ture){
      |           ^~~~
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 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:
a.cc:8:63: error: stray '\' in program
    8 |                                                 printf("%d %d"\n,&x,&y);
      |                                                               ^
a.cc: In function 'int main()':
a.cc:8:63: error: expected ')' before 'n'
    8 |                                                 printf("%d %d"\n,&x,&y);
      |                                                       ~       ^~
      |                                                               )
Language: C++

#include<iostream>
using namespace std;

int main(){
    while(1) {
        if (x == 0 && y == 0) break;
        if (x < y){
            cout << x << " " << y << endl;
        } else {
            cout << y << " " << x << endl;
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: 'x' was not declared in this scope
    6 |         if (x == 0 && y == 0) break;
      |             ^
a.cc:6:23: error: 'y' was not declared in this scope
    6 |         if (x == 0 && y == 0) break;
      |                       ^
a.cc:7:13: error: 'x' was not declared in this scope
    7 |         if (x < y){
      |             ^
a.cc:7:17: error: 'y' was not declared in this scope
    7 |         if (x < y){
      |                 ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    while(true) {
        if (x == 0 && y == 0) break;
        if (x < y){
            cout << x << " " << y << endl;
        } else {
            cout << y << " " << x << endl;
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: 'x' was not declared in this scope
    6 |         if (x == 0 && y == 0) break;
      |             ^
a.cc:6:23: error: 'y' was not declared in this scope
    6 |         if (x == 0 && y == 0) break;
      |                       ^
a.cc:7:13: error: 'x' was not declared in this scope
    7 |         if (x < y){
      |             ^
a.cc:7:17: error: 'y' was not declared in this scope
    7 |         if (x < y){
      |                 ^
Language: C++

#include<iostream>
using namespace std;
int main(int x, int y){
    while (true){
        if(x == 0 && y == 0){
            break;
        }
        else if(x < y){
            cout << x << " " << y << endl;
        }
        else{
            cout << y << " " << x << emdl;
        }
    }
}


Compiler output:
a.cc:3:5: warning: second argument of 'int main(int, int)' should be 'char **' [-Wmain]
    3 | int main(int x, int y){
      |     ^~~~
a.cc: In function 'int main(int, int)':
a.cc:12:38: error: 'emdl' was not declared in this scope
   12 |             cout << y << " " << x << emdl;
      |                                      ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int x,y;
    for (int i = 0; i+= 1;){
        cin >> x >> f;
        if (x == 0 && y == 0){
            break;
        }
        else{
            if (x <y){
                cout <<x << " " << y << endl;
            }
            else {
                cout <<y <<" " << x << endl;
            }
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: 'f' was not declared in this scope
    6 |         cin >> x >> f;
      |                     ^
Language: C++

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


Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(iostream)
      |         ^
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin>>x>>y;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include(iostream)
a.cc:11:13: error: 'cout' was not declared in this scope
   11 |             cout<<y<<" "<<x<<endl;
      |             ^~~~
a.cc:11:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:30: error: 'endl' was not declared in this scope
   11 |             cout<<y<<" "<<x<<endl;
      |                              ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #include(iostream)
a.cc:14:13: error: 'cout' was not declared in this scope
   14 |             cout<<x<<" "<<y<<endl;
      |             ^~~~
a.cc:14:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:30: error: 'endl' was not declared in this scope
   14 |             cout<<x<<" "<<y<<endl;
      |                              ^~~~
a.cc:14:30: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<iostream>
using namespace std;

int main(){
    int a,b;
    while(cin>>a>>b && (a!=0 || b!=0)){
        if (a>b){
            cout << b << a << endl;
        } esle {
            cout << a << b << endl;
        }
    }
    return 0 ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: 'esle' was not declared in this scope
    9 |         } esle {
      |           ^~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
    int x,y;
    while(cin>>x>>y && (x!=0 || y!=0)){
        if (x>y){
            cout << y << x << endl;
        } esle {
            cout << x << y << endl;
        }
    }
    return 0 ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: 'esle' was not declared in this scope
    9 |         } esle {
      |           ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: 'o' was not declared in this scope
   11 |     return o;
      |            ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int a, b;
    
    while(1=1){
        cin >> a >> b;
        if(a==0 && b==0){
            break;
        }else if(a>b){
            cout << b << " " << a << endl;
        }else{
            cout << a << " " << b << endl;
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: lvalue required as left operand of assignment
    6 |     while(1=1){
      |           ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:12: error: 'o' was not declared in this scope
   16 |     return o;
      |            ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: expected primary-expression before '<' token
    9 |         else if (x=<y) cout<<x<<" "<<y<<endl;
      |                    ^
Language: C++

#include<iostream>
using namespace std;
int main() {
    
    int x;
    int y;
    
    cin >>x y;
    
    while(x==0 && y==0) {
        if (x>y) {
            cout << y << " " << x  << endl;
        }else
        {
            cout << x << " " << y  << endl;
        }
        cin >>x y;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before 'y'
    8 |     cin >>x y;
      |            ^~
      |            ;
a.cc:17:16: error: expected ';' before 'y'
   17 |         cin >>x y;
      |                ^~
      |                ;