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

#include <stdio.h>

int main(int argc, char args[])
{
	int a,b,c;
  
  	scanf("%d %d %d", &a, &b, &c);
  	if (x <= 0 || x > 100 || 
        y <= 0 || y > 100 ||
        z <= 0 || z > 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:8:13: error: 'x' undeclared (first use in this function)
    8 |         if (x <= 0 || x > 100 ||
      |             ^
main.c:8:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:9: error: 'y' undeclared (first use in this function)
    9 |         y <= 0 || y > 100 ||
      |         ^
main.c:10:9: error: 'z' undeclared (first use in this function)
   10 |         z <= 0 || z > 100 ||)
      |         ^
main.c:10:29: error: expected expression before ')' token
   10 |         z <= 0 || z > 100 ||)
      |                             ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'a' was not declared in this scope
    5 |   cin >> a >>b >>c;
      |          ^
a.cc:5:14: error: 'b' was not declared in this scope
    5 |   cin >> a >>b >>c;
      |              ^
a.cc:5:18: error: 'c' was not declared in this scope
    5 |   cin >> a >>b >>c;
      |                  ^
Language: C++

#include<bits/stdc++.h>

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

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

import java.util.Scanner;

public class atcBeginnerContest161 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int temp = 0;

        System.out.println("input 1st integer");
        int a = sc.nextInt();
        System.out.println("input 2nd integer");
        int b = sc.nextInt();
        System.out.println("input 3rd integer");
        int c = sc.nextInt();

        temp = a;
        a = b;
        b = temp;

        temp = a;
        a = c;
        c = temp;

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


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

public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int temp = 0;

        System.out.println("input 1st integer");
        int a = sc.nextInt();
        System.out.println("input 2nd integer");
        int b = sc.nextInt();
        System.out.println("input 3rd integer");
        int c = sc.nextInt();

        temp = a;
        a = b;
        b = temp;

        temp = a;
        a = c;
        c = temp;

        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: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
 int n,m;
  cin>>n>>m;
  int arr[n];
  int sum=0;
  for(int i=0;i<n;i++){
    cin>>arr[i];
    sum+=arr[i];
  }
 int rt = (1/4)*(1/m)*(sum);
    bool tt=false;
    for(int i=0;i<n;i++){
      if(arr[i]>sum){
        tt=true;
        cout<<"YES";
        break;
   if(!tt){
     cout<<"NO";
   }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:14:25: note: to match this '{'
   14 |     for(int i=0;i<n;i++){
      |                         ^
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
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:8:26: error: expected ';' before string constant
    8 |   cout<<a<<" "<<b<<" "<<c" ";
      |                          ^~~
      |                          ;
Language: Java

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

public class A {
	public void run() throws Exception {
		FastReader file = new FastReader();
		int a = file.nextInt(), b = file.nextInt(), c = file.nextInt();
		int d = a;
		a = b;
		b = d;
		int e = c;
		c = a;
		a = e;
		System.out.println(a + " " + b + " " + c);
	}

	public static void main(String[] args) throws Exception {
		new A().run();
	}

	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;
		}
	}
}


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

short a = A;
short b = B;
short c = C;
short tmp =0;


tmp =a;
a = b;
b = tmp;
tmp = a;
a = c;
c = tmp;

Compiler output:
a.cc:1:11: error: 'A' was not declared in this scope
    1 | short a = A;
      |           ^
a.cc:2:11: error: 'B' was not declared in this scope
    2 | short b = B;
      |           ^
a.cc:3:11: error: 'C' was not declared in this scope
    3 | short c = C;
      |           ^
a.cc:7:1: error: 'tmp' does not name a type
    7 | tmp =a;
      | ^~~
a.cc:8:1: error: 'a' does not name a type
    8 | a = b;
      | ^
a.cc:9:1: error: 'b' does not name a type
    9 | b = tmp;
      | ^
a.cc:10:1: error: 'tmp' does not name a type
   10 | tmp = a;
      | ^~~
a.cc:11:1: error: 'a' does not name a type
   11 | a = c;
      | ^
a.cc:12:1: error: 'c' does not name a type
   12 | c = tmp;
      | ^
Language: Java

import java.io.*;
import java.util.*;
public class MyClass {
    public static void main(String args[]) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int t = 1;//in.nextInt();
        for (int i = 1; i <= t; ++i){
            int x = in.nextInt();
            int y = in.nextInt();
            int z = in.nextInt();
            System.out.println(z+" "+x+" "+y);
        }
    }
}

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

#include <iostream>

int main(void) {

	int x, y, z;

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

	printf("\n%d %d %d", z, x, y);

	return 0;

}

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

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

int main()
{
  int a,b,c;
  
  cin>>a>>b>>c;
  
  int temp1,emp2;
  temp = a;
  a=c;
  c=b;
  b=temp;
 cout<<a<<" "<<b<<" "<<c;
  
}
  
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'temp' was not declared in this scope; did you mean 'temp1'?
   11 |   temp = a;
      |   ^~~~
      |   temp1
Language: C++

#include<iostream>
#include<conio.h>
using namespace std;
int main(){
    int X,Y,Z,temp;
    cin >> X;
    cin >> Y;
    cin >> Z;
        temp=X;
        X=Z;
        Z=Y;
        Y=temp;

    cout<< X <<" " <<Y <<" " <<Z;
    getch();
}

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

#include <bits/stdc++.h>
using namespace std;
const int INF = 2100100100;
typedef ll = long long;


int main() {
    ll n,k;
    cin >> n >> k;
    n = n % k;
    int ans;
    ans = min(n,k-n);
    
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc:4:9: error: 'll' does not name a type
    4 | typedef ll = long long;
      |         ^~
a.cc: In function 'int main()':
a.cc:8:5: error: 'll' was not declared in this scope
    8 |     ll n,k;
      |     ^~
a.cc:9:12: error: 'n' was not declared in this scope; did you mean 'yn'?
    9 |     cin >> n >> k;
      |            ^
      |            yn
a.cc:9:17: error: 'k' was not declared in this scope
    9 |     cin >> n >> k;
      |                 ^
Language: C++

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

Compiler output:
a.cc:7:22: error: extended character 　 is not valid in an identifier
    7 |         cout << b << a　<< c << endl;
      |                      ^
a.cc: In function 'int main()':
a.cc:7:22: error: 'a\U00003000' was not declared in this scope
    7 |         cout << b << a　<< c << endl;
      |                      ^~~
Language: C++

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

Compiler output:
a.cc:7:22: error: extended character 　 is not valid in an identifier
    7 |         cout << b << a　<< c <<endl;
      |                      ^
a.cc: In function 'int main()':
a.cc:7:22: error: 'a\U00003000' was not declared in this scope
    7 |         cout << b << a　<< c <<endl;
      |                      ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using lint = long;
using ll = long long;
#define rep(i,n) for(lint (i) = 0;(i) < (lint)(n);(i)++)
#define repInRange(i,start,end) for(lint (i) = (start);(i) < (end);++(i))
using lpair = pair<lint,lint>;
using vl = vector<lint>;
using vll = vector<long long>;
using Llist = list<lint>;
using vs = vector<string>;
#define all(v) (v).begin(),(v).end()
#define out1(x) cout << (x) << '\n';

ll pow(ll k,ll l) {
	ll ret = 1;
	rep(i,l) {
		ret *= k;
	}
	return ret;
}

template <typename T>
T sum(vector<T> vec) {
	ll ret = 0;
	rep(i,vec.size()) {
		ret += vec.at(i);
	}
	return ret;
}

void Main() {
	lint a,b,c;
	cin >> a >> b >> c;
	cout << c << ' ' << a << << ' ' << b << '\n';
}

signed main() {
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	Main();
	return 0;
}


Compiler output:
a.cc: In function 'void Main()':
a.cc:35:34: error: expected primary-expression before '<<' token
   35 |         cout << c << ' ' << a << << ' ' << b << '\n';
      |                                  ^~
Language: C++

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

Compiler output:
a.cc:7:21: error: extended character 　 is not valid in an identifier
    7 |         cout << b <<a　<<c <<endl;
      |                     ^
a.cc: In function 'int main()':
a.cc:7:21: error: 'a\U00003000' was not declared in this scope
    7 |         cout << b <<a　<<c <<endl;
      |                     ^~~
Language: C++

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

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

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

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

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

import java.util.Scanner;
public class main{
 public static void main(String[] args){
  Scanner scan = new Scanner(System.in);
  int x = scan.next();
  int y = scan.next();
  int z = scan.next();
  swap(x,y);
  swap(x,z);
 }
 
 void swap(int a,int b){
  int temp= a;
  a = b;
  b = temp;
 }
}


Compiler output:
Main.java:2: error: class main is public, should be declared in a file named main.java
public class main{
       ^
Main.java:5: error: incompatible types: String cannot be converted to int
  int x = scan.next();
                   ^
Main.java:6: error: incompatible types: String cannot be converted to int
  int y = scan.next();
                   ^
Main.java:7: error: incompatible types: String cannot be converted to int
  int z = scan.next();
                   ^
Main.java:8: error: non-static method swap(int,int) cannot be referenced from a static context
  swap(x,y);
  ^
Main.java:9: error: non-static method swap(int,int) cannot be referenced from a static context
  swap(x,z);
  ^
6 errors
Language: Java

import java.util.Scanner
public class main{
 public static void main(String[] args){
  Scanner scan = new Scanner(System.in);
  int x = scan.next();
  int y = scan.next();
  int z = scan.next();
  swap(x,y);
  swap(x,z);
 }
 
 void swap(int a,int b){
  int temp= a;
  a = b;
  b = temp;
 }
}

Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner
                        ^
1 error
Language: C++


#pragma warning(disable:4996)


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

int main(void) {
    long  N=1, M;
    double  total = 0;

    //入力
    scanf("%ld", &N);
    scanf("%ld", &M);

    long *A, i, cnt = 0;

    A = malloc(sizeof(A) * N);

    for (i = 0; i < N; i++)
    {
        scanf("%ld", &A[i]);
        total += A[i];
    }

    total /= (double)(M*4);

    for (i = 0; i < N; i++) {
        if (A[i] < total)continue;
        cnt++;
    }
    if (cnt < M)printf("No");
    else printf("Yes");

    free(A);
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:20:15: error: invalid conversion from 'void*' to 'long int*' [-fpermissive]
   20 |     A = malloc(sizeof(A) * N);
      |         ~~~~~~^~~~~~~~~~~~~~~
      |               |
      |               void*
Language: C++

#include<iostream>
using namespace std;

int main(){
  int x, y, z;
  int A[0]=0,B[0]=0,C[0]=0,box[1]=0;
  
  cin >> x >> y >> z;
  A[0]=x, B[0]=y,C[0]=z;
  
  //a,bを入れ替える 
  box[0]=B[0], B[0]=A[0],A[0]=box[0];
  //a,cを入れ替える
  box[1]=C[0],C[0]=A[0],A[0]=box[0];
  
  cout << A[0] << B[0] << C[0] << endl;
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: array must be initialized with a brace-enclosed initializer
    6 |   int A[0]=0,B[0]=0,C[0]=0,box[1]=0;
      |            ^
a.cc:6:19: error: array must be initialized with a brace-enclosed initializer
    6 |   int A[0]=0,B[0]=0,C[0]=0,box[1]=0;
      |                   ^
a.cc:6:26: error: array must be initialized with a brace-enclosed initializer
    6 |   int A[0]=0,B[0]=0,C[0]=0,box[1]=0;
      |                          ^
a.cc:6:35: error: array must be initialized with a brace-enclosed initializer
    6 |   int A[0]=0,B[0]=0,C[0]=0,box[1]=0;
      |                                   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main()
{
	ll k,curr;
  	cin >> k;
  	queue<ll> q;
  
  	for(ll i=1;i<=9;i++){
    	q.push(i);
   	}
  
  	while(k--){
    	curr=q.top();
      	q.pop();
      
      	if(curr%10!=0)
          q.push(curr*10 + curr%10-1);
      
      	q.push(curr*10 + curr%10);
      
      	if(curr%10!=9)
          q.push(curr*10 + curr%10+1);
    }
  
  	cout << curr << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:16: error: 'class std::queue<long long int>' has no member named 'top'; did you mean 'pop'?
   15 |         curr=q.top();
      |                ^~~
      |                pop
Language: C++

#include<iostream>
using namespace std;

int main(){
  int x, y, z;
  int A[1]=0,B[1]=0,C[1]=0,box[1]=0;
  
  cin >> x >> y >> z;
  A[0]=x, B[0]=y,C[0]=z;
  
  //a,bを入れ替える 
  box[0]=B[0], B[0]=A[0],A[0]=box[0];
  //a,cを入れ替える
  box[1]=C[0],C[0]=A[0],A[0]=box[0];
  
  cout << A[0] << B[0] << C[0] << endl;
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: array must be initialized with a brace-enclosed initializer
    6 |   int A[1]=0,B[1]=0,C[1]=0,box[1]=0;
      |            ^
a.cc:6:19: error: array must be initialized with a brace-enclosed initializer
    6 |   int A[1]=0,B[1]=0,C[1]=0,box[1]=0;
      |                   ^
a.cc:6:26: error: array must be initialized with a brace-enclosed initializer
    6 |   int A[1]=0,B[1]=0,C[1]=0,box[1]=0;
      |                          ^
a.cc:6:35: error: array must be initialized with a brace-enclosed initializer
    6 |   int A[1]=0,B[1]=0,C[1]=0,box[1]=0;
      |                                   ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  int x, y, z;
  int A[1],B[1],C[1],box[1]=0;
  
  cin >> x >> y >> z;
  A[0]=x, B[0]=y,C[0]=z;
  
  //a,bを入れ替える 
  box[0]=B[0], B[0]=A[0],A[0]=box[0];
  //a,cを入れ替える
  box[1]=C[0],C[0]=A[0],A[0]=box[0];
  
  cout << A[0] << B[0] << C[0] << endl;
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:29: error: array must be initialized with a brace-enclosed initializer
    6 |   int A[1],B[1],C[1],box[1]=0;
      |                             ^
Language: C++

#include <cstdio>

int main() {
	int a, b, c;
	scanf_s("%d %d %d",&a,&b,&c);
	printf("%d %d %d",c,a,b);

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    5 |         scanf_s("%d %d %d",&a,&b,&c);
      |         ^~~~~~~
      |         scanf
Language: Java

import java.util.stream.IntStream;

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

        int N = sc.nextInt();
        int M = sc.nextInt();
        int[] A = IntStream.range(0, N).map(i -> sc.nextInt()).toArray();

        int all_point = Arrays.stream(A, 0, N).sum();
        int point = all_point / (4 * M);
        int count = (int) IntStream.range(0, N).filter(i -> A[i] > point).count();
        if (M <= count) {
            System.out.print("Yes");
        } else {
            System.out.print("No");
        }
    }
}

Compiler output:
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
Main.java:11: error: cannot find symbol
        int all_point = Arrays.stream(A, 0, N).sum();
                        ^
  symbol:   variable Arrays
  location: class Main
3 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
​
int main()
{
    double n,k;
    cin >> n >> k;
    double tmp = 0;
    tmp = fmod(n,k);
    cout << min(tmp, k - tmp) << endl;
    return 0;
}


Compiler output:
a.cc:3:1: error: '\U0000200b' does not name a type
    3 | ​
      |
Language: C++

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

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

#include<iostream>
using namespace std;
int main(void)
{
	N, M = map(int,input().split())
	A = list(map(int,input().split()))
	A.sort(reverse=True)
	S = sum(A)
	if A[M-1] >= S / (4*M):
	print("Yes")
	else:
	print("No")
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'N' was not declared in this scope
    5 |         N, M = map(int,input().split())
      |         ^
a.cc:5:12: error: 'M' was not declared in this scope
    5 |         N, M = map(int,input().split())
      |            ^
a.cc:5:20: error: expected primary-expression before 'int'
    5 |         N, M = map(int,input().split())
      |                    ^~~
a.cc:5:24: error: 'input' was not declared in this scope; did you mean 'int'?
    5 |         N, M = map(int,input().split())
      |                        ^~~~~
      |                        int
a.cc:5:16: error: 'map' was not declared in this scope
    5 |         N, M = map(int,input().split())
      |                ^~~
a.cc:2:1: note: 'std::map' is defined in header '<map>'; this is probably fixable by adding '#include <map>'
    1 | #include<iostream>
  +++ |+#include <map>
    2 | using namespace std;
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main()
{4 4
    unsigned int m,n;
     cin>>n>>m;
     if(m>=1&&m<=100&&n>=1&&n<=100)
     {
         vector<unsigned int>a(n);
         a.resize(n);
         for(int y=0;y<n;y++)
         {
             cin>>a[y];
             if(a[y]<=1000&&a[y]>=1)
               int s;
             else
             {
                 cout<<"no";
             exit(0);
             }
         }
         for(int i=0;i<n;i++)
         {
             int k=a[i];
             for(int j=i+1;j<n-1;j++)
                if(k==a[j])
                {
                    cout<<"no";
                  exit(1);
                }

         }
         int k=0;
         for(int h=0;h<n;h++)
         {
             k=a[h];
         }

           int c=0;
          for(int p=0;p<n;p++)
          {
              if(a[p]>=(k/(4*m)))
               if(c<m)
                c++;




          }

         if(m==c)
            cout<<"yes";
          else
            cout<<"no";


     }
     else
        cout<<"no";



 return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected ';' before numeric constant
    6 | {4 4
      |   ^~
      |   ;
a.cc:8:11: error: 'n' was not declared in this scope
    8 |      cin>>n>>m;
      |           ^
a.cc:8:14: error: 'm' was not declared in this scope; did you mean 'tm'?
    8 |      cin>>n>>m;
      |              ^
      |              tm
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: redeclaration of 'int y'
    7 |     int y=a;
      |         ^
a.cc:6:11: note: 'int y' previously declared here
    6 |     int x,y,z;
      |           ^
a.cc:8:9: error: redeclaration of 'int x'
    8 |     int x=c;
      |         ^
a.cc:6:9: note: 'int x' previously declared here
    6 |     int x,y,z;
      |         ^
a.cc:9:9: error: redeclaration of 'int z'
    9 |     int z=b;
      |         ^
a.cc:6:13: note: 'int z' previously declared here
    6 |     int x,y,z;
      |             ^
Language: C

#include <stdio.h>

int main() {
    int a,b,c;
    int cont = 0;
    int x, y, z;
    scanf("%d%d%d", &a, &b, &c);
        x = c;
        y = a;
        z = b;
      

        

   rintf("%d%d%d", x, y, z);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:4: error: implicit declaration of function 'rintf' [-Wimplicit-function-declaration]
   15 |    rintf("%d%d%d", x, y, z);
      |    ^~~~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'rintf'
    1 | #include <stdio.h>
  +++ |+#include <math.h>
    2 | 
main.c:15:4: warning: incompatible implicit declaration of built-in function 'rintf' [-Wbuiltin-declaration-mismatch]
   15 |    rintf("%d%d%d", x, y, z);
      |    ^~~~~
main.c:15:4: note: include '<math.h>' or provide a declaration of 'rintf'
main.c:15:10: error: incompatible type for argument 1 of 'rintf'
   15 |    rintf("%d%d%d", x, y, z);
      |          ^~~~~~~~
      |          |
      |          char *
main.c:15:10: note: expected 'float' but argument is of type 'char *'
main.c:15:4: error: too many arguments to function 'rintf'
   15 |    rintf("%d%d%d", x, y, z);
      |    ^~~~~
Language: C++

import java.util.*;
import java.util.Collections;
 
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int M = sc.nextInt();
    Integer[] A = new Integer[N];
    int sum = 0;
    String ret = "Yes";
    for(int i = 0; i < A.length; i++){
      A[i] = sc.nextInt();
      sum += A[i];
    }
    Arrays.sort(A, Collections.reverseOrder());
    for(int i = 0; i < M; i++){
      if(A[i] * 4 * M < sum){
        ret = "No";
        break;
      }
    }
    System.out.println(ret);
  }
}

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: 'import' does not name a type
    2 | import java.util.Collections;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:9: error: expected ':' before 'static'
    5 |   public static void main(String[] args){
      |         ^~~~~~~
      |         :
a.cc:5:27: error: 'String' has not been declared
    5 |   public static void main(String[] args){
      |                           ^~~~~~
a.cc:5:36: error: expected ',' or '...' before 'args'
    5 |   public static void main(String[] args){
      |                                    ^~~~
a.cc:25:2: error: expected ';' after class definition
   25 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:6:5: error: 'Scanner' was not declared in this scope
    6 |     Scanner sc = new Scanner(System.in);
      |     ^~~~~~~
a.cc:7:13: error: 'sc' was not declared in this scope
    7 |     int N = sc.nextInt();
      |             ^~
a.cc:9:5: error: 'Integer' was not declared in this scope
    9 |     Integer[] A = new Integer[N];
      |     ^~~~~~~
a.cc:9:13: error: expected primary-expression before ']' token
    9 |     Integer[] A = new Integer[N];
      |             ^
a.cc:11:5: error: 'String' was not declared in this scope
   11 |     String ret = "Yes";
      |     ^~~~~~
a.cc:12:24: error: 'A' was not declared in this scope
   12 |     for(int i = 0; i < A.length; i++){
      |                        ^
a.cc:16:5: error: 'Arrays' was not declared in this scope
   16 |     Arrays.sort(A, Collections.reverseOrder());
      |     ^~~~~~
a.cc:16:17: error: 'A' was not declared in this scope
   16 |     Arrays.sort(A, Collections.reverseOrder());
      |                 ^
a.cc:16:20: error: 'Collections' was not declared in this scope
   16 |     Arrays.sort(A, Collections.reverseOrder());
      |                    ^~~~~~~~~~~
a.cc:19:9: error: 'ret' was not declared in this scope
   19 |         ret = "No";
      |         ^~~
a.cc:23:5: error: 'System' was not declared in this scope
   23 |     System.out.println(ret);
      |     ^~~~~~
a.cc:23:24: error: 'ret' was not declared in this scope
   23 |     System.out.println(ret);
      |                        ^~~
Language: C++

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

int k, temp;
vector<vector<ll> v(10);

int main() {
  cin >> k;
  rep (i, 9) {
   v.at(0).push_back(i + 1);
  }
  rep (i, 10) {
    rep (j, v.at(i).size()) {
      if (v.at(i).at(j) % 10 == 0) {
        v.at(i + 1).push_back(v.at(i) * 10);
        v.at(i + 1).push_back(v.at(i) * 10 + 1);
      }else if(v.at(i).at(j) % 10 == 9) {
        v.at(i + 1).push_back(v.at(i) * 10 + 8);
        v.at(i + 1).push_back(v.at(i) * 10 + 9);
      }else{
        temp = v.at(i).at(j) % 10;
        v.at(i + 1).push_back(v.at(i) * 10 + temp - 1);
        v.at(i + 1).push_back(v.at(i) * 10 + temp);
        v.at(i + 1).push_back(v.at(i) * 10 + temp + 1);
      }
    }
  }
  cout << v.at(10).at(k - 1) << endl;
  return 0;
}


Compiler output:
a.cc:8:23: error: template argument 1 is invalid
    8 | vector<vector<ll> v(10);
      |                       ^
a.cc:8:23: error: template argument 2 is invalid
a.cc: In function 'int main()':
a.cc:13:4: error: 'v' was not declared in this scope
   13 |    v.at(0).push_back(i + 1);
      |    ^
a.cc:16:13: error: 'v' was not declared in this scope
   16 |     rep (j, v.at(i).size()) {
      |             ^
a.cc:3:38: note: in definition of macro 'rep'
    3 | #define rep(i,n) for (ll i = 0; i < (n); ++i)
      |                                      ^
a.cc:31:11: error: 'v' was not declared in this scope
   31 |   cout << v.at(10).at(k - 1) << endl;
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
const int INF = 2100100100;
// typedef longlong ll;


int main() {
    long long n,k;
    cin >> n >> k;
    if (n*2==k){
        cout << 0 << endl;
        return 0;
    }
    if (n*2<k){
        cout << n << endl;
        return 0;
    }
    int ans;
    n = n % k;
    while(n>k*1e18){
        n-=k*1e18;
    }
    while(n>k*1e17){
        n-=k*1e17;
    }
    while(n>k*1e14){
        n-=k*1e14;
    }
    while(n>k*1e12){
        n-=k*1e12;
    }
    while(n>k*1e8){
        n-=k*1e8;
    }
    while(n>k*1e4){
        n-=k*1e4;
    }
    while(n>=0){
        n -= k;
    }
    ans = n+k;
    
    int ans2,now;
    ans2 = ans;
    for (int i=0;i<1000000;i++){
        now = abs(ans2-k);
        ans = min(ans,now);
        ans2 = now;
            break;
        }

    }



    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc:56:5: error: 'cout' does not name a type
   56 |     cout << ans << endl;
      |     ^~~~
a.cc:57:5: error: expected unqualified-id before 'return'
   57 |     return 0;
      |     ^~~~~~
a.cc:58:1: error: expected declaration before '}' token
   58 | }
      | ^
Language: C++

#include<iostrean>
#include<bits/stdc++.h>
using namespace std;
ibt main()
  { 
  int a,b,c,t;
  cin>>a>>b>>c;
  t=a;
  a=b;
  b=t;
  a=c;
  c=t;
  cout<<a<<b<<c<<endl;
  return 0;
  }
  


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

#include<cstdio>
inline int in();
inline void wr(int);
int main(int argc,char**argv){
	register int x=in(),y=in(),z=in();
	x^=y^=x^=y;
	x^=z^=x^=z;
	wr(x),putchar(' '),wr(y),puchar(' '),
	wr(z),putchar('\n');
}
inline int in(){
	register char c=getchar();
	register int x=0,f=1;
	for(;c<'0'||c>'9';c=getchar())
		if(c=='-')f=-1;
	for(;c>='0'&&c<='9';c=getchar())
		x=(x<<1)+(x<<3)+(c&15);
	return x*f;
}
inline void wr(int x){
	if(x<0)putchar('-'),x=-x;
	if(x/10)wr(x/10);
	putchar(x%10+'0');
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:5:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    5 |         register int x=in(),y=in(),z=in();
      |                      ^
a.cc:5:29: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    5 |         register int x=in(),y=in(),z=in();
      |                             ^
a.cc:5:36: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    5 |         register int x=in(),y=in(),z=in();
      |                                    ^
a.cc:8:34: error: 'puchar' was not declared in this scope; did you mean 'putchar'?
    8 |         wr(x),putchar(' '),wr(y),puchar(' '),
      |                                  ^~~~~~
      |                                  putchar
a.cc: In function 'int in()':
a.cc:12:23: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   12 |         register char c=getchar();
      |                       ^
a.cc:13:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   13 |         register int x=0,f=1;
      |                      ^
a.cc:13:26: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   13 |         register int x=0,f=1;
      |                          ^
Language: C++

//
//  main.cpp
//  bignner20200404_3
//
//  Created by zer0 on 2020/04/04.
//  Copyright © 2020 zer0. All rights reserved.
//

#include <iostream>
#include <string>

int main(int argc, const char * argv[]) {
    int n, m, l;
    std::cin >> n >> m;
    
    l = 0;
    while(n > 0){
        l = n;
        n -= m;
    }
    
    if(std::abs(l) < std::abs(n)){
        n = l;
    }
    
    std::cout << std::aabs(n);
    
    return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:26:23: error: 'aabs' is not a member of 'std'; did you mean 'labs'?
   26 |     std::cout << std::aabs(n);
      |                       ^~~~
      |                       labs
Language: C++

#include <iostream>
namespace using std;

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

Compiler output:
a.cc:2:11: error: expected identifier before 'using'
    2 | namespace using std;
      |           ^~~~~
a.cc:2:17: error: expected nested-name-specifier before 'std'
    2 | namespace using std;
      |                 ^~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> x >> y >> z;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << z << x << y;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

#include<stdio.h>

int main(){
        int a,b,c;
        int x,y,z;

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

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

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

Compiler output:
main.c:16:1: error: expected identifier or '(' before '~' token
   16 | ~
      | ^
Language: C++

def swap(a,b,c):
    tem=b
    b=a
    a=c
    c=tem
    return a+" "+b+" " +c
num1=str(input("Enter first integer: "))
num2=str(input("Enter second integer: "))
num3=str(input("Enter third integer: "))
print(swap(num1,num2,num3))

Compiler output:
a.cc:1:1: error: 'def' does not name a type
    1 | def swap(a,b,c):
      | ^~~
Language: C

#include <stdio.h>

int main(void){
  int a, b, c;
  int tmp;
  
  scanf("%d %d %d", a, b, c);
  
  tmp = a;
  a = b;
  b = tmp;
  
  tmp = a;
  a = c;
  c = tmp;
  prinf("%d %d %d", a, b, c)+
}

Compiler output:
main.c: In function 'main':
main.c:16:3: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   16 |   prinf("%d %d %d", a, b, c)+
      |   ^~~~~
      |   printf
main.c:17:1: error: expected expression before '}' token
   17 | }
      | ^
Language: Java

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

Compiler output:
Main.java:2: 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++

#define tcn cin.tie(0);
#define tct cout.tie(0);
#define r_0 return 0
#define ll long long
#define TIME ios_base::sync_with_stdio(0);
using namespace std;

const long long N = 1e3 + 7;
const long long MrBeast = 1e9;

ll T = 1, n, m, ans, cnt, a[N];
vector < ll > v, t;
int type = 0;
set< ll > st;
pair< ll ,ll > p[N];
int main()
{
    TIME
    cin >> n >> m >> ans;
    cout << ans << " " << n << ' ' << m;
}


Compiler output:
a.cc:12:1: error: 'vector' does not name a type
   12 | vector < ll > v, t;
      | ^~~~~~
a.cc:14:1: error: 'set' does not name a type
   14 | set< ll > st;
      | ^~~
a.cc:15:1: error: 'pair' does not name a type
   15 | pair< ll ,ll > p[N];
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:14: error: 'ios_base' has not been declared
    5 | #define TIME ios_base::sync_with_stdio(0);
      |              ^~~~~~~~
a.cc:18:5: note: in expansion of macro 'TIME'
   18 |     TIME
      |     ^~~~
a.cc:19:5: error: 'cin' was not declared in this scope
   19 |     cin >> n >> m >> ans;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #define tcn cin.tie(0);
a.cc:20:5: error: 'cout' was not declared in this scope
   20 |     cout << ans << " " << n << ' ' << m;
      |     ^~~~
a.cc:20:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<bits/stdc++.h>
using namespace std;
void swap(int, int);

int main()
{
  int A, B, C, x;
  cin>>A>>B>>C;
  swap(A, B);
  swap(A, C);
  cout<<A<<B<<C;
  return 0;
}
void swap(int x, int y)
{ int z;
  z=&x;
  &x=&y;
  &y=z;
}


Compiler output:
a.cc: In function 'void swap(int, int)':
a.cc:16:5: error: invalid conversion from 'int*' to 'int' [-fpermissive]
   16 |   z=&x;
      |     ^~
      |     |
      |     int*
a.cc:17:3: error: lvalue required as left operand of assignment
   17 |   &x=&y;
      |   ^~
a.cc:18:3: error: lvalue required as left operand of assignment
   18 |   &y=z;
      |   ^~
Language: C++

#define tcn cin.tie(0);
#define tct cout.tie(0);
#define r_0 return 0
#define ll long long
#define TIME ios_base::sync_with_stdio(0);
using namespace std;
 
const long long N = 1e3 + 7;
const long long MrBeast = 1e9;
 
ll T = 1, n, m, ans, cnt, a[N];
vector < ll > v, t;
int type = 0;
set< ll > st;
pair< ll ,ll > p[N];
int main()
{
    TIME
    //ifstream  fin("swap.in");
    //ofstream  fout("swap.out");
    cin >> n >> m >> ans;
    cout << ans << " " << n << ' ' << m;
}

Compiler output:
a.cc:12:1: error: 'vector' does not name a type
   12 | vector < ll > v, t;
      | ^~~~~~
a.cc:14:1: error: 'set' does not name a type
   14 | set< ll > st;
      | ^~~
a.cc:15:1: error: 'pair' does not name a type
   15 | pair< ll ,ll > p[N];
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:14: error: 'ios_base' has not been declared
    5 | #define TIME ios_base::sync_with_stdio(0);
      |              ^~~~~~~~
a.cc:18:5: note: in expansion of macro 'TIME'
   18 |     TIME
      |     ^~~~
a.cc:21:5: error: 'cin' was not declared in this scope
   21 |     cin >> n >> m >> ans;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #define tcn cin.tie(0);
a.cc:22:5: error: 'cout' was not declared in this scope
   22 |     cout << ans << " " << n << ' ' << m;
      |     ^~~~
a.cc:22:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: Java

import java.util.Arrays;
import java.util.Scanner;

public class wrongsubtraction {

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

}

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

#include<stdio>
using namespace std;
int main(){
  int a,b,c;
  scanf("%d %d %d",&a,&b,&c);
  if(a==b && a==c)
 	printf("%d %d %d",a,b,c);
  else
    printf("%d %d %d",c,a,b);
}


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

#include<bits/stdc++>
using namespace std;
void swap(int, int);

int main()
{
  int A, B, C;
  cin>>A>>B>>C;
  swap(A,B);
  swap(A,C);
  cout<<A<<B<<C;
  return 0;
}
void swap(int x, int y)
{ int z;
  z=x;
  x=y;
  y=z;
}

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

 ///                      BISMILLAHIR RAHMANIR RAHEEM
///                  ||\  ||    /\    |''\   ||  ||\  /||
///                  || \ ||   /__\   |   |  ||  || \/ ||
///                  ||  \||  /    \  |../   ||  ||    ||
#include<bits/stdc++.h>
#include<cstring>
#include<cmath>
#include<iterator>
#include<cstdlib>
#define IOS   ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define mxi 99999
using namespace std;

//*****************Data type**********************//
typedef long long ll;
typedef long long int lli;
typedef unsigned long long  ull;
typedef unsigned long long int ulli;

//****************SET**************************//
typedef set<int> SI;
typedef set<string> SS;
typedef set<char>SC;
typedef multiset<int>MSI;

//*****************Map****************************//
typedef map<int, int> mp;
typedef map<int, string> mps;
typedef map<int, char>mpc;
typedef map<string, int>mpsi;
typedef map<char, int>mpci;

//****************Pair****************************//
typedef pair<int, int> pii;
typedef pair<string, string> pss;
typedef pair<char, char> pcc;
typedef pair<int, string> pis;
typedef pair<int, char> pic;

//*****************Vector************************//
typedef vector<int> VI;
typedef vector<string> VS;
typedef vector<double> VD;
typedef vector<lli> VLLI;
typedef vector<VI> VVI;
typedef vector<pii> VPI;

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


///...........Alhamdulillah.........///






Compiler output:
a.cc: In function 'int main()':
a.cc:54:9: error: 'temp' was not declared in this scope; did you mean 'tm'?
   54 |         temp=a;
      |         ^~~~
      |         tm
Language: Java

import java.util.*;
class a
{
    public static void main(String args[])
    {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        double m=sc.nextDouble();
        int arr[]=new int[n];
        double  b=0.0d;
        for(int i=0;i<n;i++)
        {
            arr[i]=sc.nextInt();
           b=b+arr[i];
        }
        
      
        double k=((1/(4*m))*b;
      
        
        int c=0;
        for(int i=0;i<n;i++)
        {
            if(arr[i]>(int)k)
            c++;
        }
      
        if(c>=m)
        System.out.println("Yes");
        else
        System.out.println("No");
    }}

Compiler output:
Main.java:18: error: ')' expected
        double k=((1/(4*m))*b;
                             ^
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'rturn' was not declared in this scope
    7 |     rturn 0;
      |     ^~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>a>>b>>c;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:13:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |   cout<<a<<" "<<b<<" "<<c<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |   cout<<a<<" "<<b<<" "<<c<<endl;
      |                            ^~~~
      |                            std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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


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

x,y,z = list(map(int,input().split()))
 
def swap(a,b):
    tmp = a
    a = b
    b = tmp
    return (a,b)
 
x,y = swap(x,y)
x, z = swap(x, z)
print(x,y,z)

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

#include<iostream>
using namespace std;
int main()
{
    int a,y,z,p;
    cin>>a>>y>>z;
    p=x;
    a=y;
    y=p;
    p=a;
    a=z;
    z=p;
    cout<<a<<" "<<y<<" "<<z;
    return 0;
}


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

#include <iostream>

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


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 >> a >> b >> c;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << c << a << b << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << c << a << b << endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>

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


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 >> a >> b >> c;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:3: error: 'cou' was not declared in this scope
    7 |   cou << c << a << b << endl;
      |   ^~~
a.cc:7:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cou << c << a << b << endl;
      |                         ^~~~
      |                         std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~