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

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

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

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

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

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

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

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


    }
}


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

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

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

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

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

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

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

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


    }
}


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

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

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

use std::io::*;
use std::str::FromStr;
fn read<T: FromStr>() -> T {
    let stdin = stdin();
    let stdin = stdin.lock();
    let token: String = stdin
        .bytes()
        .map(|c| c.expect("failed to read char") as char) 
        .skip_while(|c| c.is_whitespace())
        .take_while(|c| !c.is_whitespace())
        .collect();
    token.parse().ok().expect("failed to parse token")
}

fn main(){
    let a:i32 = read();
    let b:i32 = read();
    let c:i32 = read();
    println!("{} {} {}",c,a,b);
}

Compiler output:
a.cc:1:1: error: 'use' does not name a type
    1 | use std::io::*;
      | ^~~
a.cc:2:1: error: 'use' does not name a type
    2 | use std::str::FromStr;
      | ^~~
a.cc:3:1: error: 'fn' does not name a type
    3 | fn read<T: FromStr>() -> T {
      | ^~
a.cc:15:1: error: 'fn' does not name a type
   15 | fn main(){
      | ^~
Language: Java

import java.util.*;
public class Solution {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int[] box = new int[3];
		for(int i = 0; i < 3; i++) box[i] = in.nextInt();
		swap(box, 0, 1);
	    swap(box, 0, 2);
	    System.out.println(Arrays.toString(box).replace("[", "").replace("]", "").replace(",", ""));
	}
	public static void swap(int[] box, int a, int b) {
		int temp = box[a];
		box[a] = box[b];
		box[b] = temp;
	}
}

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

#include <iostream>
#include <algorithm>
#include <string.h>
#include <vector>
#include <utility>
#include <string.h>
#include <math.h>
using namespace std;
typedef long long int ll;
const ll mod = 998244353;
const ll INF = 1e9 + 5;

void solve()
{
	int x, y, z;
	cin >> x >> y >> z;
	cout < z << " " <<x << " " <<y << endl;
}

int main()
{
//	int t;
//	cin >> t;
//	while(t-->0)
	solve();
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:17:18: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator<<'
   17 |         cout < z << " " <<x << " " <<y << endl;
      |                ~ ^~ ~~~
      |                |    |
      |                int  const char [2]
Language: C++

using System;

using System.Linq;



namespace hello_cs

{

    class Program

    {

        static void Main(string[] args)

        {

            var num = System.Console.ReadLine().Split(" ").Select(x => int.Parse(x)).ToArray();



            System.Console.WriteLine($"{num[2]} {num[0]} {num[1]}");

        }

    }

}



Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:15:26: error: 'string' has not been declared
   15 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:15:35: error: expected ',' or '...' before 'args'
   15 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:27:6: error: expected ';' after class definition
   27 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void hello_cs::Program::Main(int*)':
a.cc:19:13: error: 'var' was not declared in this scope
   19 |             var num = System.Console.ReadLine().Split(" ").Select(x => int.Parse(x)).ToArray();
      |             ^~~
a.cc:23:13: error: 'System' was not declared in this scope
   23 |             System.Console.WriteLine($"{num[2]} {num[0]} {num[1]}");
      |             ^~~~~~
a.cc:23:38: error: '$' was not declared in this scope
   23 |             System.Console.WriteLine($"{num[2]} {num[0]} {num[1]}");
      |                                      ^
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner s = new Scanner();
    int x = s.nextInt();
    int y = s.nextInt();
    int z = s.nextInt();
    System.out.println(z + " " + x + " " + y);
  }
}

Compiler output:
Main.java:4: error: no suitable constructor found for Scanner(no arguments)
    Scanner s = new Scanner();
                ^
    constructor Scanner.Scanner(Readable,Pattern) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Readable) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,CharsetDecoder) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,Charset) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: C++

#include<iostream>
using namespace std;
int main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    int cs=1;
    //scanf("%d",&cs);
    while(cs--)
    {
        int n,k,c;
        int i;
        string s;
        vector<int>l,r;
        cin>>n>>k>>c>>s;
        i=0;
        while(l.size()<k&&i<n)
        {
            if(s[i]=='o')
            {
                l.push_back(i);
                i+=(c+1);
            }else i++;
        }
        i=n-1;
        while(r.size()<k&&i>=0)
        {
            if(s[i]=='o')
            {
                r.push_back(i);
                i-=(c+1);
            }else i--;
        }
        reverse(r.begin(),r.end());
        int j;
        for(i=0,j=0;i<l.size()&&j<r.size();i++,j++)
        {
            if(l[i]==r[i])
            {
                cout<<l[i]+1<<endl;
            }
        }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'vector' was not declared in this scope
   14 |         vector<int>l,r;
      |         ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include<iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:14:16: error: expected primary-expression before 'int'
   14 |         vector<int>l,r;
      |                ^~~
a.cc:17:15: error: 'l' was not declared in this scope
   17 |         while(l.size()<k&&i<n)
      |               ^
a.cc:26:15: error: 'r' was not declared in this scope
   26 |         while(r.size()<k&&i>=0)
      |               ^
a.cc:34:17: error: 'r' was not declared in this scope
   34 |         reverse(r.begin(),r.end());
      |                 ^
a.cc:34:9: error: 'reverse' was not declared in this scope
   34 |         reverse(r.begin(),r.end());
      |         ^~~~~~~
a.cc:36:23: error: 'l' was not declared in this scope
   36 |         for(i=0,j=0;i<l.size()&&j<r.size();i++,j++)
      |                       ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    6 |   cout << a, b, c << endl;
      |                 ~~^~~~~~~
Language: C++

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


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

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

int main() {
  int A, B, C;
  cin >> A >> B >> C >>endl;
  
  swap(A, B);
  swap(A, C);

  cout << A << " " << B << " " << C << endl;

}

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

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

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

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

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

int main() {
  int N,M;
  cin >> N >> M;
  int i,A,count = 0;
  vector<int> A;
  int sum;
  for (i = 0;i < N ;i++) {
  cin >> A;
  sum += A;
  }
  for (i = 0;i < N ;i++) {
    if (A[i]/sum < 1/(4*M)){
    continue;
    }
    else{
    count++;
    }
  }
  if (count >= M) {
  cout << "Yes" << endl;
  }
  else {
  cout << "No" << endl;
  }
}
  



Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: conflicting declaration 'std::vector<int> A'
    9 |   vector<int> A;
      |               ^
a.cc:8:9: note: previous declaration as 'int A'
    8 |   int i,A,count = 0;
      |         ^
a.cc:16:10: error: invalid types 'int[int]' for array subscript
   16 |     if (A[i]/sum < 1/(4*M)){
      |          ^
Language: C++

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

int main() {
  int N,M;
  cin >> N >> M;
  int i,A,count = 0;
  vector<int> A;
  int sum;
  for (i = 0;i < N ;i++) {
  cin >> A;
  sum += A;
  }
  for (i = 0;i < N ;i++) {
    if (A[i]/sum < 1/(4*M)){
    continue;
    }
    else{
    count++;
    }
  }
  if (count >= M) {
  cout << "Yes" << endl;
  }
  else {
  cout << "No" << endl;
  }
}
  



Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: conflicting declaration 'std::vector<int> A'
    8 |   vector<int> A;
      |               ^
a.cc:7:9: note: previous declaration as 'int A'
    7 |   int i,A,count = 0;
      |         ^
a.cc:15:10: error: invalid types 'int[int]' for array subscript
   15 |     if (A[i]/sum < 1/(4*M)){
      |          ^
Language: C++

#include<iostream>
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:14: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout<<Z,X,Y<<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<<C;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected ';' before 'swap'
    9 |   swap(A,B)
      |            ^
      |            ;
   10 |   swap(A,C)
      |   ~~~~
Language: C++

import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int x = scanner.nextInt();
        int y = scanner.nextInt();
        int z = scanner.nextInt();
        System.out.println(z + " " + x + " " + y);
        return;
    }
}

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

'use strict';
function main(input) {
  input = input.split(" ");
  const a = parseInt(input[0], 10);
  const b = parseInt(input[1], 10);
  const c = parseInt(input[2], 10);
  
  console.log(`#{c} #{a} #{b}`);
}

main(require("fs").readFileSync("/dev/stdin", "utf8"));

Compiler output:
a.cc:1:1: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
    1 | 'use strict';
      | ^~~~~~~~~~~~
a.cc:8:15: error: stray '`' in program
    8 |   console.log(`#{c} #{a} #{b}`);
      |               ^
a.cc:8:16: error: stray '#' in program
    8 |   console.log(`#{c} #{a} #{b}`);
      |                ^
a.cc:8:21: error: stray '#' in program
    8 |   console.log(`#{c} #{a} #{b}`);
      |                     ^
a.cc:8:26: error: stray '#' in program
    8 |   console.log(`#{c} #{a} #{b}`);
      |                          ^
a.cc:8:30: error: stray '`' in program
    8 |   console.log(`#{c} #{a} #{b}`);
      |                              ^
a.cc:1:1: error: expected unqualified-id before '\x72696374'
    1 | 'use strict';
      | ^~~~~~~~~~~~
a.cc:2:1: error: 'function' does not name a type; did you mean 'union'?
    2 | function main(input) {
      | ^~~~~~~~
      | union
a.cc:11:5: error: expected constructor, destructor, or type conversion before '(' token
   11 | main(require("fs").readFileSync("/dev/stdin", "utf8"));
      |     ^
Language: C++

num = list(map(int, input().split()))
tmp = num[0]
num[0] = num[1]
num[1] = tmp

tmp = num[2]
num[2] = num[0]
num[0] = tmp

print(*num)

Compiler output:
a.cc:1:1: error: 'num' does not name a type; did you mean 'enum'?
    1 | num = list(map(int, input().split()))
      | ^~~
      | enum
Language: Java

import java.util.Scanner;
class Main {
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    double n , m;
    n = sc.nextInt();
    m = sc.nextInt();
    double[] A = new int[n];
    double i , counter, sum;
    counter = 0;
    sum = 0;
    for(i=0; i < n ;i++){
      A[i] = sc.nextInt();
      sum += A[i];
    }
    double rate = sum /(4 * m);
    for(i=0 ; i<n ; i++){
      if(A[i] >= rate){
        counter++;
      }else{
        continue;
      }
    }
    if(counter >= m){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}


Compiler output:
Main.java:8: error: incompatible types: possible lossy conversion from double to int
    double[] A = new int[n];
                         ^
Main.java:8: error: incompatible types: int[] cannot be converted to double[]
    double[] A = new int[n];
                 ^
Main.java:13: error: incompatible types: possible lossy conversion from double to int
      A[i] = sc.nextInt();
        ^
Main.java:14: error: incompatible types: possible lossy conversion from double to int
      sum += A[i];
               ^
Main.java:18: error: incompatible types: possible lossy conversion from double to int
      if(A[i] >= rate){
           ^
5 errors
Language: C++

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

int main(){
    int m;
    int a[m];
    for (int i = 0; i < 3; i++) {
        cin >> a[i];
    }
    cout << a[2]" " << a[0]" " << a[1] << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: expected ';' before string constant
   10 |     cout << a[2]" " << a[0]" " << a[1] << endl;
      |                 ^~~
      |                 ;
Language: C++

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

int main(){
    int m;
    int a[m];
    for (int i = 0; i < 3; i++) {
        cin >> a[i];
    }
    cout << a[2] a[0] a[1] << endl;
    return 0;
}

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

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

int32_t main()
{
	int x, y, z;
	cin>>x>>y>>z;
	swap(x,y);
	swap(x,z);
	cout<<x<<" "<<y" "<<z;

	
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:11:24: error: expected ';' before string constant
   11 |         cout<<x<<" "<<y" "<<z;
      |                        ^~~
      |                        ;
Language: C

int main(){
  int a[]={0,0,0};
  int temp;
  scanf("%d %d %d", &a[0], &a[1], &a[2]);
  temp=a[1];
  a[1]=a[0];
  a[0]=temp;
  temp=a[2];
  a[2]=a[0];
  a[0]=temp;
  print("%d %d %d", a[0], a[1], a[2]);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   scanf("%d %d %d", &a[0], &a[1], &a[2]);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%d %d %d", &a[0], &a[1], &a[2]);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:3: error: implicit declaration of function 'print' [-Wimplicit-function-declaration]
   11 |   print("%d %d %d", a[0], a[1], a[2]);
      |   ^~~~~
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:11:35: error: 'C' was not declared in this scope
   11 |   cout << a << " " << b << " " << C << endl;
      |                                   ^
Language: C

#include<stdio.h>
int main(void)
{
  N, M = map(int,input().split()) 
 A = list(map(int,input().split())) 
 S = sum(A) 
 cnt = 0 
   for a in A; 
   if a >= S / (4*M); 
     cnt += 1 
   if cnt >= M:;
      print("Yes") 
   else  print("No")
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:3: error: 'N' undeclared (first use in this function)
    4 |   N, M = map(int,input().split())
      |   ^
main.c:4:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:6: error: 'M' undeclared (first use in this function)
    4 |   N, M = map(int,input().split())
      |      ^
main.c:4:10: error: implicit declaration of function 'map' [-Wimplicit-function-declaration]
    4 |   N, M = map(int,input().split())
      |          ^~~
main.c:4:14: error: expected expression before 'int'
    4 |   N, M = map(int,input().split())
      |              ^~~
main.c:4:34: error: expected ';' before 'A'
    4 |   N, M = map(int,input().split())
      |                                  ^
      |                                  ;
    5 |  A = list(map(int,input().split()))
      |  ~                                
main.c:9:7: error: expected '(' before 'a'
    9 |    if a >= S / (4*M);
      |       ^
      |       (
main.c:9:7: error: 'a' undeclared (first use in this function)
main.c:10:6: error: 'cnt' undeclared (first use in this function); did you mean 'int'?
   10 |      cnt += 1
      |      ^~~
      |      int
main.c:10:14: error: expected ';' before 'if'
   10 |      cnt += 1
      |              ^
      |              ;
   11 |    if cnt >= M:;
      |    ~~         
main.c:12:7: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   12 |       print("Yes")
      |       ^~~~~
      |       printf
main.c:12:19: error: expected ';' before 'else'
   12 |       print("Yes")
      |                   ^
      |                   ;
   13 |    else  print("No")
      |    ~~~~
Language: C

 N, M = map(int,input().split()) 
 A = list(map(int,input().split())) 
 S = sum(A) 
 cnt = 0 
   for a in A; 
   if a >= S / (4*M); 
     cnt += 1 
   if cnt >= M:;
      print("Yes") 
   else  print("No")


Compiler output:
main.c:1:2: warning: data definition has no type or storage class
    1 |  N, M = map(int,input().split())
      |  ^
main.c:1:2: error: type defaults to 'int' in declaration of 'N' [-Wimplicit-int]
main.c:1:5: error: type defaults to 'int' in declaration of 'M' [-Wimplicit-int]
    1 |  N, M = map(int,input().split())
      |     ^
main.c:1:9: error: implicit declaration of function 'map' [-Wimplicit-function-declaration]
    1 |  N, M = map(int,input().split())
      |         ^~~
main.c:1:13: error: expected expression before 'int'
    1 |  N, M = map(int,input().split())
      |             ^~~
main.c:2:2: error: expected ',' or ';' before 'A'
    2 |  A = list(map(int,input().split()))
      |  ^
main.c:6:4: error: expected identifier or '(' before 'if'
    6 |    if a >= S / (4*M);
      |    ^~
main.c:7:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '+=' token
    7 |      cnt += 1
      |          ^~
main.c:9:13: error: expected declaration specifiers or '...' before string constant
    9 |       print("Yes")
      |             ^~~~~
Language: C++

#include<bits/stdc++.h>

int main() {
    int a, b, c;
    for (int i = 0; i < 3; i++) {
        cin >> a >> b >> c;
    }
    cout << c << a << b << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         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:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     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:8:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     cout << c << a << b << 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 11 long long
int n,m,a[105],sum,num;
int main()
{
	cin>>n>>m;
	for(int i=1;i<=n;i++)
	{
		cin>>a[i];
		sum+=a[i];
	}
	double x=sum/(4.0*m);
	for(int i=1;i<=n;i++)
		if(a[i]>=x)
			num++;
	if(num>=m)
		cout<<"Yes";
	else
		cout<<"No";
	return 0
}


Compiler output:
a.cc:3:9: error: macro names must be identifiers
    3 | #define 11 long long
      |         ^~
a.cc: In function 'int main()':
a.cc:21:17: error: expected ';' before '}' token
   21 |         return 0
      |                 ^
      |                 ;
   22 | }
      | ~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:6: error: expected ';' before 'cout'
   13 |   p=c
      |      ^
      |      ;
   14 | 
   15 |     cout<<p<<" "<<q<<" "<<r<<endl;
      |     ~~~~
Language: C++

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

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main(
      |     ^~~~
a.cc:6:5: error: expected primary-expression before 'int'
    6 |     int a,b,c;cin>>a>>b>>c;
      |     ^~~
a.cc:6:5: error: expected '}' before 'int'
a.cc:5:3: note: to match this '{'
    5 |   {
      |   ^
a.cc:5:4: error: expected ')' before 'int'
    5 |   {
      |    ^
      |    )
    6 |     int a,b,c;cin>>a>>b>>c;
      |     ~~~
a.cc:4:9: note: to match this '('
    4 | int main(
      |         ^
a.cc:6:11: error: 'b' was not declared in this scope
    6 |     int a,b,c;cin>>a>>b>>c;
      |           ^
a.cc:6:13: error: 'c' was not declared in this scope
    6 |     int a,b,c;cin>>a>>b>>c;
      |             ^
a.cc:6:15: error: 'cin' does not name a type
    6 |     int a,b,c;cin>>a>>b>>c;
      |               ^~~
a.cc:7:5: error: 'cout' does not name a type
    7 |     cout<<c << a<< b<<endl;
      |     ^~~~
a.cc:8:5: error: expected unqualified-id before 'return'
    8 |     return 0;
      |     ^~~~~~
a.cc:9:3: error: expected declaration before '}' token
    9 |   }
      |   ^
Language: Java

import java.util.*;

 // Compiler version JDK 11.0.2

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


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

using System;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] input = Console.ReadLine().Split(' ');
            Console.WriteLine($"{input[2]} {input[0]} {input[1]}");
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:7:26: error: 'string' has not been declared
    7 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:7:35: error: expected ',' or '...' before 'args'
    7 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:12:6: error: expected ';' after class definition
   12 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ConsoleApp1::Program::Main(int*)':
a.cc:9:13: error: 'string' was not declared in this scope
    9 |             string[] input = Console.ReadLine().Split(' ');
      |             ^~~~~~
a.cc:9:20: error: expected primary-expression before ']' token
    9 |             string[] input = Console.ReadLine().Split(' ');
      |                    ^
a.cc:10:13: error: 'Console' was not declared in this scope
   10 |             Console.WriteLine($"{input[2]} {input[0]} {input[1]}");
      |             ^~~~~~~
a.cc:10:31: error: '$' was not declared in this scope
   10 |             Console.WriteLine($"{input[2]} {input[0]} {input[1]}");
      |                               ^
Language: Java

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

public class main {

	public static void main(String[] args) {
		
		Scanner sc= new Scanner(System.in);
		
		int a=sc.nextInt();
		int b=sc.nextInt();
		int c=sc.nextInt();
		
		ArrayList<Integer> list=new ArrayList<>();
		
		list.add(a);
		list.add(b);
		list.add(c);
		
		System.out.println(list.get(2)+" "+list.get(0)+" "+list.get(1));
		
	}
}


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

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

int main(){
  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;
  printf("%d %d %d", &a, &b, &c);
  
  return 0;
}

Compiler output:
main.c:2:2: error: invalid preprocessing directive #Include; did you mean #include?
    2 | #Include <stdlib.h>
      |  ^~~~~~~
      |  include
Language: C

#include<stdio.h>

int main(void)
{
	int A, B, C;
	scanf("%d%d%d", &A, &B, &C);
	swap(&A, &B);
	swap(&A, &C);
	printf("%d %d %d", A, B, C);

	return 0;
}
void swap(int* a, int* b) {
	int box;
	box = *a;
	*a = *b;
	*b = box;
 }

Compiler output:
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'swap' [-Wimplicit-function-declaration]
    7 |         swap(&A, &B);
      |         ^~~~
main.c: At top level:
main.c:13:6: warning: conflicting types for 'swap'; have 'void(int *, int *)'
   13 | void swap(int* a, int* b) {
      |      ^~~~
main.c:7:9: note: previous implicit declaration of 'swap' with type 'void(int *, int *)'
    7 |         swap(&A, &B);
      |         ^~~~
Language: Java

import java.util.Scanner;

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

        int X = Integer.parseInt(scan.next());
        int Y = Integer.parseInt(scan.next());
        int Z = Integer.parseInt(scan.next());
        
        System.out.println(Z + " " + X + " " + Y);
        scan.close();
    }
}

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

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

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

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #lnclude; did you mean #include?
    1 | #lnclude <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>A>>B>>C;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #lnclude <bits/stdc++.h>
a.cc:7:8: error: 'swap' is not a member of 'std'
    7 |   std::swap(A,B);
      |        ^~~~
a.cc:8:8: error: 'swap' is not a member of 'std'
    8 |   std::swap(A,C);
      |        ^~~~
a.cc:9:3: error: 'cout' was not declared in this scope
    9 |   cout<<A<<" "<<B<<" "<<C<<endl;
      |   ^~~~
a.cc:9:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:28: error: 'endl' was not declared in this scope
    9 |   cout<<A<<" "<<B<<" "<<C<<endl;
      |                            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #lnclude <bits/stdc++.h>
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int>>n;
  cin>>n;
  cout<<n;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:6: error: expected unqualified-id before '>>' token
    4 |   int>>n;
      |      ^~
a.cc:5:8: error: 'n' was not declared in this scope; did you mean 'yn'?
    5 |   cin>>n;
      |        ^
      |        yn
Language: C++

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

int main()
{
  vector<int> vec(3);
  for(int i=0;i<3;i++)
  {
    cin>>vec.at(i);
  }
  cout<<vec.at(2)<<' '<<vec.at(0)<<' '<<vec.at(1<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:49: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   11 |   cout<<vec.at(2)<<' '<<vec.at(0)<<' '<<vec.at(1<<endl;
      |                                                ~^~~~~~
Language: Java

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


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

 program sample1
      implicit none
      
      integer X,Y,Z
      read(*,*)X
      read(*,*)Y
      read(*,*)Z
      write(*,'(i0)') Z
      write(*,'(i0)') X
      write(*,'(i0)') Y
      stop 
      end program sample1

Compiler output:
a.cc:8:15: warning: multi-character character constant [-Wmultichar]
    8 |       write(*,'(i0)') Z
      |               ^~~~~~
a.cc:9:15: warning: multi-character character constant [-Wmultichar]
    9 |       write(*,'(i0)') X
      |               ^~~~~~
a.cc:10:15: warning: multi-character character constant [-Wmultichar]
   10 |       write(*,'(i0)') Y
      |               ^~~~~~
a.cc:1:2: error: 'program' does not name a type
    1 |  program sample1
      |  ^~~~~~~
Language: C

#include<iostream>
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:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

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

Compiler output:
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2 using namespace std;
      | ^
a.cc:3:1: error: expected unqualified-id before numeric constant
    3 | 3
      | ^
Language: C++

#include <stdio.h>
int main()
{
  int a , b , c;
  cin>>a>>b>>c;
  a+=b;
  b=a-b;
  a-=b;
  a+=c;
  c=a-c;
  a-=c;
  cout<<a<<b<<c;

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>a>>b>>c;
      |   ^~~
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout<<a<<b<<c;
      |   ^~~~
a.cc:12:17: error: expected '}' at end of input
   12 |   cout<<a<<b<<c;
      |                 ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] str = br.readLine().split();
    
    System.out.println(str[2] + " " + str[0] + " " + str[1]);
  }
}


Compiler output:
Main.java:8: error: no suitable method found for split(no arguments)
    String[] str = br.readLine().split();
                                ^
    method String.split(String,int) is not applicable
      (actual and formal argument lists differ in length)
    method String.split(String,int,boolean) is not applicable
      (actual and formal argument lists differ in length)
    method String.split(char,int,boolean) is not applicable
      (actual and formal argument lists differ in length)
    method String.split(String) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] str = br.readLine();
    int x = Integer.parseInt(str[0]);
    int y = Integer.parseInt(str[1]);
    int z = Integer.parseInt(str[2]);
    
    int tempX = x;
    x = z;
    int tempY = y;
    y = tempX;
    z = tempY;
    
    System.out.println(x + " " + y + " " + z);
  }
}

Compiler output:
Main.java:8: error: incompatible types: String cannot be converted to String[]
    String[] str = br.readLine();
                              ^
1 error
Language: Java

import java.util.*;
pubic class Main{
  public static void main(String[] args){
    Scanner scn=new Scanner(System.in);
    int a=scn.nextInt();
    int b=scn.nextInt();
     int c=scn.nextInt();
    
    int t1=a;
    a=b;
    b=t1;
    
    int t2=a;
    a=c;
    c=t2;
    
    System.out.print(a+" "+b+" "+c);
  }
}

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
pubic class Main{
^
1 error
Language: C++

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

X, Y = Y, X
X, Z = Z, X

print(str(X) + " " + str(Y) + " " + str(Z))

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

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

Compiler output:
Main.java:2: error: '{' expected
class Main()
          ^
1 error
Language: C++

#include<bits/stdc++.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin >> x >> y >> z;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout << x << ' ' << y << ' ' << z;
      |     ^~~~
      |     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<iostream>
using namespace std;
 
int main()
{
  int n,min;
  bool val=true;
  cin>>n>>min;
  int arr[n];
  int sum=0
  for(int i=0;i<n;i++)
  {
    cin>>arr[i];
    sum+= arr[i];
  }
  for(int i=0;i<n;i++)
  {  
      if (arr[i]<(1/4*(min))*(sum)){
     val = false;
       break;
     }
  }
  if (val==1) cout<<"Yes";
  else cout<<"No";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected ',' or ';' before 'for'
   11 |   for(int i=0;i<n;i++)
      |   ^~~
a.cc:11:15: error: 'i' was not declared in this scope
   11 |   for(int i=0;i<n;i++)
      |               ^
Language: C++

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

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

#include<iosteam>
using namespace std;

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

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

#include<iostream>

int main()
{
  int a,b,c;
  cin>>a>>b>>c;
  cout<<a<<" "<<b<<" "<<c;
  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<<a<<" "<<b<<" "<<c;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:11: error: expected ';' before '}' token
   16 |   return 0
      |           ^
      |           ;
   17 | }
      | ~