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

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



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

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

return 0;
}


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

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

return 0;
}


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

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

return 0;
}


Compiler output:
a.cc:4:1: error: extended character 　 is not valid in an identifier
    4 | 　　　int x,y;
      | ^
a.cc:4:1: error: extended character 　 is not valid in an identifier
a.cc:4:1: error: extended character 　 is not valid in an identifier
a.cc:5:1: error: extended character 　 is not valid in an identifier
    5 | 　　while(true){
      | ^
a.cc:5:1: error: extended character 　 is not valid in an identifier
a.cc:6:1: error: extended character 　 is not valid in an identifier
    6 | 　　　cin >>x>>y;
      | ^
a.cc:6:1: error: extended character 　 is not valid in an identifier
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 | 　　　if(x<y){
      | ^
a.cc:7:1: error: extended character 　 is not valid in an identifier
a.cc:7:1: error: extended character 　 is not valid in an identifier
a.cc:11:13: error: extended character 　 is not valid in an identifier
   11 | else{cout <<　y<<"　"<<　x<<endl;}
      |             ^
a.cc:11:24: error: extended character 　 is not valid in an identifier
   11 | else{cout <<　y<<"　"<<　x<<endl;}
      |                        ^
a.cc: In function 'int main()':
a.cc:4:1: error: '\U00003000\U00003000\U00003000int' was not declared in this scope
    4 | 　　　int x,y;
      | ^~~~~~~~~
a.cc:5:1: error: '\U00003000\U00003000while' was not declared in this scope
    5 | 　　while(true){
      | ^~~~~~~~~
Language: C++

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







return 0;
}


Compiler output:
a.cc:4:1: error: extended character 　 is not valid in an identifier
    4 | 　　　int x,y;
      | ^
a.cc:4:1: error: extended character 　 is not valid in an identifier
a.cc:4:1: error: extended character 　 is not valid in an identifier
a.cc:5:1: error: extended character 　 is not valid in an identifier
    5 | 　　while(true){
      | ^
a.cc:5:1: error: extended character 　 is not valid in an identifier
a.cc:6:1: error: extended character 　 is not valid in an identifier
    6 | 　　　cin >>x>>y;
      | ^
a.cc:6:1: error: extended character 　 is not valid in an identifier
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 | 　　　if(x<y){
      | ^
a.cc:7:1: error: extended character 　 is not valid in an identifier
a.cc:7:1: error: extended character 　 is not valid in an identifier
a.cc:11:13: error: extended character 　 is not valid in an identifier
   11 | else{cout <<　y<<"　"<<　x<<endl;}
      |             ^
a.cc:11:24: error: extended character 　 is not valid in an identifier
   11 | else{cout <<　y<<"　"<<　x<<endl;}
      |                        ^
a.cc: In function 'int main()':
a.cc:4:1: error: '\U00003000\U00003000\U00003000int' was not declared in this scope
    4 | 　　　int x,y;
      | ^~~~~~~~~
a.cc:5:1: error: '\U00003000\U00003000while' was not declared in this scope
    5 | 　　while(true){
      | ^~~~~~~~~
Language: C++


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

return 0;
}


Compiler output:
a.cc:5:1: error: extended character 　 is not valid in an identifier
    5 | 　　　int x,y;
      | ^
a.cc:5:1: error: extended character 　 is not valid in an identifier
a.cc:5:1: error: extended character 　 is not valid in an identifier
a.cc:6:1: error: extended character 　 is not valid in an identifier
    6 | 　　while(true){
      | ^
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 | 　　　cin >>x>>y;
      | ^
a.cc:7:1: error: extended character 　 is not valid in an identifier
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 | 　　　if(x<y){
      | ^
a.cc:8:1: error: extended character 　 is not valid in an identifier
a.cc:8:1: error: extended character 　 is not valid in an identifier
a.cc:12:13: error: extended character 　 is not valid in an identifier
   12 | else{cout <<　y<<"　"<<　x<<endl;}
      |             ^
a.cc:12:24: error: extended character 　 is not valid in an identifier
   12 | else{cout <<　y<<"　"<<　x<<endl;}
      |                        ^
a.cc: In function 'int main()':
a.cc:5:1: error: '\U00003000\U00003000\U00003000int' was not declared in this scope
    5 | 　　　int x,y;
      | ^~~~~~~~~
a.cc:6:1: error: '\U00003000\U00003000while' was not declared in this scope
    6 | 　　while(true){
      | ^~~~~~~~~
Language: C++


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

return 0;
}


Compiler output:
a.cc:5:1: error: extended character 　 is not valid in an identifier
    5 | 　　　int x,y;
      | ^
a.cc:5:1: error: extended character 　 is not valid in an identifier
a.cc:5:1: error: extended character 　 is not valid in an identifier
a.cc:6:1: error: extended character 　 is not valid in an identifier
    6 | 　　while(true){
      | ^
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 | 　　　cin >>x>>y;
      | ^
a.cc:7:1: error: extended character 　 is not valid in an identifier
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 | 　　　if(x<=y){
      | ^
a.cc:8:1: error: extended character 　 is not valid in an identifier
a.cc:8:1: error: extended character 　 is not valid in an identifier
a.cc:12:13: error: extended character 　 is not valid in an identifier
   12 | else{cout <<　y<<"　"<<　x<<endl;}
      |             ^
a.cc:12:24: error: extended character 　 is not valid in an identifier
   12 | else{cout <<　y<<"　"<<　x<<endl;}
      |                        ^
a.cc: In function 'int main()':
a.cc:5:1: error: '\U00003000\U00003000\U00003000int' was not declared in this scope
    5 | 　　　int x,y;
      | ^~~~~~~~~
a.cc:6:1: error: '\U00003000\U00003000while' was not declared in this scope
    6 | 　　while(true){
      | ^~~~~~~~~
Language: C++

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


Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:1: error: expected primary-expression before 'for'
    4 | for(int x,y,i=0;  ; i++){
      | ^~~
a.cc:4:1: error: expected '}' before 'for'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:4:21: error: 'i' does not name a type
    4 | for(int x,y,i=0;  ; i++){
      |                     ^
a.cc:10:1: error: expected unqualified-id before 'return'
   10 | return 0;
      | ^~~~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

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


Compiler output:
a.cc:16:19: error: stray '\' in program
   16 |    cout<<x<<" "<<y\n<<endl;
      |                   ^
a.cc: In function 'int main()':
a.cc:16:19: error: expected ';' before 'n'
   16 |    cout<<x<<" "<<y\n<<endl;
      |                   ^~
      |                   ;
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: expected initializer before 'int'
    5 |     int b
      |     ^~~
Language: C++

#include "stdafx.h"
#include<iostream>
using namespace std;

int main()
{
	const int N = 3000;
	int x[N], y[N];
	int cnt = 0;//xとyは値を代入する変数、cntはカウントする変数

	while (cnt < 3000 && cin >> x[cnt] >> y[cnt]) {
		if (!x[cnt] && !y[cnt])break;
		if (x[cnt] > y[cnt]) {
			int t = x[cnt];
			x[cnt] = y[cnt];
			y[cnt] = t;
		}
		cnt++;
	}

	for (int i = 0; i < cnt; i++) {
		cout << x[i] << " " << y[i] << endl;
	}
    return 0;
}



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

#include <stdio.h>
int main(void){
    
   int x,y;
    do{
        scanf("%d %d", &x,&y);
        
        if(x==0 && y==0){
            break;
        }
        
        if(x > y)
            tmp=b;
　　　　　　a=b;
            tmp=a;

        printf("%d %d\n", x,y);
    }while(x != 0 && y != 0);
        
    return 0;
}



Compiler output:
a.cc:14:1: error: extended character 　 is not valid in an identifier
   14 | 　　　　　　a=b;
      | ^
a.cc:14:1: error: extended character 　 is not valid in an identifier
a.cc:14:1: error: extended character 　 is not valid in an identifier
a.cc:14:1: error: extended character 　 is not valid in an identifier
a.cc:14:1: error: extended character 　 is not valid in an identifier
a.cc:14:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:13:13: error: 'tmp' was not declared in this scope
   13 |             tmp=b;
      |             ^~~
a.cc:13:17: error: 'b' was not declared in this scope
   13 |             tmp=b;
      |                 ^
a.cc:14:1: error: '\U00003000\U00003000\U00003000\U00003000\U00003000\U00003000a' was not declared in this scope
   14 | 　　　　　　a=b;
      | ^~~~~~~~~~~~~
a.cc:14:15: error: 'b' was not declared in this scope
   14 | 　　　　　　a=b;
      |               ^
a.cc:15:13: error: 'tmp' was not declared in this scope
   15 |             tmp=a;
      |             ^~~
a.cc:15:17: error: 'a' was not declared in this scope
   15 |             tmp=a;
      |                 ^
Language: C++

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



Compiler output:
a.cc:14:1: error: extended character 　 is not valid in an identifier
   14 | 　　　　　　y=x;
      | ^
a.cc:14:1: error: extended character 　 is not valid in an identifier
a.cc:14:1: error: extended character 　 is not valid in an identifier
a.cc:14:1: error: extended character 　 is not valid in an identifier
a.cc:14:1: error: extended character 　 is not valid in an identifier
a.cc:14:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:14:1: error: '\U00003000\U00003000\U00003000\U00003000\U00003000\U00003000y' was not declared in this scope
   14 | 　　　　　　y=x;
      | ^~~~~~~~~~~~~
Language: C++

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



Compiler output:
a.cc:14:1: error: extended character 　 is not valid in an identifier
   14 | 　　　　　　y=x;
      | ^
a.cc:14:1: error: extended character 　 is not valid in an identifier
a.cc:14:1: error: extended character 　 is not valid in an identifier
a.cc:14:1: error: extended character 　 is not valid in an identifier
a.cc:14:1: error: extended character 　 is not valid in an identifier
a.cc:14:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:14:1: error: '\U00003000\U00003000\U00003000\U00003000\U00003000\U00003000y' was not declared in this scope
   14 | 　　　　　　y=x;
      | ^~~~~~~~~~~~~
Language: C++

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

    }while(x != 0 && y != 0);
        
    return 0;
}



Compiler output:
a.cc:14:1: error: extended character 　 is not valid in an identifier
   14 | 　　　　　　y=x;
      | ^
a.cc:14:1: error: extended character 　 is not valid in an identifier
a.cc:14:1: error: extended character 　 is not valid in an identifier
a.cc:14:1: error: extended character 　 is not valid in an identifier
a.cc:14:1: error: extended character 　 is not valid in an identifier
a.cc:14:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:14:1: error: '\U00003000\U00003000\U00003000\U00003000\U00003000\U00003000y' was not declared in this scope
   14 | 　　　　　　y=x;
      | ^~~~~~~~~~~~~
Language: C++

#include <ioistream>
using namespace std;

int main(){
    int a, b;
    
    for(int i = 0 ; i < 3000 ; i++){
        cin >> a >> b;
        if(a < b){
            cout << a << " " << b << endl; 
        }
        else if(a > b)
        {
            cout << b << " " << a << endl;
        }
        else break;
    }
    
    return 0;
    
}


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

int main() {
    int a = 10, b = 5;
 
    swap(a, b);
 
    cout << a << endl;
    cout << b << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'swap' was not declared in this scope
    4 |     swap(a, b);
      |     ^~~~
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout << a << endl;
      |     ^~~~
a.cc:6:18: error: 'endl' was not declared in this scope
    6 |     cout << a << endl;
      |                  ^~~~
Language: C++

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


Compiler output:
a.cc:1:19: error: missing terminating > character
    1 | #include<iostream.
      |                   ^
a.cc:1:9: fatal error: iostream.: No such file or directory
    1 | #include<iostream.
      |         ^
compilation terminated.
Language: C++

#include<iostream>
using namespace std;
int main(){
for(int a,b; ; ;){
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: In function 'int main()':
a.cc:4:16: error: expected primary-expression before ';' token
    4 | for(int a,b; ; ;){
      |                ^
a.cc:4:15: error: expected ')' before ';' token
    4 | for(int a,b; ; ;){
      |    ~          ^~
      |               )
a.cc:4:17: error: expected primary-expression before ')' token
    4 | for(int a,b; ; ;){
      |                 ^
Language: C++

#include<iostream>
using namespace std;
int main(){
for(int a,b,i=0; ; i++;){
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: In function 'int main()':
a.cc:4:23: error: expected ')' before ';' token
    4 | for(int a,b,i=0; ; i++;){
      |    ~                  ^
      |                       )
a.cc:4:24: error: expected primary-expression before ')' token
    4 | for(int a,b,i=0; ; i++;){
      |                        ^
Language: C++

#include<iostream>
using namespace std;
int main(){
for(int a,b,i=0;  ; i++;){
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: In function 'int main()':
a.cc:4:24: error: expected ')' before ';' token
    4 | for(int a,b,i=0;  ; i++;){
      |    ~                   ^
      |                        )
a.cc:4:25: error: expected primary-expression before ')' token
    4 | for(int a,b,i=0;  ; i++;){
      |                         ^
Language: C++

#include<iostream>
using namespace std;
int main(){
for(int x,y,i=0;  ; i++;){
cin >> x >> y;
if(x==0 && 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:4:24: error: expected ')' before ';' token
    4 | for(int x,y,i=0;  ; i++;){
      |    ~                   ^
      |                        )
a.cc:4:25: error: expected primary-expression before ')' token
    4 | for(int x,y,i=0;  ; i++;){
      |                         ^
Language: C++

int main(int argc, const char * argv[]) {
    
    int x,y;
    
    while (1) {
        std::cin >> x >> y ;
        if (x==0 && y==0) break ;
        if (x > y) {
            int c = x ;
            x = y ;
            y = c ;
        }
        printf("%d %d\n", x, y) ;
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:6:14: error: 'cin' is not a member of 'std'
    6 |         std::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 | int main(int argc, const char * argv[]) {
a.cc:13:9: error: 'printf' was not declared in this scope
   13 |         printf("%d %d\n", x, y) ;
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(int argc, const char * argv[]) {
Language: C++

#include<iostream>
int main(){
    int a,b;
    while(cin>>a>>b){
        if(x>0||y>0)
        cout<<y<<" "<<x<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:11: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |     while(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:5:12: error: 'x' was not declared in this scope
    5 |         if(x>0||y>0)
      |            ^
a.cc:5:17: error: 'y' was not declared in this scope
    5 |         if(x>0||y>0)
      |                 ^
a.cc:6:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |         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:6:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |         cout<<y<<" "<<x<<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)
      |     ^~~~
Language: C++

#include<iostream>
int main(){
    int a,b;
    while(cin>>a>>b){
        if(a>0||b>0)
        cout<<b<<" "<<a<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:11: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |     while(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:6:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |         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:6:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |         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)
      |     ^~~~
Language: C++

#include<iostream>
int main(){
    int a,b;
    while(cin>>a>>b){
        if(a>0||b>0)
        cout <<b<<" "<<a<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:11: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |     while(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:6:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |         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:6:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |         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)
      |     ^~~~
Language: C++

#include<iostream>
int main(){
    int a,b;
    while(cin>>a>>b){
        if(a>0||b>0)
        {cout<<b<<" "<<a<<endl;}
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:11: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |     while(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:6:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |         {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:6:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |         {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)
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    for(int i=0;i<3000;i++)
    {
        cin>>a>>b;
        if(a+b>0)
        cout<<b<<" "<<a;
    }
    return 0;
}


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

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


Compiler output:
a.cc:1:18: warning: extra tokens at end of #include directive
    1 | #include<stdio.h><font></font>
      |                  ^~~~~~
a.cc:2:11: error: expected initializer before '<' token
    2 | int main()<font></font>
      |           ^
a.cc:20:2: error: expected unqualified-id before '<' token
   20 | }<font></font>
      |  ^
Language: C++

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


Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include <iostream><font></font>
      |                    ^~~~~~
a.cc:2:21: error: expected unqualified-id before '<' token
    2 | using namespace std;<font></font>
      |                     ^
a.cc:14:2: error: expected unqualified-id before '<' token
   14 | }<font></font>
      |  ^
Language: C++

#include <iostream><font></font>
 <font></font>
int main(){<font></font>
    int x, y;<font></font>
    while (std::cin >> x >> y)<font></font>
        if(x>0 || y>0) {<font></font>
            if (x > y) std::swap(x, y);<font></font>
            std::cout << x << " " << y << std::endl;<font></font>
        }<font></font>
}<font></font>


Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include <iostream><font></font>
      |                    ^~~~~~
a.cc:2:2: error: expected unqualified-id before '<' token
    2 |  <font></font>
      |  ^
a.cc:10:2: error: expected unqualified-id before '<' token
   10 | }<font></font>
      |  ^
Language: C++

#include<iostream>
#include<algorithm>
#define REP(i,n) for(int i=0;i<n;i++)
using namespace std;

int main() {
    int R[3000][2];
    int cnt = 0;

    REP(i, 10000) {
        cin >> R[i][0] >> R[i][1];
        if (R[i][0] == 0 && R[i][1] == 0) break;
        cnt += 1;
    }

    REP(i, cnt) {
       
        cout << R[i][1] << " " << R[i][0] << endl;
        
    }
    
    return 0;

}
}



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

#include<iostream>
using namespace std;
void main(){
 int a[3000], b[3000];
int final;
for(int i=0;i<3000;i++){
cin >> a[i] >> b[i];
if(a[i] == 0 && b[i]== 0){
final = i;
 break;
}

}
for(int i=0;i<final;i++){
if(a[i]<b[i])
cout<< a[i] << " " << b[i] << endl;

}

}



Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(){
      | ^~~~
Language: C++

#include <iostream>
#include<vector>
#include<cmath>
#include<algorithm>
using namespace std;
#define loop(i,n) for(int i = 0; i < (n); i++)
#define loops(i,f,n) for(int i = (f); i < (n); i++)
#define INF 1e9
int main()
{
    int a,b;
    while(cin>>a>>b)
    {
        if(!(a+b)
        {
            cout<<min(a,b)<<" "<<max(a,b)<<endl;
        }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:18: error: expected ')' before '{' token
   14 |         if(!(a+b)
      |           ~      ^
      |                  )
   15 |         {
      |         ~         
a.cc:18:5: error: expected primary-expression before '}' token
   18 |     }
      |     ^
Language: C++

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

int main() {
  int n, m;
  while (true) {
    cin >> n >> m;
    if (n <= m) {
      cout << m << " " << n;
    }else if (m < n) {
      cout << n << " " << m;
    }else{
      break;
  }
}


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

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

int main() {
  int n, m;
  while (true) {
    cin >> n >> m;
    if (n <= m) {
      cout << m << " " << n;
    }else if (m < n) {
      cout << n << " " << m;
    }else if (n == 0 && m =- 0){
      break;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:22: error: lvalue required as left operand of assignment
   12 |     }else if (n == 0 && m =- 0){
      |               ~~~~~~~^~~~
Language: C++

#include<iostram>
using namespace std;

int main(){

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

		if(x > y){
			t = x;
			x = y;
			y = t;
		}

		cout << x << " " << y << endl;

		return 0;
	}
}


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

#include<iostream>
using namespace std;

int main(){

	for(int x, y, i = 0; ; i++){
		cin >> x >> y;
		if(x == 0 && y == 0) break;

		if(x > y){
			t = x;
			x = y;
			y = t;
		}

		cout << x << " " << y;

		return 0;
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: 't' was not declared in this scope
   11 |                         t = x;
      |                         ^
Language: C++

#include<iostream>
using namespace std;

int main(){
	int a, b;

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

		if(a < b){
			cout << a << " " << b << endl;
		}else{
			cout << b << " " << a << 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<iostream>
using namespace std;
int main(){
int x,y;
cin>>x>>y;
while(x==0&&y==0){
if(a>b)cout<<b<<" "<<a<<endl;
else cout<<a<<" "<<b<<endl;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: 'a' was not declared in this scope
    7 | if(a>b)cout<<b<<" "<<a<<endl;
      |    ^
a.cc:7:6: error: 'b' was not declared in this scope
    7 | if(a>b)cout<<b<<" "<<a<<endl;
      |      ^
a.cc:9:2: error: expected '}' at end of input
    9 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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




Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: 'a' was not declared in this scope
    7 | if(a>b)cout<<b<<" "<<a<<endl;
      |    ^
a.cc:7:6: error: 'b' was not declared in this scope
    7 | if(a>b)cout<<b<<" "<<a<<endl;
      |      ^
Language: C++

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



Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incllude; did you mean #include?
    1 | #incllude<iostream>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin>>a>>b;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incllude<iostream>
a.cc:7:24: error: 'cout' was not declared in this scope
    7 |                 if(a>b)cout>>b>>" ">>a>>endl;
      |                        ^~~~
a.cc:7:24: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:41: error: 'endl' was not declared in this scope
    7 |                 if(a>b)cout>>b>>" ">>a>>endl;
      |                                         ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incllude<iostream>
a.cc:8:22: error: 'cout' was not declared in this scope
    8 |                 else cout>>a" ">>b>>endl;
      |                      ^~~~
a.cc:8:22: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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



Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incllude; did you mean #include?
    1 | #incllude<iostream>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin>>a>>b;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incllude<iostream>
a.cc:7:24: error: 'cout' was not declared in this scope
    7 |                 if(a>b)cout>>b>>" ">>a>>endl;
      |                        ^~~~
a.cc:7:24: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:41: error: 'endl' was not declared in this scope
    7 |                 if(a>b)cout>>b>>" ">>a>>endl;
      |                                         ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incllude<iostream>
a.cc:8:22: error: 'cout' was not declared in this scope
    8 |                 else cout>>a>>" ">>b>>endl;
      |                      ^~~~
a.cc:8:22: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:39: error: 'endl' was not declared in this scope
    8 |                 else cout>>a>>" ">>b>>endl;
      |                                       ^~~~
a.cc:8:39: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

int main(void) 
{
    int x, y;

    scanf("%d%d", &x, &y);
    
    while ((x != 0) && (y != 0))
    {
        if (x >= y)
        {
            printf("%d %d\n", x, y);
        }
        else
        {
            printf("%d %d\n", y, x);
        }
        scanf("%d%d", &x, &y);
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'scanf' was not declared in this scope
    5 |     scanf("%d%d", &x, &y);
      |     ^~~~~
a.cc:11:13: error: 'printf' was not declared in this scope
   11 |             printf("%d %d\n", x, y);
      |             ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void)
a.cc:15:13: error: 'printf' was not declared in this scope
   15 |             printf("%d %d\n", y, x);
      |             ^~~~~~
a.cc:15:13: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include<iostream>
#include<cmath>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected ';' before '!' token
    9 |     for(x! == 0 || y! == 0){
      |          ^
      |          ;
a.cc:19:5: error: expected primary-expression before 'return'
   19 |     return 0;
      |     ^~~~~~
a.cc:18:2: error: expected ';' before 'return'
   18 | }
      |  ^
      |  ;
   19 |     return 0;
      |     ~~~~~~
a.cc:19:5: error: expected primary-expression before 'return'
   19 |     return 0;
      |     ^~~~~~
a.cc:18:2: error: expected ')' before 'return'
   18 | }
      |  ^
      |  )
   19 |     return 0;
      |     ~~~~~~
a.cc:9:8: note: to match this '('
    9 |     for(x! == 0 || y! == 0){
      |        ^
Language: C++

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

int main(){
	int a[3];
	while(cin>>a[0]>>a[1] ){
		if(!n && !m)break;
		else sort(a,a+2);
		cout<< a[0] << " "<<a[1]<<endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: 'n' was not declared in this scope
    9 |                 if(!n && !m)break;
      |                     ^
a.cc:9:27: error: 'm' was not declared in this scope
    9 |                 if(!n && !m)break;
      |                           ^
Language: C++

#include<iostream>
using namespace std;

int x;
int y;
int z;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:38: error: expected ';' before 'endl'
   18 |                 cout << x << " " << y endl;
      |                                      ^~~~~
      |                                      ;
Language: C++

#include<iostream>
using namespace std;

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

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

#include<iostream>
using namespace std;

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

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

#include<iostream>
using namespace std;

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

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

#include<iostream>
using namespace std;

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

  return 0;
}

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

#include <iostream>
using namespace std;

int main(){
    int x;
    while( cin >> x >> y, 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:24: error: 'y' was not declared in this scope
    6 |     while( cin >> x >> y, x && y ){
      |                        ^
Language: C++

#include<iostream>
int main(){
int x,y;
while(std::cin>>x>>y,x&&y){
std::cout<<(x<y)?x:y<<" "<<(x<y)?y:x<<std::endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:21: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator<<'
    5 | std::cout<<(x<y)?x:y<<" "<<(x<y)?y:x<<std::endl;
      |                    ~^~~~~
      |                    |  |
      |                    |  const char [2]
      |                    int
a.cc:5:37: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    5 | std::cout<<(x<y)?x:y<<" "<<(x<y)?y:x<<std::endl;
      |                                    ~^~~~~~~~~~~
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
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 && y == 0) 
   break;
   

 if(x > y){
    cout << y <<" "<< x;
 #include <iostream>
using namespace std;

int main(){


  int x,y;



  while(1){

   
 
    cin >> x >> y;


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

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

 } if(x < y) {
    cout << x <<" "<< y;


 }


  } 
 

  return 0;

  
}

 } if(x < y) {
    cout << x <<" "<< y;


 }


  } 
 

  return 0;

  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   27 | int main(){
      |         ^~
a.cc:27:9: note: remove parentheses to default-initialize a variable
   27 | int main(){
      |         ^~
      |         --
a.cc:27:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:27:11: error: a function-definition is not allowed here before '{' token
   27 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;

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

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


  if(x < y){
    cout << x << " " << y <<"\n";
  }
  else{ 
    cout << y << " " << x <<"\n";
  }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected ';' before ')' token
    7 |   for(1){
      |        ^
      |        ;
a.cc:19:1: error: expected primary-expression before '}' token
   19 | }
      | ^
a.cc:18:4: error: expected ';' before '}' token
   18 |   }
      |    ^
      |    ;
   19 | }
      | ~   
a.cc:19:1: error: expected primary-expression before '}' token
   19 | }
      | ^
a.cc:18:4: error: expected ')' before '}' token
   18 |   }
      |    ^
      |    )
   19 | }
      | ~   
a.cc:7:6: note: to match this '('
    7 |   for(1){
      |      ^
a.cc:19:1: error: expected primary-expression before '}' token
   19 | }
      | ^
Language: C++

#include <iostream>

using namespace std;

int main(){

int x,y;

cin >> x >> y ;

if((x!=0)&&(y!=0)){

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

}else
break;

return;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:1: error: break statement not within loop or switch
   20 | break;
      | ^~~~~
a.cc:22:1: error: return-statement with no value, in function returning 'int' [-fpermissive]
   22 | return;
      | ^~~~~~
Language: C++

#include <iostream>

using namespace std;

int main(){

int x,y;

cin >> x >> y ;

if((x!=0)&&(y!=0)){

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

}else
break;

return 0;

}

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

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

#include<stdio.h>
  
int main(void)
{  int x , y;
    while( !( x == 0 && y == 0) ){
    scanf("%d %d", &x, &y);
    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:13:2: error: expected '}' at end of input
   13 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {  int x , y;
      | ^
Language: Java

class Main
  str = gets.split(" ").map(&:to_i)
  count = 0
  str[0]..str[0].each do |n|
    count += 1 if str[2]%n == 0
  end
  puts count
end


Compiler output:
Main.java:1: error: '{' expected
class Main
          ^
Main.java:4: error: illegal '.'
  str[0]..str[0].each do |n|
         ^
2 errors
Language: Java

import java.util.Scanner;

public class Divisors {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int sum = 0;
		for (int x = a; x <= b; x++) {
			if (c % x == 0) {
				sum++;
			}
		}
		System.out.println(sum);
	}
}


Compiler output:
Main.java:3: error: class Divisors is public, should be declared in a file named Divisors.java
public class Divisors {
       ^
1 error
Language: Java

import java.util.Scanner;

public class Aim {

	public static void main(String[] args) {
		
		Scanner stdIn = new Scanner(System.in);

		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		int c = stdIn.nextInt();
		
		int count = 0;
		for (int i = a; i <= b; i++) {
			if (c % i == 0) count++;
		}
		System.out.println(count);
	}
}



Compiler output:
Main.java:3: error: class Aim is public, should be declared in a file named Aim.java
public class Aim {
       ^
1 error