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

#include <cstdio>

#define max(a, b) ((a>b)?a:b)
#define min(a, b) ((a<b)?a:b)

int main(){
	int a, b;
	while(){
		scanf("%d %d", &a, &b);

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: expected primary-expression before ')' token
    8 |         while(){
      |               ^
Language: C++

import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner cin = new Scanner(System.in);
		int a, b;
		while(true){
			a = cin.nextInt();
			b = cin.nextInt();
			if(a == 0 && b == 0){
				break;
			}
			int tmp = a;
			a = b;
			b = tmp;
			System.out.printf("%d %d\n", a, b);
		}
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:15: error: expected ':' before 'static'
    4 |         public static void main(String[] args) {
      |               ^~~~~~~
      |               :
a.cc:4:33: error: 'String' has not been declared
    4 |         public static void main(String[] args) {
      |                                 ^~~~~~
a.cc:4:42: error: expected ',' or '...' before 'args'
    4 |         public static void main(String[] args) {
      |                                          ^~~~
a.cc:19:2: error: expected ';' after class definition
   19 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:17: error: 'Scanner' was not declared in this scope
    5 |                 Scanner cin = new Scanner(System.in);
      |                 ^~~~~~~
a.cc:8:29: error: 'cin' was not declared in this scope
    8 |                         a = cin.nextInt();
      |                             ^~~
a.cc:16:25: error: 'System' was not declared in this scope
   16 |                         System.out.printf("%d %d\n", a, b);
      |                         ^~~~~~
Language: C++

(function(input) {
    var p = input.split('\n');
    for (var i = 0; i < p.length; i++) {
        var xy = p.shift().split(' ');
        if (xy[0] === 0 && xy[1] === 0) {
            return;
        }
        console.log(xy.sort(function(a, b) { return a - b; }).join(' '));
    }
})(require('fs').readFileSync('/dev/stdin', 'utf8'));

Compiler output:
a.cc:10:12: warning: multi-character character constant [-Wmultichar]
   10 | })(require('fs').readFileSync('/dev/stdin', 'utf8'));
      |            ^~~~
a.cc:10:31: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
   10 | })(require('fs').readFileSync('/dev/stdin', 'utf8'));
      |                               ^~~~~~~~~~~~
a.cc:10:45: warning: multi-character character constant [-Wmultichar]
   10 | })(require('fs').readFileSync('/dev/stdin', 'utf8'));
      |                                             ^~~~~~
a.cc:1:10: error: expected ')' before '(' token
    1 | (function(input) {
      | ~        ^
      |          )
a.cc:10:2: error: expected unqualified-id before ')' token
   10 | })(require('fs').readFileSync('/dev/stdin', 'utf8'));
      |  ^
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;

int main(){
  int x, y, comp;
  while(1) {
    
    cin >> x >> y;
    if (x == 0 && y == 0) {
      break;
    }
    if (x > y) {
      comp = x;
      x = y;
      y = comp;
    }
    cout << "Case " << i << ": " << x << endl;
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:24: error: 'i' was not declared in this scope
   18 |     cout << "Case " << i << ": " << x << endl;
      |                        ^
Language: C++

include<iostream>
#include<stdio.h>
using namespace std;

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin >> x >> y;
      |     ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<stdio.h>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:18:5: error: 'cout' was not declared in this scope
   18 |     cout << x << " " << y << endl;
      |     ^~~~
a.cc:18:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:30: error: 'endl' was not declared in this scope
   18 |     cout << x << " " << y << endl;
      |                              ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include<stdio.h>
  +++ |+#include <ostream>
    3 | using namespace std;
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){
			printff("%d %d\n",y,x);
		}
		else if(x<y){
				printf("%d %d\n",x,y);
		}
		else if(x==y){
				printf("%d %d\n",x,y);
		}
	}
	return 0;
}
	

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: 'printff' was not declared in this scope; did you mean 'printf'?
    8 |                         printff("%d %d\n",y,x);
      |                         ^~~~~~~
      |                         printf
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef unsigned long long ull;
#define loop(i,a,b) for(int i=(a);i<ull(b);++i)
#define rep(i,n) loop(i,0,n)
#define all(a) (a).begin(), (a).end()

const double eps = 1e-10;
const double pi  = acos(-1.0);
const double inf = (int)1e8;

int main(){
 int a, b; cin >> a >> b; if(a > b) swap(a, b) cout << a << " " << b << endl;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:15:47: error: expected ';' before 'cout'
   15 |  int a, b; cin >> a >> b; if(a > b) swap(a, b) cout << a << " " << b << endl;
      |                                               ^~~~~
      |                                               ;
Language: C++

#include "stdafx.h"


int _tmain(int argc, _TCHAR* argv[])
{
		int a;
		int b;
	while(1)
	{
		scanf("%d %d",&a,&b);
		if(a,b==0)
			break;
		if(a<=b)
			printf("%d %d\n",a ,b);
		else
			printf("%d %d\n",b,a);

	}
	return 0;
}

Compiler output:
a.cc:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include<stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:36: error: expected ';' before '}' token
   11 |             printf("%d %d\n", x, y)
      |                                    ^
      |                                    ;
   12 |         } else {
      |         ~                           
a.cc:13:36: error: expected ';' before '}' token
   13 |             printf("%d %d\n", y, x)
      |                                    ^
      |                                    ;
   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;
	} else if (x < y) {
	    printf("%d %d\n", x, y);
	} else {
	    printf("%d %d\n", y, x);
	}
    }
    return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include?
    1 | #Include <stdio.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf' was not declared in this scope
    6 |         scanf("%d %d", &x, &y);
      |         ^~~~~
a.cc:10:13: error: 'printf' was not declared in this scope
   10 |             printf("%d %d\n", x, y);
      |             ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #Include <stdio.h>
a.cc:12:13: error: 'printf' was not declared in this scope
   12 |             printf("%d %d\n", y, x);
      |             ^~~~~~
a.cc:12:13: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

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

void swap_integer(int*, int*);

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 swap_integer(int* a, int* b)
{
    int c;
    c = *a;
    *a = *b;
    *b = c;
}

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

#include <stdio.h>

void swap_integer(int*, int*);

int main(void)
{
    while (1) {
        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 swap_integer(int* a, int* b)
{
    int c;
    c = *a;
    *a = *b;
    *b = c;
}

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

#include <stdio.h>

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:12: error: expected '}' at end of input
   16 |   return 0;
      |            ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

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


void sort_vars(int* a, int* b)
{
    if (*a > *b) {
        int tmp = *a;
        *a = *b;
        *b = tmp;
    }
}

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

import Control.Monad
import Control.Applicative
import Data.Char
import Data.List

main = do
  contents <- getContents
  putStr $ solve $ lines contents
  --mapM_ print $ map words $ lines contents

solve :: [String] -> String
solve ["0 0"] = ""
solve (t:ts) =
    let [x,y] = sort $ map (\xs -> read xs :: Int) $ words t
    in show x ++ " " ++ show y ++ "\n" ++ (solve ts)

Compiler output:
a.cc:14:29: error: stray '\' in program
   14 |     let [x,y] = sort $ map (\xs -> read xs :: Int) $ words t
      |                             ^
a.cc:1:1: error: 'import' does not name a type
    1 | import Control.Monad
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include<stdio.h>

int main(){

 int x = 0;
 int y = 0;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected primary-expression before ')' token
    8 |  while(){
      |        ^
a.cc:9:4: error: 'scan' was not declared in this scope; did you mean 'scanf'?
    9 |    scan("%d %d",&x,&y);
      |    ^~~~
      |    scanf
Language: C++

#include<stdio.h>

int main(){

 int x = 0;
 int y = 0;

 while(){
   scan("%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:
a.cc: In function 'int main()':
a.cc:8:8: error: expected primary-expression before ')' token
    8 |  while(){
      |        ^
a.cc:9:4: error: 'scan' was not declared in this scope; did you mean 'scanf'?
    9 |    scan("%d %d",&x,&y);
      |    ^~~~
      |    scanf
Language: C++

#include<stdio.h>

int main(){

 int x = 0;
 int y = 0;

 while(){
   scan("%d",&x);
   scan("%d",&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:
a.cc: In function 'int main()':
a.cc:8:8: error: expected primary-expression before ')' token
    8 |  while(){
      |        ^
a.cc:9:4: error: 'scan' was not declared in this scope; did you mean 'scanf'?
    9 |    scan("%d",&x);
      |    ^~~~
      |    scanf
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: expected primary-expression before ')' token
    7 |    while(){
      |          ^
a.cc:8:7: error: 'scan' was not declared in this scope; did you mean 'scanf'?
    8 |       scan("%d %d",&x,&y);
      |       ^~~~
      |       scanf
a.cc:17:3: error: expected '}' at end of input
   17 |  }
      |   ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#includ<stdio.h>
  
int main(){
  
   int x,y,t;
  
   while(){
      scan("%d %d",&x,&y);
      if( x == 0 && y == 0)break;
      else if(x < y){
         t = x;
         x = y;
         y = t;
       }
      printf("%d %d/n",x,y);
      return 0;
 }   

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ<stdio.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:10: error: expected primary-expression before ')' token
    7 |    while(){
      |          ^
a.cc:8:7: error: 'scan' was not declared in this scope
    8 |       scan("%d %d",&x,&y);
      |       ^~~~
a.cc:15:7: error: 'printf' was not declared in this scope
   15 |       printf("%d %d/n",x,y);
      |       ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #includ<stdio.h>
a.cc:17:3: error: expected '}' at end of input
   17 |  }
      |   ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <stdio.h>

int main(){

   int x,y,t;

   while(){
      scan("%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:
a.cc: In function 'int main()':
a.cc:7:10: error: expected primary-expression before ')' token
    7 |    while(){
      |          ^
a.cc:8:7: error: 'scan' was not declared in this scope; did you mean 'scanf'?
    8 |       scan("%d %d",&x,&y);
      |       ^~~~
      |       scanf
Language: C++

#include<stdio.h>

int main(){
  
   int x,y,t;
  
   while(){
      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:
a.cc: In function 'int main()':
a.cc:7:10: error: expected primary-expression before ')' token
    7 |    while(){
      |          ^
Language: C++

using namespace std;

int main()
{
	
	int x, y, z, s, t;
	char a;
	int i = 1;

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

		if (x < y){
			cout << x << " " << y << endl;
		}
		if (y < x){
			cout << y << " " << x << endl;
		}
		if (y == x){
			cout << y << " " << x << endl;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: 'cin' was not declared in this scope
   11 |                 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 | using namespace std;
a.cc:17:25: error: 'cout' was not declared in this scope
   17 |                         cout << x << " " << y << endl;
      |                         ^~~~
a.cc:17:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:50: error: 'endl' was not declared in this scope
   17 |                         cout << x << " " << y << endl;
      |                                                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:20:25: error: 'cout' was not declared in this scope
   20 |                         cout << y << " " << x << endl;
      |                         ^~~~
a.cc:20:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:50: error: 'endl' was not declared in this scope
   20 |                         cout << y << " " << x << endl;
      |                                                  ^~~~
a.cc:20:50: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:23:25: error: 'cout' was not declared in this scope
   23 |                         cout << y << " " << x << endl;
      |                         ^~~~
a.cc:23:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:23:50: error: 'endl' was not declared in this scope
   23 |                         cout << y << " " << x << endl;
      |                                                  ^~~~
a.cc:23:50: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

(x, y) = map(int, raw_input().split())
if x < y:
  print x, y
else:
  print y, x

Compiler output:
a.cc:1:3: error: expected ')' before ',' token
    1 | (x, y) = map(int, raw_input().split())
      | ~ ^
      |   )
a.cc:1:6: error: expected constructor, destructor, or type conversion before ')' token
    1 | (x, y) = map(int, raw_input().split())
      |      ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:7: error: 'i' was not declared in this scope
   14 |       i++;
      |       ^
Language: C++

str = input()
l = []
while str != "0 0":
    numl = str.split(' ')
    a = int(numl[0])
    b = int(numl[1])
    if a > b:
        str = "{0} {1}".format(b, a)
    l.append(str)
    str = input()
for i in range(len(l)):
    print(l[i])

Compiler output:
a.cc:1:1: error: 'str' does not name a type
    1 | str = input()
      | ^~~
Language: C++

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

Compiler output:
a.cc:4:13: error: extended character 　 is not valid in an identifier
    4 |         for(　;　;　){
      |             ^
a.cc:4:16: error: extended character 　 is not valid in an identifier
    4 |         for(　;　;　){
      |                ^
a.cc:4:19: error: extended character 　 is not valid in an identifier
    4 |         for(　;　;　){
      |                   ^
a.cc: In function 'int main()':
a.cc:4:13: error: '\U00003000' was not declared in this scope
    4 |         for(　;　;　){
      |             ^~
Language: C++

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

Compiler output:
a.cc:4:13: error: extended character 　 is not valid in an identifier
    4 |         for(　;　;　){
      |             ^
a.cc:4:16: error: extended character 　 is not valid in an identifier
    4 |         for(　;　;　){
      |                ^
a.cc:4:19: error: extended character 　 is not valid in an identifier
    4 |         for(　;　;　){
      |                   ^
a.cc: In function 'int main()':
a.cc:4:13: error: '\U00003000' was not declared in this scope
    4 |         for(　;　;　){
      |             ^~
Language: C++

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






	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:26: error: expected primary-expression before ')' token
   11 |                 }else if(){
      |                          ^
Language: C++

#include <iostream>
using namespace std;
int main(){
	for(;;){

	int x,y,z;
	cin>>x>>y>>z;
	z=x;
	x=y;
        y=z;
	if(x<y)
		cout<<x<<" "<<y<<endl;
	if else(x>y)
		cout<<y<<" "<<x<<endl;

	if else(x==0&&y==0)
		break;
		
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: expected '(' before 'else'
   13 |         if else(x>y)
      |            ^~~~
      |            (
a.cc:16:12: error: expected '(' before 'else'
   16 |         if else(x==0&&y==0)
      |            ^~~~
      |            (
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;

int main(){
	int a,b;
	cin >> a >> b;
	if(a==0 && b==0) break;
	if(a>b) cout << a << " " << b << "\n";
	else if(a<b) cout << b << " " << a << "\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: break statement not within loop or switch
    8 |         if(a==0 && b==0) break;
      |                          ^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: 'j' was not declared in this scope
   11 |   for(j=0;j<i;j++){
      |       ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: 'j' was not declared in this scope
   11 |   for(j=0;j<i;j++){
      |       ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: 'j' was not declared in this scope
   11 |   for(j=0;j<=i;j++){
      |       ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:21: error: invalid types 'int[int]' for array subscript
    5 |     scanf("%d %d",&a[i],&b[i]);
      |                     ^
a.cc:5:27: error: invalid types 'int[int]' for array subscript
    5 |     scanf("%d %d",&a[i],&b[i]);
      |                           ^
a.cc:6:9: error: invalid types 'int[int]' for array subscript
    6 |     if(a[i]==0&&b[i]==0){
      |         ^
a.cc:6:18: error: invalid types 'int[int]' for array subscript
    6 |     if(a[i]==0&&b[i]==0){
      |                  ^
a.cc:9:9: error: invalid types 'int[int]' for array subscript
    9 |     if(a[j]<b[j]||a[j]==b[j]){
      |         ^
a.cc:9:14: error: invalid types 'int[int]' for array subscript
    9 |     if(a[j]<b[j]||a[j]==b[j]){
      |              ^
a.cc:9:20: error: invalid types 'int[int]' for array subscript
    9 |     if(a[j]<b[j]||a[j]==b[j]){
      |                    ^
a.cc:9:26: error: invalid types 'int[int]' for array subscript
    9 |     if(a[j]<b[j]||a[j]==b[j]){
      |                          ^
a.cc:10:25: error: invalid types 'int[int]' for array subscript
   10 |       printf("%d %d\n",a[j],b[j]);
      |                         ^
a.cc:10:30: error: invalid types 'int[int]' for array subscript
   10 |       printf("%d %d\n",a[j],b[j]);
      |                              ^
a.cc:12:9: error: invalid types 'int[int]' for array subscript
   12 |     if(a[j]>b[j]){
      |         ^
a.cc:12:14: error: invalid types 'int[int]' for array subscript
   12 |     if(a[j]>b[j]){
      |              ^
a.cc:13:25: error: invalid types 'int[int]' for array subscript
   13 |       printf("%d %d\n",b[j],a[j]);
      |                         ^
a.cc:13:30: error: invalid types 'int[int]' for array subscript
   13 |       printf("%d %d\n",b[j],a[j]);
      |                              ^
a.cc:15:8: error: expected ';' before '}' token
   15 |     i++
      |        ^
      |        ;
   16 |   }
      |   ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:8: error: expected ';' before '}' token
   15 |     i++
      |        ^
      |        ;
   16 |   }
      |   ~
Language: C++

#include <iostream>
#include <array>

int main()
{
    std::array<std::array<int, 2>, 10> x;
    for (int i = 0; i < 10; ++i) {
        std::cin >> x.at(i).at(0) >> x.at(i).at(1);
        if (x.at(i).at(0) == 0 && x.at(i).at(1) == 0) {
            break;
        }
    }
    for (int i = 0; i < 10; ++i) {
        if (x.at(i).at(0) == 0 && x.at(i).at(1) == 0) {
            break;
        }
        if (x.at(i).at(0) <= x.at(i).at(1)) {
            std::cout << x.at(i).at(0) << " " << x.at(i).at(1) << std::endl;
        } else {
            std::cout << x.at(i).at(1) << " " << x.at(i).at(0) << std::endl;
        }
    }

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

#include <iostream>


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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: expected ')' before '!' token
   10 |         if (x<=y !x=0 !y=0){
      |            ~    ^~
      |                 )
a.cc:12:20: error: expected ')' before '!' token
   12 |         } else (x>y !x=0 !y=0) {
      |                ~   ^~
      |                    )
a.cc:14:10: error: expected ';' before 'return'
   14 |         }
      |          ^
      |          ;
   15 |         return 0;
      |         ~~~~~~
Language: C++

#include <iostream>


int main()
{
	int x;
	int y;
	std::cin >> x;
	std::cin >> y;
	if (x<=y && x > 0 && x < 0 && y > 0 && y < 0) {
		std::cout << x << " " << y << std::endl;
	} else (x>y && x > 0 && x < 0 && y > 0 && y < 0) {
		std::cout << y << " " << x << std::endl;
	}
	return 0;
}

	

Compiler output:
a.cc: In function 'int main()':
a.cc:12:57: error: expected ';' before '{' token
   12 |         } else (x>y && x > 0 && x < 0 && y > 0 && y < 0) {
      |                                                         ^~
      |                                                         ;
Language: C++

#include <iostream>


int main()
{
	int x;
	int y;
	std::cin >> x;
	std::cin >> y;
	if (x == 0 && y == 0) {
		break;
	} else if (x <= y) {
		std::cout << x << " " << y << std::endl;
	} else {
		std::cout << y << " " << x << std::endl;
	}
	return 0;
}

	

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: break statement not within loop or switch
   11 |                 break;
      |                 ^~~~~
Language: C++

#include <iostream>

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

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

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'else' without a previous 'if'
    8 |         else if( x <= y){
      |         ^~~~
Language: C++

#include <iostream>

void sort_vars(int* a, int* b)
int main(void)
{
	while (true) {
		int n, m;

		std::cin >> n >> m;

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

		sort_vars(&n, &m);
		std::cout << n << " " << m << std::endl;
	}
	return 0;
}
void sort_vars(int* a, int* b)
{
	if (*a > *b) {
		std::swap(*a, *b);
	}
	return;
}

Compiler output:
a.cc:4:1: error: expected initializer before 'int'
    4 | int main(void)
      | ^~~
Language: C++

#include <iostream>

void sort_vars(int* x, int* y)
{
	if (*x >= *y) {
		std::swap(*x, *y);
	}
	std::cout << std::endl;
}

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

        std::cin >> n >> m;

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

        sort_vars(&n, &m);
        std::cout << n << " " << m; << std::endl
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:37: error: expected primary-expression before '<<' token
   23 |         std::cout << n << " " << m; << std::endl
      |                                     ^~
Language: C++

#include <iostream>

void sort_vars(int* x, int* y)
{
	if (*x >= *y) {
		std::swap(*x, *y);
	}
}

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

        std::cin >> n >> m;

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

        sort_vars(&n, &m);
        std::cout << n << " " << m; << std::endl
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:37: error: expected primary-expression before '<<' token
   22 |         std::cout << n << " " << m; << std::endl
      |                                     ^~
Language: C++

#include <iostream>
2.using namespace std;
3. 
4.int main() {
5.	int a, b, c;
6.	cin >> a >> b;
7.	c = a;
8.	a = b;
9.	b = c;
10. 
11.	cout << a << " " << b << endl;
12.	
13.	return 0;
14. 
15.}

Compiler output:
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2.using namespace std;
      | ^~~~~~~
a.cc:3:1: error: expected unqualified-id before numeric constant
    3 | 3.
      | ^~
Language: C++

#include <iostream>
using namespace std;

int main() {

	while(1){
	int a, b, c;
	cin >> a >> b;
	if(a==0&&b==0)break;

	else{
	c = a;
	a = b;
	b = c;
 
	cout << a << " " << b << endl;
	
	}
	return 0;
 
}

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

import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int x = Integer.parseInt(scan.next());
		int y = Integer.parseInt(scan.next());
		
		int d;
		
		while (x != 0 && y != 0) {
			if(x > y){
				d = x;
				x = y;
				y = d;
			}
			System.out.println(x + " " + y);
			x = Integer.parseInt(scan.next());
			y = Integer.parseInt(scan.next());
		}
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:15: error: expected ':' before 'static'
    4 |         public static void main(String[] args) {
      |               ^~~~~~~
      |               :
a.cc:4:33: error: 'String' has not been declared
    4 |         public static void main(String[] args) {
      |                                 ^~~~~~
a.cc:4:42: error: expected ',' or '...' before 'args'
    4 |         public static void main(String[] args) {
      |                                          ^~~~
a.cc:22:2: error: expected ';' after class definition
   22 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:17: error: 'Scanner' was not declared in this scope
    5 |                 Scanner scan = new Scanner(System.in);
      |                 ^~~~~~~
a.cc:6:25: error: 'Integer' was not declared in this scope
    6 |                 int x = Integer.parseInt(scan.next());
      |                         ^~~~~~~
a.cc:6:42: error: 'scan' was not declared in this scope
    6 |                 int x = Integer.parseInt(scan.next());
      |                                          ^~~~
a.cc:17:25: error: 'System' was not declared in this scope
   17 |                         System.out.println(x + " " + y);
      |                         ^~~~~~
Language: C++

#include <iostream>

void sort_vars(int* a,int* b)
{
    int c;
    if (*a =< *b) {

    } else {
        c = *a;
        *a = *b;
        *b = c;
        }
    }



int main(void)
{
    while(true) {
        int n,m;
        std::cin >> n >> m;
        if (n == 0 && m == 0) {
            break;
        }

        sort_vars(&n,&m);
        std::cout << n << " " << m << std::endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'void sort_vars(int*, int*)':
a.cc:6:13: error: expected primary-expression before '<' token
    6 |     if (*a =< *b) {
      |             ^
Language: C++

#include <iostream>

void sort_vars(int* a,int* b)
{
    int c;
    if (&a =< &b) {

    } else {
        c = *a;
        *a = *b;
        *b = c;
        }
    }



int main(void)
{
    while(true) {
        int n,m;
        std::cin >> n >> m;
        if (n == 0 && m == 0) {
            break;
        }

        sort_vars(&n,&m);
        std::cout << n << " " << m << std::endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'void sort_vars(int*, int*)':
a.cc:6:13: error: expected primary-expression before '<' token
    6 |     if (&a =< &b) {
      |             ^
Language: C++

#include <iostream>

void sort_vars(int* a, int* b)
{
    int c;
    if (*a =< *b) {
        *a = *a;
        *b = *b;
    } else {
        c = *a;
        *a = *b;
        *b = c;
        }
    }



int main(void)
{
    while(true) {
        int n,m;
        std::cin >> n >> m;
        if (n == 0 && m == 0) {
            break;
        }

        sort_vars(&n,&m);
        std::cout << n << " " << m << std::endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'void sort_vars(int*, int*)':
a.cc:6:13: error: expected primary-expression before '<' token
    6 |     if (*a =< *b) {
      |             ^
Language: C++

#include <iostream>
void sort_vars(int* a, int* b);

int main(void)
{
    while(true) {
        int n,m;
        std::cin >> n >> m;
        if (n == 0 && m == 0) {
            break;
        }

        sort_vars(&n,&m);
        std::cout << n << " " << m << std::endl;
    }
    return 0;
}

void sort_vars(int* a, int* b)
{
    int c;
    if (*a =< *b) {
    } else {
        c = *a;
        *a = *b;
        *b = c;
        }
    }

Compiler output:
a.cc: In function 'void sort_vars(int*, int*)':
a.cc:22:13: error: expected primary-expression before '<' token
   22 |     if (*a =< *b) {
      |             ^
Language: C++

#include<iostream>
using namespace std;

int main(){
int x, y;
cin >>x >>y;

if(x > y){
cout <<y <<" " <<x <<endl;
else{
cout <<x <<" " <<y <<endl;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: expected '}' before 'else'
   10 | else{
      | ^~~~
a.cc:8:10: note: to match this '{'
    8 | if(x > y){
      |          ^
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;

int main(){
int x, y;
cin >>x >>y;

if(x > y){
cout <<y <<" " <<x <<endl;
else{
cout <<x <<" " <<y <<endl;
}

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: expected '}' before 'else'
   10 | else{
      | ^~~~
a.cc:8:10: note: to match this '{'
    8 | if(x > y){
      |          ^
Language: C++

#include<stdio.h>
int main(a,b){while(scanf("%d%d",&a,&b),a|b)printf("%d %d\n",a<b?a:b,a<b?b:a);}

Compiler output:
a.cc:2:5: error: cannot declare '::main' to be a global variable
    2 | int main(a,b){while(scanf("%d%d",&a,&b),a|b)printf("%d %d\n",a<b?a:b,a<b?b:a);}
      |     ^~~~
a.cc:2:10: error: 'a' was not declared in this scope
    2 | int main(a,b){while(scanf("%d%d",&a,&b),a|b)printf("%d %d\n",a<b?a:b,a<b?b:a);}
      |          ^
a.cc:2:12: error: 'b' was not declared in this scope
    2 | int main(a,b){while(scanf("%d%d",&a,&b),a|b)printf("%d %d\n",a<b?a:b,a<b?b:a);}
      |            ^
a.cc:2:13: error: expression list treated as compound expression in initializer [-fpermissive]
    2 | int main(a,b){while(scanf("%d%d",&a,&b),a|b)printf("%d %d\n",a<b?a:b,a<b?b:a);}
      |             ^
Language: C++

int main(void){
  int i;
  for(i=0;;++i){
    int x,y;
    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:5:5: error: 'scanf' was not declared in this scope
    5 |     scanf("%d %d",&x,&y);
      |     ^~~~~
a.cc:9:7: error: 'printf' was not declared in this scope
    9 |       printf("%d %d\n",x,y);
      |       ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void){
a.cc:11:7: error: 'printf' was not declared in this scope
   11 |       printf("%d %d\n",y,x);
      |       ^~~~~~
a.cc:11:7: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

int main(void){
  int i;
  for(i=0;;++i){
    int x,y;
    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:5:5: error: 'scanf' was not declared in this scope
    5 |     scanf("%d %d",&x,&y);
      |     ^~~~~
a.cc:9:7: error: 'printf' was not declared in this scope
    9 |       printf("%d %d\n",x,y);
      |       ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void){
a.cc:11:7: error: 'printf' was not declared in this scope
   11 |       printf("%d %d\n",y,x);
      |       ^~~~~~
a.cc:11:7: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include <cstdio>
#include <algorithm>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:4: error: expected unqualified-id before ',' token
    8 | int, x, y;
      |    ^
Language: C++

#include<stdio.h>

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

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

int main()
{
        int a[1000][2];
        int i,m;

        for(i=1;i<1000;i++)
        {
                scanf("%d %d",&a[i][0],&a[i][1]);
                
                if(a[i][0]==a[i][1])break;

                if(a[i][0]>a[i][1])
                 printf("%d %d\n",a[i][1],a[i][0]);

                else                
                 printf("%d %d\n",a[i][0],a[i][1]);




        }

        return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'scanf' was not declared in this scope
    8 |                 scanf("%d %d",&a[i][0],&a[i][1]);
      |                 ^~~~~
a.cc:13:18: error: 'printf' was not declared in this scope
   13 |                  printf("%d %d\n",a[i][1],a[i][0]);
      |                  ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main()
a.cc:16:18: error: 'printf' was not declared in this scope
   16 |                  printf("%d %d\n",a[i][0],a[i][1]);
      |                  ^~~~~~
a.cc:16:18: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:23:18: error: expected '}' at end of input
   23 |         return 0;
      |                  ^
a.cc:2:1: note: to match this '{'
    2 | {
      | ^
Language: C++

int main()
{
        int a[1000][2];
        int i,m;

        for(i=1;i<1000;i++)
        {
                scanf("%d %d",&a[i][0],&a[i][1]);
                
                if(a[i][0]==a[i][1])break;

                if(a[i][0]>a[i][1])
                 printf("%d %d\n",a[i][1],a[i][0]);

                else                
                 printf("%d %d\n",a[i][0],a[i][1]);




        }

        return 0;
｝

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'scanf' was not declared in this scope
    8 |                 scanf("%d %d",&a[i][0],&a[i][1]);
      |                 ^~~~~
a.cc:13:18: error: 'printf' was not declared in this scope
   13 |                  printf("%d %d\n",a[i][1],a[i][0]);
      |                  ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main()
a.cc:16:18: error: 'printf' was not declared in this scope
   16 |                  printf("%d %d\n",a[i][0],a[i][1]);
      |                  ^~~~~~
a.cc:16:18: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:24:1: error: '\U0000ff5d' was not declared in this scope
   24 | ｝
      | ^~
a.cc:24:3: error: expected '}' at end of input
   24 | ｝
      |   ^
a.cc:2:1: note: to match this '{'
    2 | {
      | ^
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main(void) {
  vector< pair<int, int> > inputs;
  int n = 0, m = 0;
  while (cin >> n >> m && n != 0 && m != 0) {
    inputs.push_back(make_pair(min(n, m), max(n, m)));
  }
  for (int i = 0; i < inputs.size(); i++) {
    cout << inputs.first << " " << inputs.second << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:20: error: 'class std::vector<std::pair<int, int> >' has no member named 'first'
   13 |     cout << inputs.first << " " << inputs.second << endl;
      |                    ^~~~~
a.cc:13:43: error: 'class std::vector<std::pair<int, int> >' has no member named 'second'
   13 |     cout << inputs.first << " " << inputs.second << endl;
      |                                           ^~~~~~
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:
a.cc: In function 'int main()':
a.cc:9:17: error: expected ')' before '{' token
    9 |           if(x<y{
      |             ~   ^
      |                 )
a.cc:14:6: error: expected primary-expression before '}' token
   14 |      }
      |      ^
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;
		else cout y << " " << y;
	}

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:26: error: expected ';' before 'y'
   11 |                 else cout y << " " << y;
      |                          ^~
      |                          ;
Language: C++

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

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:18: error: 'min' was not declared in this scope; did you mean 'std::min'?
    8 | printf("%d %d/n",min(x,y),max(x,y));
      |                  ^~~
      |                  std::min
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: 'std::min' declared here
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:8:27: error: 'max' was not declared in this scope; did you mean 'std::max'?
    8 | printf("%d %d/n",min(x,y),max(x,y));
      |                           ^~~
      |                           std::max
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
Language: C++

//http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=10005
//Tuvshee
 
#include<iostream>
#include<cmath>
#include<algorithm>
#include<string>
#include<cctype>
#include<vector>
#include<queue>
using namespace std;
#define I int
#define D double
#define F float
#define C char
#define S string
#define B bool
#define L long long
#define rep(n) for(int i=0;i<n;i++)
#define reps(m,n,c) for(int c=m;c<n;c++)
#define repd(m,n,j) for(int j=n;j>m;j--)
#define whL while
#define eL endl
#define or ||
#define and &&
#define rtn return
#define pause system("PAUSE")
#define Max 300
#define max(m,n) ((n<m)?m:n)
#define min(m,n) ((n>m)?m:n)
 
int main()
{
	I m,n;
	for(int i=1;;i++){
		cin>>m>>n;
		if(m==0 and n==0)break;
		cout<<min(m,n)<<' '<<max(m,n)<<eL;
	}
	rtn 0;
}

Compiler output:
a.cc:24:9: error: "or" cannot be used as a macro name as it is an operator in C++
   24 | #define or ||
      |         ^~
a.cc:25:9: error: "and" cannot be used as a macro name as it is an operator in C++
   25 | #define and &&
      |         ^~~
Language: C++


#include <iostream>
#include <cstdlib>
#include<cstdio>
using namespace std;

int main(){
	int x,y;
	while(1){
		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:13:34: error: expected ';' before '}' token
   13 |                         swap(x,y)
      |                                  ^
      |                                  ;
   14 |                 }
      |                 ~