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

#include<bits/stdc++.h>

using namespace std;

int main() {
    int x,y,i=0;
    int result[6000];

    while(true){
      scanf("%d %d", &x,&y);
      if(x==0||y==0){break;
      }else if(x < y){
        result[i] = x;
        result[i+1] = y;
	i += 2;
      }else{
        result[i] = y;
        result[i+1] = x;
        i += 2;
      }
    }

    for(int j=0; j<i; j+=2){
        printf("%d %d",result[j] ,result[j+1]);
        if(j+2<i){printf("\n");}
    }
    return 0;
}
std1dc16:itp1 s1260250[92]$ ./run.sh 
0 0
\n*******SOURCE CODE*******\n
#include<bits/stdc++.h>

using namespace std;

int main() {
    int x,y,i=0;
    int result[6000];

    while(true){
      scanf("%d %d", &x,&y);
      if(x==0&&y==0){break;
      }else if(x < y){
        result[i] = x;
        result[i+1] = y;
	i += 2;
      }else{
        result[i] = y;
        result[i+1] = x;
        i += 2;
      }
    }

    for(int j=0; j<i; j+=2){
        printf("%d %d\n",result[j] ,result[j+1]);
        //if(j+2<i){printf("\n");}
    }
    return 0;
}



Compiler output:
a.cc:31:1: error: stray '\' in program
   31 | \n*******SOURCE CODE*******\n
      | ^
a.cc:31:28: error: stray '\' in program
   31 | \n*******SOURCE CODE*******\n
      |                            ^
a.cc:29:9: error: found ':' in nested-name-specifier, expected '::'
   29 | std1dc16:itp1 s1260250[92]$ ./run.sh
      |         ^
      |         ::
a.cc:29:1: error: 'std1dc16' does not name a type
   29 | std1dc16:itp1 s1260250[92]$ ./run.sh
      | ^~~~~~~~
a.cc:36:5: error: redefinition of 'int main()'
   36 | int main() {
      |     ^~~~
a.cc:5:5: note: 'int main()' previously defined here
    5 | int main() {
      |     ^~~~
Language: C++

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

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


Compiler output:
a.cc:4:5: error: expected unqualified-id before ')' token
    4 | int(){
      |     ^
Language: C++

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


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

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





Compiler output:
a.cc:2:1: error: 'usimg' does not name a type
    2 | usimg namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:8:4: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |    cin>>x>>y;
      |    ^~~
      |    std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:11:14: error: 'swap' was not declared in this scope
   11 |    if(x > y) swap(x,y)
      |              ^~~~
a.cc:11:14: note: suggested alternatives:
In file included from /usr/include/c++/14/regex:68,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181:
/usr/include/c++/14/bits/regex.h:2230:5: note:   'std::__cxx11::swap'
 2230 |     swap(match_results<_Bi_iter, _Alloc>& __lhs,
      |     ^~~~
In file included from /usr/include/c++/14/bits/stl_pair.h:61,
                 from /usr/include/c++/14/bits/stl_algobase.h:64,
                 from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
  226 |     swap(_Tp& __a, _Tp& __b)
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
In file included from /usr/include/c++/14/exception:166,
                 from /usr/include/c++/14/stdexcept:38,
                 from /usr/include/c++/14/system_error:43,
                 from /usr/include/c++/14/bits/ios_base.h:46,
                 from /usr/include/c++/14/streambuf:43,
                 from /usr/include/c++/14/bits/streambuf_iterator.h:35,
                 from /usr/include/c++/14/iterator:66,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54:
/usr/include/c++/14/bits/exception_ptr.h:229:5: note:   'std::__exception_ptr::swap'
  229 |     swap(exception_ptr& __lhs, exception_ptr& __rhs)
      |     ^~~~
In file included from /usr/include/c++/14/filesystem:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200:
/usr/include/c++/14/bits/fs_path.h:736:15: note:   'std::filesystem::__cxx11::swap'
  736 |   inline void swap(path& __lhs, path& __rhs) noexcept { __lhs.swap(__rhs); }
      |               ^~~~
Language: C++

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


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

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





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

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


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

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





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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: 'else' without a previous 'if'
   10 | else cout<<a<<" "<<b<<endl;
      | ^~~~
a.cc:11:9: error: expected ';' before '}' token
   11 | return 0
      |         ^
      |         ;
   12 | }
      | ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected ';' before '}' token
   11 | return 0
      |         ^
      |         ;
   12 | }
      | ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected ';' before '}' token
   11 | return 0
      |         ^
      |         ;
   12 | }
      | ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected ';' before '}' token
   11 | return 0
      |         ^
      |         ;
   12 | }
      | ~
Language: C++

#include<iostream>
using namespace std;
int main(){
int a,b;
while(1){
cin>>a>>b;
if(b<a)cout<<b<<" "<<a<<endl;

if(a==0&&b==0)break;
}
else cout<<a<<" "<<b<<endl;
return 0
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:1: error: 'else' without a previous 'if'
   11 | else cout<<a<<" "<<b<<endl;
      | ^~~~
a.cc:12:9: error: expected ';' before '}' token
   12 | return 0
      |         ^
      |         ;
   13 | }
      | ~
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:11:9: error: expected ';' before '}' token
   11 | return 0
      |         ^
      |         ;
   12 | }
      | ~
Language: C++

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



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

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

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

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: 'a' was not declared in this scope
   11 |         if(a<b){
      |            ^
a.cc:11:14: error: 'b' was not declared in this scope
   11 |         if(a<b){
      |              ^
a.cc:12:12: error: 'n' was not declared in this scope
   12 |            n=a;
      |            ^
a.cc:16:15: error: 'a' was not declared in this scope
   16 |         cout<<a<<" "<<b<<endl;
      |               ^
a.cc:16:23: error: 'b' was not declared in this scope
   16 |         cout<<a<<" "<<b<<endl;
      |                       ^
a.cc: At global scope:
a.cc:18:6: error: expected unqualified-id before 'return'
   18 |      return 0;
      |      ^~~~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: 'x' was not declared in this scope
   11 |         if(x<y){
      |            ^
a.cc:11:14: error: 'y' was not declared in this scope
   11 |         if(x<y){
      |              ^
a.cc:12:12: error: 'n' was not declared in this scope
   12 |            n=x;
      |            ^
a.cc:16:15: error: 'x' was not declared in this scope
   16 |         cout<<x<<" "<y<<endl;
      |               ^
a.cc:16:22: error: 'y' was not declared in this scope
   16 |         cout<<x<<" "<y<<endl;
      |                      ^
a.cc: At global scope:
a.cc:18:6: error: expected unqualified-id before 'return'
   18 |      return 0;
      |      ^~~~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: 'x' was not declared in this scope
   11 |         if(x>y){
      |            ^
a.cc:11:14: error: 'y' was not declared in this scope
   11 |         if(x>y){
      |              ^
a.cc:12:12: error: 'n' was not declared in this scope
   12 |            n=x;
      |            ^
a.cc:16:15: error: 'x' was not declared in this scope
   16 |         cout<<x<<" "<y<<endl;
      |               ^
a.cc:16:22: error: 'y' was not declared in this scope
   16 |         cout<<x<<" "<y<<endl;
      |                      ^
a.cc: At global scope:
a.cc:18:6: error: expected unqualified-id before 'return'
   18 |      return 0;
      |      ^~~~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:23: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   16 |         cout<<x<<" "<y<<endl;
      |                      ~^~~~~~
a.cc: At global scope:
a.cc:18:6: error: expected unqualified-id before 'return'
   18 |      return 0;
      |      ^~~~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:23: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   16 |         cout<<x<<" "<y<<endl;
      |                      ~^~~~~~
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:23: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   14 |         cout<<x<<" "<y<<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){
            swap(x,y);
        }
        cout<<x<<" "<y<<endl;
     }
     return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:23: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   14 |         cout<<x<<" "<y<<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){
            swap(x,y);
        }
        cout<<x<<" "<y<<endl;
     }
     return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:23: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   14 |         cout<<x<<" "<y<<endl;
      |                      ~^~~~~~
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){
            swap(x,y);
        }
        cout<<x<<" "<y<<endl;
     }
     return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:23: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   14 |         cout<<x<<" "<y<<endl;
      |                      ~^~~~~~
Language: C++

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



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

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: expected ';' before '}' token
   13 |     return 0
      |             ^
      |             ;
   14 |     }
      |     ~
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: expected ';' before '}' token
   12 |     return 0
      |             ^
      |             ;
   13 |     }
      |     ~
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: In function 'int main()':
a.cc:13:13: error: expected ';' before '}' token
   13 |     return 0
      |             ^
      |             ;
   14 |     }
      |     ~
Language: C++

#include "stdafx.h"


#include<iostream>
using namespace std;
int main(){
	int x,y;
	cin >> x >> y;
	cout << x << " " << y << endl;

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

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


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

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:29: error: statement cannot resolve address of overloaded function
   10 |                         endl;<< return 0;
      |                             ^
a.cc:10:30: error: expected primary-expression before '<<' token
   10 |                         endl;<< return 0;
      |                              ^~
a.cc:10:33: error: expected primary-expression before 'return'
   10 |                         endl;<< return 0;
      |                                 ^~~~~~
Language: C++

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

	int x,y,i;

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

		if(x>y)
			swap(x,y);

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

	}

	


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:48: error: break statement not within loop or switch
    8 |                         if (x == 0 && y == 0){ break; }
      |                                                ^~~~~
a.cc:9:29: error: statement cannot resolve address of overloaded function
    9 |                         endl;<< return
      |                             ^
a.cc:9:30: error: expected primary-expression before '<<' token
    9 |                         endl;<< return
      |                              ^~
a.cc:9:33: error: expected primary-expression before 'return'
    9 |                         endl;<< return
      |                                 ^~~~~~
a.cc:9:39: error: expected '}' at end of input
    9 |                         endl;<< return
      |                                       ^
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;
	if (y > x){ cout << x << " " << y << endl; }
	if (x > y){ cout << y << " " << x << endl; }
	if (x == 0 && y == 0)
	{endl; << return
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: statement cannot resolve address of overloaded function
    9 |         {endl; << return
      |              ^
a.cc:9:16: error: expected primary-expression before '<<' token
    9 |         {endl; << return
      |                ^~
a.cc:9:19: error: expected primary-expression before 'return'
    9 |         {endl; << return
      |                   ^~~~~~
a.cc:10:2: 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, i;
	for (i = 0; i<4000; i++){
		cin >> x >> y;
		if (x == 0 && y == 0){ break; }
		if (y >= x){ cout << x << " " << y << endl; }
		else (x > y){ cout << y << " " << x << endl; }

	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:29: error: expected ';' before '{' token
    9 |                 else (x > y){ cout << y << " " << x << endl; }
      |                             ^
      |                             ;
Language: C++

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


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

import java.util.*;
class Main{
public static void main(String[] args){

Scanner sc = new Scanner(System.in);

while(1){
 int a = sc.nextInt();
 int b = sc.nextInt();

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

if(x<=y){
System.out.println(x+" "+y);
}else{
System.out.println(y+" "+x);
}

}

}

}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:7: error: expected ':' before 'static'
    3 | public static void main(String[] args){
      |       ^~~~~~~
      |       :
a.cc:3:25: error: 'String' has not been declared
    3 | public static void main(String[] args){
      |                         ^~~~~~
a.cc:3:34: error: expected ',' or '...' before 'args'
    3 | public static void main(String[] args){
      |                                  ^~~~
a.cc:23:2: error: expected ';' after class definition
   23 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:1: error: 'Scanner' was not declared in this scope
    5 | Scanner sc = new Scanner(System.in);
      | ^~~~~~~
a.cc:8:10: error: 'sc' was not declared in this scope
    8 |  int a = sc.nextInt();
      |          ^~
a.cc:11:4: error: 'x' was not declared in this scope
   11 | if(x==0 && y==0)break;
      |    ^
a.cc:11:12: error: 'y' was not declared in this scope
   11 | if(x==0 && y==0)break;
      |            ^
a.cc:13:4: error: 'x' was not declared in this scope
   13 | if(x<=y){
      |    ^
a.cc:13:7: error: 'y' was not declared in this scope
   13 | if(x<=y){
      |       ^
a.cc:14:1: error: 'System' was not declared in this scope
   14 | System.out.println(x+" "+y);
      | ^~~~~~
a.cc:16:1: error: 'System' was not declared in this scope
   16 | System.out.println(y+" "+x);
      | ^~~~~~
Language: C++

import java.util.Scanner;
class Main{
public static void main(String[] args){

Scanner sc = new Scanner(System.in);

while(1){
 int a = sc.nextInt();
 int b = sc.nextInt();

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

if(x<=y){
System.out.println(x+" "+y);
}else{
System.out.println(y+" "+x);
}

}

}

}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:7: error: expected ':' before 'static'
    3 | public static void main(String[] args){
      |       ^~~~~~~
      |       :
a.cc:3:25: error: 'String' has not been declared
    3 | public static void main(String[] args){
      |                         ^~~~~~
a.cc:3:34: error: expected ',' or '...' before 'args'
    3 | public static void main(String[] args){
      |                                  ^~~~
a.cc:23:2: error: expected ';' after class definition
   23 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:1: error: 'Scanner' was not declared in this scope
    5 | Scanner sc = new Scanner(System.in);
      | ^~~~~~~
a.cc:8:10: error: 'sc' was not declared in this scope
    8 |  int a = sc.nextInt();
      |          ^~
a.cc:11:4: error: 'x' was not declared in this scope
   11 | if(x==0 && y==0)break;
      |    ^
a.cc:11:12: error: 'y' was not declared in this scope
   11 | if(x==0 && y==0)break;
      |            ^
a.cc:13:4: error: 'x' was not declared in this scope
   13 | if(x<=y){
      |    ^
a.cc:13:7: error: 'y' was not declared in this scope
   13 | if(x<=y){
      |       ^
a.cc:14:1: error: 'System' was not declared in this scope
   14 | System.out.println(x+" "+y);
      | ^~~~~~
a.cc:16:1: error: 'System' was not declared in this scope
   16 | System.out.println(y+" "+x);
      | ^~~~~~
Language: C++

import java.util.Scanner;
class Main{
public static void main(String[] args){

Scanner sc = new Scanner(System.in);

while(1){
 int a = sc.nextInt();
 int b = sc.nextInt();

if(x==0 && y==0){
break;
}else if(x<=y){
System.out.println(x+" "+y);
}else{
System.out.println(y+" "+x);
}

}

}

}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:7: error: expected ':' before 'static'
    3 | public static void main(String[] args){
      |       ^~~~~~~
      |       :
a.cc:3:25: error: 'String' has not been declared
    3 | public static void main(String[] args){
      |                         ^~~~~~
a.cc:3:34: error: expected ',' or '...' before 'args'
    3 | public static void main(String[] args){
      |                                  ^~~~
a.cc:23:2: error: expected ';' after class definition
   23 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:1: error: 'Scanner' was not declared in this scope
    5 | Scanner sc = new Scanner(System.in);
      | ^~~~~~~
a.cc:8:10: error: 'sc' was not declared in this scope
    8 |  int a = sc.nextInt();
      |          ^~
a.cc:11:4: error: 'x' was not declared in this scope
   11 | if(x==0 && y==0){
      |    ^
a.cc:11:12: error: 'y' was not declared in this scope
   11 | if(x==0 && y==0){
      |            ^
a.cc:14:1: error: 'System' was not declared in this scope
   14 | System.out.println(x+" "+y);
      | ^~~~~~
a.cc:16:1: error: 'System' was not declared in this scope
   16 | System.out.println(y+" "+x);
      | ^~~~~~
Language: C++

import java.util.Scanner;
class Main{
public static void main(String[] args){

Scanner sc = new Scanner(System.in);

while(1){
 int x = sc.nextInt();
 int y = sc.nextInt();

if(x==0 && y==0){
break;
}else if(x<=y){
System.out.println(x+" "+y);
}else{
System.out.println(y+" "+x);
}

}

}

}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:7: error: expected ':' before 'static'
    3 | public static void main(String[] args){
      |       ^~~~~~~
      |       :
a.cc:3:25: error: 'String' has not been declared
    3 | public static void main(String[] args){
      |                         ^~~~~~
a.cc:3:34: error: expected ',' or '...' before 'args'
    3 | public static void main(String[] args){
      |                                  ^~~~
a.cc:23:2: error: expected ';' after class definition
   23 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:1: error: 'Scanner' was not declared in this scope
    5 | Scanner sc = new Scanner(System.in);
      | ^~~~~~~
a.cc:8:10: error: 'sc' was not declared in this scope
    8 |  int x = sc.nextInt();
      |          ^~
a.cc:14:1: error: 'System' was not declared in this scope
   14 | System.out.println(x+" "+y);
      | ^~~~~~
a.cc:16:1: error: 'System' was not declared in this scope
   16 | System.out.println(y+" "+x);
      | ^~~~~~
Language: C++

import java.util.Scanner;
class Main{
public static void main(String[] args){

Scanner sc = new Scanner(System.in);

while(true){
 int x = sc.nextInt();
 int y = sc.nextInt();

if(x==0 && y==0){
break;
}else if(x<=y){
System.out.println(x+" "+y);
}else{
System.out.println(y+" "+x);
}

}

}

}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:7: error: expected ':' before 'static'
    3 | public static void main(String[] args){
      |       ^~~~~~~
      |       :
a.cc:3:25: error: 'String' has not been declared
    3 | public static void main(String[] args){
      |                         ^~~~~~
a.cc:3:34: error: expected ',' or '...' before 'args'
    3 | public static void main(String[] args){
      |                                  ^~~~
a.cc:23:2: error: expected ';' after class definition
   23 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:1: error: 'Scanner' was not declared in this scope
    5 | Scanner sc = new Scanner(System.in);
      | ^~~~~~~
a.cc:8:10: error: 'sc' was not declared in this scope
    8 |  int x = sc.nextInt();
      |          ^~
a.cc:14:1: error: 'System' was not declared in this scope
   14 | System.out.println(x+" "+y);
      | ^~~~~~
a.cc:16:1: error: 'System' was not declared in this scope
   16 | System.out.println(y+" "+x);
      | ^~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
 int x,y;
 cin>>x>>y;

 for(true){
  if(x == 0 && y == 0)break;
  else if(x >= y){cout<<y<<" "<<x<<endl;}
  else cout<<x<<" "<<y<<endl;

  
 


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: expected ';' before ')' token
    7 |  for(true){
      |          ^
      |          ;
a.cc:10:30: error: expected primary-expression at end of input
   10 |   else cout<<x<<" "<<y<<endl;
      |                              ^
a.cc:10:30: error: expected ';' at end of input
   10 |   else cout<<x<<" "<<y<<endl;
      |                              ^
      |                              ;
a.cc:10:30: error: expected primary-expression at end of input
a.cc:10:30: error: expected ')' at end of input
   10 |   else cout<<x<<" "<<y<<endl;
      |                              ^
      |                              )
a.cc:7:5: note: to match this '('
    7 |  for(true){
      |     ^
a.cc:10:30: error: expected statement at end of input
   10 |   else cout<<x<<" "<<y<<endl;
      |                              ^
a.cc:10:30: error: expected '}' at end of input
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(true){
  if(x == 0 && y == 0)break;
  else if(x >= y){cout<<y<<" "<<x<<endl;}
  else cout<<x<<" "<<y<<endl;
 
  


Compiler output:
a.cc: In function 'int main()':
a.cc:10:30: error: expected '}' at end of input
   10 |   else cout<<x<<" "<<y<<endl;
      |                              ^
a.cc:7:13: note: to match this '{'
    7 |  while(true){
      |             ^
a.cc:10:30: error: expected '}' at end of input
   10 |   else cout<<x<<" "<<y<<endl;
      |                              ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using nameapace std;
int main(){
int x,y;
for(int i=0;i<3000;i++){
cin >> x >> y;
if(x==0 && y==0){
break;
}
else if(x>y){
cout << y << "" << x << endl;
}
else{ cout << x << "" << y << endl; }
}
}





Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'nameapace'
    2 | using nameapace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin >> x >> y;
      | ^~~
      | std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:11:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 | 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:11:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 | cout << y << "" << x << endl;
      |                         ^~~~
      |                         std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:13:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 | else{ cout << x << "" << y << endl; }
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 | else{ cout << x << "" << y << endl; }
      |                               ^~~~
      |                               std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

using namespace std;
int main(void)
{
    int i = 0;
    int x[3000],y[3000];
    
    while(1)
    {
        cin >> x[i] >> y[i];
        if(x == 0 && y == 0)
            break;
        else
            ++i;
    }
    for(int n = 0;n <= i;++n)
    {
        if(x[n] <= y[n])
            cout << x[n] << " " << y[n];
        else
            cout << y[n] << " " << x[n];
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'cin' was not declared in this scope
    9 |         cin >> x[i] >> y[i];
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:18:13: error: 'cout' was not declared in this scope
   18 |             cout << x[n] << " " << y[n];
      |             ^~~~
a.cc:18:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:13: error: 'cout' was not declared in this scope
   20 |             cout << y[n] << " " << x[n];
      |             ^~~~
a.cc:20:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

using namespace std;
int main(void)
{
    int i = 0;
    int x[3000],y[3000];
    
    while(1)
    {
        cin >> x[i] >> y[i];
        if(x == 0 && y == 0)
            break;
        else
            ++i;
    }
    for(int n = 0;n <= i;++n)
    {
        if(x[n] <= y[n])
            cout << x[n] << " " << y[n] << endl;
        else
            cout << y[n] << " " << x[n] << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'cin' was not declared in this scope
    9 |         cin >> x[i] >> y[i];
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:18:13: error: 'cout' was not declared in this scope
   18 |             cout << x[n] << " " << y[n] << endl;
      |             ^~~~
a.cc:18:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:44: error: 'endl' was not declared in this scope
   18 |             cout << x[n] << " " << y[n] << endl;
      |                                            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:20:13: error: 'cout' was not declared in this scope
   20 |             cout << y[n] << " " << x[n] << endl;
      |             ^~~~
a.cc:20:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:44: error: 'endl' was not declared in this scope
   20 |             cout << y[n] << " " << x[n] << endl;
      |                                            ^~~~
a.cc:20:44: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<iostream>
using namespace std;

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


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

#include<ostream>
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;
if(x<y) cout << x << " " << y <<endl;
}return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin >> x >> y;
      | ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<ostream>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:7:9: error: 'cout' was not declared in this scope
    7 | if(x>y) cout << y << " " << x <<endl;
      |         ^~~~
a.cc:7:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:9: error: 'cout' was not declared in this scope
    8 | if(x<y) cout << x << " " << y <<endl;
      |         ^~~~
a.cc:8:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<iostram>
using namesapce 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:1:9: fatal error: iostram: No such file or directory
    1 | #include<iostram>
      |         ^~~~~~~~~
compilation terminated.
Language: C++

#include<iostram>
using namesapce std;
int main(){
int x,y;
for (int 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:1:9: fatal error: iostram: No such file or directory
    1 | #include<iostram>
      |         ^~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namesapce 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:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | cin >> x >> y;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 | if(x>y) 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:7:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 | if(x>y) 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)
      |     ^~~~
a.cc:8:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 | else cout << x << " " << y <<endl;
      |      ^~~~
      |      std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 | else cout << x << " " << y <<endl;
      |                              ^~~~
      |                              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

# -*- coding: utf-8


while True:
   n = map(int,raw_input().split())
   if n == [0,0]:
      break
   a = sorted(n)
   print('%i %i' % (a[0],a[1]))


Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8
      |   ^
a.cc:9:10: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    9 |    print('%i %i' % (a[0],a[1]))
      |          ^~~~~~~
a.cc:4:1: error: expected unqualified-id before 'while'
    4 | while True:
      | ^~~~~
Language: C++

#include <stdio.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:2: error: 'scnaf' was not declared in this scope; did you mean 'scanf'?
    6 |  scnaf("%d %d", &x, &y);
      |  ^~~~~
      |  scanf
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:3:15: note: to match this '{'
    3 | int main(void){
      |               ^
Language: C++

#include <stdio.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:2: error: 'scnaf' was not declared in this scope; did you mean 'scanf'?
    6 |  scnaf("%d %d", &x, &y);
      |  ^~~~~
      |  scanf
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:3:15: note: to match this '{'
    3 | int main(void){
      |               ^
Language: C++

#include <stdio.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:2: error: 'scnaf' was not declared in this scope; did you mean 'scanf'?
    6 |  scnaf("%d %d", &x, &y);
      |  ^~~~~
      |  scanf
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:3:15: note: to match this '{'
    3 | int main(void){
      |               ^
Language: C++

#include <stdio.h>

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


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

#include <stdio.h>

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


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

#include <stdio.h>

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


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

#include <stdio.h>

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


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

#include <stdio.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'scnaf' was not declared in this scope; did you mean 'scanf'?
    6 |   scnaf("%d %d", &x, &y);
      |   ^~~~~
      |   scanf
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 {cout <<　y<　


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