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

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



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

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


Compiler output:
a.cc:3:1: error: extended character   is not valid in an identifier
    3 |  
      | ^
a.cc:3:1: error: '\U000000a0' does not name a type
    3 |  
      | ^
Language: C++

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


Compiler output:
a.cc:3:1: error: extended character   is not valid in an identifier
    3 |  
      | ^
a.cc:3:1: error: '\U000000a0' does not name a type
    3 |  
      | ^
Language: C++

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

int main() {
	int a = 1;
	vector<int> xy(2);
	while (a == 1) {
		cin >> xy[0] >> xy[1];
		sort(xy.begin(), xy.end());
		if (!(x == 0 & y == 0)) {
			cout << xy[0] << " " << xy[1] << endl;
		}
		else if (x == 0 & y == 0) {
			break;
		}
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:23: error: 'x' was not declared in this scope; did you mean 'xy'?
   12 |                 if (!(x == 0 & y == 0)) {
      |                       ^
      |                       xy
a.cc:12:32: error: 'y' was not declared in this scope; did you mean 'xy'?
   12 |                 if (!(x == 0 & y == 0)) {
      |                                ^
      |                                xy
Language: C++

#include<iostream>int main(){int a,b;while(std::cin>>a>>b&&!((a==b)&&a==0)){std::cout<<(a>b?b:a)<<" "<<(a>b?a:b)<<"\n";}}    


Compiler output:
a.cc:1:23: warning: extra tokens at end of #include directive
    1 | #include<iostream>int main(){int a,b;while(std::cin>>a>>b&&!((a==b)&&a==0)){std::cout<<(a>b?b:a)<<" "<<(a>b?a:b)<<"\n";}}
      |                       ^~~~
a.cc:1:9: fatal error: iostream>in: No such file or directory
    1 | #include<iostream>int main(){int a,b;while(std::cin>>a>>b&&!((a==b)&&a==0)){std::cout<<(a>b?b:a)<<" "<<(a>b?a:b)<<"\n";}}
      |         ^~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
using namespace std;

int main() {
    int x, y = 0;
    while(true) {
        cin >> x >> y;
        if (x != 0 && y != 0) {
            if (y > x) {
                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:16:13: error: break statement not within loop or switch
   16 |             break;
      |             ^~~~~
a.cc: At global scope:
a.cc:20:5: error: expected unqualified-id before 'return'
   20 |     return 0;
      |     ^~~~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

int main(void){
   int a,b,i;
   for(i = 1;i <=3000;i++){
      cin>>a>>b;
      if(a==0&&b==0)break;
      if(a >= b){cout<<b<<a;}
      elseif(a < b){cout<<a<<b;}
   }
   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: 'elseif' was not declared in this scope
   10 |       elseif(a < b){cout<<a<<b;}
      |       ^~~~~~
Language: C++

#include<iostream>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >>x >>y;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |       cout << x <<" " << y << endl;
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |       cout << x <<" " << y << endl;
      |                               ^~~~
      |                               std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |       cout << y <<" " << x << endl;
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |       cout << y <<" " << x << endl;
      |                               ^~~~
      |                               std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <stdio.h>

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


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

#include <iostream>
using namespace std;

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


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

#include <iostream>
using namespace std;

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


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

cnt = 1
c = int(input().split())
while c != 0:
 c.sort()
 print("Case {0}: {1} {2}".format(cnt,c[0],c[1]))
 c = int(input().split())
 cnt += 1


Compiler output:
a.cc:1:1: error: 'cnt' does not name a type; did you mean 'int'?
    1 | cnt = 1
      | ^~~
      | int
Language: C++

#include<iostream>
#include<cmath>
#include<cstdio>
#include<algorithm>

using namespace std;


int main(){
  int x,y;
  
  while(true){
    cin >> x >> y;
    if(a == 0 && b == 0) break;
    if (a > b) cout << b << " " << a << endl;
    else cout << a << " " << b << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: 'a' was not declared in this scope
   14 |     if(a == 0 && b == 0) break;
      |        ^
a.cc:14:18: error: 'b' was not declared in this scope
   14 |     if(a == 0 && b == 0) break;
      |                  ^
a.cc:15:9: error: 'a' was not declared in this scope
   15 |     if (a > b) cout << b << " " << a << endl;
      |         ^
a.cc:15:13: error: 'b' was not declared in this scope
   15 |     if (a > b) cout << b << " " << a << endl;
      |             ^
Language: C++

#include <iostream>
using namespace std;

int main() {
  int n,y
cin>>n>>y;
while ((n!=0)and(y!=0)){
if (n>y){swap(n,y);cout<<n<<" "<<y<<endl;}else{cout<<n<<" "<<y<<endl;};

};cout<<z<<endl;return 0;}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: expected initializer before 'cin'
    6 | cin>>n>>y;
      | ^~~
a.cc:7:18: error: 'y' was not declared in this scope
    7 | while ((n!=0)and(y!=0)){
      |                  ^
a.cc:10:9: error: 'z' was not declared in this scope
   10 | };cout<<z<<endl;return 0;}
      |         ^
Language: C++

import java.util.Scanner;

public class Main {
	public static void main(String [] args) {
		Scanner stdIn = new Scanner(System.in);
		int n, x, y;
		int datax [] = new int[3000];
		int datay [] = new int[3000];
		
		n = 1;
		
		do {
			x = stdIn.nextInt();
			y = stdIn.nextInt();
			
			if(x == 0 && y == 0 || n == 3000)break;
			
			datax[n - 1] = x;
			datay[n - 1] = y;
			
			n++;
		}while(x < 0 || x > 10000 || y < 0 || y > 10000 );
		
		
		for(int i = 0; i < n ; i++) {
			if(datax[i] > datay[i]) {
				x = datay[i];
				y = datax[i];
			}else {
				x = datax[i];
				y = datay[i];
			}
			
			System.out.println(x + " " + y);
			
		}
	}
}



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:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

import java.util.Scanner;

public class Main {
	public static void main(String [] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = 0, x, y;
		int datax [] = new int[3000];
		int datay [] = new int[3000];
		
		do {
			x = stdIn.nextInt();
			y = stdIn.nextInt();
			
			if(x == 0 && y == 0 )break;
			
			datax[n] = x;
			datay[n] = y;
			
			n++;
		}while(x < 0 || x > 10000 || y < 0 || y > 10000 );
		
		
		for(int i = 0; i < n ; i++) {
			if(datax[i] > datay[i]) {
				x = datay[i];
				y = datax[i];
			}else {
				x = datax[i];
				y = datay[i];
			}
			
			System.out.println(x + " " + y);
			
		}
	}
}


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:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
    for (int a = 0;;a++) {
        cin >> x>>y;
        if (x == 0 && y == 0) break;
        if (x > y) swap (x,y);
        cout << y << x<<endl;
    }
}


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

#include <bits/stdc++.h>
using namespace std;

int main(){
    for (int a = 0;;a++) {
        cin >> x>>y;
        if (x == 0 && y == 0) break;
        if (x > y) swap (x,y);
        cout << y << " "<<x<<endl;
    }
}


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

#include <bits/stdc++.h>
using namespace std;

int main(){
    for (int a = 0;;a++) {
        cin >> x>>y;
        if (x == 0 && y == 0) break;
        if (x > y) swap (x,y);
        cout << x << " "<<y<<endl;
    }
}


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

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

}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: expected ')' before '$$'
    7 | while(x != 0 $$ y != 0){
      |      ~      ^~~
      |             )
a.cc:7:14: error: '$$' was not declared in this scope
    7 | while(x != 0 $$ y != 0){
      |              ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
int a, b;
while(1){
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 'int main()':
a.cc:15:10: error: expected '}' at end of input
   15 | return 0;
      |          ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    while(1){
        int x,y;
        cin>>x>>y;
        if(x==0 && y==0) break;
        if(x>y) swap(x,y)
        cout<<x<<" "<<y<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: expected ';' before 'cout'
    8 |         if(x>y) swap(x,y)
      |                          ^
      |                          ;
    9 |         cout<<x<<" "<<y<<endl;
      |         ~~~~
Language: C++

#include <stdio.h>
int mian(){
    int a,b,r;
    scanf("%d %d",&a,&b);
    if(a>b){
        r=a;
        a=b;
        b=r;
    }
    printf("%d %d\n",a,b);
}


Compiler output:
a.cc: In function 'int mian()':
a.cc:11:1: warning: no return statement in function returning non-void [-Wreturn-type]
   11 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<stdio.h>

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

   }
    return 0;
}



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


}#include<bits/stdc++.h>
using namespace std;

int main() {
  int x,y;
  while(true){
   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:2:2: error: stray '#' in program
    2 | }#include<bits/stdc++.h>
      |  ^
a.cc:2:1: error: expected declaration before '}' token
    2 | }#include<bits/stdc++.h>
      | ^
a.cc:2:3: error: 'include' does not name a type
    2 | }#include<bits/stdc++.h>
      |   ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:4: error: 'cin' was not declared in this scope
    8 |    cin >> x >> y;
      |    ^~~
a.cc:13:5: error: 'swap' was not declared in this scope
   13 |     swap(x,y);
      |     ^~~~
a.cc:16:3: error: 'cout' was not declared in this scope
   16 |   cout<< x <<" "<< y <<endl;
      |   ^~~~
a.cc:16:24: error: 'endl' was not declared in this scope
   16 |   cout<< x <<" "<< y <<endl;
      |                        ^~~~
Language: C++


}#include<bits/stdc++.h>
using namespace std;

int main() {
  int x,y;
  while(true){
   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:2:2: error: stray '#' in program
    2 | }#include<bits/stdc++.h>
      |  ^
a.cc:2:1: error: expected declaration before '}' token
    2 | }#include<bits/stdc++.h>
      | ^
a.cc:2:3: error: 'include' does not name a type
    2 | }#include<bits/stdc++.h>
      |   ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:4: error: 'cin' was not declared in this scope
    8 |    cin >> x >> y;
      |    ^~~
a.cc:14:5: error: 'swap' was not declared in this scope
   14 |     swap(x,y);
      |     ^~~~
a.cc:17:3: error: 'cout' was not declared in this scope
   17 |   cout<< x <<" "<< y <<endl;
      |   ^~~~
a.cc:17:24: error: 'endl' was not declared in this scope
   17 |   cout<< x <<" "<< y <<endl;
      |                        ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
 
   for (int i=1;;i++) {
    int x,y;
    cin>>x,y;
    if (x>y) {
     swap (x,y);
    if (x==0&&y==0) break;
    cout<<x<<" "<<y<<endl;
    }

    return 0;
}


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

#include<iostream>
using namespace std;

int main(){
    for(int i=1;;i++){
       int x,y;
       cin >> x >> y;
       if(x == 0)break;
       if(x<y){
         swap(x, y)
       cout<< x << " " << y << endl;
    }
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expected ';' before 'cout'
   10 |          swap(x, y)
      |                    ^
      |                    ;
   11 |        cout<< x << " " << y << endl;
      |        ~~~~         
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(){
    for(int i=1;;i++){
       int x,y;
       cin >> x >> y;
       if(x == 0)break;
       if(x<y){
         swap(x, y)
       }
       cout<< x << " " << y << endl;
    }
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expected ';' before '}' token
   10 |          swap(x, y)
      |                    ^
      |                    ;
   11 |        }
      |        ~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  

  while(1){
      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:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){

while(1){

int x,y;
cin>>x>>y;
if(x>y)swap(x,y)
cout<<x<<" "<<endl;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: expected ';' before 'cout'
   10 | if(x>y)swap(x,y)
      |                 ^
      |                 ;
   11 | cout<<x<<" "<<endl;
      | ~~~~             
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<bits/stdc++.h>
using namespace std;

int main(){

while(1){

int x,y;
cin>>x>>y;
if(x>y)swap(x,y)
cout<<x<<" "<<y<<endl;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: expected ';' before 'cout'
   10 | if(x>y)swap(x,y)
      |                 ^
      |                 ;
   11 | cout<<x<<" "<<y<<endl;
      | ~~~~             
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<bits/stdc++.h>
using namespace std;

int main(){

while(1){

int x,y;
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:12:17: error: expected ';' before 'cout'
   12 | if(x>y)swap(x,y)
      |                 ^
      |                 ;
   13 | cout<<x<<" "<<y<<endl;
      | ~~~~             
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){

while(1){

int x,y;
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:12:17: error: expected ';' before 'cout'
   12 | if(x>y)swap(x,y)
      |                 ^
      |                 ;
   13 | cout<<x<<" "<<y<<endl;
      | ~~~~
Language: C++

// This file is a "Hello, world!" in C# language by Mono for wandbox.
using System;

using System.Linq;

using System.Collections.Generic;

namespace Wandbox
{
    class Program
    {
        static void Main(string[] args)
        {
            while (true)
            {
                var a = Console.ReadLine().Split(' ');
                if (a[0] == "0" && a[1] == "0")
                    break;
                Console.WriteLine("{0} {1}",a[1], a[0]);
                }
            
        }
    }
}



Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Linq;
      |       ^~~~~~
a.cc:6:7: error: expected nested-name-specifier before 'System'
    6 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:12:26: error: 'string' has not been declared
   12 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:12:35: error: expected ',' or '...' before 'args'
   12 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:23:6: error: expected ';' after class definition
   23 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void Wandbox::Program::Main(int*)':
a.cc:16:17: error: 'var' was not declared in this scope
   16 |                 var a = Console.ReadLine().Split(' ');
      |                 ^~~
a.cc:17:21: error: 'a' was not declared in this scope
   17 |                 if (a[0] == "0" && a[1] == "0")
      |                     ^
a.cc:19:17: error: 'Console' was not declared in this scope
   19 |                 Console.WriteLine("{0} {1}",a[1], a[0]);
      |                 ^~~~~~~
a.cc:19:45: error: 'a' was not declared in this scope
   19 |                 Console.WriteLine("{0} {1}",a[1], a[0]);
      |                                             ^
Language: C++

//itp1_topic3_c
#include <bits/stdc++.h>
using namespace std;

int main(){

	while(1)[
		int x, y;
		cin>>x>>y;
		if(x > y) swap(x, y);
		cout<<x<<" "<<y<<endl;
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expected identifier before 'int'
    8 |                 int x, y;
      |                 ^~~
a.cc:8:22: error: expected ']' before ',' token
    8 |                 int x, y;
      |                      ^
      |                      ]
a.cc: In lambda function:
a.cc:8:22: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:8:24: error: 'y' was not declared in this scope; did you mean 'yn'?
    8 |                 int x, y;
      |                        ^
      |                        yn
a.cc:9:22: error: 'x' was not declared in this scope
    9 |                 cin>>x>>y;
      |                      ^
a.cc:9:25: error: 'y' was not declared in this scope; did you mean 'yn'?
    9 |                 cin>>x>>y;
      |                         ^
      |                         yn
a.cc: At global scope:
a.cc:13:9: error: expected unqualified-id before 'return'
   13 |         return 0;
      |         ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

//itp1_topic3_c
#include <bits/stdc++.h>
using namespace std;

int main(){

	while(1)[
		int x, y;
		cin>>x>>y;
		if(x == 0 && y == 0) break;		

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expected identifier before 'int'
    8 |                 int x, y;
      |                 ^~~
a.cc:8:22: error: expected ']' before ',' token
    8 |                 int x, y;
      |                      ^
      |                      ]
a.cc: In lambda function:
a.cc:8:22: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:8:24: error: 'y' was not declared in this scope; did you mean 'yn'?
    8 |                 int x, y;
      |                        ^
      |                        yn
a.cc:9:22: error: 'x' was not declared in this scope
    9 |                 cin>>x>>y;
      |                      ^
a.cc:9:25: error: 'y' was not declared in this scope; did you mean 'yn'?
    9 |                 cin>>x>>y;
      |                         ^
      |                         yn
a.cc:10:38: error: break statement not within loop or switch
   10 |                 if(x == 0 && y == 0) break;
      |                                      ^~~~~
a.cc: At global scope:
a.cc:15:9: error: expected unqualified-id before 'return'
   15 |         return 0;
      |         ^~~~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;


int main(){ 


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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: expected initializer before 'cin'
   10 |       cin>>x>>y;
      |       ^~~
a.cc:11:20: error: 'y' was not declared in this scope
   11 |       if(x == 0 && y == 0) break;
      |                    ^
a.cc:13:14: error: 'y' was not declared in this scope
   13 |       if(x > y) swap(x,y);
      |              ^
a.cc:14:21: error: 'y' was not declared in this scope
   14 |       cout<<x<<" "<<y<<endl;
      |                     ^
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;


int main(){ 


  while(1){
      int x,y

      cin>>x>>y;
      if(x == 0 && y == 0) break; 
      
      if(x > y) swap(x,y);
      cout<<x<<" "<<y<<endl;
}   
     
 



Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: expected initializer before 'cin'
   11 |       cin>>x>>y;
      |       ^~~
a.cc:12:20: error: 'y' was not declared in this scope
   12 |       if(x == 0 && y == 0) break;
      |                    ^
a.cc:14:14: error: 'y' was not declared in this scope
   14 |       if(x > y) swap(x,y);
      |              ^
a.cc:15:21: error: 'y' was not declared in this scope
   15 |       cout<<x<<" "<<y<<endl;
      |                     ^
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;


int main(){ 


  while(1){
      int x,y；

      cin>>x>>y;
      if(x == 0 && y == 0) break; 
      
      if(x > y) swap(x,y);
      cout<<x<<" "<<y<<endl;
}   
     
 



Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: expected initializer before 'cin'
   11 |       cin>>x>>y;
      |       ^~~
a.cc:12:20: error: 'y' was not declared in this scope
   12 |       if(x == 0 && y == 0) break;
      |                    ^
a.cc:14:14: error: 'y' was not declared in this scope
   14 |       if(x > y) swap(x,y);
      |              ^
a.cc:15:21: error: 'y' was not declared in this scope
   15 |       cout<<x<<" "<<y<<endl;
      |                     ^
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include <iostream>

int main() {
  int x;
  for(int i = 1; i >= 0; ++i) {
    std::cin >> x;
    std::cin >> y;
    if((x + y) == 0){
      break;
    }else{
      if(x >= y){
        std::cout << x << " " << y << std::endl;
      }else{
        std::cout << y << " " << x << std::endl;	
      }
    }
  }
}


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

#include <bits/stdc++.h>

using namespace std;


int main(){

  While(1){
    int x, y;
    cin>>x>>y;
    if(x == 0 && y == 0) break;

    if(x > y) swap(x, y);
    cout<<x<<" "<<y<<endl;
  }
}



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

#include <bits/stdc++.h>
using namespace std;

 int main(){
 
 while(1){
  int w, y;
  cin>>w>>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:9:6: error: 'x' was not declared in this scope
    9 |   if(x == 0 && y == 0) break;
      |      ^
a.cc:11:7: error: 'x' was not declared in this scope
   11 |   if (x > y) swap(x, y);
      |       ^
a.cc:12:9: error: 'x' was not declared in this scope
   12 |   cout<<x<<" "<<y<<endl;
      |         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

 int main(){
 
 while(1){
  int w, y;
  cin>>w>>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:9:6: error: 'x' was not declared in this scope
    9 |   if(x == 0 && y == 0) break;
      |      ^
a.cc:11:6: error: 'x' was not declared in this scope
   11 |   if(x > y) swap(x, y);
      |      ^
a.cc:12:9: error: 'x' was not declared in this scope
   12 |   cout<<x<<" "<<y<<endl;
      |         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

 int main(){
 
 while(1){
  int w, y;
  cin>>w>>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:9:6: error: 'x' was not declared in this scope
    9 |   if(x==0 && y==0) break;
      |      ^
a.cc:11:6: error: 'x' was not declared in this scope
   11 |   if(x > y) swap(x, y);
      |      ^
a.cc:12:9: error: 'x' was not declared in this scope
   12 |   cout<<x<<" "<<y<<endl;
      |         ^
Language: C++

/**
 * SwappingTwoNumbers.cpp
 * Create:20180419
 * Description:複数の２組の数字を小さい順に並べ、それぞれ出力する。
 */
#include <iostream>
#include <vector>

class Number{
private:
  int x;
  int y;
public:
  /**
   * コンストラクタ
   * @param x 数値１
   * @param y 数値２
   */
  Number(int x, int y){
    this->x = x;
    this->y = y;
  }

  /**
   * 交換
   */
  swap(){
    if (x > y) {
      int tmp = x;
      x = y;
      y = tmp;
    }
  }

  /**
   * ゲッター　X
   */
  get_x(){
    return x;
  }

  /**
   * ゲッター　Y
   */
  get_y(){
    return y;
  }

};

int main(int argc, char* argv[]){
  std::vector<Number> vec;
  int x, y;

  while (true){
    std::cin >> x >> y;
    if (x == 0 && y == 0){
      break;
    }
    Number n = Number(x, y);
    vec.push_back(n);
  }

  for(Number n : vec){
    n.swap();
    std::cout << n.get_x() << " " << n.get_y() << std::endl;
  }

  return 0;
}


Compiler output:
a.cc:27:3: error: ISO C++ forbids declaration of 'swap' with no type [-fpermissive]
   27 |   swap(){
      |   ^~~~
a.cc:38:3: error: ISO C++ forbids declaration of 'get_x' with no type [-fpermissive]
   38 |   get_x(){
      |   ^~~~~
a.cc:45:3: error: ISO C++ forbids declaration of 'get_y' with no type [-fpermissive]
   45 |   get_y(){
      |   ^~~~~
a.cc: In member function 'int Number::swap()':
a.cc:33:3: warning: no return statement in function returning non-void [-Wreturn-type]
   33 |   }
      |   ^
Language: C++

import java.util.Scanner;
public class Main {
 public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        int x,y,i=0;
        int[] c=new int[3001];
        int[] d=new int[3001];
        for(;;){
        	x=sc.nextInt();
        	y=sc.nextInt();
        	if(x<y){
        		c[i]=x;
        		d[i]=y;}
        	else {
        		c[i]=y;
        		d[i]=x;
        		
        	
        	}
        	i=i+1;
        	if(y==0)
        		if(y==0)break;
        }
             
        for(int a=0;a<i-1;a++)
        	System.out.println(c[a]+" "+d[a]);
        sc.close();
 }
    
    
}


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:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

import java.util.Scanner;
public class Main {
 public static void main(String[] args){
     Scanner sc=new Scanner(System.in);
     int x,y,i=0;
     int[] c=new int[3001];
     int[] d=new int[3001];
     for(;;){
      x=sc.nextInt();
      y=sc.nextInt();
      if(x<y){
       c[i]=x;
       d[i]=y;}
      else {
       c[i]=y;
       d[i]=x;
        		
        	
      }
      i=i+1;
      if(y==0)
       if(y==0)break;
        }
             
        for(int a=0;a<i-1;a++)
        	System.out.println(c[a]+" "+d[a]);
        sc.close();
 }
    
    
}


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:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

import java.util.Scanner;
public class Main {
 public static void main(String[] args){
     Scanner sc=new Scanner(System.in);
     int x,y,i=0;
     int[] c=new int[3001];
     int[] d=new int[3001];
     for(;;){
         x=sc.nextInt();
         y=sc.nextInt();
         if(x<y){
          c[i]=x;
          d[i]=y;}
         else {
          c[i]=y;
          d[i]=x;
        		
        	
      }
      i=i+1;
      if(y==0)
       if(y==0)break;
        }
             
        for(int a=0;a<i-1;a++)
        	System.out.println(c[a]+" "+d[a]);
        sc.close();
 }
    
    
}


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:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

import java.util.Scanner;
public class Main {
 public static void main(String[] args){
     Scanner sc=new Scanner(System.in);
     int x,y,i=0;
     int[] c=new int[3001];
     int[] d=new int[3001];
     for(;;){
         x=sc.nextInt();
         y=sc.nextInt();
         if(x<y){
         c[i]=x;
         d[i]=y;}
         else {
          c[i]=y;
          d[i]=x;
        		
        	
      }
      i=i+1;
      if(y==0)
       if(y==0)break;
        }
             
        for(int a=0;a<i-1;a++)
        	System.out.println(c[a]+" "+d[a]);
        sc.close();
 }
    
    
}


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:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

import java.util.Scanner;
public class Main {
 public static void main(String[] args){
     Scanner sc=new Scanner(System.in);
     int x,y,i=0;
     int[] c=new int[3001];
     int[] d=new int[3001];
     for(;;){
         x=sc.nextInt();
         y=sc.nextInt();
         if(x<y){
         c[i]=x;
         d[i]=y;}
         else {
         c[i]=y;
         d[i]=x;
        		
        	
      }
      i=i+1;
      if(y==0)
       if(y==0)break;
        }
             
        for(int a=0;a<i-1;a++)
        	System.out.println(c[a]+" "+d[a]);
        sc.close();
 }
    
    
}


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:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

import java.util.Scanner;
public class Main {
 public static void main(String[] args){
     Scanner sc=new Scanner(System.in);
     int x,y,i=0;
     int[] c=new int[3001];
     int[] d=new int[3001];
     for(;;){
         x=sc.nextInt();
         y=sc.nextInt();
         if(x<y){
         c[i]=x;
         d[i]=y;}
         else {
             c[i]=y;
             d[i]=x;
        		
        	
      }
      i=i+1;
      if(y==0)
       if(y==0)break;
        }
             
        for(int a=0;a<i-1;a++)
        	System.out.println(c[a]+" "+d[a]);
        sc.close();
 }
    
    
}


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:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

import java.util.Scanner;
public class Main {
 public static void main(String[] args){
     Scanner sc=new Scanner(System.in);
     int x,y,i=0;
     int[] c=new int[3001];
     int[] d=new int[3001];
     for(;;){
         x=sc.nextInt();
         y=sc.nextInt();
         if(x<y){
         c[i]=x;
         d[i]=y;}
         else {
             c[i]=y;
             d[i]=x;
        		  	
      }
      i=i+1;
      if(y==0)
       if(y==0)break;
        }
             
        for(int a=0;a<i-1;a++)
        	System.out.println(c[a]+" "+d[a]);
        sc.close();
 }
    
    
}


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:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

import java.util.Scanner;
public class Main {
 public static void main(String[] args){
     Scanner sc=new Scanner(System.in);
     int x,y,i=0;
     int[] c=new int[3001];
     int[] d=new int[3001];
     for(;;){
         x=sc.nextInt();
         y=sc.nextInt();
         if(x<y){
         c[i]=x;
         d[i]=y;}
         else {
             c[i]=y;
             d[i]=x;
        		  	
         }
         i=i+1;
         if(y==0)
         if(y==0)break;
           }
             
           for(int a=0;a<i-1;a++)
        	System.out.println(c[a]+" "+d[a]);
        sc.close();
 }
    
    
}


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:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

import java.util.Scanner;
public class Main {
 public static void main(String[] args){
     Scanner sc=new Scanner(System.in);
     int x,y,i=0;
     int[] c=new int[3001];
     int[] d=new int[3001];
     for(;;){
         x=sc.nextInt();
         y=sc.nextInt();
         if(x<y){
         c[i]=x;
         d[i]=y;}
         else {
             c[i]=y;
             d[i]=x;
        		  	
         }
         i=i+1;
         if(y==0)
             if(y==0)break;
           }
             
           for(int a=0;a<i-1;a++)
        	System.out.println(c[a]+" "+d[a]);
        sc.close();
 }
    
    
}


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:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

import java.util.Scanner;
public class Main {
 public static void main(String[] args){
     Scanner sc=new Scanner(System.in);
     int x,y,i=0;
     int[] c=new int[3001];
     int[] d=new int[3001];
     for(;;){
         x=sc.nextInt();
         y=sc.nextInt();
         if(x<y){
         c[i]=x;
         d[i]=y;}
         else {
             c[i]=y;
             d[i]=x;
        		  	
         }
         i=i+1;
         if(y==0)
             if(y==0)break;
      }
             
      for(int a=0;a<i-1;a++)
      System.out.println(c[a]+" "+d[a]);
     sc.close();
 }
    
    
}


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:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

import java.util.Scanner;
public class Main {
 public static void main(String[] args){
     Scanner sc=new Scanner(System.in);
     int x,y,i=0;
     int[] c=new int[3001];
     int[] d=new int[3001];
     for(;;){
         x=sc.nextInt();
         y=sc.nextInt();
         if(x<y){
         c[i]=x;
         d[i]=y;}
         else {
             c[i]=y;
             d[i]=x;		  	
         }
         i=i+1;
         if(y==0)
             if(y==0)break;
      }
             
      for(int a=0;a<i-1;a++)
      System.out.println(c[a]+" "+d[a]);
     sc.close();
 }
    
    
}


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:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

import java.util.Scanner;
public class Main {
 public static void main(String[] args){
     Scanner sc=new Scanner(System.in);
     int x,y,i=0;
     int[] c=new int[3001];
     int[] d=new int[3001];
     for(;;){
         x=sc.nextInt();
         y=sc.nextInt();
         if(x<y){
         c[i]=x;
         d[i]=y;}
         else {
             c[i]=y;
             d[i]=x;
		  	
         }
         i=i+1;
         if(y==0)
             if(y==0)break;
      }       
      for(int a=0;a<i-1;a++)
      System.out.println(c[a]+" "+d[a]);
     sc.close();
 }
    
    
}


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:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

import java.util.Scanner;
public class Main {
 public static void main(String[] args){
     Scanner sc=new Scanner(System.in);
     int x,y,i=0;
     int[] c=new int[3001];
     int[] d=new int[3001];
     for(;;){
         x=sc.nextInt();
         y=sc.nextInt();
         if(x<y){
         c[i]=x;
         d[i]=y;}
         else {
             c[i]=y;
             d[i]=x;
		  	
         }
         i=i+1;
         if(x==0)
             if(y==0)break;
      }       
      for(int a=0;a<i-1;a++)
      System.out.println(c[a]+" "+d[a]);
     sc.close();
 }
    
    
}


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:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

import java.util.Scanner;
public class Main {
 public static void main(String[] args){
     Scanner sc=new Scanner(System.in);
     int x,y,i=0;
     int[] c=new int[3001];
     int[] d=new int[3001];
     for(;;){
         x=sc.nextInt();
         y=sc.nextInt();
         if(x<y){
         c[i]=x;
         d[i]=y;}
         else {
             c[i]=y;
             d[i]=x;
		  	
         }
         i=i+1;
         if(x==0)
             if(y==0)break;
     }       
     for(int a=0;a<i-1;a++)
     System.out.println(c[a]+" "+d[a]);
    sc.close();
 }
    
    
}


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:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

#include <iostream>
using namespace std;

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

cin >> x >> y;
while(x != 0 || y != 0){
if( x>y){
a = x;
x = y;
y = a;
cout << x << " " << y << endl;
}
}


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

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



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

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


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

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


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

#include <iostream>
 int main() {
  int x, y;
   std::cin >> x >> y;
   if (x == 0 && y == 0) {
    std::cout << x << y <<std::endl;



 return 0;



}


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

#include <iostream>
 int main() {
  int x, y;
   std::cin >> x >> y;
    while (true) { 
     if (x == 0 && y == 0) break;
     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:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:2:13: note: to match this '{'
    2 |  int main() {
      |             ^
Language: C++

#include<stdio.h>
int main() {
	int x, y;
	while (true) {
		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:
a.cc: In function 'int main()':
a.cc:14:17: error: expected ';' before '}' token
   14 |         return 0
      |                 ^
      |                 ;
   15 | }
      | ~
Language: C++

/*
 * taete.cpp
 *
 *  Created on: 2018/04/26
 *      Author: J01003
 */
#include<iostream>
using namespace std;

int main(){

	int s,x,y;
	s=1;
	while(s<3002){
		cin>>x>>y;
		if(x&&y==0){
			break;
		}if else(x>y){
			cout<<y<<" "<<x<<endl;
		}else{
		cout<<x<<" "<<y<<endl;
		}
		s=s+1;
	}

	return 0;
}






Compiler output:
a.cc: In function 'int main()':
a.cc:18:21: error: expected '(' before 'else'
   18 |                 }if else(x>y){
      |                     ^~~~
      |                     (
a.cc:20:18: error: 'else' without a previous 'if'
   20 |                 }else{
      |                  ^~~~