criyle/codenet-compile-errors huggingface dataset:
Language: Java

import util.java.Scanner;
public class Main{
	public static void main(String[] args){
    Scanner scn = new Scanner(System.in);
      int N = scn.nextInt();
      int M = scn.nextInt();
      int i;
      while(i=0){
      int a[i] = scn.nextInt();
      int sum = 0;
      int sum =  sum+a[i];
      i += 1;
      }
      scn.close();
    int k = 4*M;
    if(a[i] < sum/k){
    	System.out.println("No");
    }else{
    	System.out.println("Yes");
    }
    }
}


Compiler output:
Main.java:9: error: ']' expected
      int a[i] = scn.nextInt();
            ^
Main.java:9: error: ';' expected
      int a[i] = scn.nextInt();
             ^
2 errors
Language: C++

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

int main() {
  int X, Y, Z;
  cin >> X >> Y >> Z;
  cout << Z , X , Y >> end1;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: 'end1' was not declared in this scope
    7 |   cout << Z , X , Y >> end1;
      |                        ^~~~
Language: C++

#include<iostream>
int main()
  { 
  int a,b,c,t,j;
  cin>>a>>b>>c;
  t=a;
  a=b;
  b=t;
  j=a;
  a=c;
  c=j;
  cout<<a<<" "<<b<<" "<<c<<endl;
  
  return 0;
  
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>a>>b>>c;
      |   ^~~
      |   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:12:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   cout<<a<<" "<<b<<" "<<c<<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:12:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |   cout<<a<<" "<<b<<" "<<c<<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: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner stdIn = new Scanner(System.in);
    int X = stdIn.nextInt();
    int Y = stdIn.nextInt();
    int Z = stdin.nextInt();
    System.out.println(Z+" "+X+" "+Y);
  }
}

Compiler output:
Main.java:7: error: cannot find symbol
    int Z = stdin.nextInt();
            ^
  symbol:   variable stdin
  location: class Main
1 error
Language: C++

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

int main() {
  int X, Y, Z;
  cin >> X >> Y >> Z;
  cout << Z , X , Y <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout << Z , X , Y <<endl;
      |                   ~~^~~~~~
Language: C++

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

int main() {
	
	double n, m, x, y, z, i;
	long long int a[100];
	cin >> n >> m;
	x = 0;
	z = 0;
	for(i = 0; i < n; i++) {
		cin >> a[i];
		x = a[i] + x;
	}
	y = x / 4;
	y = y / m;
	for(i = 0; i < n; i++) {
		if(y <= a[i]) {
			z = 1 + z;
		}
	}
	if(m <= z) {
		cout << "Yes";
	}
	else {
		cout << "No";
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:25: error: invalid types 'long long int [100][double]' for array subscript
   14 |                 cin >> a[i];
      |                         ^
a.cc:15:22: error: invalid types 'long long int [100][double]' for array subscript
   15 |                 x = a[i] + x;
      |                      ^
a.cc:20:26: error: invalid types 'long long int [100][double]' for array subscript
   20 |                 if(y <= a[i]) {
      |                          ^
Language: C++

#include<bits/stdc++.h>
#define ll long long
using namespace std;
int main()
{
    int x,y,z;
    cin>>x>>y>>z;
    cout<<z<<" "<<x" "<<y;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: expected ';' before string constant
    8 |     cout<<z<<" "<<x" "<<y;
      |                    ^~~
      |                    ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
#define ll long long int
#define ull unsigned long long int 
#define ldb long double 
 
#define forz(i, n) for (int i = 0; i < n; i++)
#define fore(i, m, n) for (int i = m; i <= n; i++)
#define rforz(i, n) for (int i = n - 1; i >= 0; i--)
#define rfore(i, m, n) for (int i = n; i >= m; i--)
#define fastio ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL)
 
int main()
{
  ll a,b;
  cin>>a>>b;
  ll x=a%b;
  ll m=min(x,b-x);
  cout<<m;
}
}

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

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

int main() {
  int X, Y, Z;
  cin >> X >> Y >> Z;
  cout << Z , X , Y << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout << Z , X , Y << endl;
      |                   ~~^~~~~~~
Language: C++

print("Enter x y z value below:")
x = input()
y = input()
z = input()
while 1 <= int(x) >= 100 and 1 <= int(y) >= 100 and 1 <= int(z) >= 100:
    print(x + " " + y + " " + z)
    print("Output: " + z + " " + x + " " + y)
exit()



Compiler output:
a.cc:1:6: error: expected constructor, destructor, or type conversion before '(' token
    1 | print("Enter x y z value below:")
      |      ^
Language: Java

public class Main{

	public static void main(String[] args){

		Scanner scan01 = new Scanner(System.in);
		Scanner scan02 = new Scanner(System.in);
		Scanner scan03 = new Scanner(System.in);

		int numbox[] = new int[4];
		numbox[0] = scan01.nextInt();
		numbox[1] = scan02.nextInt();
		numbox[2] = scan03.nextInt();

		numbox[3] = numbox[1];
		numbox[1] = numbox[0];
		numbox[0] = numbox[2];
		numbox[2] = numbox[3];

		System.out.println(numbox[0]);
		System.out.println(numbox[1]);
		System.out.println(numbox[2]);

		scan01.close();
		scan02.close();
		scan03.close();
	}

}

Compiler output:
Main.java:5: error: cannot find symbol
		Scanner scan01 = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
		Scanner scan01 = new Scanner(System.in);
		                     ^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
		Scanner scan02 = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
		Scanner scan02 = new Scanner(System.in);
		                     ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
		Scanner scan03 = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
		Scanner scan03 = new Scanner(System.in);
		                     ^
  symbol:   class Scanner
  location: class Main
6 errors
Language: C

#include <stdio.h>
int main(){
    int x,y,z;

    scanf("%d %d %d", &x, &y, &z);

    int a = y;
    int b = z;
    int c = x;

    printf("%d %d %d", &a, &b &c);
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:31: error: invalid operands to binary & (have 'int *' and 'int')
   11 |     printf("%d %d %d", &a, &b &c);
      |                            ~~ ^
      |                            |
      |                            int *
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int a,b,c;
  cin>>a>>b>>c;

  cout<<c<<<a<<b<<endl;

  
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected primary-expression before '<' token
    7 |   cout<<c<<<a<<b<<endl;
      |            ^
a.cc:7:17: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout<<c<<<a<<b<<endl;
      |             ~~~~^~~~~~
Language: Java

public class Atcoder{

	public static void main(String[] args){

		Scanner scan01 = new Scanner(System.in);
		Scanner scan02 = new Scanner(System.in);
		Scanner scan03 = new Scanner(System.in);

		int numbox[] = new int[4];
		numbox[0] = scan01.nextInt();
		numbox[1] = scan02.nextInt();
		numbox[2] = scan03.nextInt();

		numbox[3] = numbox[1];
		numbox[1] = numbox[0];
		numbox[0] = numbox[2];
		numbox[2] = numbox[3];

		System.out.println(numbox[0]);
		System.out.println(numbox[1]);
		System.out.println(numbox[2]);

		scan01.close();
		scan02.close();
		scan03.close();
	}

}

Compiler output:
Main.java:1: error: class Atcoder is public, should be declared in a file named Atcoder.java
public class Atcoder{
       ^
Main.java:5: error: cannot find symbol
		Scanner scan01 = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Atcoder
Main.java:5: error: cannot find symbol
		Scanner scan01 = new Scanner(System.in);
		                     ^
  symbol:   class Scanner
  location: class Atcoder
Main.java:6: error: cannot find symbol
		Scanner scan02 = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Atcoder
Main.java:6: error: cannot find symbol
		Scanner scan02 = new Scanner(System.in);
		                     ^
  symbol:   class Scanner
  location: class Atcoder
Main.java:7: error: cannot find symbol
		Scanner scan03 = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Atcoder
Main.java:7: error: cannot find symbol
		Scanner scan03 = new Scanner(System.in);
		                     ^
  symbol:   class Scanner
  location: class Atcoder
7 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n;
  float m,sum=0,c=0;
  cin>>n>>m;
  float a[n];
  for (int i=0;i<n;i++)
  {
    cin>>a[i];
    sum+=a[i];
  }
  float temp=(1/(4*m))*sum;
  float tmp=temp*sum;
  for (float i=0;i<n;i++)
  {
    if(a[i]>=temp)
      c++;
  }
  if(c>=m)
    cout<<"yes";
  else
    cout<<"no";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: invalid types 'float [n][float]' for array subscript
   18 |     if(a[i]>=temp)
      |         ^
Language: C++

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


void swap(int a , int b){
	a = a^b;
 	b = a^b;
    a = a^b;  
} 

int main(){
  	int x,y,z;
  	cin >> x >> y >> z;
  	swap(x,y);
  	swap(x,z);
  	cout << x << " " << y << " " << z << " " <<endl;
	return 0
} 

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

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

int main()
{
	int x,y,z;
	cin >> x >> y >> z;
	
	cout << z << '' << x << '' << y << '';
	return 0;
}

Compiler output:
a.cc:9:22: error: empty character constant
    9 |         cout << z << '' << x << '' << y << '';
      |                      ^~
a.cc:9:33: error: empty character constant
    9 |         cout << z << '' << x << '' << y << '';
      |                                 ^~
a.cc:9:44: error: empty character constant
    9 |         cout << z << '' << x << '' << y << '';
      |                                            ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n;
  float m,sum=0,c=0;
  cin>>n>>m;
  float a[n];
  for (float i=0;i<n;i++)
  {
    cin>>a[i];
    sum+=a[i];
  }
  float temp=(1/(4*m))*sum;
  float tmp=temp*sum;
  for (float i=0;i<n;i++)
  {
    if(a[i]>=temp)
      c++;
  }
  if(c>=m)
    cout<<"yes";
  else
    cout<<"no";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: invalid types 'float [n][float]' for array subscript
   11 |     cin>>a[i];
      |           ^
a.cc:12:11: error: invalid types 'float [n][float]' for array subscript
   12 |     sum+=a[i];
      |           ^
a.cc:18:9: error: invalid types 'float [n][float]' for array subscript
   18 |     if(a[i]>=temp)
      |         ^
Language: C++

def swap(X,Y,Z):
    return str(Z) + " " + str(X) + " " + str(Y)
n1=int(input("Enter first integer: "))
n2=int(input("Enter second integer: "))
n3=int(input("Enter third integer: "))
print(swap(n1,n2,n3))

Compiler output:
a.cc:1:1: error: 'def' does not name a type
    1 | def swap(X,Y,Z):
      | ^~~
Language: C++

#include<iostream>
#include<iomanip>
#include<string>
using namespace std;
int main()
{   
	int a,b,c;
	int x,y;

	cin>>a>>b>>c;

	x=a;
    a=b;
	b=x;
		
	y=a;
	a=c;
	c=y;


	cout<<a<<" "<<b<<" "<<c;


	//system ("pause");}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:33: error: expected '}' at end of input
   21 |         cout<<a<<" "<<b<<" "<<c;
      |                                 ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

using namespace std;
int main()
{
    ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0);

     int a[3];
     for(int j=0;j<3;j++)
     {
         int k;
       cin>>k;
     if(k>=1&&k<=100)
        a[j]=k;
      else
         exit(1);
     }
     int t=a[0];
     a[0]=a[1];
     a[1]=t;
     int t2=a[0];
     a[0]=a[2];
     a[2]=t2;
     for(int s=0;s<3;s++)
      cout<<a[s]<<ends;
 return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'ios_base' has not been declared
    4 |     ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0);
      |     ^~~~~~~~
a.cc:4:34: error: 'cin' was not declared in this scope
    4 |     ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0);
      |                                  ^~~
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:4:45: error: 'cout' was not declared in this scope
    4 |     ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0);
      |                                             ^~~~
a.cc:4:45: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:10: error: 'exit' was not declared in this scope
   14 |          exit(1);
      |          ^~~~
a.cc:1:1: note: 'exit' is defined in header '<cstdlib>'; this is probably fixable by adding '#include <cstdlib>'
  +++ |+#include <cstdlib>
    1 | using namespace std;
a.cc:23:19: error: 'ends' was not declared in this scope
   23 |       cout<<a[s]<<ends;
      |                   ^~~~
a.cc:1:1: note: 'std::ends' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

include<stdio.h>
int main()
{
   int X,Y,Z,temp; 
printf("enter the value of X,Y,Z");
  scanf("%d %d %d",&X,&Y,&Z);
    temp=X;
    X=Y;
    Y=Z;
    Z=temp; 
    printf("%d",X);
    printf("%d",Y);
    printf("%d",Z);
    return 0;

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
Language: C++

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

int main() {
  int X, Y, Z;
  cin >> X >> Y >> Z;
  cout << Z , X , Y >> endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator>>'
    7 |   cout << Z , X , Y >> endl;
      |                   ~~^~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define F(i,n) for(i = 0 ; i < n ; i++)
typedef long long ll;


/*ll n;

void solve()
{
	cin>>n;
	vector< int > ans;
	ans.push_back(1);
	ve
	for(int i = 1 ; i <= n ; ++i){
		ans.push_back(i);
		bool p =true ;
		for(int j = i +1 ; j <= n ; j++) {

			if(__gcd(i,j) == 1)
				p = false;
		}
		if(!p)

		cout<<ans.size() <<" ";
		for(int i = 0 ; i < ans.size() ; i++)
		cout<<ans[i]<<" ";
	cout<<endl;
	}
	

   

}

*/




int main()
{
	
    
	ll n , k ;
	cin>>n >> k;
	int mind = abs(n - k) ;
	while(1){
		n = abs(n - k);
		mind = min(mind, n);
	} 
	cout<<mind ;
	

}


Compiler output:
a.cc: In function 'int main()':
a.cc:50:27: error: no matching function for call to 'min(int&, ll&)'
   50 |                 mind = min(mind, n);
      |                        ~~~^~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:50:27: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'll' {aka 'long long int'})
   50 |                 mind = min(mind, n);
      |                        ~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:50:27: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   50 |                 mind = min(mind, n);
      |                        ~~~^~~~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: invalid operands of types 'const char*' and 'const char [1]' to binary 'operator+'
    9 |     cout << a + "" +b + "" + c << endl;
      |             ~~~~~~~~~ ^ ~~
      |                    |    |
      |                    |    const char [1]
      |                    const char*
Language: C++

#include<iostream>
#include<iomanip>
#include<string>
using namespace std;
int main()
{   
	int a,b,c;
	int x,y;

	cin>>a>>b>>c;

	x=a;
    a=b;
	b=x;
		
	y=a;
	a=c;
	b=y;





 // system ("pause");

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

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

int main() {
  int X, Y, Z;
  cin >> X >> Y >> Z;
  cout << Z , X , Y << end1;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: 'end1' was not declared in this scope
    7 |   cout << Z , X , Y << end1;
      |                        ^~~~
Language: C++

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

int main() {
  int X, Y, Z;
  cin >> X >> Y >> Z;
  cout << Z , X , Y >>end1;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: 'end1' was not declared in this scope
    7 |   cout << Z , X , Y >>end1;
      |                       ^~~~
Language: C++

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

int main() {

    int X,Y,Z;
    cin >> X >> Y >> Z;
    
    cout << Z , X , Y << endl;

}


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

a, b, c = map(int, input().split())
print('{} {} {}'.format(c, a, b))

Compiler output:
a.cc:2:7: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    2 | print('{} {} {}'.format(c, a, b))
      |       ^~~~~~~~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a, b, c = map(int, input().split())
      | ^
Language: C++

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[]) {
  int a = atoi(argv[1]);
  int b = atoi(argv[2]);
  int c = atoi(argv[3]);
  printf("%d\n", c a b);
  return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:8:19: error: expected ')' before 'a'
    8 |   printf("%d\n", c a b);
      |         ~         ^~
      |                   )
Language: C++

#include<iostream>

int main()
{
  int x,y,z;
  cin >> x >> y >> z;
  cout << z << " " << x << " " << y;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> x >> y >> z;
      |   ^~~
      |   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:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << z << " " << x << " " << y;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

int main() {
  int X, Y, Z;
  cin >> X >> Y >> Z;
  cout << Z , X , Y >> end1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: 'end1' was not declared in this scope
    7 |   cout << Z , X , Y >> end1;
      |                        ^~~~
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class A {
	public static void main(String[] args) {

		String bar[] = new String[5];
		String temp;

		for(int i=0;i<5;i++) {



		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);

		String str = null;
		try {
			str = br.readLine();
		} catch (IOException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		}
			bar[i] = str;
		}

		temp = bar[0];
		bar[0] = bar[2];
		bar[2] = temp;

		temp = bar[4];
		bar[4] = bar[0];
		bar[0] = bar[4];

	}
}


Compiler output:
Main.java:5: error: class A is public, should be declared in a file named A.java
public class A {
       ^
1 error
Language: C++

#include<iostream>
using namespace std;
void main(){
  int A,B,C;
  cin>>A>>B>>C;
  int temp1,temp2;
  
  temp1=A;
  A=B;
  B=temp1;
  
  temp2=A;
  A=C;
  C=temp2;
  cout<<A<<B<<C;
}

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

#include <iostream> 
int a,b,c; 
{ 
    clrscr();
 
    a = a ^ b ^ c; 
    b = a ^ b ^ c;  
    c = a ^ b ^ c; 
    a = a ^ b ^ c; 
} 
  int main() 
{ 
    int a = 1, b = 2, c = 3; 
  
    cout << "Before swapping a = " << a << ", b = "
         << b << ", c = " << c << endl; 
  
    swapThree(a, b, c); 
  
    cout << "After swapping a = " << a << ", b = "
         << b << ", c = " << c << endl; 
  
    return 0; 
} 

Compiler output:
a.cc:3:1: error: expected unqualified-id before '{' token
    3 | {
      | ^
a.cc: In function 'int main()':
a.cc:15:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |     cout << "Before swapping a = " << a << ", b = "
      |     ^~~~
      |     std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:35: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |          << b << ", c = " << c << 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:18:5: error: 'swapThree' was not declared in this scope
   18 |     swapThree(a, b, c);
      |     ^~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n,m;
  cin>>n>>m;
  vector <int> arr;
  for(int i=0;i<n;i++)
  {
    int temp;
    cin>>temp;
    arr.push_back(temp);
  }
  int flag=0;
  int sum=accumulate(arr.begin(),arr.end(),0);
  sort(arr.begin(),arr.end());
    for(int i=0;i<m;i++)
    {
      if(arr[i]<ceil(400/(4*m))
         flag=1;
     }
      if(flag==0)
         cout<<"Yes";
         else
         cout<<"No";
        
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:32: error: expected ';' before 'flag'
   19 |       if(arr[i]<ceil(400/(4*m))
      |                                ^
      |                                ;
   20 |          flag=1;
      |          ~~~~                   
a.cc:21:6: error: expected primary-expression before '}' token
   21 |      }
      |      ^
a.cc:20:17: error: expected ')' before '}' token
   20 |          flag=1;
      |                 ^
      |                 )
   21 |      }
      |      ~           
a.cc:19:9: note: to match this '('
   19 |       if(arr[i]<ceil(400/(4*m))
      |         ^
a.cc:21:6: error: expected primary-expression before '}' token
   21 |      }
      |      ^
Language: C

#include <stdio.h>

int main (void){

    int X,Y,Z;

    printf("insert X Y Z  by int/n");
    s=scanf("%d %d %d",&X,&Y,&Z);

   
    
    printf("%d %d %d",Z,X,Y);


    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:5: error: 's' undeclared (first use in this function)
    8 |     s=scanf("%d %d %d",&X,&Y,&Z);
      |     ^
main.c:8:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main()
{
  int x,y,z
  cin>>x>>y>>z;
  cout<<z<<x<<y<<endl;	
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'cin'
    7 |   cin>>x>>y>>z;
      |   ^~~
a.cc:8:9: error: 'z' was not declared in this scope
    8 |   cout<<z<<x<<y<<endl;
      |         ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int A,B,C;
  cin>>A>>B>>C;
  int temp1,temp2;
  
  temp1=A;
  A=B;
  B=temp1;
  
  temp2=A;
  A=C;
  C=temp2;
  cout<<A<<" "<<B<" "<<C;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:22: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator<<'
   15 |   cout<<A<<" "<<B<" "<<C;
      |                   ~~~^~~
      |                   |    |
      |                   |    int
      |                   const char [2]
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n,m;
  cin>>n>>m;
  vector <int> arr;
  for(int i=0;i<n;i++)
  {
    int temp;
    cin>>temp;
    arr.push_back(temp);
  }
  int flag=0;
  sum=accumulate(arr.begin(),arr.end(),0)
  sort(arr.begin(),arr.end())
    for(int i=0;i<m;i++)
    {
      if(arr[i]<ceil(400/(4*m))
         flag=1;
     }
      if(flag==0)
         cout<<"Yes";
         else
         cout<<"No";
        
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: 'sum' was not declared in this scope
   15 |   sum=accumulate(arr.begin(),arr.end(),0)
      |   ^~~
a.cc:17:17: error: 'i' was not declared in this scope
   17 |     for(int i=0;i<m;i++)
      |                 ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:1: error: stray '\343' in program
    6 | <U+3000>
      | ^~~~~~~~
Language: Java

public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int[] abc = null;
        int tmp;
        for(int i = 0; i < 3; i++) {
            abc[i] = Integer.parseInt(sc.next());
        }
        
        tmp = abc[0];
        abc[0] = abc[1];
        abc[1] = tmp;

        tmp = abc[0];
        abc[0] = abc[2];
        abc[2] = tmp;
        
        for(int i : abc) {
            System.out.println(i);
        }
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

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

int a,b,c;

int main(){
	cin>>a>>b>>c;
	swap(a,b);
    swap(a,c);
	cout<<a<<' '<<b<<' '<<c;
	return 0;
} 

Compiler output:
a.cc:2:17: error: 'std\U0000ff1b' is not a namespace-name
    2 | using namespace std；
      |                 ^~~~~
a.cc:2:22: error: expected ';' before 'int'
    2 | using namespace std；
      |                      ^
      |                      ;
    3 | 
    4 | int a,b,c;
      | ~~~                   
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin>>a>>b>>c;
      |         ^~~
      |         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:8:9: error: 'swap' was not declared in this scope
    8 |         swap(a,b);
      |         ^~~~
a.cc:8:9: 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); }
      |               ^~~~
a.cc:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         cout<<a<<' '<<b<<' '<<c;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int A,B,C;
  cin>>A>>B>>C;
  int temp1,temp2;
  
  temp1=A;
  A=B;
  B=temp1;
  
  temp2=A;
  A=C;
  C=temp2;
  cout<<A<" "<<B<" "<<C;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator<<'
   15 |   cout<<A<" "<<B<" "<<C;
      |           ~~~^~~
      |           |    |
      |           |    int
      |           const char [2]
a.cc:15:21: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator<<'
   15 |   cout<<A<" "<<B<" "<<C;
      |                  ~~~^~~
      |                  |    |
      |                  |    int
      |                  const char [2]
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:1: error: stray '\343' in program
    5 | <U+3000>scanf("%d%d%d",&x,&y,&z);
      | ^~~~~~~~
main.c:6:1: error: stray '\343' in program
    6 | <U+3000>
      | ^~~~~~~~
Language: C++

int main(){
  int x, y, z;
  cin >> x, y, z;
  cout << z, x, y;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> x, y, z;
      |   ^~~
a.cc:4:3: error: 'cout' was not declared in this scope
    4 |   cout << z, x, y;
      |   ^~~~
Language: C++


#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c;
  cin>>a>>b>>c;
  cout<<c<<" "<<a<<"  "<<b" "<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: expected ';' before string constant
    7 |   cout<<c<<" "<<a<<"  "<<b" "<<endl;
      |                           ^~~
      |                           ;
Language: Java


import java.util.Scanner;

public class AABCSwap {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt() , y = sc.nextInt(), z = sc.nextInt();
		int temp = x ;
		x = y ;
		y = temp ;
		int temp2 = x;
		x = z ;
		z =temp2;
		System.out.println(x+" "+y+" "+z);
				
	}

}


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

import java.util.*;

class Main {
  public static void main(String[] args) {
    
    Scanner sc = new Scanner(System.in);
    
    int X, Y, Z;
    X = sc.nextInt();
    Y = sc.nextInt();
    Z = sc.nextInt();
    System.out.print(Z + " ");
    System.out.print(X + " ");
    System.out.print(Y + " ");
  }
}
    
      
    
    S
  }
}


Compiler output:
Main.java:20: error: class, interface, enum, or record expected
    S
    ^
1 error
Language: Java

import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        ArrayList<Integer> intList = new ArrayList<Integer>();
        for (int x=0; x<=a; x++) {
          intList.add(sc.nextInt());
        }
        Collections.sort(intList);
        if(intList.bet(b) > 4 * a) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}

Compiler output:
Main.java:13: error: cannot find symbol
        if(intList.bet(b) > 4 * a) {
                  ^
  symbol:   method bet(int)
  location: variable intList of type ArrayList<Integer>
1 error
Language: Java

import java.io.*;
import java.util.*;

public class CF {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(new OutputStreamWriter(System.out));

        StringTokenizer st = new StringTokenizer(br.readLine());
        ArrayList<Integer> boxes = new ArrayList<>();
        for (int i = 0; i < 3; i++) {
            boxes.add(Integer.parseInt(st.nextToken()));
        }

        Collections.swap(boxes,0, 1);
        Collections.swap(boxes,0, 2);

        pw.println(boxes.get(0) + " " + boxes.get(1) + " " + boxes.get(2));

        pw.close();

    }
}

Compiler output:
Main.java:4: error: class CF is public, should be declared in a file named CF.java
public class CF {
       ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef vector<ll> vl;
typedef pair<ll, ll> PP;
#define rep(i, n) for (ll i = 0; i < ll(n); i++)
#define all(v) v.begin(), v.end()
bool chmin(ll& a, ll b) {
    if (b < a) {
        a = b;
        return 1;
    }
    return 0;
}
bool chmax(ll& a, ll b) {
    if (b > a) {
        a = b;
        return 1;
    }
    return 0;
}
const ll INF = 999999999999999;
const ll MOD = 1000000007;
const ll MAX_N = 500010;
ll a, b, c, d, e, f, p, t, x, y, z, q, m, n, r, h, k, w, l, ans;
int main() {
    cin >> x >> y >> z;
    cout << z << " " << x << " " << y << endl
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:46: error: expected ';' before '}' token
   28 |     cout << z << " " << x << " " << y << endl
      |                                              ^
      |                                              ;
   29 | }
      | ~
Language: C++


#include<bits/stdc++.h>
using namespace std;
int main{
  int a,b,c;
  cin>>a>>b>>c;
  cout<<c<<" "<<a<<"  "<<b" "<<endl;
}

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int a,b,c;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin>>a>>b>>c;
      |   ^~~
a.cc:7:3: error: 'cout' does not name a type
    7 |   cout<<c<<" "<<a<<"  "<<b" "<<endl;
      |   ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

int main(){
  cin >> x, y, z;
  cout << z, x, y;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:3: error: 'cin' was not declared in this scope
    2 |   cin >> x, y, z;
      |   ^~~
a.cc:2:10: error: 'x' was not declared in this scope
    2 |   cin >> x, y, z;
      |          ^
a.cc:2:13: error: 'y' was not declared in this scope
    2 |   cin >> x, y, z;
      |             ^
a.cc:2:16: error: 'z' was not declared in this scope
    2 |   cin >> x, y, z;
      |                ^
a.cc:3:3: error: 'cout' was not declared in this scope
    3 |   cout << z, x, y;
      |   ^~~~
Language: C

#include <stdio>

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

Compiler output:
main.c:1:10: fatal error: stdio: No such file or directory
    1 | #include <stdio>
      |          ^~~~~~~
compilation terminated.
Language: Java

import java.util.Scanner;
public class Main {
    public static void main(String args[]) {
        Scanner s = new Scanner(System.in);
 
        String a = s.next();
        String b = s.next();
        String c = s.next();
        String tempStr = "";
 
        tempStr = a;
        a = b;
        b = tempStr;
        tempStr = a;
        a = c;
        c = tempStr;
        System.out.println(a + " " + b + " " + c);
    }

Compiler output:
Main.java:18: error: reached end of file while parsing
    }
     ^
1 error
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc:5:1: error: extended character 　 is not valid in an identifier
    5 | 　scanf("%d%d%d",&x,&y,&z);
      | ^
a.cc:6:1: error: extended character 　 is not valid in an identifier
    6 | 　
      | ^
a.cc: In function 'int main()':
a.cc:5:1: error: '\U00003000scanf' was not declared in this scope
    5 | 　scanf("%d%d%d",&x,&y,&z);
      | ^~~~~~~
a.cc:6:1: error: '\U00003000' was not declared in this scope
    6 | 　
      | ^~
a.cc:9:5: error: 'tmp' was not declared in this scope
    9 |  y= tmp;
      |     ^~~
Language: Java

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
 
public class Main {
	public static void main(String args[]){
    	InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
      	
      	String xyz = null;
      	xyz ＝ br.readLine();
      	String[] str = xyz.split(" ", 0);

      	System.out.println(str[2]+" "+str[0]+" "+str[1]);
      
	}
}

Compiler output:
Main.java:12: error: illegal character: '\uff1d'
      	xyz ? br.readLine();
      	    ^
Main.java:12: error: not a statement
      	xyz ? br.readLine();
      	^
2 errors
Language: C

#include <stdio.h>

int main (void){

    int X,Y,Z;
    int s;
    int safe;

    while(1){
        printf("insert X Y Z  by int/n");
        s=scanf("%d %d %d",&X,&Y,&Z);
        
        if(0<X&&X<101&&0<Y&&X<101&&0<Z&&<101){
            break;
        }
    }
   
    
    printf("%d,%d,%d",Z,X,Y);


    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:41: error: expected expression before '<' token
   13 |         if(0<X&&X<101&&0<Y&&X<101&&0<Z&&<101){
      |                                         ^
Language: C

include<stdio.h>

int main(){

　int A,B,C;
  int change = 0;
  scanf("%d %d %d",&A,&B,&C);
  
  change = A;
  A = B;
  B = change;
  
  change = B;
  B = C;
  C = change;
  
  printf("%d %d %d",A,B,C);
  
  return 0;
  
  }

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
main.c:5:1: error: stray '\343' in program
    5 | <U+3000>int A,B,C;
      | ^~~~~~~~
Language: C++

def swap(X,Y,Z):
    if 1>=X or X<=100 and 1>=Y or Y<=100 and 1>=Z or Z>=100:
        return str(Z) + " " + str(Y) + " " + str(X)
n1=int(input("Enter first integer: "))
n2=int(input("Enter second integer: "))
n3=int(input("Enter third integer: "))
print(swap(n1,n2,n3))

Compiler output:
a.cc:1:1: error: 'def' does not name a type
    1 | def swap(X,Y,Z):
      | ^~~
Language: C++

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

int main(){
    int X,Y,Z;
    cin >> X >> Y >> Z;
    cout << Z << " " << X << " " Y << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:33: error: expected ';' before 'Y'
    7 |     cout << Z << " " << X << " " Y << endl;
      |                                 ^~
      |                                 ;
Language: C++

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


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

Compiler output:
a.cc:8:1: error: extended character 　 is not valid in an identifier
    8 | 　scanf("%d %d %d",&x,&y,&z);
      | ^
a.cc:9:1: error: extended character 　 is not valid in an identifier
    9 | 　
      | ^
a.cc: In function 'int main()':
a.cc:8:1: error: '\U00003000scanf' was not declared in this scope; did you mean 'wscanf'?
    8 | 　scanf("%d %d %d",&x,&y,&z);
      | ^~~~~~~
      | wscanf
a.cc:9:1: error: '\U00003000' was not declared in this scope
    9 | 　
      | ^~
a.cc:12:5: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   12 |  y= tmp;
      |     ^~~
      |     tm
Language: C++

#include<bits/stdc++.h>

using namespace std;

void sw(int &a,int &b){
	int z=a;
  a=b;
  b=z;
}

int main(){
	int x,y,z;
  	cin>>>x>>y>>z;
  	sw(x,y);
  	sw(x,z);
  	cout<<x<<y<<z;
  	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: expected primary-expression before '>' token
   13 |         cin>>>x>>y>>z;
      |              ^
Language: Java

import java.util.Scanner;
 
class Main {
	public static void main(String[] args) {
 
	    Scanner sc = new Scanner(System.in);
	    int X = sc.nextInt();
	    int Y = sc.nextInt();
	    int Z = sc.nextInt();
	    
	    int A = Z;
	    int B = X;
	    int C = Y;
	    
	    System.out.println(A + " " + B +" " +C);
 
	  }

Compiler output:
Main.java:17: error: reached end of file while parsing
	  }
	   ^
1 error
Language: Java

import java.util.Scanner;
public class pra1 {

	public static void main(String[] args) {
		int[] array = new int[3];
		Scanner input = new Scanner(System.in);
		array[0] = input.nextInt();
		array[1] = input.nextInt();
		array[2] = input.nextInt();
		int num = 0;
		num = array[2];
		array[2] = array[1];
		array[1] = array[0];
		array[0] = num;
		
		for(int i =0;i < array.length; i++) {
			System.out.print(array[i] + " ");	
		}
	}
}

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

import java.util.Scanner;
class Main{
  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 a2 = a;
    
    a = b;
    b = a2;
    a = c;
    c = a2;
    
    System.out.println(a + " " + b + " " + c);
  }
}

Compiler output:
Main.java:4: error: cannot find symbol
    Scanner stdIn = new Scanner(system.in);
                                ^
  symbol:   variable system
  location: class Main
Main.java:7: error: cannot find symbol
    int b = stdin.nextInt();
            ^
  symbol:   variable stdin
  location: class Main
2 errors
Language: C

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


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

Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>

int main (void){

    int X,Y,Z;

    int safe;

    while(1){
        printf("insert X Y Z  by int/n");
        scanf("%d,%d,%d",&X,&Y,&Z);
        
        if(0<X&&X<101&&0<Y&&X<101&&0<Z&&<101&&){
            break;
        }
    }
   
    
    printf("%d,%d,%d",Z,X,Y);


    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:41: error: expected expression before '<' token
   13 |         if(0<X&&X<101&&0<Y&&X<101&&0<Z&&<101&&){
      |                                         ^
Language: C++

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

int main() {
  int x,y,z;
  cin x >> y >> z;
  cout << z << " "<< x << " " << y << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'x'
    6 |   cin x >> y >> z;
      |      ^~
      |      ;
Language: C

#include <stdio.h>


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

Compiler output:
main.c: In function 'main':
main.c:6:1: error: stray '\343' in program
    6 | <U+3000>scanf("%d %d %d",&x,&y,&z);
      | ^~~~~~~~
main.c:7:1: error: stray '\343' in program
    7 | <U+3000>
      | ^~~~~~~~
Language: C

#inckude <stdio.h>
int main()
  {
 int x,y,z;
  scanf("%d %d %d", &x,&y,&z);
  printf("%d %d %d",z,x,y);
  return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inckude; did you mean #include?
    1 | #inckude <stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |   scanf("%d %d %d", &x,&y,&z);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inckude <stdio.h>
main.c:5:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |   scanf("%d %d %d", &x,&y,&z);
      |   ^~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |   printf("%d %d %d",z,x,y);
      |   ^~~~~~
main.c:6:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:3: note: include '<stdio.h>' or provide a declaration of 'printf'