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

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

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:11:53: error: expected ';' before '}' token
   11 |     cout << " " << a << " " << b << " " << c << endl
      |                                                     ^
      |                                                     ;
   12 | }
      | ~
Language: C++

#include <bits/stdc++.h>

using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> ll;

#define REP(i,n) for(ll i=0;i<(ll)(n);i++)
#define REPD(i,n) for(ll i=(ll)(n)-1;i>=0;i--)
#define FOR(i,a,b) for(ll i=(a);i<=(b);i++)
#define FORD(i,a,b) for(ll i=(a);i>=(b);i--)
#define ALL(x) (x).begin(),(x).end()
#define SIZE(x) ((ll)(x).size())
#define MAX(x) *max_element(ALL(x))
#define SUM(x) accumulate(ALL(x), 0)
#define print(x) cout << x;
#define println(x) cout << x << endl;
#define printd(x, f) cout << fixed << setprecision(f) << x << endl;

#define PB push_back
#define MP make_pair
#define F first
#define S second

#define INF 1000000000000
#define MOD 10000007
#define MAXR 100000
#define PI acos(-1.0)

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


Compiler output:
a.cc:6:20: error: conflicting declaration 'typedef class std::vector<long long int> ll'
    6 | typedef vector<ll> ll;
      |                    ^~
a.cc:4:19: note: previous declaration as 'typedef long long int ll'
    4 | typedef long long ll;
      |                   ^~
Language: C++

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

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

nclude<stdio.h>
int main(){
  int X,Y,Z;
    scanf("%d %d %d",&X,&Y,&Z);
  printf("%d\n %d\n %d\n",Z,X,Y);
  return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: unable to find string literal operator 'operator""Z' with 'const char [12]', 'long unsigned int' arguments
    5 |   printf("%d\n %d\n %d\n"Z,X,Y);
      |          ^~~~~~~~~~~~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: unable to find string literal operator 'operator""X' with 'const char [4]', 'long unsigned int' arguments
    5 |   printf("%d\n"X Y Z);
      |          ^~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: expected ')' before 'X'
    5 |   printf(Z X Y"%d&X %d&Y %d&Z");
      |         ~ ^~
      |           )
a.cc:5:10: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    5 |   printf(Z X Y"%d&X %d&Y %d&Z");
      |          ^
      |          |
      |          int
In file included from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: expected initializer before 'scanf'
    4 |     scanf("%d %d %d",&X,&Y,&Z);
      |     ^~~~~
a.cc:5:15: error: 'Z' was not declared in this scope
    5 |   printf("%d",Z X Y);
      |               ^
Language: C

#include<stdio.h>
void swap(int a, int b){
	int tmp;
  tmp = *a;
  a = b;
  *b = tmp;
  return;
}
  
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:9: error: invalid type argument of unary '*' (have 'int')
    4 |   tmp = *a;
      |         ^~
main.c:6:3: error: invalid type argument of unary '*' (have 'int')
    6 |   *b = tmp;
      |   ^~
Language: C

#include<stdio.h>

int x,y,z;
line char[128];

int main(){
	fgets(line,sizeof(line),stdin);
	sscanf(line,"%d%d%d",&x,&y,&z);
	
	printf("%d %d %d",z,x,y);
  	return 0;
}

Compiler output:
main.c:4:5: error: expected ';' before 'char'
    4 | line char[128];
      |     ^~~~~
      |     ;
main.c:4:10: error: expected identifier or '(' before '[' token
    4 | line char[128];
      |          ^
main.c: In function 'main':
main.c:7:15: error: 'line' undeclared (first use in this function)
    7 |         fgets(line,sizeof(line),stdin);
      |               ^~~~
main.c:7:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main() {
  int X, Y, Z; cin >> X >> Y >> Z;
  printf("%d %d %d", Z, X, Y)
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:30: error: expected ';' before '}' token
    6 |   printf("%d %d %d", Z, X, Y)
      |                              ^
      |                              ;
    7 | }
      | ~
Language: C++

#include <string>
#include <stdio.h>
#include <set>
#include <map>
#include <vector>
#include <algorithm>

using namespace std;

#define ll long long
#define rep(i, n) for (ll i = 0; i < n; i++)
// #define req(j, n) for (ll j = 1; j < (n+1); j++)
// #define rer(k, n) for (ll k = 1; k < (n+1); k++)



int main()
{
    ll N, M;
    cin >> N >> M;
    vector<int> A(N);
    ll all_vote = 0;
    rep(i, N) {
        cin >> A[i];
        all_vote += A[i];
    }
    sort(A.rbegin(), A.rend());
    if (A[M-1] >= (all_vote / (4 * M))) {
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:5: error: 'cin' was not declared in this scope
   20 |     cin >> N >> M;
      |     ^~~
a.cc:7:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    6 | #include <algorithm>
  +++ |+#include <iostream>
    7 | 
a.cc:29:9: error: 'cout' was not declared in this scope
   29 |         cout << "Yes" << endl;
      |         ^~~~
a.cc:29:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:29:26: error: 'endl' was not declared in this scope
   29 |         cout << "Yes" << endl;
      |                          ^~~~
a.cc:7:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    6 | #include <algorithm>
  +++ |+#include <ostream>
    7 | 
a.cc:31:9: error: 'cout' was not declared in this scope
   31 |         cout << "No" << endl;
      |         ^~~~
a.cc:31:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:31:25: error: 'endl' was not declared in this scope
   31 |         cout << "No" << endl;
      |                         ^~~~
a.cc:31:25: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>
using namespace std;
 
int man(){
  int a,b,c;
  cin >> a >> b >> c;
  cout << c << a << b << endl;
}

Compiler output:
a.cc: In function 'int man()':
a.cc:8:1: warning: no return statement in function returning non-void [-Wreturn-type]
    8 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<iostream>
using namespace std;

int man(){
  int a,b,c;
  cin >> a >> b >> c;
  cout << c << a << b << endl;
}

Compiler output:
a.cc: In function 'int man()':
a.cc:8:1: warning: no return statement in function returning non-void [-Wreturn-type]
    8 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include <iostream>

using namespace std;

int main(void){

  int X,Y,Z;
  cin >> X >> Y >> Z;

  cout << Z << " " << X << " " << Y << endl;
  return 0;
}

Compiler output:
main.c:1:10: 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 a,b,c;
  cin>>X>>Y>>Z;
  swap(X,Y);
  swap(X,Z);
  cout<<X<<""<<Y<<""<<Z;
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
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
    5 |   cin>>X>>Y>>Z;
      |           ^
a.cc:5:14: error: 'Z' was not declared in this scope
    5 |   cin>>X>>Y>>Z;
      |              ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'aa' was not declared in this scope; did you mean 'a'?
    7 |   swap(aa,c);
      |        ^~
      |        a
Language: C++

#include <iostream>
#include <stdio.h>
#include <string.h>
int main() {

    int x,y, z;
    std::cin >> x >> y >> z;
    int postA  = z;
    int postB  = x;
    int postC  = y;
    std::cout << postA << " "<<　postB <<  " "<< postC << std::endl;
    

    return 0;
}

Compiler output:
a.cc:11:32: error: extended character 　 is not valid in an identifier
   11 |     std::cout << postA << " "<<　postB <<  " "<< postC << std::endl;
      |                                ^
a.cc: In function 'int main()':
a.cc:11:32: error: '\U00003000postB' was not declared in this scope; did you mean 'postB'?
   11 |     std::cout << postA << " "<<　postB <<  " "<< postC << std::endl;
      |                                ^~~~~~~
      |                                postB
Language: C

#include<bits/stdc++.h>
using namespace std;
#define optimizar_io ios_base::sync_with_stdio(0); cin.tie(0);
#define fore(i, a, b) for(int i = a; i < b; i++)
#define fori(i, a, b) for(lli i = a; i <= b; i++)
#define pb push_back
#define popb pop_back
#define mk make_pair
#define fi first
#define se second
#define endl '\n'
#define MAX 60
typedef long long int lli;
typedef long double ld;
const double PI = acos(-1.0);
ld eps = 1e-9;

int main() {
	optimizar_io
	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 <bits/stdc++.h>
using namespace std;

int main(){
  int s, y, z;
  cin >>s>>y>>z;
  cout <<z<<' '<<s<<' '<<y;

Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: expected '}' at end of input
    7 |   cout <<z<<' '<<s<<' '<<y;
      |                            ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:4: error: 'll' was not declared in this scope
    5 |    ll a,b,c;
      |    ^~
a.cc:6:12: error: 'a' was not declared in this scope
    6 |     cin >> a >> b >> c;
      |            ^
a.cc:6:17: error: 'b' was not declared in this scope
    6 |     cin >> a >> b >> c;
      |                 ^
a.cc:6:22: error: 'c' was not declared in this scope
    6 |     cin >> a >> b >> c;
      |                      ^
Language: C++

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

int main() {
    int X,Y,Z;
    for(X=1 || Y=2 || Z=3);
    
  
  cout << X Y Z << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: lvalue required as left operand of assignment
    6 |     for(X=1 || Y=2 || Z=3);
      |                  ~~^~~~
a.cc:9:12: error: expected ';' before 'Y'
    9 |   cout << X Y Z << endl;
      |            ^~
      |            ;
a.cc:9:14: error: expected ')' before 'Z'
    9 |   cout << X Y Z << endl;
      |              ^~
      |              )
a.cc:6:8: note: to match this '('
    6 |     for(X=1 || Y=2 || Z=3);
      |        ^
a.cc:9:17: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |   cout << X Y Z << endl;
      |               ~~^~~~~~~
Language: C++

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

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

 #include<iostream> 2 using namespace std;
3 4 int main(){ 5 int a,b,c; 6 cin>>a>>b>>c; 7 swap(a,b); 8 swap(a,c); 9 cout<<a<<"␣"<<b<<"␣"<<c<<endl; 10 return 0; 11 }


Compiler output:
a.cc:1:21: warning: extra tokens at end of #include directive
    1 |  #include<iostream> 2 using namespace std;
      |                     ^
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 3 4 int main(){ 5 int a,b,c; 6 cin>>a>>b>>c; 7 swap(a,b); 8 swap(a,c); 9 cout<<a<<"␣"<<b<<"␣"<<c<<endl; 10 return 0; 11 }
      | ^
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;


}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected primary-expression before '<<' token
    9 |     cout<<a<<" "<<b<<<<" "<<c;
      |                      ^~
Language: C++

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

int main() {
int A, B, C;
  cin >> A >> B >> C;
  vector<int> s = {A, B, C}
  reverse(s.begin(), s.end());
  for(int i = 0; i < 3; ++i){
cout << s.at(i) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'reverse'
    8 |   reverse(s.begin(), s.end());
      |   ^~~~~~~
a.cc:11:2: error: expected '}' at end of input
   11 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
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: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(void){
int A,B,C;
scanf("%d%d%d",&X,&Y,&Z);
printf("%d %d %d",Z,Y,X);
return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:11: error: 'X' was not declared in this scope
    4 |   int a = X, b = Y, c = Z;
      |           ^
a.cc:7:11: error: 'b' was not declared in this scope
    7 |   swap(a, b);
      |           ^
a.cc:8:11: error: 'c' was not declared in this scope
    8 |   swap(a, c);
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:11: error: 'X' was not declared in this scope
    4 |   int a = X, b = Y, c = Z;
      |           ^
a.cc:5:15: error: 'Y' was not declared in this scope
    5 |   cin >> X >> Y >> Z;
      |               ^
a.cc:5:20: error: 'Z' was not declared in this scope
    5 |   cin >> X >> Y >> Z;
      |                    ^
a.cc:6:11: error: 'b' was not declared in this scope
    6 |   swap(a, b);
      |           ^
a.cc:7:11: error: 'c' was not declared in this scope
    7 |   swap(a, c);
      |           ^
Language: C++

// Confessions of a Dangerous Mind

#include <bits/stdc++.h>

using namespace std;
using ll = long long;

const int N = 2e5 + 3;
const int M = 1e6 + 7;
const long long MOD = 1e9 + 7;
const long long INF = 1e18 + 9;
const int SM = 2e3 + 5;
const int logN = 22, BL = 400;
const double EPS = 3e-16;

/*
	Keep moving forward. Take the Leap of Faith
*/

int main(){
//  freopen(".in", "r", stdin);
//  freopen(".out", "w", stdout);
    ios_base::sync_with_stdio(false);
    cin.tie(0), cout.tie(0);
	
    long long 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:26:42: error: expected ';' before 'swap'
   26 |     long long a, b, c; cin >> a >> b >> c
      |                                          ^
      |                                          ;
   27 | 
   28 |     swap(a, b);
      |     ~~~~
Language: Java

package atcoder.ABC;
import java.util.*;

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

}


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

import java.util.*;

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

}


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

import java.util.*;

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

}


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

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,sta,end) for(ll i=sta;i<end;i++)
#define all(x) x.begin(),x.end()
#define MOD 1000000007
#define vvl vector<vector<ll>>
#define vl  vector<ll>
#define acc_io cin.tie(0);ios::sync_with_stdio(false)
//name[i]   -> vl  name(i)
//name[i][j]-> vvl name(i,vl(j))
//or-> ||

signed main(){
	acc_io;
  	ll a,b,c
	cin>>a>>b>>c;
	cout<<c<<" "<<a<<" "<<b<<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: expected initializer before 'cin'
   17 |         cin>>a>>b>>c;
      |         ^~~
a.cc:18:15: error: 'c' was not declared in this scope
   18 |         cout<<c<<" "<<a<<" "<<b<<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;
    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>
#include<stdlib.h>

int mian(){
       int a, b, c;
       scanf("%d%d%d", &a, &b, &c);
       int p, pp;
       p =  a;
        a=b;
       b=p;

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


Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

int mian(){
       int a, b, c;
       scanf("%d%d%d", &a, &b, &c);
       int p, pp;
       p =  a;
        a=b;
       b=p;
       pp =  a;
        a=c;
       c=pp;
     printf("%d%d%d", a, b, c);
     return 0;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

int mian(){
       int a, b, c;
       scanf("%d%d%d", &a, &b, &c);
       int p, pp;
       p =  a;
        a=b;
       b=p;
       pp =  a;
        a=c;
       c=pp;
     printf("%d%d%d", a, b, c)'
     return 0;
}


Compiler output:
a.cc:15:31: warning: missing terminating ' character
   15 |      printf("%d%d%d", a, b, c)'
      |                               ^
a.cc:15:31: error: missing terminating ' character
a.cc: In function 'int mian()':
a.cc:15:31: error: expected ';' before 'return'
   15 |      printf("%d%d%d", a, b, c)'
      |                               ^
      |                               ;
   16 |      return 0;
      |      ~~~~~~                    
a.cc:17:1: warning: no return statement in function returning non-void [-Wreturn-type]
   17 | }
      | ^
Language: C++

X,Y,Z=map(int,input().split())
A,B,C=X,Y,Z
A,B=B,A
A,C=C,A
print(A,B,C)

Compiler output:
a.cc:1:1: error: 'X' does not name a type
    1 | X,Y,Z=map(int,input().split())
      | ^
Language: C++

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

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:16: error: 'cin' was not declared in this scope
    5 |     int X,Y,Z; cin >> X >> Y >> Z;
      |                ^~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << X << Y << Z << endl;
      |     ^~~~
a.cc:8:28: error: 'endl' was not declared in this scope
    8 |     cout << X << Y << Z << endl;
      |                            ^~~~
Language: C++

#include <bits/stdc++>
using namespace std;
int main()
{ 
     int a,b,c;
     cin>>a>>b>>c;
     swap(a,b);
     swap(a,c);
     printf("%d %d %d\n",a,b,c);
     return 0;
}

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

#include <bits/stdc++>
using namespace std;
int main()
{
     int a,b,c;
     cin>>a>>b>>c;
     swap(a,b);
     swap(a,c);
     printf("%d %d %d",a,b,c);
     return 0;
}

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



def read_int():
    return int(input().strip())


def read_ints():
    return list(map(int, input().strip().split(' ')))


def solve():
    a, b, c = read_ints()
    return ' '.join(map(str, [c, a, b]))


if __name__ == '__main__':
    print(solve())


Compiler output:
a.cc:16:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
   16 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:3:1: error: 'def' does not name a type
    3 | def read_int():
      | ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
	vector<int> vec(3);
    for (int i = 0; i < N; i++) {
        cin >> vec.at(i);
    }
  	cout << vec.at(2)<< vec.at(0)<<vec.at(1) << endl;
}

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

fun main() {
    val ints = rspint()
    function(ints)
}

fun function(ints: List<Int>) {
    println("${ints[2]} ${ints[0]} ${ints[1]}")
}

fun rl() = readLine()!!
fun rsp() = readLine()!!.split(" ")
fun rint() = readLine()!!.toInt()
fun rspint() = readLine()!!.split(" ").map { it.toInt() }

Compiler output:
a.cc:1:1: error: 'fun' does not name a type
    1 | fun main() {
      | ^~~
a.cc:6:1: error: 'fun' does not name a type
    6 | fun function(ints: List<Int>) {
      | ^~~
a.cc:10:1: error: 'fun' does not name a type
   10 | fun rl() = readLine()!!
      | ^~~
Language: C++

x = gets.chomp.split(" ")

x[0],x[1] = x[1],x[0]
x[0],x[2] = x[2],x[0]

x.each do |x|
  puts x.chomp
end

Compiler output:
a.cc:1:1: error: 'x' does not name a type
    1 | x = gets.chomp.split(" ")
      | ^
Language: C++

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
 
#pragma comment(linker, "/stack:20000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx")
  
#define mp make_pair
#define f first
#define s second
#define ll long long
#define pb push_back
 
using namespace std;
/*
using namespace __gnu_pbds;
template <typename T> using ordered_set = tree<T, null_type, std::less<T>, rb_tree_tag, tree_order_statistics_node_update>;
  */
const int inf = 2e9+7, mod=1e9+7;
const int N = 1e3;
 
ll xx[8]={1, 1, -1, -1, 1, -1, 0, 0};
ll yy[8]={1, -1, 1, -1, 0, 0, 1, -1};

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

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

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();
        int temp;
        temp=a;
        a=b;
        b=temp;
        temp=a;
        a=c;
        c=temp;
        System.out.println(a+" "+" "+b+" "+" "+c);


    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: expected unqualified-id before 'public'
    2 | public class Main{
      | ^~~~~~
Language: C


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

int main()
{
    int n,k,c,*p,*q,j;
    cin >> n >> k >> c ;
    char ch;
    p=(int*)malloc(n*sizeof(int));
    q=(int*)malloc(n*sizeof(int));
    for(int i=0;i<n;i++){

        ch=cin.get();
        switch (ch){
        case 'o':
            p[i]=1;
            break;
        case'x':
            p[i]=0;
            break;
        default:
            i--;
            break;
        }

    }
    for (int i=0;i<n;i++){
        j=0;
        for (int h=0;h<n;h++){
            q[h]=p[h];
        }
        if (q[i]==1){
            q[i]=0;
            for (int h=0;h<n;h++){
                if (q[h]==1){
                    q[h]=0;
                    j++;
                    for (int t=h+1;(t<=h+c)&(t<n);t++){
                        q[t]=0;
                    }
                }

            }
            if (j<k){
                cout<<i+1<<endl;
            }
        }

    }
    free(p);
    free(q);
    return 0;
}

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

import Control.Applicative

result :: Int -> Int -> Int -> String
result a b c = show a ++ " " ++ show b ++ " " ++ show c

main :: IO ()
main = do
    [a, b, c] <- map read . words <$> getLine
    putStrLn $ result c a b

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import Control.Applicative
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <iostream>
#include <ios>
#include <iomanip>
#include <algorithm>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <deque>
#include <map>
#include <set>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <utility>
#include <typeinfo>
#include <tuple>
using namespace std;

#define MOD 1000000007
#define INF 1e9+7
#define INF_LONG 1e18
#define rep(i, n) for(int i=0; i<n; ++i)
#define rep1(i, n) for(int i=1; i<=n; ++i)
#define rrep(i, m, n) for(int i=m; i<n; ++i)
#define countof(array) (sizeof(array) / sizeof(array[0]))
typedef long long ll;

#define MAX_N 200000
#define MAX_M 100000
#define MAX_V 100
#define MAX_E 100
#define MAX_Q 100000

int dx[] = {-1, 0, 1, 0};
int dy[] = {0, -1, 0, 1};

int ddx[] = {-1, 0, 1, 0, -1, 1, -1, 1};
int ddy[] = {0, -1, 0, 1, 1, 1, -1, -1};

string as = {"ABCDEFGHIJKLMNOPQRSTUVWXYZ"};
string ab = {"abcdefghijklmnopqrstuvwxyz"};

ll gcd(ll x, ll y) {
  if(y==0) return x;
  else return gcd(y, x%y);
}

ll lcm(ll x, ll y) {
  return (x*y)/gcd(x, y);
}

void yes() {
  cout << "Yes" << endl;
}

void no() {
  cout << "No" << endl;
}

void print_array(int array[], int len) {

  for(int i=0; i<len; ++i) {
    cout << array[i] << endl;
  }

}

ll absolute(ll x) {
  return (x<0)? (-1)*x : x;
}

//g++ AtCoder.cpp -o AtCoder
//AtCoder

//--------------------------
int main() {

  int a, b, c;
  cin >> a >> b >> c;
  cout << c << " " << a << " " << b << endll;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:82:40: error: 'endll' was not declared in this scope
   82 |   cout << c << " " << a << " " << b << endll;
      |                                        ^~~~~
Language: C++

#include<bits/stdc++.h> 
using namespace std;
int main(){
	int X, Y, Z;
 	cin >> X>>Y>>Z;
	print(Z, X, Y);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'print' was not declared in this scope; did you mean 'rint'?
    6 |         print(Z, X, Y);
      |         ^~~~~
      |         rint
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:5:16: error: expected ';' before 'X'
    5 |         cout<<Z X Y<<endl;
      |                ^~
      |                ;
Language: Java

import java.util.Scanner;

public class main {

    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int target=scanner.nextInt();
        int n=0;
        long a=0;
        while (n<target){
            a+=1;
            if (a<10){
                n+=1;
                continue;
            }
            if (solve(a)){
                n+=1;
            }
        }
        System.out.println(a);


    }
    public static boolean solve(long a){
        char[] nums=String.valueOf(a).toCharArray();
        for (int i=0;i<nums.length-1;i++){
            if (Math.abs(Integer.parseInt(String.valueOf(nums[i]))-Integer.parseInt(String.valueOf(nums[i+1])))>1){
                return false;
            }
        }

        return true;
    }
}

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

    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int target=scanner.nextInt();
        int n=0;
        long a=0;
        while (n<target){
            a+=1;
            if (a<10){
                n+=1;
                continue;
            }
            if (solve(a)){
                n+=1;
            }
        }
        System.out.println(a);


    }
    public static boolean solve(long a){
        char[] nums=String.valueOf(a).toCharArray();
        for (int i=0;i<nums.length-1;i++){
            if (Math.abs(Integer.parseInt(String.valueOf(nums[i]))-Integer.parseInt(String.valueOf(nums[i+1])))>1){
                return false;
            }
        }

        return true;
    }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
    public static void main(String[] args) {
                  ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

#include <bits/stdc++.h>

using namespace std;

int32_t main() {
    ios::sync_with_stdio(false);
    cin.tie(NULL);
    
    int a, b, c;
    cin >> a >> b >> c;

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



Compiler output:
a.cc: In function 'int32_t main()':
a.cc:12:13: error: 'z' was not declared in this scope
   12 |     cout << z << ' ' << x << ' ' << y;
      |             ^
a.cc:12:25: error: 'x' was not declared in this scope
   12 |     cout << z << ' ' << x << ' ' << y;
      |                         ^
a.cc:12:37: error: 'y' was not declared in this scope
   12 |     cout << z << ' ' << x << ' ' << y;
      |                                     ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
int k,first=1,last=9;
ll [1000005]; 
int main()
{
	for(int i=1;i<=9;i++) a[i]=i;
	cin>>k;
	if(k<=9)
	{
		cout<<a[i];return 0;
	}
	while(1)
	{
		11 t;=a[first];
		for(int i=-1;i<=1;i++)
		{
			if(t%10==0&&i==-1)continue;
			if(t%10==9&&i==1)continue;
			ll nt=t*10+t%10+i;
			a[++last]=nt;
			if(last>=k){
				cout<<a[k];return 0;
			}
		}
		first++;
	}
return 0;
}


Compiler output:
a.cc:5:5: error: expected identifier before numeric constant
    5 | ll [1000005];
      |     ^~~~~~~
a.cc:5:5: error: expected ']' before numeric constant
    5 | ll [1000005];
      |     ^~~~~~~
      |     ]
a.cc:5:4: error: structured binding declaration cannot have type 'long long int'
    5 | ll [1000005];
      |    ^
a.cc:5:4: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:5:4: error: empty structured binding declaration
a.cc:5:13: error: expected initializer before ';' token
    5 | ll [1000005];
      |             ^
a.cc: In function 'int main()':
a.cc:8:31: error: 'a' was not declared in this scope
    8 |         for(int i=1;i<=9;i++) a[i]=i;
      |                               ^
a.cc:12:23: error: 'a' was not declared in this scope
   12 |                 cout<<a[i];return 0;
      |                       ^
a.cc:12:25: error: 'i' was not declared in this scope
   12 |                 cout<<a[i];return 0;
      |                         ^
a.cc:16:19: error: expected ';' before 't'
   16 |                 11 t;=a[first];
      |                   ^~
      |                   ;
a.cc:16:22: error: expected primary-expression before '=' token
   16 |                 11 t;=a[first];
      |                      ^
a.cc:16:23: error: 'a' was not declared in this scope
   16 |                 11 t;=a[first];
      |                       ^
a.cc:19:28: error: 't' was not declared in this scope
   19 |                         if(t%10==0&&i==-1)continue;
      |                            ^
a.cc:20:28: error: 't' was not declared in this scope
   20 |                         if(t%10==9&&i==1)continue;
      |                            ^
a.cc:21:31: error: 't' was not declared in this scope; did you mean 'nt'?
   21 |                         ll nt=t*10+t%10+i;
      |                               ^
      |                               nt
Language: C++

import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

X,Y,Z = map(int, read().split())

print(Z,X,Y)

Compiler output:
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;
#define ll long long
ll k,x,ans; 
int main()
{
cin>>k,x;
if(x%k=k/2)cout<<n%k;
else cout<<k-n%k;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: lvalue required as left operand of assignment
    8 | if(x%k=k/2)cout<<n%k;
      |    ~^~
a.cc:8:18: error: 'n' was not declared in this scope; did you mean 'yn'?
    8 | if(x%k=k/2)cout<<n%k;
      |                  ^
      |                  yn
a.cc:9:14: error: 'n' was not declared in this scope; did you mean 'yn'?
    9 | else cout<<k-n%k;
      |              ^
      |              yn
Language: C++

#include <bits/stdc++.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:22: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |         int a, b, c; cin >> a >> b >> c;
      |                      ^~~
      |                      std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:9: error: 'swap' was not declared in this scope
    5 |         swap(a,b);
      |         ^~~~
a.cc:5:9: note: suggested alternatives:
In file included from /usr/include/c++/14/regex:68,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181:
/usr/include/c++/14/bits/regex.h:2230:5: note:   'std::__cxx11::swap'
 2230 |     swap(match_results<_Bi_iter, _Alloc>& __lhs,
      |     ^~~~
In file included from /usr/include/c++/14/bits/stl_pair.h:61,
                 from /usr/include/c++/14/bits/stl_algobase.h:64,
                 from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
  226 |     swap(_Tp& __a, _Tp& __b)
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
In file included from /usr/include/c++/14/exception:166,
                 from /usr/include/c++/14/stdexcept:38,
                 from /usr/include/c++/14/system_error:43,
                 from /usr/include/c++/14/bits/ios_base.h:46,
                 from /usr/include/c++/14/streambuf:43,
                 from /usr/include/c++/14/bits/streambuf_iterator.h:35,
                 from /usr/include/c++/14/iterator:66,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54:
/usr/include/c++/14/bits/exception_ptr.h:229:5: note:   'std::__exception_ptr::swap'
  229 |     swap(exception_ptr& __lhs, exception_ptr& __rhs)
      |     ^~~~
In file included from /usr/include/c++/14/filesystem:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200:
/usr/include/c++/14/bits/fs_path.h:736:15: note:   'std::filesystem::__cxx11::swap'
  736 |   inline void swap(path& __lhs, path& __rhs) noexcept { __lhs.swap(__rhs); }
      |               ^~~~
a.cc:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         cout << a << b << c;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <bits/stdc++.c>

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

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

#include<stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
    6 |   scanf("%d%d%d",&x &y &z);
      |                  ~~ ^~
      |                  |   |
      |                  |   int
      |                  int*
Language: C++

#include<stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
    6 |   scanf("%d",&x &y &z);
      |              ~~ ^~
      |              |   |
      |              |   int
      |              int*
Language: C++

x,y,z = map(int, input().split())

x1, y1, z1 = y, x, z
x2, y2, z2 = z1, y1, x1

print(x2, y2, z2)

Compiler output:
a.cc:1:1: error: 'x' does not name a type
    1 | x,y,z = map(int, input().split())
      | ^
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:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
    4 |   int x,y,z;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin>>x>>y>>z;
      |   ^~~
a.cc:6:3: error: 'cout' does not name a type
    6 |   cout<<z<<" "<<x<<" "<<y;
      |   ^~~~
a.cc:7:1: error: expected declaration before '}' token
    7 | }
      | ^
Language: C++

a = list(map(int, input().split()))
b = [0, 0, 0]

b[0] = a[2]
b[1] = a[0]
b[2] = a[1]
print(b)

B = [str(a) for a in b]
B = " ".join(B)
print(B)

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a = list(map(int, input().split()))
      | ^
Language: C++

import java.util.*;
public class Main {


    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:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.lang.reflect.Array;
import java.math.BigInteger;
import java.util.*;
import java.lang.*;

public class  Main {
    static class FastReader{
        BufferedReader br;
        StringTokenizer st;

        public FastReader(){
            br = new BufferedReader(new InputStreamReader(System.in));
        }

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

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

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

        double nextDouble(){
            return Double.parseDouble(next());
        }
        String nextLine(){
            String str="";
            try{
                str=br.readLine();
            }
            catch(IOException e){
                e.printStackTrace();
            }
            return str;
        }
    }
  
    public static void main(String[] args) {
        FastReader in = new FastReader();
        int a =in.nextInt();
        int b=in.nextInt();
        int c=in.nextInt();
        System.out.println(c+" "+a+" "+b);


    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.BufferedReader;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.IOException;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.io.InputStreamReader;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import java.lang.reflect.Array;
      | ^~~~~~
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 java.math.BigInteger;
      | ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: 'import' does not name a type
    6 | import java.util.*;
      | ^~~~~~
a.cc:6:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:7:1: error: 'import' does not name a type
    7 | import java.lang.*;
      | ^~~~~~
a.cc:7:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:9:1: error: expected unqualified-id before 'public'
    9 | public class  Main {
      | ^~~~~~