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

#include<stdio.h>
int main(void)
{
  int x,y,z;
  int a;
  
  scanf("%d",&x);
  scanf("%d",&y);
  scanf("%d",&z);
  
  printf("%d",x);
  printf("%d",y);
  printf("%d",z);
  
  a=x;
  x=y;
  y=a;
  
  a=z;
  z=x;
  x-a;
  
  printf("%d",x);
  printf("%d",y);
  printf("%d",z);
  return0;
}

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

#include<stdio.h>
int main(void)
{
  int x,y,z;
  int a;
  
  scanf("%f",&x);
  scanf("%f",&y);
  scanf("%f",&z);
  
  printf("%d",x);
  printf("%d",y);
  printf("%d",z);
  
  a=x;
  x=y;
  y=a;
  
  a=z;
  z=x;
  x-a;
  
  printf("%d",x);
  printf("%d",y);
  printf("%d",z);
  return0;
}

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

import java.util.Scanner;

public class ABCSwap {

	public static void main(String args[]) {

		Scanner scanner = new Scanner(System.in);

		int save = 0;

		int x = scanner.nextInt();
		int y = scanner.nextInt();
		int z = scanner.nextInt();

		save = x;
		x = y;
		y = save;

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

		scanner.close();

	}

}

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: Java

import java.util.Scanner;

public class ABCSwap {

	public static void Main(String args[]) {

		Scanner scanner = new Scanner(System.in);

		int save = 0;

		int x = scanner.nextInt();
		int y = scanner.nextInt();
		int z = scanner.nextInt();

		save = x;
		x = y;
		y = save;

		save = z;
		z = y;
		y = save;

		scanner.close();

	}

}


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 A, B, C;
  cin >> A >> B >> C;
  cout << C << B << A endl;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: expected ';' before 'endl'
    7 |   cout << C << B << A endl;
      |                      ^~~~~
      |                      ;
Language: Java

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

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    List<int> list = new ArrayList<int>();
    int X = sc.nextInt();
    int Y = sc.nextInt();
    int Z = sc.nextInt();
    list.add(X);
    list.add(Y);
    list.add(0, Z);
    for(int i : list){
      System.out.print(i + " ");
    }
  }
}
      


Compiler output:
Main.java:7: error: unexpected type
    List<int> list = new ArrayList<int>();
         ^
  required: reference
  found:    int
Main.java:7: error: unexpected type
    List<int> list = new ArrayList<int>();
                                   ^
  required: reference
  found:    int
2 errors
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    List<int> list = new ArrayList<int>();
    int X = sc.nextInt();
    int Y = sc.nextInt();
    int Z = sc.nextInt();
    list.add(X);
    list.add(Y);
    list.add(0, Z);
    for(int i : list){
      System.out.print(i + " ");
    }
  }
}
      

Compiler output:
Main.java:6: error: unexpected type
    List<int> list = new ArrayList<int>();
         ^
  required: reference
  found:    int
Main.java:6: error: unexpected type
    List<int> list = new ArrayList<int>();
                                   ^
  required: reference
  found:    int
2 errors
Language: Java

import java.util.*;


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


Compiler output:
Main.java:7: error: incompatible types: String cannot be converted to int
		int X = sc.nextLine();
		                   ^
Main.java:8: error: incompatible types: String cannot be converted to int
		int Y = sc.nextLine();
		                   ^
Main.java:9: error: incompatible types: String cannot be converted to int
		int Z = sc.nextLine();
		                   ^
3 errors
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n) ;i++)
using namespace std;
using p=pair<int,int>;

int main() {
  vector<int>a(3);
  rep(i,3){
    cin >> a.at(i);
  }
  int l,m,n ;
  l=a.at(0);
  m=a.at(1);
  n=a.at(2);
  a.at(0)=n;
  a.at(1)=l;
  a.at(2)=m;
  
  rep(j,3){ 
   cout << a.at(j) << space;
  }
  
  

}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:20:23: error: 'space' was not declared in this scope; did you mean 'std::filesystem::space'?
   20 |    cout << a.at(j) << space;
      |                       ^~~~~
      |                       std::filesystem::space
In file included from /usr/include/c++/14/filesystem:54,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200,
                 from a.cc:1:
/usr/include/c++/14/bits/fs_ops.h:354:14: note: 'std::filesystem::space' declared here
  354 |   space_info space(const path& __p, error_code& __ec) noexcept;
      |              ^~~~~
Language: C++

#include <iostream>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
#include <deque>
#include <list>
#include <queue>
#include <math.h>
#include <assert.h>
#include <set>
#include <map>
#include <bitset>
#include <ctime>
#include <time.h>
#include <algorithm>
#include <cstdio>
#include <fstream>
#include <stack>
#include <ctype.h>
#include <numeric>
#include <sstream>
#include <unistd.h>
#include <unordered_map>
#include <unordered_set>
#include <limits>
#include <random>
#include <chrono>
#include <iomanip>
using namespace std;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
typedef long long ll;
#define endl '\n'
#define debug(name) DEBUG(#name, (name))
template<typename T>
void DEBUG(string label, T value) {
    cerr << "[" << label << " = " << value << "]\n";
}

void solve(){
    int a, b, c;
    cin >> a >> b >> c;
    cout << c << " " << a " " << b << endl;





}
int main(int argv, char **argc){
    ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);

    int t;
    t  = 1;
    while(t--)
        solve();

}


Compiler output:
a.cc: In function 'void solve()':
a.cc:43:26: error: expected ';' before string constant
   43 |     cout << c << " " << a " " << b << endl;
      |                          ^~~~
      |                          ;
Language: C

#include <bits/stdc++.h>

#define ed cout << "\n";
#define speed                         \
    ios_base::sync_with_stdio(false); \
    cin.tie(NULL);                    \
    cout.tie(NULL);
#define ll long long
#define ffor(i, a, b) for (ll i = (ll)(a); i < (ll)(b); ++i)
#define rep(i, n) ffor(i, 0, n)
#define All(obj) (obj).begin(), (obj).end()
#define INF ((ll)1e9 + 7)
#define c(a) cout << a << "\n";
using namespace std;
const int N = 100005;

int main()
{
    speed;
    cout << fixed << setprecision(6);
    /*start*/
    int x, y, z;
    cin >> x >> y >> z;
    cout << z << " " << x << " " << y;
    return 0;
}


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

#include<stdio.h>
int main()
{
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
printf("%d %d %d\n,c,a,b);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:8: warning: missing terminating " character
    6 | printf("%d %d %d\n,c,a,b);
      |        ^
main.c:6:8: error: missing terminating " character
    6 | printf("%d %d %d\n,c,a,b);
      |        ^~~~~~~~~~~~~~~~~~~
main.c:7:1: error: expected expression before 'return'
    7 | return 0;
      | ^~~~~~
main.c:7:10: error: expected ';' before '}' token
    7 | return 0;
      |          ^
      |          ;
    8 | }
      | ~
Language: Java

public 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();

		Map<String, Integer> map = new LinkedHashMap<>();
		map.put("A", x);
		map.put("B", y);
		map.put("C", z);

		// A <-> B
		int a = map.get("A");
		int b = map.get("B");
		map.put("A", b);
		map.put("B", a);

		// A <-> C
		int a2 = map.get("A");
		int c = map.get("C");
		map.put("A", c);
		map.put("C", a2);

		for (Integer num : map.values()) {
			System.out.print(num + " ");
		}

		sc.close();
	}
}

Compiler output:
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
Main.java:10: error: cannot find symbol
		Map<String, Integer> map = new LinkedHashMap<>();
		^
  symbol:   class Map
  location: class Main
Main.java:10: error: cannot find symbol
		Map<String, Integer> map = new LinkedHashMap<>();
		                               ^
  symbol:   class LinkedHashMap
  location: class Main
4 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>; // グラフ型
typedef long long ll;
#define _GLIBCXX_DEBUG




int main() {
  ll X, Y, Z;
  cin >> X >> Y >> Z;
  //vector<ll> a(N);
  //vector<vector<int>> data(3, vector<int>(4));
  
  cout << Z << " " << X << " " << Y << endl;

  return 0;
}
1 2 3

Compiler output:
a.cc:20:1: error: expected unqualified-id before numeric constant
   20 | 1 2 3
      | ^
Language: C

#include <stdio.h>
int main ()
{
     int X,  Y,  Z  'temp' ;
     printf("Enter a value of X, Y and Z\n");
     scanf("%d%d",&X,&Y,%Z);
     temp = X;
     X = Y;
     Y = Z;
     Z = Y
     return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:4:21: warning: multi-character character constant [-Wmultichar]
    4 |      int X,  Y,  Z  'temp' ;
      |                     ^~~~~~
main.c:4:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '\x74656d70'
main.c:6:25: error: expected expression before '%' token
    6 |      scanf("%d%d",&X,&Y,%Z);
      |                         ^
main.c:7:6: error: 'temp' undeclared (first use in this function)
    7 |      temp = X;
      |      ^~~~
main.c:7:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:10: error: 'Z' undeclared (first use in this function)
    9 |      Y = Z;
      |          ^
main.c:10:11: error: expected ';' before 'return'
   10 |      Z = Y
      |           ^
      |           ;
   11 |      return 0;
      |      ~~~~~~
Language: C

#include <stdio.h>
int main ()
{
     int X,  Y,  Z  temp ;
     printf("Enter a value of X, Y and Z\n");
     scanf("%d%d",&X,&Y,%Z);
     temp=X;
     X=Y;
     Y=Z;
     Z=temp;
     return 0;
}
  


Compiler output:
main.c: In function 'main':
main.c:4:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'temp'
    4 |      int X,  Y,  Z  temp ;
      |                     ^~~~
main.c:6:25: error: expected expression before '%' token
    6 |      scanf("%d%d",&X,&Y,%Z);
      |                         ^
main.c:7:6: error: 'temp' undeclared (first use in this function)
    7 |      temp=X;
      |      ^~~~
main.c:7:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:8: error: 'Z' undeclared (first use in this function)
    9 |      Y=Z;
      |        ^
Language: C

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

Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
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;
  C = b
  cout << X << Y << Z << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'C' was not declared in this scope
   13 |   C = b
      |   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int X,Y,Z;
cin >> X >> Y >> Z;
cout << Z << X << Y << endl;

Compiler output:
a.cc:4:1: error: 'cin' does not name a type
    4 | cin >> X >> Y >> Z;
      | ^~~
a.cc:5:1: error: 'cout' does not name a type
    5 | cout << Z << X << Y << endl;
      | ^~~~
Language: C++

#include <stdc++.h>
using namespace std;
#define EXCEPTERROR cout << "-1" << endl;
#define rep(k,nu)    for(int i=k; i<nu;  i++)
#define rep2(k,n)   for(int j=k; j<n;  j++)
#define size_a(array) sizeof(array) / sizeof(array[0])
#define INF 1000000000000 //1e+12
#define MOD 10000007 //1e9+7
#define ll long long
#define pb pop_back
template<typename T> inline void chMin(T* a, T* b) {if(*a>*b) *a=*b;}
template<typename T> inline void chMax(T* a, T* b) {if(*a<*b) *a=*b;}
template<typename T> inline int  divUp(T a, T b)   {return ((a+b-1)/b);}
const double PI = acos(-1);


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:1:10: fatal error: stdc++.h: No such file or directory
    1 | #include <stdc++.h>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <algorithm>
#include <bitset>
#include <cmath>
#include <complex>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>

typedef long long ll;

#define rep(i, a, b) for (ll i = a; i < (ll)b; ++i)
#define INF 10e12
#define MAX 51000
#define all(x) (x).begin(), (x).end()
#define MX(x) *max_element(all(x))
#define MN(x) *min_element(all(x))

using namespace std;

const long long MOD = 1e9 + 7;

int main(void)
{
    cin.tie(0);
    cout.tie(0);
    ios::sync_with_stdio(false);
    ll a, b, c;
    cin >> a >> b >> c;
    cout << c << " " << a << " " << b << endl;
}


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

#include<iostream>
using namespace std;

int main () {
	int a;
    int b;
    int 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:11:38: error: expected ';' before ':' token
   11 |     cout << a << " " << b << " " << c:
      |                                      ^
      |                                      ;
Language: Java

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

Compiler output:
Main.java:5: error: incompatible types: String cannot be converted to int
  int a=sc.next();
               ^
1 error
Language: C

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

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

   cout >> z >> " " >> x >> " " >> y >> endl;
}

Compiler output:
main.c: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 A,B,C;
  cin >> A >> B >> C;
  int A = X;
  int B = Y;
  int C = Z;
  
  A = B;
    A = X;
    
    A = C;
    A = Z;
    cout << A << B << C << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: redeclaration of 'int A'
    7 |   int A = X;
      |       ^
a.cc:5:7: note: 'int A' previously declared here
    5 |   int A,B,C;
      |       ^
a.cc:7:11: error: 'X' was not declared in this scope
    7 |   int A = X;
      |           ^
a.cc:8:7: error: redeclaration of 'int B'
    8 |   int B = Y;
      |       ^
a.cc:5:9: note: 'int B' previously declared here
    5 |   int A,B,C;
      |         ^
a.cc:8:11: error: 'Y' was not declared in this scope
    8 |   int B = Y;
      |           ^
a.cc:9:7: error: redeclaration of 'int C'
    9 |   int C = Z;
      |       ^
a.cc:5:11: note: 'int C' previously declared here
    5 |   int A,B,C;
      |           ^
a.cc:9:11: error: 'Z' was not declared in this scope
    9 |   int C = Z;
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A,B,C;
  cin >> A >> B >> C;
  int A = X;
  int B = Y;
  int C = Z;
  
  A = B
    A = X
    
    A = C
    A = Z
    cout << A << B << C << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: redeclaration of 'int A'
    7 |   int A = X;
      |       ^
a.cc:5:7: note: 'int A' previously declared here
    5 |   int A,B,C;
      |       ^
a.cc:7:11: error: 'X' was not declared in this scope
    7 |   int A = X;
      |           ^
a.cc:8:7: error: redeclaration of 'int B'
    8 |   int B = Y;
      |       ^
a.cc:5:9: note: 'int B' previously declared here
    5 |   int A,B,C;
      |         ^
a.cc:8:11: error: 'Y' was not declared in this scope
    8 |   int B = Y;
      |           ^
a.cc:9:7: error: redeclaration of 'int C'
    9 |   int C = Z;
      |       ^
a.cc:5:11: note: 'int C' previously declared here
    5 |   int A,B,C;
      |           ^
a.cc:9:11: error: 'Z' was not declared in this scope
    9 |   int C = Z;
      |           ^
a.cc:11:8: error: expected ';' before 'A'
   11 |   A = B
      |        ^
      |        ;
   12 |     A = X
      |     ~
Language: C++

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

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

	long long i;
	for(i=0;i<1;i++){
		
	}
	

}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before numeric constant
    3 | using 2div_vec = vector<vector<long long>>;
      |       ^~~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
    int a,b,c;int t=0;
   cin >> a >> b
    t=a;
   a=b;
    b=t;
    t=c;
    c=a;
    a=t;

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: expected ';' before 't'
    6 |    cin >> a >> b
      |                 ^
      |                 ;
    7 |     t=a;
      |     ~
Language: C++

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:21: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    5 |     int a,b,c;int t="0";
      |                     ^~~
      |                     |
      |                     const char*
a.cc:6:17: error: expected ';' before 't'
    6 |    cin >> a >> b
      |                 ^
      |                 ;
    7 |     t=a;
      |     ~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main()
{
    int a,b,c;int t="0";
   cin >> a >> b
    t=a;
   a=b;
    b=t;
    t=c;
    c=a;
    a=t;

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    6 |     int a,b,c;int t="0";
      |                     ^~~
      |                     |
      |                     const char*
a.cc:7:17: error: expected ';' before 't'
    7 |    cin >> a >> b
      |                 ^
      |                 ;
    8 |     t=a;
      |     ~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'c' was not declared in this scope
    8 |   cout << c << ' ' << a << ' ' << b << endl;
      |           ^
a.cc:8:23: error: 'a' was not declared in this scope
    8 |   cout << c << ' ' << a << ' ' << b << endl;
      |                       ^
a.cc:8:35: error: 'b' was not declared in this scope
    8 |   cout << c << ' ' << a << ' ' << b << 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:
main.c: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;
  cout << Z << ' ' << X << ' ' << Y;
  
  
}

Compiler output:
main.c: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;
  string A;
  A=" ";
  cin >> X >> Y >> Z;
  cout << Z A << X A << Y << endl;
}


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

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

int main(){
  int X,Y,Z;
  string A;
  A=" ";
  cin >> X >> Y >> Z;
  cout << ZA << XA << Y << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: 'ZA' was not declared in this scope; did you mean 'A'?
    9 |   cout << ZA << XA << Y << endl;
      |           ^~
      |           A
a.cc:9:17: error: 'XA' was not declared in this scope; did you mean 'A'?
    9 |   cout << ZA << XA << Y << endl;
      |                 ^~
      |                 A
Language: C++

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

int main(){
  int X,Y,Z;
  string A;
  A=" "
  cin >> X >> Y >> Z;
  cout << ZA << XA << Y << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected ';' before 'cin'
    7 |   A=" "
      |        ^
      |        ;
    8 |   cin >> X >> Y >> Z;
      |   ~~~   
a.cc:9:11: error: 'ZA' was not declared in this scope; did you mean 'A'?
    9 |   cout << ZA << XA << Y << endl;
      |           ^~
      |           A
a.cc:9:17: error: 'XA' was not declared in this scope; did you mean 'A'?
    9 |   cout << ZA << XA << Y << endl;
      |                 ^~
      |                 A
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:12: error: expected ';' before '\x20'
    7 |   cout << Z' ' << X' ' << Y << endl;
      |            ^~~
      |            ;
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:12: error: expected ';' before string constant
    7 |   cout << Z" " << X" " << Y << endl;
      |            ^~~
      |            ;
Language: C++

#include <cstdio>
using namespace std;

int main() {
	int x, y, z;
	scanf_s("%d %d %d",&x,&y,&z);

	printf("%d %d %d", z, x, y);
}

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

#include<iostream>
using namespace <std>

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

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



return 0;
}

Compiler output:
a.cc:2:17: error: expected identifier before '<' token
    2 | using namespace <std>
      |                 ^
a.cc:2:16: error: expected ';' before '<' token
    2 | using namespace <std>
      |                ^~
      |                ;
a.cc:2:17: error: expected unqualified-id before '<' token
    2 | using namespace <std>
      |                 ^
Language: C++

#include <iostream>
using namespace std;

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


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;
      |   ^~~~
a.cc:8:3: error: expected unqualified-id before 'return'
    8 |   return 0;
      |   ^~~~~~
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
Language: C++

// Vicfred
// https://atcoder.jp/contests/abc161/tasks/abc161_a
// simulation
import std.algorithm;
import std.stdio;

void main() {
    int a, b, c;
    readf("%s %s %s\n", &a, &b, &c);
    swap(a,b);
    swap(a,c);
    writefln("%s %s %s", a, b, c);
}



Compiler output:
a.cc:4:1: error: 'import' does not name a type
    4 | import std.algorithm;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'import' does not name a type
    5 | import std.stdio;
      | ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:7:1: error: '::main' must return 'int'
    7 | void main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:5: error: 'readf' was not declared in this scope
    9 |     readf("%s %s %s\n", &a, &b, &c);
      |     ^~~~~
a.cc:10:5: error: 'swap' was not declared in this scope
   10 |     swap(a,b);
      |     ^~~~
a.cc:12:5: error: 'writefln' was not declared in this scope
   12 |     writefln("%s %s %s", a, b, c);
      |     ^~~~~~~~
Language: C

#include <stdio.h>

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

	scanf("%d%d%d", &a, &b, &c);

	printf_s("%d %d %d", c, a, b);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'printf_s'; did you mean 'printf'? [-Wimplicit-function-declaration]
    9 |         printf_s("%d %d %d", c, a, b);
      |         ^~~~~~~~
      |         printf
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected unqualified-id before ';' token
    6 |   int x,y,z,;
      |             ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected unqualified-id before ';' token
    6 |   int x,y,z,;
      |             ^
a.cc:14:20: error: unable to find string literal operator 'operator""z' with 'const char [2]', 'long unsigned int' arguments
   14 |   cout<<x<<" "<<y<<" "z<<endl;
      |                    ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected unqualified-id before ';' token
    6 |   int x,y,z,;
      |             ^
a.cc:14:20: error: expected primary-expression before '<<' token
   14 |   cout<<x<<" "<<y<<<<" "z<<endl;
      |                    ^~
a.cc:14:22: error: unable to find string literal operator 'operator""z' with 'const char [2]', 'long unsigned int' arguments
   14 |   cout<<x<<" "<<y<<<<" "z<<endl;
      |                      ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected unqualified-id before ';' token
    6 |   int x,y,z,;
      |             ^
Language: C++

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

int main(){
	int k;
    cin>>k;
  	vector<pair<int, int> > v;
  
  	for(int i=1;i<=9;i++){
      	v.push_back(make_pair(-1, i));
    }
  	int p=0;
  	int ct=0;
  	while(1){
    	int t=v[p].second;
      	if(t==0){
        	v.push_back(make_pair(p, 0));
          	v.push_back(make_pair(p, 1));
          	ct+=2;
        }else if(t==9){
        	v.push_back(make_pair(p, 8));
          	v.push_back(make_pair(p, 9));
          	ct+=2;
        }else{
        	v.push_back(make_pair(p, t-1));
          	v.push_back(make_pair(p, t));
          	v.push_back(make_pair(p, t+1));
          	ct+=3
        }
      	p++;
      	if(ct>k) break;
    }
  	
  	
  	int q=k-1;
  	long int num=0, ten=1;
  	while(q!=-1){
    	num+=(long int)v[q].second*ten;
      	q=v[q].first;
      	ten*=10;
    }
  
  	cout<<num<<endl;
  
  	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:22: error: expected ';' before '}' token
   29 |                 ct+=3
      |                      ^
      |                      ;
   30 |         }
      |         ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:27: error: 'a' was not declared in this scope
   12 |         printf("%d %d %d",a,b,c);
      |                           ^
a.cc:12:29: error: 'b' was not declared in this scope
   12 |         printf("%d %d %d",a,b,c);
      |                             ^
a.cc:12:31: error: 'c' was not declared in this scope
   12 |         printf("%d %d %d",a,b,c);
      |                               ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:16:10: warning: missing terminating " character
   16 |   printf("%d %d %d,x,y,z);
      |          ^
main.c:16:10: error: missing terminating " character
   16 |   printf("%d %d %d,x,y,z);
      |          ^~~~~~~~~~~~~~~~~
main.c:18:3: error: expected expression before 'return'
   18 |   return 0;
      |   ^~~~~~
main.c:18:12: error: expected ';' before '}' token
   18 |   return 0;
      |            ^
      |            ;
   19 |          }
      |          ~
Language: C++

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

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

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0; i<n; i++)
using namespace std;


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


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

#include<stdio.h>
void swap(int a , int b){
	int tmp;
  	tmp = *a;
  	a = b;
  	*b = tmp;
}
int main(void){
  	int a,b,c;
  scanf("%d%d%d",&a,&b,&c);
  swap(a,b);
  swap(a,c);
  printf("%d%d%d",a,b,c);
  return 0;
}
  


Compiler output:
main.c: In function 'swap':
main.c:4:15: error: invalid type argument of unary '*' (have 'int')
    4 |         tmp = *a;
      |               ^~
main.c:6:9: error: invalid type argument of unary '*' (have 'int')
    6 |         *b = tmp;
      |         ^~
Language: C

#include<stdio.h>
void swap(int a , int b){
	int tmp;
  	tmp = *a;
  	*a = *b;
  	*b = tmp;
}
int main(void){
  	int a,b,c;
  scanf("%d%d%d",&a,&b,&c);
  swap(a,b);
  swap(a,c);
  printf("%d%d%d",a,b,c);
  return 0;
}
  

Compiler output:
main.c: In function 'swap':
main.c:4:15: error: invalid type argument of unary '*' (have 'int')
    4 |         tmp = *a;
      |               ^~
main.c:5:9: error: invalid type argument of unary '*' (have 'int')
    5 |         *a = *b;
      |         ^~
main.c:5:14: error: invalid type argument of unary '*' (have 'int')
    5 |         *a = *b;
      |              ^~
main.c:6:9: error: invalid type argument of unary '*' (have 'int')
    6 |         *b = tmp;
      |         ^~
Language: C

#include<stdio.h>
int main(void){
  int a,b,c,d;
  scanf("%d%d%d",&a,&b,&c);
  printf("%d %d %d",&c,%b,&a);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:24: error: expected expression before '%' token
    5 |   printf("%d %d %d",&c,%b,&a);
      |                        ^
Language: C

#include<stido.h>
int main(void){
  int a,b,c,d;
  scanf("%d%d%d",&a,&b,&c);
  printf("%d %d %d",&c,%b,&a);
  return 0;
}

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

#include<stdio.h>
int main(void){
  char x[i],y[j],z[k];
  int i=0,j=0,k=0;
  scanf("%s %s %s",&x,&y,&z);
  printf("%d %d %d\n",k,i,j);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:3:10: error: 'i' undeclared (first use in this function)
    3 |   char x[i],y[j],z[k];
      |          ^
main.c:3:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:15: error: 'j' undeclared (first use in this function)
    3 |   char x[i],y[j],z[k];
      |               ^
main.c:3:20: error: 'k' undeclared (first use in this function)
    3 |   char x[i],y[j],z[k];
      |                    ^
Language: C

#include<stdio.h>
int main(void){
  char x,y,z;
  scanf("%c%c%c",&x,&y,&z);
  printf("%c%c%c",c,a,b);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:19: error: 'c' undeclared (first use in this function)
    5 |   printf("%c%c%c",c,a,b);
      |                   ^
main.c:5:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:21: error: 'a' undeclared (first use in this function)
    5 |   printf("%c%c%c",c,a,b);
      |                     ^
main.c:5:23: error: 'b' undeclared (first use in this function)
    5 |   printf("%c%c%c",c,a,b);
      |                       ^
Language: Java

import java.util.Scanner;

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


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

Scanner scan = new Scanner(System.in);
		int x= scan.nextInt();
		int y= scan.nextInt();
		int z= scan.nextInt();
		scan.close();
		System.out.print(z+" "+x+" "+y);

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
Scanner scan = new Scanner(System.in);
^
  (use --enable-preview to enable unnamed classes)
Main.java:5: error: class, interface, enum, or record expected
		scan.close();
		^
Main.java:6: error: class, interface, enum, or record expected
		System.out.print(z+" "+x+" "+y);
		^
3 errors
Language: C++

// STLを使うためのincludeディレクティブ
#include <bits/stdc++.h>
using namespace std;

// b.cppの内容が展開される
#include "b.cpp"

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


Compiler output:
a.cc:6:10: fatal error: b.cpp: No such file or directory
    6 | #include "b.cpp"
      |          ^~~~~~~
compilation terminated.
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:8:11: error: expected ';' before '}' token
    8 |   return 0
      |           ^
      |           ;
    9 | }
      | ~
Language: C++

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


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

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


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

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


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

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


Compiler output:
main.c: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;

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


Compiler output:
main.c: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; 
  
// Assign c's value to a, a's value to b and 
// b's value to c. 
void swapThree(int &a, int &b, int &c) 
{ 
    // Store sum of all in a 
    a = a + b + c;  // (a = 60) 
  
    // After this, b has value of a 
    b = a - (b+c);  // (b = 60 – (20+30) =10) 
  
    // After this, c has value of b 
    c = a - (b+c);  // (c = 60 – (10 + 30) = 20) 
  
    // After this, a has value of c 
    a = a - (b+c);   //(a = 60 – (10 + 20) = 30) 
} 
  
// Driver code 
int main() 
{ 
    int a = 10, b = 20, c = 30; 
  
    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; 
} 
O

Compiler output:
a.cc:36:1: error: 'O' does not name a type
   36 | O
      | ^
Language: Java

import java.util.Scanner;
public 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 ;
     A=X;
     X=Y;
     Y=A;
     
     int B;
     B=X;
     X=Z;
     Z=B;
     System.out.println(X,Y,Z);
   }
}  
  


Compiler output:
Main.java:18: error: no suitable method found for println(int,int,int)
     System.out.println(X,Y,Z);
               ^
    method PrintStream.println() is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(Object) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.util.Scanner;
public 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 ;
     A=X;
     X=Y;
     Y=A:
     
     int B;
     B=X;
     X=Z;
     Z=B;
     System.out.println(X,Y,Z);
   }
}  
  


Compiler output:
Main.java:12: error: ';' expected
     Y=A:
        ^
1 error
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:5:10: error: expected initializer before '.' token
    5 |   int A,B.C;
      |          ^
a.cc:6:11: error: 'B' was not declared in this scope
    6 |   cin>>A>>B>>C;
      |           ^
a.cc:6:14: error: 'C' was not declared in this scope
    6 |   cin>>A>>B>>C;
      |              ^
Language: C++


#include<bits/stdc++.h>
using namespace std;
#define ll long long
int main()
{

	ios_base::sync_with_stdio(0);
	cout.tie(0);
	cin.tie(0);

	// #ifndef ONLINE_JUDGE
 //    freopen("input.txt" , "r" , stdin);
	// freopen("output.txt" , "w" , stdout);
	// #endif

	int x,y,z;
	cin>>x>>y>>z;
	cout<<z<<" "<<x<<" "y;

	
	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:26: error: unable to find string literal operator 'operator""y' with 'const char [2]', 'long unsigned int' arguments
   19 |         cout<<z<<" "<<x<<" "y;
      |                          ^~~~
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:6:15: error: found ':' in nested-name-specifier, expected '::'
    6 |   cin>>a>>b>>c:
      |               ^
      |               ::
a.cc:6:14: error: 'c' is not a class, namespace, or enumeration
    6 |   cin>>a>>b>>c:
      |              ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i=0;i<(int)(n);i++)
using namespace std;

int main(){
    int n,m,i,sum=0;
    cin>>n>>m;
    vector<int> a(n);
    rep(i,n) {
        cin>>a[i];
        sum+=a[i];
    }
    int count=0;
    double sle=sum/(4*m);
    rep(i,n) if(a[i]>sle count++;
    //cout<<sum<<endl;
    if(count>=m) {
        cout<<"Yes"<<endl;
    }else{
        cout<<"No"<<endl;
    }


}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:25: error: expected ';' before 'count'
   15 |     rep(i,n) if(a[i]>sle count++;
      |                         ^~~~~~
      |                         ;
a.cc:17:5: error: expected primary-expression before 'if'
   17 |     if(count>=m) {
      |     ^~
a.cc:15:34: error: expected ')' before 'if'
   15 |     rep(i,n) if(a[i]>sle count++;
      |                ~                 ^
      |                                  )
   16 |     //cout<<sum<<endl;
   17 |     if(count>=m) {
      |     ~~                            
a.cc:24:1: error: expected primary-expression before '}' token
   24 | }
      | ^
Language: Java

import java.util.Scanner;
 
public 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 temp = a;
      	a = b;
      	b = a;
      	temp = a;
      	a = c;
      	c = temp;
      	System.out.println(x + " " + y + " " + z);
    }
}

Compiler output:
Main.java:10: error: cannot find symbol
      	int temp = a;
      	           ^
  symbol:   variable a
  location: class Main
Main.java:11: error: cannot find symbol
      	a = b;
      	^
  symbol:   variable a
  location: class Main
Main.java:11: error: cannot find symbol
      	a = b;
      	    ^
  symbol:   variable b
  location: class Main
Main.java:12: error: cannot find symbol
      	b = a;
      	^
  symbol:   variable b
  location: class Main
Main.java:12: error: cannot find symbol
      	b = a;
      	    ^
  symbol:   variable a
  location: class Main
Main.java:13: error: cannot find symbol
      	temp = a;
      	       ^
  symbol:   variable a
  location: class Main
Main.java:14: error: cannot find symbol
      	a = c;
      	^
  symbol:   variable a
  location: class Main
Main.java:14: error: cannot find symbol
      	a = c;
      	    ^
  symbol:   variable c
  location: class Main
Main.java:15: error: cannot find symbol
      	c = temp;
      	^
  symbol:   variable c
  location: class Main
9 errors
Language: C++

#include <bits/stdc++.h>
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:7:12: error: expected ';' before '\x20'
    7 |   cout << z' ' << x' ' << y;
      |            ^~~
      |            ;
Language: C++

#include<bits/stdc++.h>
#define N 300050
#define ll long long
#define pb push_back
#define x first
#define y second
#define all(v) v.begin(),v.end()
#define coffee prince
#define sz(a) (int)a.size()
#define ll long long
#define SIZE N
using namespace std;

signed main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    int a,b.c;
    cin>>a>>b>>c;
    cout<<c<<" "<<a<<" "<<b;
        return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:12: error: expected initializer before '.' token
   18 |     int a,b.c;
      |            ^
a.cc:19:13: error: 'b' was not declared in this scope
   19 |     cin>>a>>b>>c;
      |             ^
a.cc:19:16: error: 'c' was not declared in this scope
   19 |     cin>>a>>b>>c;
      |                ^
Language: C++

#include <iostream>

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

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

import java.util.*;
public 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[] S=new int[3];
        S[0]=X;
        S[1]=Y;
        S[2]=Z;
        
        int temp=S[0];
        S[0]=S[1];
        S[1]=temp;
        
        int tem=S[0];
        S[0]=S[2];
        S[2]=tem;
        
		for(i=0;i<3;i++){
        System.out.println(S[i]);
        }
		
	}
}

Compiler output:
Main.java:23: error: cannot find symbol
		for(i=0;i<3;i++){
		    ^
  symbol:   variable i
  location: class Main
Main.java:23: error: cannot find symbol
		for(i=0;i<3;i++){
		        ^
  symbol:   variable i
  location: class Main
Main.java:23: error: cannot find symbol
		for(i=0;i<3;i++){
		            ^
  symbol:   variable i
  location: class Main
Main.java:24: error: cannot find symbol
        System.out.println(S[i]);
                             ^
  symbol:   variable i
  location: class Main
4 errors
Language: Java


import java.util.*;
public 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[] S=new int[3];
        S[1]=X;
        S[2]=Y;
        S[3]=Z;
        
        int temp=S[1];
        S[1]=S[2];
        S[2]=temp;
        
        int tem=S[1];
        S[1]=S[3];
        S[3]=tem;
        
		System.out.println(S[1] S[2] S[3]);
		
	}
}


Compiler output:
Main.java:24: error: ')' or ',' expected
		System.out.println(S[1] S[2] S[3]);
		                       ^
Main.java:24: error: not a statement
		System.out.println(S[1] S[2] S[3]);
		                         ^
Main.java:24: error: ';' expected
		System.out.println(S[1] S[2] S[3]);
		                            ^
Main.java:24: error: not a statement
		System.out.println(S[1] S[2] S[3]);
		                              ^
Main.java:24: error: ';' expected
		System.out.println(S[1] S[2] S[3]);
		                                 ^
5 errors
Language: C++

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

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


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