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

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


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

#include<iostream>
using namespace std;
int main(){
    int x,y;
    while (1){
        cin >>x>>y;
        if(x==0 and 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:9:30: error: expected ';' before '}' token
    9 |         else cout<<y<<x<<endl
      |                              ^
      |                              ;
   10 |     }
      |     ~
Language: C++

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

int a,b;

while(scanf("%d%d",&a,&b),a||b){

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

return 0;
}



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

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

int a,b;

while(scanf("%d%d",&a,&b),a||b){

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

return 0;
}



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

#include<iostream>

using namespace std;

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


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

#include<iostream>

using namespace std;

    int main(){
        int x,y;
        for(int i=o;i<30000;i=i+1){
            cin>>x>>y;
        if(x<y){
            cout<<x<<" "<<y<<endl;
        }
        else{
            cout<<y<<" "<<x<<endl;
        }
        }
        
        
    }


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

#include<iostream>

using namespace std;

int main(){
	int x, y;
    　fot(int i=0;i<300000;i=i+1){
    　    cin >> x >> y;
	if (x<y){
		cout << x << " " << y << endl;
	}
	else{
		cout << y << " " << x << endl;
	}
}
}


Compiler output:
a.cc:7:5: error: extended character 　 is not valid in an identifier
    7 |     　fot(int i=0;i<300000;i=i+1){
      |     ^
a.cc:8:5: error: extended character 　 is not valid in an identifier
    8 |     　    cin >> x >> y;
      |     ^
a.cc: In function 'int main()':
a.cc:7:11: error: expected primary-expression before 'int'
    7 |     　fot(int i=0;i<300000;i=i+1){
      |           ^~~
a.cc:7:19: error: 'i' was not declared in this scope
    7 |     　fot(int i=0;i<300000;i=i+1){
      |                   ^
Language: C++

#include<iostream>

using namespace std;

int main(){
	int x, y,i;
    　fot(int i=0;i<300000;i=i+1){
    　    cin >> x >> y;
	if (x<y){
		cout << x << " " << y << endl;
	}
	else{
		cout << y << " " << x << endl;
	}
}
}


Compiler output:
a.cc:7:5: error: extended character 　 is not valid in an identifier
    7 |     　fot(int i=0;i<300000;i=i+1){
      |     ^
a.cc:8:5: error: extended character 　 is not valid in an identifier
    8 |     　    cin >> x >> y;
      |     ^
a.cc: In function 'int main()':
a.cc:7:11: error: expected primary-expression before 'int'
    7 |     　fot(int i=0;i<300000;i=i+1){
      |           ^~~
a.cc:7:33: error: expected ';' before ')' token
    7 |     　fot(int i=0;i<300000;i=i+1){
      |                                 ^
      |                                 ;
Language: C++

#include<iostream>

using namespace std;

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


Compiler output:
a.cc:7:5: error: extended character 　 is not valid in an identifier
    7 |     　for(int i=0;i<300000;i=i+1){
      |     ^
a.cc:8:5: error: extended character 　 is not valid in an identifier
    8 |     　    cin >> x >> y;
      |     ^
a.cc: In function 'int main()':
a.cc:7:11: error: expected primary-expression before 'int'
    7 |     　for(int i=0;i<300000;i=i+1){
      |           ^~~
a.cc:7:33: error: expected ';' before ')' token
    7 |     　for(int i=0;i<300000;i=i+1){
      |                                 ^
      |                                 ;
Language: C++

#include<iostream>

using namespace std;

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


Compiler output:
a.cc:7:5: error: extended character 　 is not valid in an identifier
    7 |     　for(int i=0;i<300000;i=i+1){
      |     ^
a.cc:8:5: error: extended character 　 is not valid in an identifier
    8 |     　   cin>>x;
      |     ^
a.cc:9:5: error: extended character 　 is not valid in an identifier
    9 |     　   cin>>y;
      |     ^
a.cc: In function 'int main()':
a.cc:7:11: error: expected primary-expression before 'int'
    7 |     　for(int i=0;i<300000;i=i+1){
      |           ^~~
a.cc:7:33: error: expected ';' before ')' token
    7 |     　for(int i=0;i<300000;i=i+1){
      |                                 ^
      |                                 ;
Language: C++

#include<iostream>

using namespace std;

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


Compiler output:
a.cc:7:5: error: extended character 　 is not valid in an identifier
    7 |     　for(int i=0;i<300000;i=i+1){
      |     ^
a.cc:8:5: error: extended character 　 is not valid in an identifier
    8 |     　   cin>>x;
      |     ^
a.cc:9:5: error: extended character 　 is not valid in an identifier
    9 |     　   cin>>y;
      |     ^
a.cc: In function 'int main()':
a.cc:7:11: error: expected primary-expression before 'int'
    7 |     　for(int i=0;i<300000;i=i+1){
      |           ^~~
a.cc:7:19: error: 'i' was not declared in this scope
    7 |     　for(int i=0;i<300000;i=i+1){
      |                   ^
Language: C++

#include<iostream>

using namespace std;

int main(){
	int x, y;
    　for(int i=0;i<300000;i=i+1){
    　   cin>>x;
    　   cin>>y;
	if (x<y and x!=0 and y!=0){
		cout << x << " " << y << endl;
	}
	if((x>y and x!=0 and y!=0){
		cout << y << " " << x << endl;
	}
	else{
	    i=300000
	}
}
}


Compiler output:
a.cc:7:5: error: extended character 　 is not valid in an identifier
    7 |     　for(int i=0;i<300000;i=i+1){
      |     ^
a.cc:8:5: error: extended character 　 is not valid in an identifier
    8 |     　   cin>>x;
      |     ^
a.cc:9:5: error: extended character 　 is not valid in an identifier
    9 |     　   cin>>y;
      |     ^
a.cc: In function 'int main()':
a.cc:7:11: error: expected primary-expression before 'int'
    7 |     　for(int i=0;i<300000;i=i+1){
      |           ^~~
a.cc:7:19: error: 'i' was not declared in this scope
    7 |     　for(int i=0;i<300000;i=i+1){
      |                   ^
Language: C++

#include<iostream>

using namespace std;

int main(){
	int x, y;
    　for(int i=0;i<300000;i=i+1){
    　   cin>>x;
    　   cin>>y;
	if (x<y and x!=0 and y!=0){
		cout << x << " " << y << endl;
	}
	if((x>y and x!=0 and y!=0){
		cout << y << " " << x << endl;
	}
	else{
	    i=300000;
	}
}
}


Compiler output:
a.cc:7:5: error: extended character 　 is not valid in an identifier
    7 |     　for(int i=0;i<300000;i=i+1){
      |     ^
a.cc:8:5: error: extended character 　 is not valid in an identifier
    8 |     　   cin>>x;
      |     ^
a.cc:9:5: error: extended character 　 is not valid in an identifier
    9 |     　   cin>>y;
      |     ^
a.cc: In function 'int main()':
a.cc:7:11: error: expected primary-expression before 'int'
    7 |     　for(int i=0;i<300000;i=i+1){
      |           ^~~
a.cc:7:19: error: 'i' was not declared in this scope
    7 |     　for(int i=0;i<300000;i=i+1){
      |                   ^
Language: C++

#include<iostream>

using namespace std;

int main(){
	int x, y;
    　for(int i=0;i<300000;i=i+1){
    　   cin>>x;
    　   cin>>y;
	if (x<y and x!=0 and y!=0){
		cout << x << " " << y << endl;
	}
	if(x>y and x!=0 and y!=0){
		cout << y << " " << x << endl;
	}
	else{
	    i=300000;
	}
}
}


Compiler output:
a.cc:7:5: error: extended character 　 is not valid in an identifier
    7 |     　for(int i=0;i<300000;i=i+1){
      |     ^
a.cc:8:5: error: extended character 　 is not valid in an identifier
    8 |     　   cin>>x;
      |     ^
a.cc:9:5: error: extended character 　 is not valid in an identifier
    9 |     　   cin>>y;
      |     ^
a.cc: In function 'int main()':
a.cc:7:11: error: expected primary-expression before 'int'
    7 |     　for(int i=0;i<300000;i=i+1){
      |           ^~~
a.cc:7:19: error: 'i' was not declared in this scope
    7 |     　for(int i=0;i<300000;i=i+1){
      |                   ^
Language: C++

#include<iostream>

using namespace std;

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


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

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


Compiler output:
a.cc:14:6: error: expected unqualified-id before 'return'
   14 |     }return 0;
      |      ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:21:26: error: expected ';' before '{' token
   21 |                 else(x>y)
      |                          ^
      |                          ;
   22 |                 {
      |                 ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:21:26: error: expected ';' before '{' token
   21 |                 else(x>y)
      |                          ^
      |                          ;
   22 |                 {
      |                 ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:21:26: error: expected ';' before '{' token
   21 |                 else(x>y)
      |                          ^
      |                          ;
   22 |                 {
      |                 ~
Language: C++

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

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #iinclude; did you mean #include?
    1 | #iinclude <bits/stdc++.>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:10:9: error: 'cin' was not declared in this scope
   10 |         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 | #iinclude <bits/stdc++.>
a.cc:16:13: error: 'cout' was not declared in this scope
   16 |             cout << x << " " << y <<endl;
      |             ^~~~
a.cc:16:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:37: error: 'endl' was not declared in this scope
   16 |             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 | #iinclude <bits/stdc++.>
a.cc:22:13: error: 'cout' was not declared in this scope
   22 |             cout << y << " " << x <<endl;
      |             ^~~~
a.cc:22:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:37: error: 'endl' was not declared in this scope
   22 |             cout << y << " " << x <<endl;
      |                                     ^~~~
a.cc:22:37: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:28:13: error: 'cout' was not declared in this scope
   28 |             cout << x << " " << y << endl;
      |             ^~~~
a.cc:28:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:28:38: error: 'endl' was not declared in this scope
   28 |             cout << x << " " << y << endl;
      |                                      ^~~~
a.cc:28:38: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #iinclude; did you mean #include?
    1 | #iinclude <bits/stdc++.>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:10:9: error: 'cin' was not declared in this scope
   10 |         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 | #iinclude <bits/stdc++.>
a.cc:16:13: error: 'cout' was not declared in this scope
   16 |             cout << x << " " << y <<endl;
      |             ^~~~
a.cc:16:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:37: error: 'endl' was not declared in this scope
   16 |             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 | #iinclude <bits/stdc++.>
a.cc:22:13: error: 'cout' was not declared in this scope
   22 |             cout << y << " " << x <<endl;
      |             ^~~~
a.cc:22:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:37: error: 'endl' was not declared in this scope
   22 |             cout << y << " " << x <<endl;
      |                                     ^~~~
a.cc:22:37: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:28:13: error: 'cout' was not declared in this scope
   28 |             cout << x << " " << y << endl;
      |             ^~~~
a.cc:28:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:28:38: error: 'endl' was not declared in this scope
   28 |             cout << x << " " << y << endl;
      |                                      ^~~~
a.cc:28:38: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #iinclude; did you mean #include?
    1 | #iinclude <bits/stdc++.>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:10:9: error: 'cin' was not declared in this scope
   10 |         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 | #iinclude <bits/stdc++.>
a.cc:18:13: error: 'cout' was not declared in this scope
   18 |             cout << x << " " << y <<endl;
      |             ^~~~
a.cc:18:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:37: error: 'endl' was not declared in this scope
   18 |             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 | #iinclude <bits/stdc++.>
a.cc:26:13: error: 'cout' was not declared in this scope
   26 |             cout << y << " " << x <<endl;
      |             ^~~~
a.cc:26:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:26:37: error: 'endl' was not declared in this scope
   26 |             cout << y << " " << x <<endl;
      |                                     ^~~~
a.cc:26:37: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:34:13: error: 'cout' was not declared in this scope
   34 |             cout << x << " " << y << endl;
      |             ^~~~
a.cc:34:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:34:38: error: 'endl' was not declared in this scope
   34 |             cout << x << " " << y << endl;
      |                                      ^~~~
a.cc:34:38: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #iinclude; did you mean #include?
    1 | #iinclude <bits/stdc++.h>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:10:9: error: 'cin' was not declared in this scope
   10 |         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 | #iinclude <bits/stdc++.h>
a.cc:17:13: error: 'cout' was not declared in this scope
   17 |             cout << x << " " << y <<endl;
      |             ^~~~
a.cc:17:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:37: 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 | #iinclude <bits/stdc++.h>
a.cc:24:13: error: 'cout' was not declared in this scope
   24 |             cout << y << " " << x <<endl;
      |             ^~~~
a.cc:24:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:24:37: error: 'endl' was not declared in this scope
   24 |             cout << y << " " << x <<endl;
      |                                     ^~~~
a.cc:24:37: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:31:13: error: 'cout' was not declared in this scope
   31 |             cout << x << " " << y << endl;
      |             ^~~~
a.cc:31:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:31:38: error: 'endl' was not declared in this scope
   31 |             cout << x << " " << y << endl;
      |                                      ^~~~
a.cc:31:38: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<stdio.h>
int main(void)
{
	int x,y,i;
	i=0
	while(1){
	scanf("%d %d", &x, &y);
	if(x==0&&y==0)
	{
	break;
	}
	if(i==3000)
	{
		break;
	}
	i++;
	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:12: error: expected ';' before 'while'
    5 |         i=0
      |            ^
      |            ;
    6 |         while(1){
      |         ~~~~~
a.cc:26:2: error: expected '}' at end of input
   26 | }
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

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

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #iinclude; did you mean #include?
    1 | #iinclude <bits/stdc++.h>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:10:9: error: 'cin' was not declared in this scope
   10 |         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 | #iinclude <bits/stdc++.h>
a.cc:17:13: error: 'cout' was not declared in this scope
   17 |             cout << x << " " << y << endl;
      |             ^~~~
a.cc:17:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:38: 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 | #iinclude <bits/stdc++.h>
a.cc:24:13: error: 'cout' was not declared in this scope
   24 |             cout << y << " " << x << endl;
      |             ^~~~
a.cc:24:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:24:38: error: 'endl' was not declared in this scope
   24 |             cout << y << " " << x << endl;
      |                                      ^~~~
a.cc:24:38: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:31:13: error: 'cout' was not declared in this scope
   31 |             cout << x << " " << y << endl;
      |             ^~~~
a.cc:31:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:31:38: error: 'endl' was not declared in this scope
   31 |             cout << x << " " << y << endl;
      |                                      ^~~~
a.cc:31:38: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<stdio.h>
int main(void)
{
	int x,y,i;
	i=0
	while(1){
	scanf("%d %d", &x, &y);
	if(x==0&&y==0)
	{
	break;
	}
	if(i==3000)
	{
		break;
	}
	i++;
	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:12: error: expected ';' before 'while'
    5 |         i=0
      |            ^
      |            ;
    6 |         while(1){
      |         ~~~~~
a.cc:26:2: error: expected '}' at end of input
   26 | }
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

#include<stdio.h>
int main(void)
{
	int x, y, i;
	i=0
	while(1){
	scanf("%d %d", &x, &y);
	if(x==0&&y==0)
	{
	break;
	}
	if(i==3000)
	{
		break;
	}
	i++;
	if(y<x)
	{
		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:5:12: error: expected ';' before 'while'
    5 |         i=0
      |            ^
      |            ;
    6 |         while(1){
      |         ~~~~~
a.cc:26:2: error: expected '}' at end of input
   26 | }
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

#include<stdio.h>
int main(void)
{
	int x, y, i;
	i=0
	while(1){
	scanf("%d %d", &x, &y);
	if(x==0&&y==0)
	{
	break;
	}
	if(i==3000)
	{
		break;
	}
	i++;
	if(y<x)
	{
		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:5:12: error: expected ';' before 'while'
    5 |         i=0
      |            ^
      |            ;
    6 |         while(1){
      |         ~~~~~
Language: C++

#include<stdio.h>
int main(void)
{
	int x, y, i;
	i=0
	while(1){
	scanf("%d %d", &x, &y);
	if(x==0&&y==0)
	{
	break;
	}
	else if(i==3000)
	{
		break;
	}
	i++;
	if(y<x)
	{
		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:5:12: error: expected ';' before 'while'
    5 |         i=0
      |            ^
      |            ;
    6 |         while(1){
      |         ~~~~~
Language: C++

#include<stdio.h>
int main(void)
{
	int x, y, i;
	i=0
	while(1)
	{
		scanf("%d %d", &x, &y);
		if(x==0&&y==0)
		{
		break;
		}
		else if(i==3000)
		{
		break;
		}
		i++;
		if(y<x)
		{
			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:5:12: error: expected ';' before 'while'
    5 |         i=0
      |            ^
      |            ;
    6 |         while(1)
      |         ~~~~~
Language: C++

#include<stdio.h>
int main(void)
{
	int x, y, i;
	i=0
	while(1)
	{
		scanf("%d %d", &x, &y);
		if(x==0&&y==0)
		{
		break;
		}
		else if(i==3000)
		{
		break;
		}
		i++;
		
		if(y<x)
		{
			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:5:12: error: expected ';' before 'while'
    5 |         i=0
      |            ^
      |            ;
    6 |         while(1)
      |         ~~~~~
Language: C++

#include <stdio.h>

int main(void)
{
	int x,y;
	
	for(;;)
	{
		
scanf("%d %d",&x,&y);

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


Compiler output:
a.cc: In function 'int main()':
a.cc:27:16: error: unable to find numeric literal operator 'operator""\U0000ff1b'
   27 |         return 0；
      |                ^~~
a.cc:27:19: error: expected ';' before '}' token
   27 |         return 0；
      |                   ^
      |                   ;
   28 | }
      | ~
Language: C++

#include <iostream>
using namespace std;

int main(){
    int a,b,i=1;
    cin>>a>>b;
    while (a!=0&&b!=0){
        if (a>b){
            cout <<a<<" "<<b<< endl;
        cin>>a>>b;
    }
}



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

#include <iostream>
using namespace std;

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



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

#include <iostream>
using namespace std;

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



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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'x' was not declared in this scope
    6 |     cin >> x >> y;
      |            ^
a.cc:6:17: error: 'y' was not declared in this scope
    6 |     cin >> x >> y;
      |                 ^
a.cc:7:9: error: 'x' was not declared in this scope
    7 |     if( x==0 && y==0 ){
      |         ^
a.cc:7:17: error: 'y' was not declared in this scope
    7 |     if( x==0 && y==0 ){
      |                 ^
a.cc:8:5: error: break statement not within loop or switch
    8 |     break;
      |     ^~~~~
a.cc:13:11: error: 'x' was not declared in this scope
   13 |     cout<<x<<" "<<y<<endl;
      |           ^
a.cc:13:19: error: 'y' was not declared in this scope
   13 |     cout<<x<<" "<<y<<endl;
      |                   ^
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'x' was not declared in this scope
    6 |     cin >> x >> y;
      |            ^
a.cc:6:17: error: 'y' was not declared in this scope
    6 |     cin >> x >> y;
      |                 ^
a.cc:7:9: error: 'x' was not declared in this scope
    7 |     if( x==0 && y==0 ){
      |         ^
a.cc:7:17: error: 'y' was not declared in this scope
    7 |     if( x==0 && y==0 ){
      |                 ^
a.cc:8:5: error: break statement not within loop or switch
    8 |     break;
      |     ^~~~~
a.cc:13:11: error: 'x' was not declared in this scope
   13 |     cout<<x<<" "<<y<<endl;
      |           ^
a.cc:13:19: error: 'y' was not declared in this scope
   13 |     cout<<x<<" "<<y<<endl;
      |                   ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int x,y;
    for(int i=1; i<=3000; i++){
        cin>>x>>y;
    if(x==0 && y==0 ){
        break;
    }
    else if(x < y){
        swap x,y;
    }
    cout<<x<<y<<endl;
    }
    
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: expected ';' before 'x'
   12 |         swap x,y;
      |             ^~
      |             ;
a.cc:12:17: error: statement cannot resolve address of overloaded function
   12 |         swap x,y;
      |                 ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int x,y;
    for(int i=1; i<=3000; i++){
        cin>>x>>y;
    if(x==0&&y==0){
        break;
    }
    else if(x < y){
        swap x,y;
    }
    cout<<x<<" "<<y<<endl;
    }
    
    
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: expected ';' before 'x'
   12 |         swap x,y;
      |             ^~
      |             ;
a.cc:12:17: error: statement cannot resolve address of overloaded function
   12 |         swap x,y;
      |                 ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int x,y;
    for(int i=1; i<=3000; i++){
        cin>>x>>y;
    if(x==0&&y==0){
        break;
    }
    else if(x < y){
        swap (x,y);
    cout<<x<<" "<<y<<endl;
    }
    
    
}



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

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int x,y;
    for(int i=1; i<=3000; i++){
        cin>>x>>y;
    }    
    if(x==0&&y==0){
        break;
    }
    else if(x < y){
        swap (x,y);
    cout<<x<<" "<<y<<endl;
    }
    
    
}



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

#include <iostream>
using namespace std;

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


Compiler output:
a.cc:6:1: error: extended character 　 is not valid in an identifier
    6 | 　　int x, y;
      | ^
a.cc:6:1: error: extended character 　 is not valid in an identifier
a.cc:7:1: error: extended character 　 is not valid in an identifier
    7 | 　　while(true) {
      | ^
a.cc:7:1: error: extended character 　 is not valid in an identifier
a.cc:8:1: error: extended character 　 is not valid in an identifier
    8 | 　　  cin >> x >> y;
      | ^
a.cc:8:1: error: extended character 　 is not valid in an identifier
a.cc:9:1: error: extended character 　 is not valid in an identifier
    9 | 　　  if(x == 0 && y == 0) {
      | ^
a.cc:9:1: error: extended character 　 is not valid in an identifier
a.cc:10:1: error: extended character 　 is not valid in an identifier
   10 | 　　    break;
      | ^
a.cc:10:1: error: extended character 　 is not valid in an identifier
a.cc:11:1: error: extended character 　 is not valid in an identifier
   11 | 　　  }
      | ^
a.cc:11:1: error: extended character 　 is not valid in an identifier
a.cc:12:1: error: extended character 　 is not valid in an identifier
   12 | 　　  if(x>y) {
      | ^
a.cc:12:1: error: extended character 　 is not valid in an identifier
a.cc:13:1: error: extended character 　 is not valid in an identifier
   13 | 　　    cout << y << " " << x << endl;
      | ^
a.cc:13:1: error: extended character 　 is not valid in an identifier
a.cc:14:1: error: extended character 　 is not valid in an identifier
   14 | 　　  }
      | ^
a.cc:14:1: error: extended character 　 is not valid in an identifier
a.cc:15:1: error: extended character 　 is not valid in an identifier
   15 | 　　  else {
      | ^
a.cc:15:1: error: extended character 　 is not valid in an identifier
a.cc:16:1: error: extended character 　 is not valid in an identifier
   16 | 　　    cout << x << " " << y << endl;
      | ^
a.cc:16:1: error: extended character 　 is not valid in an identifier
a.cc:17:1: error: extended character 　 is not valid in an identifier
   17 | 　　  }
      | ^
a.cc:17:1: error: extended character 　 is not valid in an identifier
a.cc:18:1: error: extended character 　 is not valid in an identifier
   18 | 　　}
      | ^
a.cc:18:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:6:1: error: '\U00003000\U00003000int' was not declared in this scope
    6 | 　　int x, y;
      | ^~~~~~~
a.cc:7:1: error: '\U00003000\U00003000while' was not declared in this scope
    7 | 　　while(true) {
      | ^~~~~~~~~
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc:16:9: error: expected unqualified-id before 'return'
   16 |         return 0;
      |         ^~~~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
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 <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: expected primary-expression before '<' token
   11 |     } else if (0 != x =< y != 0) {
      |                        ^
Language: C++

#include <iostream>
using namespace std;

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

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

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

int main() 
{
    while(cin >> x >> y, x || y) {
        cout << min(x,y) << " " << max(x,y);
    }
}

Compiler output:
a.cc:2:9: fatal error: algorythm: No such file or directory
    2 | #include<algorythm>
      |         ^~~~~~~~~~~
compilation terminated.
Language: C++

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

int main() 
{
    while(cin >> x >> y, x || y) {
        cout << min(x,y) << " " << max(x,y);
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'x' was not declared in this scope
    7 |     while(cin >> x >> y, x || y) {
      |                  ^
a.cc:7:23: error: 'y' was not declared in this scope
    7 |     while(cin >> x >> y, x || y) {
      |                       ^
Language: C++

#include <iostream>
using namespace std;

bool data_end();
void print_asc(int x, int y);

int main()
{   
    int x,y;
    
    while(cin >> x >> y && date_end(x,y)){
        print_asc(x,y);
    }   
    return 0;
}   
bool data_end(int x,int y)
{
    if ( x == 0 && y == 0 ) return true;
    return false;
}   
void print_asc(int x, int y)
{
    if( x >= y ) cout << x << ' ' << y << '\n';
    else cout << y << ' ' << x << '\n';
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:28: error: 'date_end' was not declared in this scope; did you mean 'data_end'?
   11 |     while(cin >> x >> y && date_end(x,y)){
      |                            ^~~~~~~~
      |                            data_end
Language: C++

#include <iostream>
using namespace std;

bool data_end();
void print_asc(int x, int y);

int main()
{   
    int x,y;
    
    while(cin >> x >> y && data_end(x,y)){
        print_asc(x,y);
    }   
    return 0;
}   
bool data_end(int x, int y)
{
    if ( x == 0 && y == 0 ) return true;
    return false;
}   
void print_asc(int x, int y)
{
    if( x >= y ) cout << x << ' ' << y << '\n';
    else cout << y << ' ' << x << '\n';
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:36: error: too many arguments to function 'bool data_end()'
   11 |     while(cin >> x >> y && data_end(x,y)){
      |                            ~~~~~~~~^~~~~
a.cc:4:6: note: declared here
    4 | bool data_end();
      |      ^~~~~~~~
Language: C++

#include <stdio.h>

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

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

#include<iostream>
using namespace std;
int main(){
  int x,y;   ;
  while(cin >>x>>y && !(x==0 && y==0)){
    if(x>y)cout<<x<<y<<endl;
    else 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:4: error: expected '}' at end of input
   10 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

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

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

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

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

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

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

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

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

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

#include <iostream>
using namesapce std;
int main(){
    int a,b;
    do{
        cin >> a >> b;
        if (a>b)
            cout >> b >> " " >> a >> endl;
        else
            cout >> a >> " " >> b >> endl;
    } while (a^2+b^2!=0)
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin >> a >> b;
      |         ^~~
      |         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:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |             cout >> b >> " " >> a >> 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:38: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |             cout >> b >> " " >> a >> 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:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |             cout >> a >> " " >> b >> 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:38: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |             cout >> a >> " " >> b >> endl;
      |                                      ^~~~
      |                                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:25: error: expected ';' before '}' token
   11 |     } while (a^2+b^2!=0)
      |                         ^
      |                         ;
   12 | }
      | ~
Language: C++

#include <iostream>
using namespace std;
int main(){
    int a,b;
    do{
        cin >> a >> b;
        if (a>b)
            cout << b << " " << a << endl;
        else
            cout << a << " " << b << endl;
    } while (a^2+b^2!=0)
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: expected ';' before '}' token
   11 |     } while (a^2+b^2!=0)
      |                         ^
      |                         ;
   12 | }
      | ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: lvalue required as left operand of assignment
   11 |     } while (a=0 || b=0);
      |                ~~^~~~