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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:19: error: 'cin' was not declared in this scope
    2 |         int a,b,c;cin>>a>>b>>c;
      |                   ^~~
a.cc:3:9: error: 'cout' was not declared in this scope
    3 |         cout<<c<<a<<b;
      |         ^~~~
Language: Java

import java.util.Scanner;

public class ABC_Swap {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
Scanner sc=new Scanner(System.in);
int a=sc.nextInt();
int b=sc.nextInt();
int c=sc.nextInt();
int d;
d=a;
a=b;
b=d;
int e;
e=a;
a=c;
c=e;
System.out.println(a+" "+b+" "+c);

	}

}


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

#include "stdio.h"

int main(void){
 
  scanf("%d %d %d",&x,&y,&z);
  
}

Compiler output:
main.c: In function 'main':
main.c:5:21: error: 'x' undeclared (first use in this function)
    5 |   scanf("%d %d %d",&x,&y,&z);
      |                     ^
main.c:5:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:24: error: 'y' undeclared (first use in this function)
    5 |   scanf("%d %d %d",&x,&y,&z);
      |                        ^
main.c:5:27: error: 'z' undeclared (first use in this function)
    5 |   scanf("%d %d %d",&x,&y,&z);
      |                           ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before 'A'
    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;
}

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

Problem StatementWe have held a popularity poll for NN items on sale. Item ii received AiAi votes.From these NN items, we will select MM as popular items. However, we cannot select an item with less than 14M14M of the total number of votes.If MM popular items can be selected, print Yes; otherwise, print No.
Constraints
1≤M≤N≤1001≤M≤N≤100
1≤Ai≤10001≤Ai≤1000
AiAi are distinct.

Compiler output:
a.cc:3:1: error: extended character ≤ is not valid in an identifier
    3 | 1≤M≤N≤1001≤M≤N≤100
      | ^
a.cc:3:1: error: extended character ≤ is not valid in an identifier
a.cc:3:1: error: extended character ≤ is not valid in an identifier
a.cc:3:1: error: extended character ≤ is not valid in an identifier
a.cc:3:1: error: extended character ≤ is not valid in an identifier
a.cc:3:1: error: extended character ≤ is not valid in an identifier
a.cc:4:1: error: extended character ≤ is not valid in an identifier
    4 | 1≤Ai≤10001≤Ai≤1000
      | ^
a.cc:4:1: error: extended character ≤ is not valid in an identifier
a.cc:4:1: error: extended character ≤ is not valid in an identifier
a.cc:4:1: error: extended character ≤ is not valid in an identifier
a.cc:1:1: error: 'Problem' does not name a type
    1 | Problem StatementWe have held a popularity poll for NN items on sale. Item ii received AiAi votes.From these NN items, we will select MM as popular items. However, we cannot select an item with less than 14M14M of the total number of votes.If MM popular items can be selected, print Yes; otherwise, print No.
      | ^~~~~~~
a.cc:1:289: error: 'otherwise' does not name a type
    1 | Problem StatementWe have held a popularity poll for NN items on sale. Item ii received AiAi votes.From these NN items, we will select MM as popular items. However, we cannot select an item with less than 14M14M of the total number of votes.If MM popular items can be selected, print Yes; otherwise, print No.
      |                                                                                                                                                                                                                                                                                                 ^~~~~~~~~
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:6: error: expected ';' before 'X'
    7 |   cin X >> Y >> Z;
      |      ^~
      |      ;
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: expected ';' before 'X'
    7 |   cin X >> Y >> Z;
      |      ^~
      |      ;
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: expected ';' before 'X'
    7 |   cin X >> Y >> Z;
      |      ^~
      |      ;
Language: Java

import java.util.*;
public class Swap{
  
  public static void main(String[] args) {
Scanner scanner=new Scanner(System.in);
String a=scanner.next();
String b =scanner.next();
String c =scanner.next();

System.out.print(c+" "+ a+ " "+b);
  }


}

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

#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
#define dump(x) cout << x << endl
typedef int64_t Int;

using namespace std;
using Graph = vector<vector<Int>>;

const double pi = M_PI;
const Int MOD = 1000000007;

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:16:24: error: expected ';' before 'endl'
   16 |     cout << z << x << y endl;
      |                        ^~~~~
      |                        ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:33: error: expected '}' at end of input
    8 |   cout<<x<<" "<<y<<" "<<z<<endl;
      |                                 ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C

#include <stdio.h>

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

int main(){
  	int x,y,z;	
  	while(x<=100 && y<=100 && z<=100){
      if(scanf("%d %d %d",&x,&y,&z)==1)
    }
  	swap(&x,&y);
    printf("箱Aと箱Bの中身を入れ替えた後、箱A,B,Cに入っている整数はそれぞれ%d,%d,%dです。\n",x,y,z);
  	swap(&x,&z);
  	printf("箱Aと箱Bの中身を入れ替えた後、箱A,B,Cに入っている整数はそれぞれ%d,%d,%dです。\n",x,y,z);
    
  	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:5: error: expected expression before '}' token
   14 |     }
      |     ^
Language: C++

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

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

import java.util.Scanner;

public class ABC {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int T = s.nextInt();
        int m=s.nextInt();
        int c=s.nextInt();
        System.out.println(c+" "+T+" "+m);
    }
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before 'cout'
    8 |   swap(a,c)
      |            ^
      |            ;
    9 |   cout <<a<<" "<<b<<" "<<c<< endl;
      |   ~~~~
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<<" "<<<< endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before 'cout'
    8 |   swap(a,c)
      |            ^
      |            ;
    9 |   cout <<a<<" "<<b<<" "<<<< endl;
      |   ~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:2: error: 'inta' was not declared in this scope; did you mean 'int'?
    5 |  inta,b,c;
      |  ^~~~
      |  int
a.cc:5:7: error: 'b' was not declared in this scope
    5 |  inta,b,c;
      |       ^
a.cc:5:9: error: 'c' was not declared in this scope
    5 |  inta,b,c;
      |         ^
a.cc:6:8: error: 'a' was not declared in this scope
    6 |   cin>>a>>b>>c;
      |        ^
Language: C

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

int main(void) {
        long long int n, k, tmp;
        scanf("%lld %lld",&n,&k);
        if( (n = n%k) > tmp = llabs(n -k)) printf("%lld\n",tmp);
        else printf("%lld\n",n);
        return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:29: error: lvalue required as left operand of assignment
    7 |         if( (n = n%k) > tmp = llabs(n -k)) printf("%lld\n",tmp);
      |                             ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: 'A' was not declared in this scope
    5 |  cin>>A>>B>>C;
      |       ^
a.cc:5:10: error: 'B' was not declared in this scope
    5 |  cin>>A>>B>>C;
      |          ^
a.cc:5:13: error: 'C' was not declared in this scope
    5 |  cin>>A>>B>>C;
      |             ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'c' was not declared in this scope
    7 |  cout<<B<<c<<A<<endl;
      |           ^
Language: Java

import java.util.Scanner;

public class Yutori {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int n = scan.nextInt();
		int k = scan.nextInt();
		int c = scan.nextInt();
		String s = scan.next();
		
		int[] left = new int[n];
		int count = 0;
		for(int i = 0; i < n; i++){
			if(s.charAt(i) != 'x') {
				left[i] = count+1;
				i += c;
				count++;
				if(count == k) break;
			}
		}
		
		int[] right = new int[n];
		count = 0;
		for(int i = n-1; i >= 0; i--) {
			if(s.charAt(i) != 'x') {
				right[i] = count+1;
				i -= c;
				count++;
				if(count == k) break;
			}
		}
		
		for(int i = 0; i < n; i++) {
			if(left[i] == right[i] && left[i] == i+1) {
				System.out.println(i+1);
			}
		}
		
		
	}
}


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

#include<stdio.h>
void main(void){
    int tmp;
    int *num[3];
    scanf("%d %d %d",&num[0],&num[1],&num[2]);
    tmp=num[0];
    num[0]=num[1];
    num[1]=tmp;
    tmp=num[0];
    num[0]=num[2];
    num[2]=tmp;
    printf("%d %d %d",num[0],num[1],num[2]);
}


Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | void main(void){
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:14: error: invalid conversion from 'int*' to 'int' [-fpermissive]
    6 |     tmp=num[0];
      |         ~~~~~^
      |              |
      |              int*
a.cc:8:12: error: invalid conversion from 'int' to 'int*' [-fpermissive]
    8 |     num[1]=tmp;
      |            ^~~
      |            |
      |            int
a.cc:9:14: error: invalid conversion from 'int*' to 'int' [-fpermissive]
    9 |     tmp=num[0];
      |         ~~~~~^
      |              |
      |              int*
a.cc:11:12: error: invalid conversion from 'int' to 'int*' [-fpermissive]
   11 |     num[2]=tmp;
      |            ^~~
      |            |
      |            int
Language: C++

#include<stdio.h>
void main(void){
  int tmp;
  int num[3];
  scanf("%d %d %d",num[0],num[1],num[2]);
  tmp=num[0];
  num[0]=num[1];
  num[1]=tmp;
  tmp=num[0];
  num[0]=num[2];
  num[2]=tmp;
  printf("%d %d %d"num[0],num[1],num[2]);

Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | void main(void){
      | ^~~~
a.cc: In function 'int main()':
a.cc:12:10: error: unable to find string literal operator 'operator""num' with 'const char [9]', 'long unsigned int' arguments
   12 |   printf("%d %d %d"num[0],num[1],num[2]);
      |          ^~~~~~~~~~~~~
a.cc:12:42: error: expected '}' at end of input
   12 |   printf("%d %d %d"num[0],num[1],num[2]);
      |                                          ^
a.cc:2:16: note: to match this '{'
    2 | void main(void){
      |                ^
Language: C++

#include<stdio.h>
void main(void){
    int tmp;
    int num[3];
    scanf("%d %d %d",num[0],num[1],num[2]);
    tmp=num[0];
    num[0]=num[1];
    num[1]=tmp;
    tmp=num[0];
    num[0]=num[2];
    num[2]=tmp;
    printf("%d %d %d",num[0],num[1],num[2]);
}


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

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


Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | void main(void){
      | ^~~~
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;
  return 0;
}


Compiler output:
a.cc:8:12: error: empty character constant
    8 |   cout<<a<<''<<b<<''<<c<<endl;
      |            ^~
a.cc:8:19: error: empty character constant
    8 |   cout<<a<<''<<b<<''<<c<<endl;
      |                   ^~
Language: C++

#include<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;
  return 0;
}


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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:47: error: expected ';' before 'return'
    7 |     cout << z << ' ' <<  x << ' ' << y << '\n'
      |                                               ^
      |                                               ;
    8 |     return 0;
      |     ~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:34: error: expected ';' before 'y'
    7 |     cout << z << ' ' <<  x << ' ' y << '\n'
      |                                  ^~
      |                                  ;
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: 'C' was not declared in this scope
    5 |   cin>>A>>B>>C;
      |              ^
a.cc:7:7: error: redeclaration of 'int answer'
    7 |   int answer=swap(A,C);
      |       ^~~~~~
a.cc:6:7: note: 'int answer' previously declared here
    6 |   int answer=(A,B,C);
      |       ^~~~~~
a.cc:8:7: error: redeclaration of 'int answer'
    8 |   int answer=swap(A,B);
      |       ^~~~~~
a.cc:6:7: note: 'int answer' previously declared here
    6 |   int answer=(A,B,C);
      |       ^~~~~~
a.cc: At global scope:
a.cc:13:5: error: redefinition of 'int main()'
   13 | int main(){
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main(){
      |     ^~~~
a.cc: In function 'int main()':
a.cc:17:13: error: void value not ignored as it ought to be
   17 |  answer=swap(A,C);
      |         ~~~~^~~~~
a.cc:18:13: error: void value not ignored as it ought to be
   18 |  answer=swap(A,B);
      |         ~~~~^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: 'C' was not declared in this scope
    5 |   cin>>A>>B>>C;
      |              ^
a.cc:7:7: error: redeclaration of 'int answer'
    7 |   int answer=swap(A,C);
      |       ^~~~~~
a.cc:6:7: note: 'int answer' previously declared here
    6 |   int answer=(A,B,C);
      |       ^~~~~~
a.cc:8:7: error: redeclaration of 'int answer'
    8 |   int answer=swap(A,B);
      |       ^~~~~~
a.cc:6:7: note: 'int answer' previously declared here
    6 |   int answer=(A,B,C);
      |       ^~~~~~
Language: C++

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

int main() {
  int a,b,c,a1,b1,c1;
  cin >> a >> b >> c;
  b1=a;
  a1=c;
  c1=b;
  cout<<a1<<" "<<b2<<" "<<c2<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: 'b2' was not declared in this scope; did you mean 'b1'?
   10 |   cout<<a1<<" "<<b2<<" "<<c2<<endl;
      |                  ^~
      |                  b1
a.cc:10:27: error: 'c2' was not declared in this scope; did you mean 'c1'?
   10 |   cout<<a1<<" "<<b2<<" "<<c2<<endl;
      |                           ^~
      |                           c1
Language: C++

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

int main() {
  int a,b,c,a1,b1,c1,a2,b2,c2;
  cin >> a >> b >> c;
  b1=a;
  a1=b;
  c1=c;
  c2=a1;
  a2=c2;
  b2=b1;
  cout << a2　<< " " << b2 << " " << c2 << endl;
}


Compiler output:
a.cc:13:11: error: extended character 　 is not valid in an identifier
   13 |   cout << a2　<< " " << b2 << " " << c2 << endl;
      |           ^
a.cc: In function 'int main()':
a.cc:13:11: error: 'a2\U00003000' was not declared in this scope
   13 |   cout << a2　<< " " << b2 << " " << c2 << endl;
      |           ^~~~
Language: C++

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

int main() {
  int a,b,c;
  cin >> a >> b >> c;
  b1=a;
  a1=b;
  c1=c;
  c2=a1;
  a2=c2;
  b2=b1;
  cout << a2　<< " " << b2 << " " << c2 << endl;
}


Compiler output:
a.cc:13:11: error: extended character 　 is not valid in an identifier
   13 |   cout << a2　<< " " << b2 << " " << c2 << endl;
      |           ^
a.cc: In function 'int main()':
a.cc:7:3: error: 'b1' was not declared in this scope; did you mean 'b'?
    7 |   b1=a;
      |   ^~
      |   b
a.cc:8:3: error: 'a1' was not declared in this scope; did you mean 'a'?
    8 |   a1=b;
      |   ^~
      |   a
a.cc:9:3: error: 'c1' was not declared in this scope; did you mean 'c'?
    9 |   c1=c;
      |   ^~
      |   c
a.cc:10:3: error: 'c2' was not declared in this scope; did you mean 'c'?
   10 |   c2=a1;
      |   ^~
      |   c
a.cc:11:3: error: 'a2' was not declared in this scope; did you mean 'a'?
   11 |   a2=c2;
      |   ^~
      |   a
a.cc:12:3: error: 'b2' was not declared in this scope; did you mean 'b'?
   12 |   b2=b1;
      |   ^~
      |   b
a.cc:13:11: error: 'a2\U00003000' was not declared in this scope
   13 |   cout << a2　<< " " << b2 << " " << c2 << endl;
      |           ^~~~
Language: C++

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

#define ll long long
#define ar array

int[3] arr;
int main(){
  cin >> arr[1] >> arr[2] >> arr[0];
  cout << arr[0] << " " << arr[1] << " " << arr[2];
}

Compiler output:
a.cc:7:5: error: expected identifier before numeric constant
    7 | int[3] arr;
      |     ^
a.cc:7:5: error: expected ']' before numeric constant
    7 | int[3] arr;
      |     ^
      |     ]
a.cc:7:4: error: structured binding declaration cannot have type 'int'
    7 | int[3] arr;
      |    ^
a.cc:7:4: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:7:4: error: empty structured binding declaration
a.cc:7:8: error: expected initializer before 'arr'
    7 | int[3] arr;
      |        ^~~
a.cc: In function 'int main()':
a.cc:9:10: error: 'arr' was not declared in this scope; did you mean 'ar'?
    9 |   cin >> arr[1] >> arr[2] >> arr[0];
      |          ^~~
      |          ar
Language: C++

#include</Users/urarare/Documents/workspace_c++/include/bits/stdc++.h>
using namespace std;

int main(){
    int X, Y, Z;
    cin >> X >> Y >> Z;
    int t;

    t = X;
    X = Y;
    Y = t;

    t = X;
    X = Z;
    Z = t;

    cout << X << " " << Y << " " << Z << endl;

}

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

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

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

#include <iostream> 
#include <bits/stdc++>
#include <cmath>

using namespace std;
int main()
{
  int a,b,c,d,e;
  cin >> a >> b >> c;
  b = d; c=e;
  a = b;
  d = c;
  e =a ;
  cout << a << " " << b << " " << c;
  return 0;
}

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

#include <iostraem>
using namespace std;
int main()
{
  int X, Y, Z;
  cin >> X >> Y >> Z;
  cout << Z << X << Y << endl;
  return 0;
}

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

/*_47*/
#include<bits/stdc++.h>
using namespace std;
#define ll  long long
#define pll pair<ll,ll>
#define pk pair<pll,ll>
#define endl "\n"
#define si(x) (ll)((x).size())
#define pb push_back
#define F first
#define S second
#define rep(i,n) for(ll i=0;i<n;i++)
#define per(i,n) for(ll i=n-1;i>=0;i--)
#define rep1(i,n) for(ll i=1;i<=n;i++)
#define per1(i,n) for(ll i=n;i>=1;i--)
#define all(x) (x).begin(), (x).end()
#define pr_vec(v) for(auto __:v) cout<<__<<" ";
#define make_unique(x) (x).resize(unique(all(x))-(x).begin())
const int N = 1e6 + 5;
std::vector<ll> v(N),p;
void solve()
{
    ll a,b,c;
    cin>>a>>b>>c;
    cout<<c<<" "<<a<<" "<<b<<endl;
}

int main()
{




    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    // int t = 1;
    cin >> t;
    rep1(i, t)
    {
        // cout << "Case #" << i << ": ";
        solve();
        // cout << endl;
    }


}


Compiler output:
a.cc: In function 'int main()':
a.cc:38:12: error: 't' was not declared in this scope
   38 |     cin >> t;
      |            ^
Language: Java

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

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

#include<bits/stdc++.h>

using namespace std;

#define fast ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define flu(i, s, e) for(int i = s; i < e; i++)
#define fld(i, s, e) for(int i = s; i >= e; i--)
#define ll long long
#define pb push_back
#define mk make_pair
#define maxev max_element
#define minev min_element

int main(){
	fast;

	int n, m;
  cin >> n >> m;
  int sum = 0;
  vector<int> a(n);
  rep(i, n) {
    int t;
    cin >> t;
    a[i] = t;
    sum += t;
  }
 
  sort(a.rbegin(), a.rend());
  if(a[m - 1] * 4 * m >= sum) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:7: error: 'i' was not declared in this scope
   21 |   rep(i, n) {
      |       ^
a.cc:21:3: error: 'rep' was not declared in this scope
   21 |   rep(i, n) {
      |   ^~~
Language: C++

int n, m;
  cin >> n >> m;
  int sum = 0;
  vector<int> a(n);
  rep(i, n) {
    int t;
    cin >> t;
    a[i] = t;
    sum += t;
  }
 
  sort(a.rbegin(), a.rend());
  if(a[m - 1] * 4 * m >= sum) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }

Compiler output:
a.cc:2:3: error: 'cin' does not name a type
    2 |   cin >> n >> m;
      |   ^~~
a.cc:4:3: error: 'vector' does not name a type
    4 |   vector<int> a(n);
      |   ^~~~~~
a.cc:5:6: error: expected constructor, destructor, or type conversion before '(' token
    5 |   rep(i, n) {
      |      ^
a.cc:12:7: error: expected constructor, destructor, or type conversion before '(' token
   12 |   sort(a.rbegin(), a.rend());
      |       ^
a.cc:13:3: error: expected unqualified-id before 'if'
   13 |   if(a[m - 1] * 4 * m >= sum) {
      |   ^~
a.cc:15:5: error: expected unqualified-id before 'else'
   15 |   } else {
      |     ^~~~
Language: Java

public class Main {

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

Compiler output:
Main.java:6: error: cannot find symbol
  a = scanInt.nextInt;
             ^
  symbol:   variable nextInt
  location: variable scanInt of type Scanner
Main.java:7: error: cannot find symbol
  b = scanInt.nextInt;
             ^
  symbol:   variable nextInt
  location: variable scanInt of type Scanner
Main.java:8: error: cannot find symbol
  c = scanInt.nextInt;
             ^
  symbol:   variable nextInt
  location: variable scanInt of type Scanner
3 errors
Language: Java

public class Main {

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

Compiler output:
Main.java:5: error: cannot find symbol
  Scanner scanInt = new java.util.Scanner(System.in);
  ^
  symbol:   class Scanner
  location: class Main
1 error
Language: Java

public class Main {

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

Compiler output:
Main.java:5: error: cannot find symbol
  scanInt = new java.util.Scanner(System.in);
  ^
  symbol:   variable scanInt
  location: class Main
Main.java:6: error: cannot find symbol
  a = scanInt.nextInt;
      ^
  symbol:   variable scanInt
  location: class Main
Main.java:7: error: cannot find symbol
  b = scanInt.nextInt;
      ^
  symbol:   variable scanInt
  location: class Main
Main.java:8: error: cannot find symbol
  c = scanInt.nextInt;
      ^
  symbol:   variable scanInt
  location: class Main
4 errors
Language: Java

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

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

import java.util.Scanner;

public class Main3 {
    public static void main(String args[]) {
        Scanner scanner = new Scanner(System.in);

        long ans = scanner.nextLong();
        long K = scanner.nextLong();

        while (true) {
            long tmp = ans - K > 0 ? ans - K : K - ans;
            if (ans > tmp) {
                ans = tmp;
            } else {
                break;
            }
        }

        System.out.print(ans);

        scanner.close();
    }
}

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

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

Compiler output:
main.c: In function 'main':
main.c:4:11: error: redeclaration of 'x' with no linkage
    4 |   int x,y,x;
      |           ^
main.c:4:7: note: previous declaration of 'x' with type 'int'
    4 |   int x,y,x;
      |       ^
main.c:5:27: error: 'z' undeclared (first use in this function)
    5 |   scanf("%d %d %d",&x,&y,&z);
      |                           ^
main.c:5:27: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

//Popular Vote

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

int main ()
{
	//整数の入力
	int N,M;
	cin >> N >> M;

	int A[i];
	int sum = 0;
	for(int i=1;i<=N;i++){
		cin >> A[i];
		sum += A[i];
	}

	int count =0;

	
	//確認
	for(int i=1;i<=N;i++){
		if(A[i]<sum/4*M){
			count = count + 1;
		}else{
			count = count;
		}


	//出力
	if(count<M){
		cout << "No" <<endl;
	}else{
		cout << "Yes" <<endl;
	}

	return 0;
}

			
	

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: 'i' was not declared in this scope
   12 |         int A[i];
      |               ^
a.cc:15:24: error: 'A' was not declared in this scope
   15 |                 cin >> A[i];
      |                        ^
a.cc:24:20: error: 'A' was not declared in this scope
   24 |                 if(A[i]<sum/4*M){
      |                    ^
a.cc:39:2: error: expected '}' at end of input
   39 | }
      |  ^
a.cc:7:1: note: to match this '{'
    7 | {
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vll;
#define all(x) (x).begin(), (x).end()
#define endl '\n'
const ll inf = LLONG_MAX;
const long double pi = M_PI;
void Yes() {cout << "Yes" << endl;}
void No() {cout << "No" << endl;}
void YES() {cout << "YES" << endl;}
void NO() {cout << "NO" << endl;}

int main() {
  ll ans = 0;
  for (ll i = 0; i < 1e8; i++) {
    ans += i;
    ans %= 1e9 + 7;
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: invalid operands of types 'll' {aka 'long long int'} and 'double' to binary 'operator%'
   18 |     ans %= 1e9 + 7;
      |     ~~~~^~~~~~~~~~
a.cc:18:9: note:   in evaluation of 'operator%=(ll {aka long long int}, double)'
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vll;
#define all(x) (x).begin(), (x).end()
#define endl '\n'
const ll inf = LLONG_MAX;
const long double pi = M_PI;
void Yes() {cout << "Yes" << endl;}
void No() {cout << "No" << endl;}
void YES() {cout << "YES" << endl;}
void NO() {cout << "NO" << endl;}

int main() {
  x = 1e8;
  while(x) x--;
  cout << x << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: 'x' was not declared in this scope
   15 |   x = 1e8;
      |   ^
Language: C++

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

int main(){
vector<int> A(3);
  for(int i =0;i < 3;++i)
    cin >> A[i];
  
 
    cout << A[1]<<" "<< << A[2] <<" "<< A[0] << endl;




}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: expected primary-expression before '<<' token
   10 |     cout << A[1]<<" "<< << A[2] <<" "<< A[0] << endl;
      |                         ^~
Language: C++

#include<bits/stdc++.h>

using namespace std;

#define int long long

signed main(){
	itn a,b,c;
	cin >> a >> b >> c;
	cout << c << a << b;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'itn' was not declared in this scope; did you mean 'int'?
    8 |         itn a,b,c;
      |         ^~~
      |         int
a.cc:9:16: error: 'a' was not declared in this scope
    9 |         cin >> a >> b >> c;
      |                ^
a.cc:9:21: error: 'b' was not declared in this scope
    9 |         cin >> a >> b >> c;
      |                     ^
a.cc:9:26: error: 'c' was not declared in this scope
    9 |         cin >> a >> b >> c;
      |                          ^
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;
  	return 0;
}

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

#include <iostream>
using namespace std;
 
int main(){
  int A,B,C,a,b,c;
  cin>>a;
  cin>>b;
  cin>>c;
  A=c;B=a;C=b;
 cout <<A; B; C; << endl;
  return 0;
}

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

#include <iostream>
using namespace std;

int main(){
  int A,B,C,a,b,c;
  cin>>a;
  cin>>b;
  cin>>c;
  A=c;B=a;C=b;
 cout <<A B C << endl;
  return 0;
}

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

/*-----------Author: Araz Jabrayilov---------*/
/*------------@araz17----(~~)#5371-----------*/

#include <bits/stdc++.h>

#define ll long long
#define endl '\n'

using namespace std;

//int a[105];


int main()
{
    ios_base :: sync_with_stdio(0);
    cin.tie(0), cout.tie(0);
    ll n = 0;
    ll k = 0;

    cin >> n >> k;
    n  = n % k;


    res = min(n, abs(n-k));


    cout << res << endl;


    return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:5: error: 'res' was not declared in this scope
   25 |     res = min(n, abs(n-k));
      |     ^~~
Language: C++

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

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

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

#include<bits/stdc++.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:35: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     std::cout<<X<<" "<<Y<<" "<<Z<<endl;
      |                                   ^~~~
      |                                   std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#include<stdio.h>

int main(){
  int A,B,C,X;//Xは交換用置き場
  scanf("%d %d %d ",&A,&B,&C);
  X=A;
  A=B;
  B=X;
  X=A:
  A=C;
  C=X;
  printf("%d %d %d",A,B,C);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:6: error: expected ';' before ':' token
    9 |   X=A:
      |      ^
      |      ;
Language: Java

import java.util.Scanner;

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


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

package kadai2;

import java.util.Scanner;

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: 'x' was not declared in this scope
    8 |   cout<<b<<c<<x<<endl;
      |               ^
Language: C++

#include<bits/stdc++.h>
using namespace std ; 
{
  int a[3]; 
  cin>>a[0]>>a[1]>>a[2]; 
  cout<<a[2]<<" "<<a[0]<<" "<<a[1];
}

Compiler output:
a.cc:3:1: error: expected unqualified-id before '{' token
    3 | {
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int arr[101], M, N, cnt = 0;
int main(){
  cin >> N >> M;
  for (int i = 1; i<=N; i++){
    cin >> arr[i];
  }
  double thresh = (double)N/(double)4*M);
  for (int i = 1; i<=N; i++){
    if ((double)arr[i] >= thresh) cnt++;
  }
  if (cnt >= M) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:40: error: expected ',' or ';' before ')' token
    9 |   double thresh = (double)N/(double)4*M);
      |                                        ^
Language: C++

                {
#include<bits/stdc++.h>
#define pb push_back
#define fastio ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);
#define ll long long
#define all(v) v.begin(),v.end()
#define REP(i,a,b) for(int i=a;i<b;i++)
#define RREP(i,a,b) for(int i=a;i>b;i--)
using namespace std;

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

Compiler output:
a.cc:1:17: error: expected unqualified-id before '{' token
    1 |                 {
      |                 ^
Language: C

#inclide <stdio.h>

int main()
{
  int a, b, c;
  scanf("%d %d %d", &a, &b, &c);
  printf("%d %d %d\n", c, a, b);
}

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

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

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

#include <bits/stdc++.h>

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

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

#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define vll vector<ll>
#define vvll vecror<vector<ll>> 
#define sz size()
#define pb push_back
#define ff first
#define ss second
#define all(v) v.begin(),v.end()
#define allr(v) v.rbegin(),v.rend()
#define fast ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
ll fact(ll n){ll s=1; for(ll i=1;i<=n;i++)s*=i; return s;}
ll ceil1(ll n,ll m){if(n%m==0){return n/m;}return n/m +1;}
vll factor(ll n){
    vll ans;
    if(n>0)ans.pb(1);if(n==2)ans.pb(2);
    for(ll i=2;i*i<=n;i++){if(n%i==0){ans.pb(i);if(n/i!=i)ans.pb(n/i);}}if(n>2)ans.pb(n);
    return ans;
}
ll nCr(ll n, ll r) 
{ 
    return fact(n) / (fact(r) * fact(n - r)); 
} 
 
 


void solve()
{
    ll A,B,C;
    cin>>A>>>>C;
    cout<<C<<A<<B;
    return;
}

int main()
{
    ll q;
    q=1;
    //cin>>q;
    while(q--)
    {
        solve();
    }
    return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:32:13: error: expected primary-expression before '>>' token
   32 |     cin>>A>>>>C;
      |             ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  ll x,y,z;
  cin>>x>>y>>z;
  printf("%lld %lld %lld\n",z,x,y);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'll' was not declared in this scope
    4 |   ll x,y,z;
      |   ^~
a.cc:5:8: error: 'x' was not declared in this scope
    5 |   cin>>x>>y>>z;
      |        ^
a.cc:5:11: error: 'y' was not declared in this scope; did you mean 'yn'?
    5 |   cin>>x>>y>>z;
      |           ^
      |           yn
a.cc:5:14: error: 'z' was not declared in this scope
    5 |   cin>>x>>y>>z;
      |              ^
Language: Java

import java.util.*;
public class shubh{
  
 public static void main(String args[])
 {
  Scanner s=new Scanner(System.in);
   int a=s.nextInt();
   int b=s.nextInt();
   int c=s.nextInt();
   
   int temp=c;
     c=b;
     b=a;
    a=temp;
   System.out.println(a+" "+b+" "+c);
   
   
 }
   
}


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

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

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

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

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

import java.util.Scanner;
import java.util.ArrayList;

public class B {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> al = new ArrayList<Integer>();

        int N = sc.nextInt();
        int M = sc.nextInt();
        for (int i = 0; i < N; i++) {
            al.add(sc.nextInt());
        }

        for (int j = 0; j < M; j++) {
            if (al.get(j) == (1/4*M)) {
                System.out.println("Yes");
            }

            else {
                System.out.println("No");
            }
        }
    }
}


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

    #include <stdio.h>
     
    int main(int argc, char args[])
    {
    	int a,b,c;
      
      	scanf("%d %d %d", &a, &b, &c);
      	if (a <= 0 || a > 100 || 
            b <= 0 || b > 100 ||
            c <= 0 || c > 100 ||) 
        {
        	return 1;
        }
      	
      	int tmp = b;
      	// swap a and b
      	b = a;
      	a = tmp;
      
      	tmp =c;
      	c = a;
      	a = tmp;
      
      	printf("%d %d %d", a,b,c);
      	return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:10:33: error: expected expression before ')' token
   10 |             c <= 0 || c > 100 ||)
      |                                 ^