criyle/codenet-compile-errors huggingface dataset:
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:6:1: error: extended character 　 is not valid in an identifier
    6 | 　scanf("%d %d %d",&x,&y,&z);
      | ^
a.cc:7:1: error: extended character 　 is not valid in an identifier
    7 | 　
      | ^
a.cc: In function 'int main()':
a.cc:6:1: error: '\U00003000scanf' was not declared in this scope
    6 | 　scanf("%d %d %d",&x,&y,&z);
      | ^~~~~~~
a.cc:7:1: error: '\U00003000' was not declared in this scope
    7 | 　
      | ^~
a.cc:10:5: error: 'tmp' was not declared in this scope
   10 |  y= tmp;
      |     ^~~
Language: Java

public class Main {

	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:5: error: cannot find symbol
		Scanner input = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
		Scanner input = new Scanner(System.in);
		                    ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C

#include <stdio.h>

int main (void){

    int X,Y,Z;

    int safe;

    for(){
        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:9:9: error: expected expression before ')' token
    9 |     for(){
      |         ^
main.c:9:9: error: expected expression before ')' token
main.c:13:44: error: expected expression before '<' token
   13 |         if(0<X&&X<101&& 0<Y&&X<101&&  0<Z&&<101&&){
      |                                            ^
Language: C++

#pragma GCC optimize("Ofast")
#include <cstring>
#include <iostream>
#include <bits/stdc++.h>
#include <algorithm>
#include <vector>
using namespace std;
typedef long long ll;

int main() {
    ll X, Y, Z, tmp;

    cin >> X >> Y >> Z;

    tmp = X;
    X = Y;
    Y = tmp;

    tmp = X;
    X = Z;
    Z = tmp;

    cout << X + " " + Y + " " + Z;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:25: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
   23 |     cout << X + " " + Y + " " + Z;
      |             ~~~~~~~~~~~ ^ ~~~
      |                     |     |
      |                     |     const char [2]
      |                     const char*
Language: Java

import java.util.*;
import java.io.*;
public class solution {
    public static void main(String[] args) throws Exception{
        
        Scanner sc = new Scanner(System.in);
        int tests;
        int n;
        int m;
      int l;
        
        
       
        n = sc.nextInt(); m = sc.nextInt();l=sc.nextInt();
       System.out.print(l + " " + n + " " + m);
     
       
       
        
  }
}
        

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

#include <iostream>
#include <vector>

bool judge(int m, int total, int a)
{
  return (a > total / 4 / m);
}
 
int main()
{
    int n,m,a;
    std::vector<int> a;
 
  	std::cin >> n >> m;
	a.resize(n);
 
  	int total = 0;
    for (int i = 0; i < n; ++i)
    {
      std::cin >> a[i];
      total += a[i];
    }
 
  	int selectable = 0;
    for (int i = 0; i < n; ++i)
    {
      if (judge(m, total, a[i]))
      {
        ++selectable;
      }
      
      if (selectable >= m)
      {
        std::cout << "Yes" << std::endl;
        return 0;
      }
    }
 
  	std::cout "No" << std::endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:22: error: conflicting declaration 'std::vector<int> a'
   12 |     std::vector<int> a;
      |                      ^
a.cc:11:13: note: previous declaration as 'int a'
   11 |     int n,m,a;
      |             ^
a.cc:15:11: error: request for member 'resize' in 'a', which is of non-class type 'int'
   15 |         a.resize(n);
      |           ^~~~~~
a.cc:20:20: error: invalid types 'int[int]' for array subscript
   20 |       std::cin >> a[i];
      |                    ^
a.cc:21:17: error: invalid types 'int[int]' for array subscript
   21 |       total += a[i];
      |                 ^
a.cc:27:28: error: invalid types 'int[int]' for array subscript
   27 |       if (judge(m, total, a[i]))
      |                            ^
a.cc:39:18: error: expected ';' before string constant
   39 |         std::cout "No" << std::endl;
      |                  ^~~~~
      |                  ;
Language: C++

#include <stdio.h>


int main() {  
  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:6:1: error: extended character 　 is not valid in an identifier
    6 | 　scanf("%d %d %d",&x,&y,&z);
      | ^
a.cc:7:1: error: extended character 　 is not valid in an identifier
    7 | 　
      | ^
a.cc: In function 'int main()':
a.cc:6:1: error: '\U00003000scanf' was not declared in this scope
    6 | 　scanf("%d %d %d",&x,&y,&z);
      | ^~~~~~~
a.cc:7:1: error: '\U00003000' was not declared in this scope
    7 | 　
      | ^~
a.cc:10:5: error: 'tmp' was not declared in this scope
   10 |  y= tmp;
      |     ^~~
Language: C++

#include<iostream>
using namespace std;
void input()
{
  int a,b,c;
  cin>>a>>b>>c;
}
void swap()
{
  int t;
  t=b;
  b=a;
  c=c;
}
void swapp()
{
  int x;
  x=c;
  b=b;
  c=t;
}
int main()
{
  input();
  swap();
  swapp();
  return 0;
}

Compiler output:
a.cc: In function 'void swap()':
a.cc:11:5: error: 'b' was not declared in this scope
   11 |   t=b;
      |     ^
a.cc:12:5: error: 'a' was not declared in this scope
   12 |   b=a;
      |     ^
a.cc:13:3: error: 'c' was not declared in this scope
   13 |   c=c;
      |   ^
a.cc: In function 'void swapp()':
a.cc:18:5: error: 'c' was not declared in this scope
   18 |   x=c;
      |     ^
a.cc:19:3: error: 'b' was not declared in this scope
   19 |   b=b;
      |   ^
a.cc:20:5: error: 't' was not declared in this scope
   20 |   c=t;
      |     ^
Language: C++

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

    cout << x << " " << y << " " << z << endl;
 
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'swao' was not declared in this scope
    8 |         swao(x,y);
      |         ^~~~
Language: C++

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

int main(){
	int x, y, z;
	cin >> x >> y >> z;
	swap(x,y);
	swap(x,z);
	
	cout << x" " << y" " << z" " << endl;
	// swapに返り値なし
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: expected ';' before string constant
   10 |         cout << x" " << y" " << z" " << endl;
      |                  ^~~
      |                  ;
Language: Java

import java.util.*;

public class Main
{
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int a = "";
      a=sc.nextInt();
      int b = "";
      b=sc.nextInt();
      int c = "";
      c=sc.nextInt();
      System.out.println(c+" "+a+" "+b);
    }

}

Compiler output:
Main.java:7: error: incompatible types: String cannot be converted to int
      int a = "";
              ^
Main.java:9: error: incompatible types: String cannot be converted to int
      int b = "";
              ^
Main.java:11: error: incompatible types: String cannot be converted to int
      int c = "";
              ^
3 errors
Language: C++

#include<stdio.h>
int main()
{
  int X,Y,Z,temp1,temp2;
  scanf("%d%d%d",&X,&Y,&Z);
  temp1=X;
  X=Y;
  Y=temp1;
  temp2=X;
  X=Z;
  Z=temp2
  printf("%d %d %d",X,Y,Z);
  return (0);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: expected ';' before 'printf'
   11 |   Z=temp2
      |          ^
      |          ;
   12 |   printf("%d %d %d",X,Y,Z);
      |   ~~~~~~
Language: C++

#include<stdio.h>
int main()
{
  int X,Y,Z,temp1,temp2;
  scanf("%d%d%d",&X,&Y,&Z);
  temp=X;
  X=Y;
  Y=temp;
  temp2=X;
  X=Z;
  Z=temp2
  printf("%d %d %d",X,Y,Z);
  return (0);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'temp' was not declared in this scope; did you mean 'temp2'?
    6 |   temp=X;
      |   ^~~~
      |   temp2
a.cc:11:10: error: expected ';' before 'printf'
   11 |   Z=temp2
      |          ^
      |          ;
   12 |   printf("%d %d %d",X,Y,Z);
      |   ~~~~~~
Language: C++

#include <stdio.h>


int main() {  
  int x,y,z;
　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:6:1: error: extended character 　 is not valid in an identifier
    6 | 　scanf("%d%d%d",&x,&y,&z);
      | ^
a.cc:7:1: error: extended character 　 is not valid in an identifier
    7 | 　
      | ^
a.cc: In function 'int main()':
a.cc:6:1: error: '\U00003000scanf' was not declared in this scope
    6 | 　scanf("%d%d%d",&x,&y,&z);
      | ^~~~~~~
a.cc:7:1: error: '\U00003000' was not declared in this scope
    7 | 　
      | ^~
a.cc:10:5: error: 'tmp' was not declared in this scope
   10 |  y= tmp;
      |     ^~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a,b,c,temp1=0,temp2=0;
  cin>>a>>b>>c;
  
  temp1=a;
  a=b;
  b=temp1;
  
  temp2=a;
  a=c;
  c=temp2;
  cout<<a<<" "<<b<<" "<<c;
  return0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: 'return0' was not declared in this scope
   15 |   return0;
      |   ^~~~~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:3:15: error: expected identifier or '(' before ';' token
    3 |     int x,y,z,;
      |               ^
Language: C

#include <stdio.h>
main()
{
  int X,Y,Z;
  int i=0;
  int j=0;
  scanf ("%d %d %d", &X, &Y, &Z);
  i=X;
  X=Y;
  Y=i;
  j=x;
  X=Z;
  Z=j;
  printf("%d %d %d", &X, &Y, &Z);
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:11:5: error: 'x' undeclared (first use in this function)
   11 |   j=x;
      |     ^
main.c:11:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main(){
    int N, M;
    cin >> N >> M;
    vector<int> A(N);
    for (int i=0; i<N; i++){
        cin >> A[i];
    }
    cout << Z << ' ' << X  << ' ' << Y << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: 'Z' was not declared in this scope
   12 |     cout << Z << ' ' << X  << ' ' << Y << endl;
      |             ^
a.cc:12:25: error: 'X' was not declared in this scope
   12 |     cout << Z << ' ' << X  << ' ' << Y << endl;
      |                         ^
a.cc:12:38: error: 'Y' was not declared in this scope
   12 |     cout << Z << ' ' << X  << ' ' << Y << endl;
      |                                      ^
Language: C++

#include <stdio.h>

int main (void){

    int X,Y,Z;

    int safe;

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

        if(0<X&&X<101&&0<Y&&Y<101&&Z<0&&Z<101){
            break;
        }
    }
    
    printf("%d,%d,%d",Z,X,Y);
    



    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected primary-expression before ')' token
    9 |     while(){
      |           ^
Language: Java

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


Compiler output:
Main.java:2: error: class main is public, should be declared in a file named main.java
public class main{
       ^
Main.java:5: error: incompatible types: String cannot be converted to char
      char a = scn.next();
                       ^
Main.java:6: error: incompatible types: String cannot be converted to char
      char b = scn.next();
                       ^
Main.java:7: error: incompatible types: String cannot be converted to char
      char c = scn.next();
                       ^
4 errors
Language: Java

import java.util.*;

public class main
{
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int a = "";
      a=sc.nextInt();
      int b = "";
      b=sc.nextInt();
      int c = "";
      c=sc.nextInt();
      System.out.println(c+" "+a+" "+b);
    }

}

Compiler output:
Main.java:3: error: class main is public, should be declared in a file named main.java
public class main
       ^
Main.java:7: error: incompatible types: String cannot be converted to int
      int a = "";
              ^
Main.java:9: error: incompatible types: String cannot be converted to int
      int b = "";
              ^
Main.java:11: error: incompatible types: String cannot be converted to int
      int c = "";
              ^
4 errors
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:1:1: error: '\U0000ff03include' does not name a type
    1 | ＃include <bits/stdc++.h>
      | ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>x>>y>>z;
      |   ^~~
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout<<z<<"　"<<x<<"　"<<y<<endl;
      |   ^~~~
a.cc:8:30: error: 'endl' was not declared in this scope
    8 |   cout<<z<<"　"<<x<<"　"<<y<<endl;
      |                              ^~~~
Language: C++

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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: expected primary-expression before '<<' token
   11 |   cout << X << << Y << << Z << endl;
      |                ^~
a.cc:11:24: error: expected primary-expression before '<<' token
   11 |   cout << X << << Y << << Z << endl;
      |                        ^~
Language: Java

import java.util.Scanner;
public class A20200404 {

	public static void Main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int X=scan.nextInt();
		int Y=scan.nextInt();
		int Z=scan.nextInt();
		System.out.println(Z+" "+X+" "+Y);

	}

}

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

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

public class Main {	
	public static void main(String[] args) {
		FastScanner fs = new FastScanner();
        int a = fs.nextInt();
		int b = fs.nextInt();
		int c = fs.nextInt();
		
	System.out.println(c+" "+a" "+b);


	}

	static class FastScanner {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		StringTokenizer st=new StringTokenizer("");

		public String next() {
			while (!st.hasMoreElements())
				try {
					st=new StringTokenizer(br.readLine());
				} catch (IOException e) {
					e.printStackTrace();
				}
			return st.nextToken();
		}

		public int nextInt() {
			return Integer.parseInt(next());
		}

		public long nextLong() {
			return Long.parseLong(next());
		}

		public int[] readArray(int n) {
			int[] a=new int[n];
			for (int i=0; i<n; i++) {
				a[i]=nextInt();
			}
			return a;
		}

		public double nextDouble() {
			return Double.parseDouble(next());
		}

	}
}


Compiler output:
Main.java:11: error: ')' or ',' expected
	System.out.println(c+" "+a" "+b);
	                          ^
Main.java:11: error: not a statement
	System.out.println(c+" "+a" "+b);
	                              ^
Main.java:11: error: ';' expected
	System.out.println(c+" "+a" "+b);
	                               ^
3 errors
Language: Java

import java.util.Scanner;
public class main{
	public static viod main(String[] args){
    Scanner scn = new Scanner(System.in);
      char a = snn.next();
      char b = scn.next();
      char c = scn.next();
    scn.close();
    System.out.println(c+a+b);
    }
}

Compiler output:
Main.java:2: error: class main is public, should be declared in a file named main.java
public class main{
       ^
Main.java:3: error: cannot find symbol
	public static viod main(String[] args){
	              ^
  symbol:   class viod
  location: class main
Main.java:5: error: cannot find symbol
      char a = snn.next();
               ^
  symbol:   variable snn
  location: class main
Main.java:6: error: incompatible types: String cannot be converted to char
      char b = scn.next();
                       ^
Main.java:7: error: incompatible types: String cannot be converted to char
      char c = scn.next();
                       ^
5 errors
Language: C++

#include <stdio.h>

int main (void){

    int X,Y,Z;

    int safe;

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

        if(0<X&&X<101&&0<Y&&Y<101&&Z<0&&Z<101){
            break;
        }
    }
    
    printf("%d,%d,%d",Z,X,Y);
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected '(' before '{' token
    9 |     while{
      |          ^
      |          (
a.cc:9:10: error: expected primary-expression before '{' token
a.cc:9:10: error: expected ')' before '{' token
    9 |     while{
      |          ^
      |          )
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:30: error: expected ';' before '}' token
   16 |         cout << a << b << c;1
      |                              ^
      |                              ;
......
   19 | }
      | ~
Language: C++

int X, Y, Z;
scanf("%d %d %d", X, Y, Z);
print("%d %d %d", X, Y, Z);


Compiler output:
a.cc:2:6: error: expected constructor, destructor, or type conversion before '(' token
    2 | scanf("%d %d %d", X, Y, Z);
      |      ^
a.cc:3:6: error: expected constructor, destructor, or type conversion before '(' token
    3 | print("%d %d %d", X, Y, Z);
      |      ^
Language: C++

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

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

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

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

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


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

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

int main() {
  int A, B, C;
  cin >> A >> B >> C;
  
  cout <<  << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected primary-expression before '<<' token
    8 |   cout <<  << endl;
      |            ^~
Language: C++

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

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

#include <stdio.h>


using namespace std;
int x,y,z;
int main() {  
　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:7:1: error: extended character 　 is not valid in an identifier
    7 | 　scanf("%d %d %d",&x,&y,&z);
      | ^
a.cc:8:1: error: extended character 　 is not valid in an identifier
    8 | 　
      | ^
a.cc: In function 'int main()':
a.cc:7:1: error: '\U00003000scanf' was not declared in this scope
    7 | 　scanf("%d %d %d",&x,&y,&z);
      | ^~~~~~~
a.cc:8:1: error: '\U00003000' was not declared in this scope
    8 | 　
      | ^~
a.cc:11:5: error: 'tmp' was not declared in this scope
   11 |  y= tmp;
      |     ^~~
Language: C++

int X, Y, Z, t;
scanf("%d %d %d", &X, &Y, &Z);
t = X;
X = Y;
Y = t;
t = X;
X = Z;
Z = t;
printf("%d %d %d", X, Y, Z);


Compiler output:
a.cc:2:6: error: expected constructor, destructor, or type conversion before '(' token
    2 | scanf("%d %d %d", &X, &Y, &Z);
      |      ^
a.cc:3:1: error: 't' does not name a type
    3 | t = X;
      | ^
a.cc:4:1: error: 'X' does not name a type
    4 | X = Y;
      | ^
a.cc:5:1: error: 'Y' does not name a type
    5 | Y = t;
      | ^
a.cc:6:1: error: 't' does not name a type
    6 | t = X;
      | ^
a.cc:7:1: error: 'X' does not name a type
    7 | X = Z;
      | ^
a.cc:8:1: error: 'Z' does not name a type
    8 | Z = t;
      | ^
a.cc:9:7: error: expected constructor, destructor, or type conversion before '(' token
    9 | printf("%d %d %d", X, Y, Z);
      |       ^
Language: Java

import java.util.*;

public class main
{
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = sc.nextInt();
      System.out.println(c+" "+a+" "+b);
    }

}

Compiler output:
Main.java:3: error: class main is public, should be declared in a file named main.java
public class main
       ^
1 error
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:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>

void main(){
  int a,b,c;

  int X,Y,Z;
  
  scanf("%d %d %d".&a,&b,&c);

  Y=a;
  Z=b;
  X=c;

  printf("%d %d %d".&X,&Y,&Z);
}


Compiler output:
main.c: In function 'main':
main.c:8:20: error: expected identifier before '&' token
    8 |   scanf("%d %d %d".&a,&b,&c);
      |                    ^
main.c:14:21: error: expected identifier before '&' token
   14 |   printf("%d %d %d".&X,&Y,&Z);
      |                     ^
Language: C++

#includ <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:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ <bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>A>>B>>C;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #includ <bits/stdc++.h>
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout<<C<<A<<B<<endl;
      |   ^~~~
a.cc:6:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:18: error: 'endl' was not declared in this scope
    6 |   cout<<C<<A<<B<<endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #includ <bits/stdc++.h>
Language: C++

/*
 
@author
_      _          _                 _      _
\\    // /\    | | \  |     |    /\ \\    //     
 \\  // /__\   | |_/  |_____|   /__\ \\  //
  \\// /    \  | | \  |     |  /    \ \\//
   \/ /      \ | |_/  |     | /      \ \/
@ Indian Institute of Technology Bhilai

With practice comes perfection,
with knowledge comes wisdom.
Incorporate wisdom in you, practice will harvest better results.
Always learn from others, your method is good but someone's even better.
Results take time, run for wisdom, for innovation, for getting better.
Points are mere objects, either you solve first or you solve better.
Seek for betterment, for quality, pace is important but cannot outstand
the quality you persist.
Times are bad just as now but it'll improve, this is my passion and I promise 
I won't let it go. I'll build myself again like a fighter gets back up after 
being thrown to the ground.
I'll learn. I bet that. I promise that.
*/
 
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ul;
#define fr(i,start,end, inc) for(ll i=(start); i<(end); i+=inc)
#define rf(i,end,start, inc) for(ll i=(start-1); i>=(end); i-=inc)
#define rep(i,n) for(ll i=0; i<n; i++)
#define rep1(i,n) for(ll i=1; i<=n; i++)
#define pb push_back
#define pl pair<ll, ll>
#define fi first
#define se second
#define all(v) v.begin(), v.end()
#define alla(arr,n) arr, arr+n
#define yes cout<<"Yes\n"
#define no cout<<"No\n"
#define fsync ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
const ll maxx =  1e9+7;

bool compare(vector<ll> &a, const vector<ll> &b){
    return a.size()>b.size();
}

ll inline power(ll a, ll b, ll p){
    a %= p;
    ll ans = 1;
    while(b>0){
        if(b & 1)
            ans = (ans*a)%p;
        a = (a*a)%p;
        b >>= 1;
    }
    return ans;
}

bool inline isPrime(ll n) { 
    if (n <= 1)  return false; 
    if (n <= 3)  return true; 
    if (n%2 == 0 || n%3 == 0) return false; 
    for (ll i=5; i*i<=n; i=i+6) 
        if (n%i == 0 || n%(i+2) == 0) 
           return false; 
    return true; 
}

template<class T>
void printv(T &v, ll n){
    if(n==-1)
        n = v.size();
    rep(i,n)
        cout << v[i] << " ";
    cout << "\n";
}


void solve(){
    ll n,m,sum=0;
    cin>>n>>m;
    vector<ll>v(n);
    rep(i,n){
        cin>>v[i];
        sum+=v[i];
    }
    sort(all(v),greater<ll>());
    if(v[m-1]>=(sum/(4*m))){
        yes;
    }
    else
        no;
}
void solve2(){
    ll a,b,c;
    cin>>a>>b>>c;
    cout <<c" "<<a<<" "<<b<<"\n";
}

int main(){
    fsync
    ll test=1;
    // cin >> test;
    while(test--){
        solve2();
    }
}

Compiler output:
a.cc: In function 'void solve2()':
a.cc:98:13: error: expected ';' before string constant
   98 |     cout <<c" "<<a<<" "<<b<<"\n";
      |             ^~~
      |             ;
Language: Java

import java.util.Scanner;

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

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

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

int main() {
    int x, y, z;
    cin >> x >> y >> z;
    
    tmp = x;
    x = y;
    y = tmp;

    tmp = x;
    x = z;
    z = tmp;

    cout << ' ' << x << ' ' << y << ' ' << z << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'tmp' was not declared in this scope; did you mean 'tm'?
    8 |     tmp = x;
      |     ^~~
      |     tm
Language: C++

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>a>>b>>c;
      |   ^~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<<<c<<" "<<a<<" "b;
      |   ^~~~
a.cc:7:9: error: expected primary-expression before '<' token
    7 |   cout<<<c<<" "<<a<<" "b;
      |         ^
a.cc:7:11: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator<<'
    7 |   cout<<<c<<" "<<a<<" "b;
      |          ~^~~~~
      |          |  |
      |          |  const char [2]
      |          int
a.cc:7:21: error: unable to find string literal operator 'operator""b' with 'const char [2]', 'long unsigned int' arguments
    7 |   cout<<<c<<" "<<a<<" "b;
      |                     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: expected initializer before 'y'
    4 |   int x y z;
      |         ^
a.cc:5:8: error: 'x' was not declared in this scope
    5 |   cin>>x>>y>>z;
      |        ^
a.cc:5:11: error: 'y' was not declared in this scope; did you mean 'yn'?
    5 |   cin>>x>>y>>z;
      |           ^
      |           yn
a.cc:5:14: error: 'z' was not declared in this scope
    5 |   cin>>x>>y>>z;
      |              ^
Language: C++

#include <iostream>

using namespace std;

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


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

#include<bits/stdc++.h>
#define f(i,b,n) for(int i = b ; i<n;i++)
#define pb push_back
#define ll long long
#define newline	"\n"
#define mod 1000000007
using namespace std ;



 int main()
 {
 	ios_base::sync_with_stdio(false);
 	cin.tie(NULL);
 	#ifndef ONLINE_JUDGE
		freopen("C:\\Users\\ajay\\Desktop\\test\\input.txt","r",stdin);
		freopen("C:\\Users\\ajay\\Desktop\\test\\output.txt","w",stdout);
	#endif

		int a,b,c
          cin>>a>>b>>c
          cout<<c<<" "<<a<<" "<<b;
 					
return 0;
 	}

 	
 



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

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

int main(void){

    int x, y, z;
    int temp;
    cin >> x >> y >> z;

    temp = y;
    y = x;
    x = temp;

    temp = z;
    z = x;
    x = temp;

    cout << x << ' ' << y << ' ' << z << endl;

    return 0;
}

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

#include <iostream>
using namespace std;

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

        int tmp;
  		tmp = x;
  		x = y;
  		y = tmp;
  
  		tmp = z;
  		x = z;
  		z = tmp;

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

        return 0;
}
~           

Compiler output:
a.cc:21:2: error: expected class-name at end of input
   21 | ~
      |  ^
Language: C++

#include <stdio.h>


using namespace std;
int x,y,z;
int main() {  
　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:7:1: error: extended character 　 is not valid in an identifier
    7 | 　scanf("%d%d%d",&x,&y,&z);
      | ^
a.cc:8:1: error: extended character 　 is not valid in an identifier
    8 | 　
      | ^
a.cc: In function 'int main()':
a.cc:7:1: error: '\U00003000scanf' was not declared in this scope
    7 | 　scanf("%d%d%d",&x,&y,&z);
      | ^~~~~~~
a.cc:8:1: error: '\U00003000' was not declared in this scope
    8 | 　
      | ^~
a.cc:11:5: error: 'tmp' was not declared in this scope
   11 |  y= tmp;
      |     ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:27: error: expected '}' at end of input
   14 |   cout<<X<<" "<<Y<<" "<<Z;
      |                           ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C

#include<stdio.h>
void swap(int a,int b){
	int temp;
	temp = *a;
	a = b;
	*b = temp;
	return;
}
int main(void){
  int X,Y,Z;
  scanf("%d %d %d",&X,&Y,&Z);
  swap(&X,&Y);
  swap(&X,&Z);
  printf("%d %d %d\n",&X,&Y,&Z);
  return 0;
}

Compiler output:
main.c: In function 'swap':
main.c:4:16: error: invalid type argument of unary '*' (have 'int')
    4 |         temp = *a;
      |                ^~
main.c:6:9: error: invalid type argument of unary '*' (have 'int')
    6 |         *b = temp;
      |         ^~
main.c: In function 'main':
main.c:12:8: error: passing argument 1 of 'swap' makes integer from pointer without a cast [-Wint-conversion]
   12 |   swap(&X,&Y);
      |        ^~
      |        |
      |        int *
main.c:2:15: note: expected 'int' but argument is of type 'int *'
    2 | void swap(int a,int b){
      |           ~~~~^
main.c:12:11: error: passing argument 2 of 'swap' makes integer from pointer without a cast [-Wint-conversion]
   12 |   swap(&X,&Y);
      |           ^~
      |           |
      |           int *
main.c:2:21: note: expected 'int' but argument is of type 'int *'
    2 | void swap(int a,int b){
      |                 ~~~~^
main.c:13:8: error: passing argument 1 of 'swap' makes integer from pointer without a cast [-Wint-conversion]
   13 |   swap(&X,&Z);
      |        ^~
      |        |
      |        int *
main.c:2:15: note: expected 'int' but argument is of type 'int *'
    2 | void swap(int a,int b){
      |           ~~~~^
main.c:13:11: error: passing argument 2 of 'swap' makes integer from pointer without a cast [-Wint-conversion]
   13 |   swap(&X,&Z);
      |           ^~
      |           |
      |           int *
main.c:2:21: note: expected 'int' but argument is of type 'int *'
    2 | void swap(int a,int b){
      |                 ~~~~^
Language: C++

  public void moveZeroes(int[] nums) {
    for (int i = 0; i < nums.length; i++) {
      if (nums[i] != 0) {
        continue;
      }
      for (int j = i + 1; j < nums.length; j++) {
        if (nums[j] == 0) {
          continue;
        }
        nums[i] = nums[j];
        nums[j] = 0;
        break;
      }
    }
  }

Compiler output:
a.cc:1:3: error: expected unqualified-id before 'public'
    1 |   public void moveZeroes(int[] nums) {
      |   ^~~~~~
Language: C++

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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
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 /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:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << z << 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:7:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << z << x << y << 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)
      |     ^~~~
Language: Java

import java.util.Scanner;

public class A {
    public static void main(String[] args) {
        int x,y,z,temp;
        Scanner input=new Scanner(System.in);
        x=input.nextInt();
        y=input.nextInt();
        z=input.nextInt();

        temp=x;
        x=z;
        z=y;
        y=temp;
        System.out.println(""+x+" "+y+" "+z);
    }
}


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

import java.util.*;

public class solution
{
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = sc.nextInt();
      System.out.println(c+" "+a+" "+b);
    }

}

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

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

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


Compiler output:
a.cc:7:5: error: 'cout' does not name a type
    7 | }   cout >> x >> " " >> y >> " " >> z >> end;
      |     ^~~~
Language: C++

#include <iostream>

int a,b,c,A,B,C;
std::cin << X Y Z <<std::endl;

a = X;
b = Y;
c = Z;
// AとBを入れ替える
A = b;
B = a;
C = c;

// AとCを入れ替える
C = A;
A = c;





Compiler output:
a.cc:4:6: error: 'cin' in namespace 'std' does not name a type
    4 | std::cin << X Y Z <<std::endl;
      |      ^~~
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:1: error: 'a' does not name a type
    6 | a = X;
      | ^
a.cc:7:1: error: 'b' does not name a type
    7 | b = Y;
      | ^
a.cc:8:1: error: 'c' does not name a type
    8 | c = Z;
      | ^
a.cc:10:1: error: 'A' does not name a type
   10 | A = b;
      | ^
a.cc:11:1: error: 'B' does not name a type
   11 | B = a;
      | ^
a.cc:12:1: error: 'C' does not name a type
   12 | C = c;
      | ^
a.cc:15:1: error: 'C' does not name a type
   15 | C = A;
      | ^
a.cc:16:1: error: 'A' does not name a type
   16 | A = c;
      | ^
Language: C++

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

Compiler output:
a.cc:1:1: error: 'nclude' does not name a type
    1 | nclude<bits/stdc++.h>
      | ^~~~~~
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>a>>b>>c;
      |   ^~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<c<<" "<<a<<" "<<b;
      |   ^~~~
a.cc:7:9: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator<<'
    7 |   cout<c<<" "<<a<<" "<<b;
      |        ~^~~~~
      |        |  |
      |        |  const char [2]
      |        int
Language: C++

int X, Y, Z, t;
scanf("%d %d %d", &X, &Y, &z);
t = X;
X = Y;
Y = t;
t = X;
X = Z:
Z = t;
printf("%d %d %d\n", X, Y, Z);

Compiler output:
a.cc:2:6: error: expected constructor, destructor, or type conversion before '(' token
    2 | scanf("%d %d %d", &X, &Y, &z);
      |      ^
a.cc:3:1: error: 't' does not name a type
    3 | t = X;
      | ^
a.cc:4:1: error: 'X' does not name a type
    4 | X = Y;
      | ^
a.cc:5:1: error: 'Y' does not name a type
    5 | Y = t;
      | ^
a.cc:6:1: error: 't' does not name a type
    6 | t = X;
      | ^
a.cc:7:1: error: 'X' does not name a type
    7 | X = Z:
      | ^
a.cc:9:7: error: expected constructor, destructor, or type conversion before '(' token
    9 | printf("%d %d %d\n", X, Y, Z);
      |       ^
Language: Java

public class Solution {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a = in.nextInt();
      	int b = in.nextInt();
      	int c = in.nextInt();
        System.out.println(c + " " + a + " " + b);
    }

}

Compiler output:
Main.java:1: error: class Solution is public, should be declared in a file named Solution.java
public class Solution {
       ^
Main.java:4: error: cannot find symbol
        Scanner in = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Solution
Main.java:4: error: cannot find symbol
        Scanner in = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Solution
3 errors
Language: C

#include <iostream>
#include <algorithm>
#include <math.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define REP(i, k, n) for (int i = k; i <= n; ++i)
using namespace std;
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    int a, b, c;
    cin >> a >> b >> c;
    
    swap(a, b);
    swap(a,c);
    
    
    cout << a << " " << b << " " << c;
    cout <<"\n";

    return 0;
}

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

#include<stdio.h>
int main()
{
  int X,Y,Z;
  scanf("%d%d%d",&X&Y&Z);
  Y=X;
  Z=X;
  printf("%d %d %d",XYZ);
  return (0);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
    5 |   scanf("%d%d%d",&X&Y&Z);
      |                  ~~^~
      |                  |  |
      |                  |  int
      |                  int*
a.cc:8:21: error: 'XYZ' was not declared in this scope
    8 |   printf("%d %d %d",XYZ);
      |                     ^~~
Language: C++

import sys

x, y, z = map(int, sys.stdin.readline().split())

def main():
    print(z, x, y)

if __name__ ==  '__main__':
    main()

Compiler output:
a.cc:8:17: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    8 | if __name__ ==  '__main__':
      |                 ^~~~~~~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
 int x;
 int y;
 int z;
  cin>>x>>y>>z;
  cout<<z<<" "x<<" "y<<endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: unable to find string literal operator 'operator""x' with 'const char [2]', 'long unsigned int' arguments
    8 |   cout<<z<<" "x<<" "y<<endl;
      |            ^~~~
a.cc:8:18: error: unable to find string literal operator 'operator""y' with 'const char [2]', 'long unsigned int' arguments
    8 |   cout<<z<<" "x<<" "y<<endl;
      |                  ^~~~
Language: C

#include <iostream>
using namespace std;

int main()
{
  int x,y,z,tmp;

  cin>>x>>y>>z;

  tmp=x;
  x=z;
  z=y;
  y=tmp;

  cout<<x<<' '<<y<<' '<<z<<'\n';
  return 0;
}


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

scanf("d %d", X, Y);
int Z = 0;
for(int i = 1; i <=100; i++) if (i!=X || i!=Y) {=i; break;}
print("%d %d %d", X, Y, Z);


Compiler output:
a.cc:1:6: error: expected constructor, destructor, or type conversion before '(' token
    1 | scanf("d %d", X, Y);
      |      ^
a.cc:3:1: error: expected unqualified-id before 'for'
    3 | for(int i = 1; i <=100; i++) if (i!=X || i!=Y) {=i; break;}
      | ^~~
a.cc:3:16: error: 'i' does not name a type
    3 | for(int i = 1; i <=100; i++) if (i!=X || i!=Y) {=i; break;}
      |                ^
a.cc:3:25: error: 'i' does not name a type
    3 | for(int i = 1; i <=100; i++) if (i!=X || i!=Y) {=i; break;}
      |                         ^
a.cc:4:6: error: expected constructor, destructor, or type conversion before '(' token
    4 | print("%d %d %d", X, Y, Z);
      |      ^
Language: Java

#include <iostream>
using namespace std;
 
int main() {
  int a, b, c;
  cin >> a >> b >> c;
  
  cout << c << " " << a << " " << b;
  return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <iostream>
^
Main.java:1: error: class, interface, enum, or record expected
#include <iostream>
         ^
Main.java:6: error: not a statement
  cin >> a >> b >> c;
                ^
Main.java:8: error: not a statement
  cout << c << " " << a << " " << b;
                               ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
int main() {
^
  (use --enable-preview to enable unnamed classes)
5 errors
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;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> a >> b >> c;
      |   ^~~
a.cc:9:11: error: 'c' was not declared in this scope
    9 |   swap(a, c);
      |           ^
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: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 X,Y,Z;
      |   ^~~
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 >> X >> Y >> Z;
      |   ^~~
a.cc:7:3: error: 'cout' does not name a type
    7 |   cout << Z << " " << X << " " << Y << endl;
      |   ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

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

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:7:9: error: expected primary-expression before '<' token
    7 |   cout<<<c<<" "<<a<<" "b;
      |         ^
a.cc:7:11: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator<<'
    7 |   cout<<<c<<" "<<a<<" "b;
      |          ~^~~~~
      |          |  |
      |          |  const char [2]
      |          int
a.cc:7:21: error: unable to find string literal operator 'operator""b' with 'const char [2]', 'long unsigned int' arguments
    7 |   cout<<<c<<" "<<a<<" "b;
      |                     ^~~~
Language: C

#include <stdio.h>

void main{
  int a,b,c;

  int X,Y,Z;
  
  scanf("%d %d %d".&a,&b,&c);

  Y=a;
  Z=b;
  X=c;

  printf("%d %d %d".&X,&Y,&Z);
}


Compiler output:
main.c:3:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | void main{
      |          ^
Language: C++

int A,B,C;
cin>>A>>B>>C;
int temp=B;
B=A;
A=temp;
int temp2=C;
C=A;
A=temp2;
cout<<A<<" "<<B<<" "<<C<<endl;

Compiler output:
a.cc:2:1: error: 'cin' does not name a type
    2 | cin>>A>>B>>C;
      | ^~~
a.cc:4:1: error: 'B' does not name a type
    4 | B=A;
      | ^
a.cc:5:1: error: 'A' does not name a type
    5 | A=temp;
      | ^
a.cc:7:1: error: 'C' does not name a type
    7 | C=A;
      | ^
a.cc:8:1: error: 'A' does not name a type
    8 | A=temp2;
      | ^
a.cc:9:1: error: 'cout' does not name a type
    9 | cout<<A<<" "<<B<<" "<<C<<endl;
      | ^~~~