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

package Profit;

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

public class Maximum_Profit {
	static int N = 0;// ????´???°
	static int cnt = 0;// ?´???°?????°
	static double AL[];// ????´?

	// ????´???°????????????????????§??????
	static boolean N_IsOver(int N) {
		boolean result;

		// ??????????????????
		result = N >= 0 && N <= 1000 ? true : false;
		return result;
	}

	// ????´?????????????????????§??????
	static boolean Num_IsOver(double num) {
		double min, max;
		boolean result;

		// ?????????????¨????
		min = 2;
		max = 100000000;

		result = num >= min && num <= max ? true : false;
		return result;
	}

	// ?´???°?????§??????
	static boolean Num_IsPrime(double num) {
		// ?????????
		boolean result = true;

		for (double i = 2; i <= num; i++) {
			if (num / i > 1 && num % i == 0) {
				result = false;
				break;
			}
		}
		return result;
	}

	public static void main(String[] args) throws IOException {
		// ??\?????¨????????°?????£?¨?
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		String buf;

		try {
			// ????´???°??\???
			System.out.println("????´???°?????\????????????????????????");
			buf = br.readLine();
			N = Integer.parseInt(buf);

			while (!N_IsOver(N)) {
				System.out.println("????´???°?????????????¶???????????????????\n?????\?????????????????????");
				buf = br.readLine();
				N = Integer.parseInt(buf);
			}
			AL = new double[N];

			// ????´???\???
			System.out.println(N + "???????´??????\????????????????????????");
			for (int i = 0; i < N; i++) {
				buf = br.readLine();
				AL[i] = Double.parseDouble(buf);
				while (!Num_IsOver(AL[i])) {
					System.out.println("????´??????????????¶???????????????????\n?????\?????????????????????");
					buf = br.readLine();
					AL[i] = Double.parseDouble(buf);
				}
			}

			// ?´???°?????°??????????????????
			for (int i = 0; i < N; i++) {
				if (Num_IsPrime(AL[i]))
					cnt++;
			}

			// ?´???°?????°?????¨???
			System.out.println(cnt);

			// ??°?????§???????????´??????????????????
		} catch (NumberFormatException e) {
			System.out.println("??????????????????????????????");
		}

	}

}

Compiler output:
Main.java:56: error: illegal escape character
			System.out.println("??????????????\????????????????????????");
			                                   ^
Main.java:61: error: illegal escape character
				System.out.println("??????????????????????????????????????????\n?????\?????????????????????");
				                                                                      ^
Main.java:68: error: illegal escape character
			System.out.println(N + "??????????????\????????????????????????");
			                                       ^
Main.java:73: error: illegal escape character
					System.out.println("???????????????????????????????????????\n?????\?????????????????????");
					                                                                   ^
4 errors
Language: Java

import java.io.*;

class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        int i, j;
        int count = 0;

        for(i=0; i<n; i++){
            int a = Integer.parseInt(br.readLine());
            for(j=Math.sqrt(a); j>0; j--){
                if(a%j == 0) break;
            }
            if(j==0) count++;
        }
    }
}

Compiler output:
Main.java:12: error: incompatible types: possible lossy conversion from double to int
            for(j=Math.sqrt(a); j>0; j--){
                           ^
1 error
Language: Java

import java.util.*;
import java.lang.*;

class Main {
    static boolean isPrime(int x) {
        for(int i = 2; i <= Math.sqrt(x); i++) {
            if(x % i == 0) return false;
        }
        return true;
    }

    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        int n  = sc.nextInt();
        int flag = 0, sum = 0;
            if(isPrime(sc.nextInt())) sum++;
            flag++;
        }
        System.out.println(sum);
    }
}

Compiler output:
Main.java:19: error: <identifier> expected
        System.out.println(sum);
                          ^
Main.java:19: error: <identifier> expected
        System.out.println(sum);
                              ^
Main.java:21: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int length = sc.nextInt();
		int count = 0;
		ArrayList<Integer> primeAr = new ArrayList<Integer>();
		
		for (int i = 0; i < length; i++) {
			int num = sc.nextInt();
			if (!primeAr.contains(num) && isPrime(num)) {
				count++;
				primeAr.add(num);
			}
		}
		System.out.println(count);
	}
	
	public static boolean isPrime(int i) {
		
		boolean prime = true;
		for (int j = 2; j <= i / 2; j++) {
			if (i % j == 0) {
				prime = false;
				break;
			}
		}
		return prime;
	}
}

Compiler output:
Main.java:8: error: cannot find symbol
		ArrayList<Integer> primeAr = new ArrayList<Integer>();
		^
  symbol:   class ArrayList
  location: class Main
Main.java:8: error: cannot find symbol
		ArrayList<Integer> primeAr = new ArrayList<Integer>();
		                                 ^
  symbol:   class ArrayList
  location: class Main
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

class Main{
	public static void main(String[] args)throws Exception{
		BufferedReader br = 
			new BufferedReader(new InputStreamReader(System.in));
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int[] numbers = new int[n];
		public int total = 0;
		
		for(int i = 0; i < n; i++){
			numbers[i] = scanner.nextInt();
			isPrime(numbers[i]);
		}

		System.out.println(sum);
	}

	public void isPrime(number){
		if(number <= 2){
			sum++;
		}else if(number % 2 == 0){

		}else{
			double x = Math.sqrt(x);
			while(true){
				for(int i = 3; i < x; i++){
					if(number % i == 0){
						break;
					}
				sum++;
				}
			}
		}
	}
}

Compiler output:
Main.java:12: error: illegal start of expression
		public int total = 0;
		^
Main.java:14: error: illegal start of type
		for(int i = 0; i < n; i++){
		^
Main.java:14: error: > or ',' expected
		for(int i = 0; i < n; i++){
		                    ^
Main.java:14: error: <identifier> expected
		for(int i = 0; i < n; i++){
		                       ^
Main.java:19: error: <identifier> expected
		System.out.println(sum);
		                  ^
Main.java:19: error: <identifier> expected
		System.out.println(sum);
		                      ^
Main.java:22: error: unnamed classes are a preview feature and are disabled by default.
	public void isPrime(number){
	       ^
  (use --enable-preview to enable unnamed classes)
Main.java:22: error: <identifier> expected
	public void isPrime(number){
	                          ^
Main.java:39: error: class, interface, enum, or record expected
}
^
9 errors
Language: Java

import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] array = new int[num];
        int count = 0;
        
        Outer:
        for(int i = 0; i < num; i++){
            int x = sc.nextInt();
            for(int j = 2; j < x; j++){
                if(x % j == 0){
                    continue Outer;
                }
            }
            count++
        }
        System.out.println(count);
    }
}


Compiler output:
Main.java:18: error: ';' expected
            count++
                   ^
1 error
Language: Java

import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int count = 0;
        BigInteger bi = new BigInteger(sc.next());

        for(int i = 0; i < num; i++){
            String x = sc.next();
            if(new BigInteger(x).isProbablePrime(5)){
                count++;
            }
        }
        System.out.println(count);
    }
}


Compiler output:
Main.java:8: error: cannot find symbol
        BigInteger bi = new BigInteger(sc.next());
        ^
  symbol:   class BigInteger
  location: class Main
Main.java:8: error: cannot find symbol
        BigInteger bi = new BigInteger(sc.next());
                            ^
  symbol:   class BigInteger
  location: class Main
Main.java:12: error: cannot find symbol
            if(new BigInteger(x).isProbablePrime(5)){
                   ^
  symbol:   class BigInteger
  location: class Main
3 errors
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws Exception {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int primeNum = 0;

		for(int i = 0; i < n; i++) {

			int num = sc.nextInt();

			if(isPrime(num)) {
				primeNum++;
			}
		}
		System.out.println(primeNum);
	}

	static boolean isPrime(int num) {

		if(num == 2) {
			return true;
		}

		if(num % 2 == 0) {
			return false;
		}

		int i = 3;
		while(i <= Math.sqrt(num)) {

			if(num % i == 0) {
				return false;
			}

			i += 2;
		}

		return ture;
	}
}


Compiler output:
Main.java:42: error: cannot find symbol
		return ture;
		       ^
  symbol:   variable ture
  location: class Main
1 error
Language: Java

import java.util.Scanner;

class Main {
  public static void main(String[] args){
    Scanner nyuryoku = new Scanner(System.in);
    int n = nyuryoku.nextInt();
    int[] num = new int[n];
    for (int i = 0; i < n; i++){
      num[i] = nyuryoku.nextInt();
    }
    int ans = prime(n, num);
    System.out.println(ans);
  }
  public static int prime(int n, int[] num){
    int count = 0;
    IN:for (int i = 0; i < n; i++){
      for (int j = 2; j < num[i];j++)
        if (num[i] % j == 0) {continue IN;}
    count++;    
    }

    return count;
  }



Compiler output:
Main.java:23: error: reached end of file while parsing
  }
   ^
1 error
Language: Java

import java.util.Scanner;
public class Main1{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int counter = 0;
        int [] primes = new int[10000];
        for(int x = 0; x < primes.length; x++){
            primes[x] = 0;
        }
        for(int x = 2; x < 10000; x++){
            if(primes[x] == 0){
                for(int y = 2; y * x < primes.length;y++){
                    primes[y *x] = 1;
                }
            }
        }
        for(int x = 0; x < n; x++){
            int k = scan.nextInt();
            if(primes[k] == 1){
                counter++;
            }
        }
        System.out.println(counter);
    }
}


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

import java.util.*;
import java.math.*;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int count = 0;
		for (int i = 0; i < n; i++) {
			String str;
			str = sc.next();
			if (new BigInteger(s).isProbablePrime(5)) {
				count++;
			}
		}
		System.out.println(count);
	}
}


Compiler output:
Main.java:12: error: cannot find symbol
			if (new BigInteger(s).isProbablePrime(5)) {
			                   ^
  symbol:   variable s
  location: class Main
1 error
Language: Java

import java.util.*;
import java.math.*;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int count = 0;
		for (int i = 0; i < n; ++i) {
			String str;
			str = sc.next();
			if (new BigInteger(s).isProbablePrime(5)) {
				++count;
			}
		}
		System.out.println(count);
	}
}


Compiler output:
Main.java:12: error: cannot find symbol
			if (new BigInteger(s).isProbablePrime(5)) {
			                   ^
  symbol:   variable s
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class PrimeNumber {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int count=0;
		int n = Integer.parseInt(sc.nextLine());

		for(int i=0;i<n;i++){
			String s=sc.nextLine();
			int num=Integer.parseInt(s);
			double numDouble=Double.parseDouble(s);
			int divor=Math.round(Math.round(Math.sqrt(numDouble)))+1;
			boolean f=true;
			for(int j=2;j<divor;j++){
				if(num%j==0){
					f=false;
					break;
				}
			}
			if(f){
				count++;
			}
		}
		System.out.println(count);
	}
}



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

import java.util.Scanner;
public class Prime{
	public static void main(String[] args){
		Scanner s=new Scanner(System.in);
		int n=s.nextInt();
		int cnt=0;
		for(int i=0;i<n;i++){
			int m=s.nextInt();
			int c=0;
			for(int j=2;j<=Math.sqrt(m);j++){
				if(m%j==0) c=1;
			}
			if(c==0) cnt++;
		}
		System.out.println(cnt);
	}
}


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

import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int num,cnt=0;
        for(int i=0;i<n;i++){
            num=sc.nextInt();
            j=2;
            while(j<=Math.sqrt(num)){
                if(num%j==0){
                    cnt++;
                    break;
                }
            }
        }
        System.out.println(cnt);
    }
}


Compiler output:
Main.java:10: error: cannot find symbol
            j=2;
            ^
  symbol:   variable j
  location: class Main
Main.java:11: error: cannot find symbol
            while(j<=Math.sqrt(num)){
                  ^
  symbol:   variable j
  location: class Main
Main.java:12: error: cannot find symbol
                if(num%j==0){
                       ^
  symbol:   variable j
  location: class Main
3 errors
Language: Java

import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int num,cnt=0,j;
        for(int i=0;i<n;i++){
            num=sc.nextInt();
            j=2;
            if((num==2)||(num==3)){
                cnt++;
            }else if{
                while(j<=Math.sqrt(num)){
                    if(num%j==0){
                        cnt++;
                        break;
                    }
                    j++;
                }
            }
        }
        System.out.println(cnt);
    }
}


Compiler output:
Main.java:13: error: '(' expected
            }else if{
                    ^
1 error
Language: Java

mport java.util.Scanner;
public class Main {
	public static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		int i, j, k;
		int n = sc.nextInt();
		int a[] = new int[n];
		int count = 0;
		
		for(i = 0; i < n; i++){
			a[i] = sc.nextInt();
			if(prime(a[i]) == 1) count++;
		}
		System.out.println(count);
		
		
	}
	
	public static int prime(int x){
		if(x == 2) return 1;
		if(x <= 1 || x % 2 == 0) return 0;
		int i = 3;
		
		while( i <= Math.sqrt(x)){
			if(x % i == 0) return 0;
			i = i + 2;
		}
		return 1;
	}
}


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
Language: Java

#include <stdio.h>
#include<math.h>
#include <stdlib.h>
int main(){
  int *n;
  int a,size,i,c;
  int count = 0;
  scanf("%d",&size);
  n = (int *)malloc(size * sizeof(int));

  for(c=0; c<size; c++){
    scanf("%d",&a);
    n[c] = a;
  }
  
  for(i=0;i<c;i++){
    if(isprime(n[i])==1) count++;;
  }
  printf("%d",count);
  return 0;
}

int isprime(int x){
  if(x == 2) return 1;
  if(x < 2 || x%2==0) return -1; 
  int i = 3;
  while(i <= sqrt(x)){
    if (x % i ==0) return -1;
    i = i+2;
  }
  return 1;
}



Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:2: error: illegal character: '#'
#include<math.h>
^
Main.java:3: error: illegal character: '#'
#include <stdlib.h>
^
Main.java:6: error: class, interface, enum, or record expected
  int a,size,i,c;
  ^
Main.java:7: error: unnamed classes are a preview feature and are disabled by default.
  int count = 0;
  ^
  (use --enable-preview to enable unnamed classes)
Main.java:8: error: class, interface, enum, or record expected
  scanf("%d",&size);
  ^
Main.java:9: error: class, interface, enum, or record expected
  n = (int *)malloc(size * sizeof(int));
  ^
Main.java:11: error: class, interface, enum, or record expected
  for(c=0; c<size; c++){
  ^
Main.java:11: error: class, interface, enum, or record expected
  for(c=0; c<size; c++){
           ^
Main.java:11: error: class, interface, enum, or record expected
  for(c=0; c<size; c++){
                   ^
Main.java:13: error: class, interface, enum, or record expected
    n[c] = a;
    ^
Main.java:14: error: class, interface, enum, or record expected
  }
  ^
Main.java:16: error: class, interface, enum, or record expected
  for(i=0;i<c;i++){
          ^
Main.java:16: error: class, interface, enum, or record expected
  for(i=0;i<c;i++){
              ^
Main.java:18: error: class, interface, enum, or record expected
  }
  ^
Main.java:20: error: class, interface, enum, or record expected
  return 0;
  ^
Main.java:21: error: class, interface, enum, or record expected
}
^
Main.java:25: error: class, interface, enum, or record expected
  if(x < 2 || x%2==0) return -1; 
  ^
Main.java:27: error: class, interface, enum, or record expected
  while(i <= sqrt(x)){
  ^
Main.java:29: error: class, interface, enum, or record expected
    i = i+2;
    ^
Main.java:30: error: class, interface, enum, or record expected
  }
  ^
Main.java:32: error: class, interface, enum, or record expected
}
^
23 errors
Language: Java

#include<stdio.h>

int main(){

int num = 0;
int data[num];
int i = 0;
int k = 1;
int ans = 0;
int count = 0;
int finalans = 0;

while(1){
  scanf("%d",&num);
  if(1 <= num && num <=10000){
    break;
  }
}

for(i = 0;i < num;i++){
  scanf("%d",&data[i]);
  if(2 > data[i] || data[i] > 100000000){
    break;
  }
}

for(i = 0;i < num;i++){
  for(k = 1;k <= data[i];k++){
    ans = data[i] % k;
  if(ans == 0){
    count++;
  }
}
if(count == 2){
  finalans++;
  count = 0;
}
else{
  count = 0;
}
}

printf("%d",finalans);
printf("\n");
return 0;
}



Compiler output:
Main.java:1: error: illegal character: '#'
#include<stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<stdio.h>
        ^
Main.java:6: error: class, interface, enum, or record expected
int data[num];
^
Main.java:7: error: unnamed classes are a preview feature and are disabled by default.
int i = 0;
^
  (use --enable-preview to enable unnamed classes)
Main.java:13: error: class, interface, enum, or record expected
while(1){
^
Main.java:15: error: class, interface, enum, or record expected
  if(1 <= num && num <=10000){
  ^
Main.java:17: error: class, interface, enum, or record expected
  }
  ^
Main.java:20: error: class, interface, enum, or record expected
for(i = 0;i < num;i++){
          ^
Main.java:20: error: class, interface, enum, or record expected
for(i = 0;i < num;i++){
                  ^
Main.java:22: error: class, interface, enum, or record expected
  if(2 > data[i] || data[i] > 100000000){
  ^
Main.java:24: error: class, interface, enum, or record expected
  }
  ^
Main.java:27: error: class, interface, enum, or record expected
for(i = 0;i < num;i++){
          ^
Main.java:27: error: class, interface, enum, or record expected
for(i = 0;i < num;i++){
                  ^
Main.java:28: error: class, interface, enum, or record expected
  for(k = 1;k <= data[i];k++){
            ^
Main.java:28: error: class, interface, enum, or record expected
  for(k = 1;k <= data[i];k++){
                         ^
Main.java:30: error: class, interface, enum, or record expected
  if(ans == 0){
  ^
Main.java:32: error: class, interface, enum, or record expected
  }
  ^
Main.java:36: error: class, interface, enum, or record expected
  count = 0;
  ^
Main.java:37: error: class, interface, enum, or record expected
}
^
Main.java:40: error: class, interface, enum, or record expected
}
^
Main.java:44: error: class, interface, enum, or record expected
printf("\n");
^
Main.java:45: error: class, interface, enum, or record expected
return 0;
^
Main.java:46: error: class, interface, enum, or record expected
}
^
23 errors
Language: Java

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

int main(){

int num = 0;
int *data;
int i = 0;
int k = 1;
int ans = 0;
int count = 0;
int finalans = 0;

data = (int *)malloc(sizeof(int)*num);

for(i = 0;i < num;i++){
  scanf("%d",&data[i]);
  for(k = 1;k <= data[i];k++){
    ans = data[i] % k;
  if(ans == 0){
    count++;
  }
}
if(count == 2){
  finalans++;
}
count = 0;
}

printf("%d\n",finalans);
return 0;
}



Compiler output:
Main.java:1: error: illegal character: '#'
#include<stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<stdio.h>
        ^
Main.java:2: error: illegal character: '#'
#include<stdlib.h>
^
Main.java:7: error: class, interface, enum, or record expected
int *data;
^
Main.java:8: error: unnamed classes are a preview feature and are disabled by default.
int i = 0;
^
  (use --enable-preview to enable unnamed classes)
Main.java:14: error: class, interface, enum, or record expected
data = (int *)malloc(sizeof(int)*num);
^
Main.java:16: error: class, interface, enum, or record expected
for(i = 0;i < num;i++){
^
Main.java:16: error: class, interface, enum, or record expected
for(i = 0;i < num;i++){
          ^
Main.java:16: error: class, interface, enum, or record expected
for(i = 0;i < num;i++){
                  ^
Main.java:18: error: class, interface, enum, or record expected
  for(k = 1;k <= data[i];k++){
  ^
Main.java:18: error: class, interface, enum, or record expected
  for(k = 1;k <= data[i];k++){
            ^
Main.java:18: error: class, interface, enum, or record expected
  for(k = 1;k <= data[i];k++){
                         ^
Main.java:20: error: class, interface, enum, or record expected
  if(ans == 0){
  ^
Main.java:22: error: class, interface, enum, or record expected
  }
  ^
Main.java:26: error: class, interface, enum, or record expected
}
^
Main.java:28: error: class, interface, enum, or record expected
}
^
Main.java:31: error: class, interface, enum, or record expected
return 0;
^
Main.java:32: error: class, interface, enum, or record expected
}
^
18 errors
Language: Java

#include<stdio.h>
#include<math.h>
int isPrime(int );

int main(){
    int n,i,judge,count;
    int num[10];
    scanf("%d",&n);

    for(i=0;i<n;i++){
        scanf("%d",&num[i]);
    }

    for(i=0;i<n;i++){

       judge = isPrime(num[i]);

    if(judge==1){
        count++;
    }
    }
    printf("\n%d\n",count);
    return 0;
}

int isPrime(num){
    int i;
    
    if(num == 2)return 1;
    if(num<2 || num%2==0)return 0;
    for(i=3;i<=num;i+=2)
         if((int)num % i != 0)return 1;  
     return 0;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include<stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<stdio.h>
        ^
Main.java:2: error: illegal character: '#'
#include<math.h>
^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
int main(){
^
  (use --enable-preview to enable unnamed classes)
Main.java:7: error: ']' expected
    int num[10];
            ^
Main.java:8: error: illegal start of expression
    scanf("%d",&n);
               ^
Main.java:11: error: illegal start of expression
        scanf("%d",&num[i]);
                   ^
Main.java:26: error: <identifier> expected
int isPrime(num){
               ^
8 errors
Language: Java

import java.util.*;

/**
 * C
 */
public class C {
    public static void main(String[] args) {
        
        int prime = 0;
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int array[] = new int[n];

        for(int i=0; i<n; i++) {
            array[i] = sc.nextInt();
        }

        sc.close();

        for(int num : array) {
            int check = 0;
            for(int j=1; j<=num; j++) {
                if(num%j == 0) {
                    check++;
                }
            }
            if(check == 2) {
                prime++;
            }
        }

        System.out.println(prime);

    }
}



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

import java.util.*;

/**
 * C
 */
public class Main {
    public static void main(String[] args) {
        
        int prime = 0;
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int array[] = new int[n];

        while(int i != array.length; i++) {
            array[i] = sc.nextInt();
        }

        sc.close();

        for(int num : array) {
            int check = 0;
            for(int j=1; j<=num; j++) {
                if(num%j == 0) {
                    check++;
                }
            }
            if(check == 2) {
                prime++;
            }
        }

        System.out.println(prime);

    }
}



Compiler output:
Main.java:15: error: '.class' expected
        while(int i != array.length; i++) {
                  ^
Main.java:15: error: not a statement
        while(int i != array.length; i++) {
                    ^
Main.java:15: error: ';' expected
        while(int i != array.length; i++) {
                                        ^
3 errors
Language: Java

import java.util.*;

/**
 * C
 */
public class Main {
    public static void main(String[] args) {
        
        int prime = 0;
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int array[] = new int[n];

        while(int i != array.length) {
            array[i] = sc.nextInt();
            i++;
        }

        sc.close();

        for(int num : array) {
            int check = 0;
            for(int j=1; j<=num; j++) {
                if(num%j == 0) {
                    check++;
                }
            }
            if(check == 2) {
                prime++;
            }
        }

        System.out.println(prime);

    }
}



Compiler output:
Main.java:15: error: '.class' expected
        while(int i != array.length) {
                  ^
Main.java:15: error: not a statement
        while(int i != array.length) {
                    ^
Main.java:15: error: ';' expected
        while(int i != array.length) {
                                   ^
3 errors
Language: Java

import java.util.*;

/**
 * C
 */
public class C {
    public static void main(String[] args) {
        
        int prime = 0;
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int array[] = new int[n];

        for(int i=0; i<n; i++) {
            array[i] = sc.nextInt();
        }

        sc.close();

        for(int num : array) {
            int check = 0;
            for(int j=1; j<=num; j++) {
                if(num%j == 0) {
                    check++;
                }
            }
            if(check == 2) {
                prime++;
            }
        }

        System.out.println(prime);

    }
}


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

import java.util.*;

/**
 * C
 */
public class C {
    public static void main(String[] args) {
        
        int prime = 0;
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int array[] = new int[n];

        for(int i=0; i<n; i++) {
            array[i] = sc.nextInt();
            System.out.println();
        }

        sc.close();

        for (int num : array) {
            int check = 0;
            for (int j = 2; j<num; j++) {
                if (num % j == 0) {
                    check++;
                    break;
                }
            }
            if (check == 0) {
                prime++;
            }
        }

        System.out.println(prime);

    }
}


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

#include <stdio.h>

int main() {
	int n = 0, a[10000], i, j, count = 0, flag = 0;
	scanf("%d", &n);
	for (i = 0; i < n; i++) {
		scanf("%d",&a[i]);
	}

	for (i = 0; i < n; i++) {
		for (j = 2; j < a[i]; ++j) {
			if (a[i]%j==0) {
				flag = 1;
				break;
			}
		}
		if (flag==0) {
			count++;
		}
		flag = 0;
	}

	printf("%d\n", count);
	return 0;
}



Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:5: error: class, interface, enum, or record expected
	scanf("%d", &n);
	^
Main.java:6: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	^
Main.java:6: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	            ^
Main.java:6: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	                   ^
Main.java:8: error: class, interface, enum, or record expected
	}
	^
Main.java:10: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	            ^
Main.java:10: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	                   ^
Main.java:11: error: class, interface, enum, or record expected
		for (j = 2; j < a[i]; ++j) {
		            ^
Main.java:11: error: class, interface, enum, or record expected
		for (j = 2; j < a[i]; ++j) {
		                      ^
Main.java:14: error: class, interface, enum, or record expected
				break;
				^
Main.java:15: error: class, interface, enum, or record expected
			}
			^
Main.java:19: error: class, interface, enum, or record expected
		}
		^
Main.java:21: error: class, interface, enum, or record expected
	}
	^
Main.java:24: error: class, interface, enum, or record expected
	return 0;
	^
Main.java:25: error: class, interface, enum, or record expected
}
^
17 errors
Language: Java

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

#define X 10000

int main() {
	int i, j, l, n, m, a[X], count = 0, flag=0;
	a[0] = 0;
	scanf_s("%d", &n);

	for (i = 0; i < n; i++) {
		scanf_s("%d", &a[i]);
	}

	for (i = 0; i < n; i++) {
		for (j = 2; j <= (int)(sqrt(a[i])); ++j) {
			if (a[i]%j==0) {
				flag = 1;
				break;
			}
		}
		if (flag==0) {
			count++;
		}
		flag = 0;
	}

	return 0;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:2: error: illegal character: '#'
#include <math.h>
^
Main.java:4: error: illegal character: '#'
#define X 10000
^
Main.java:8: error: class, interface, enum, or record expected
	a[0] = 0;
	^
Main.java:9: error: class, interface, enum, or record expected
	scanf_s("%d", &n);
	^
Main.java:11: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	^
Main.java:11: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	            ^
Main.java:11: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	                   ^
Main.java:13: error: class, interface, enum, or record expected
	}
	^
Main.java:15: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	            ^
Main.java:15: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	                   ^
Main.java:16: error: class, interface, enum, or record expected
		for (j = 2; j <= (int)(sqrt(a[i])); ++j) {
		            ^
Main.java:16: error: class, interface, enum, or record expected
		for (j = 2; j <= (int)(sqrt(a[i])); ++j) {
		                                    ^
Main.java:19: error: class, interface, enum, or record expected
				break;
				^
Main.java:20: error: class, interface, enum, or record expected
			}
			^
Main.java:24: error: class, interface, enum, or record expected
		}
		^
Main.java:26: error: class, interface, enum, or record expected
	}
	^
Main.java:29: error: class, interface, enum, or record expected
}
^
19 errors
Language: Java

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

#define X 10000

int main() {
	int i, j, l, n, m, a[X], count = 0, flag=0;
	a[0] = 0;
	scanf("%d", &n);

	for (i = 0; i < n; i++) {
		scanf("%d", &a[i]);
	}

	for (i = 0; i < n; i++) {
		for (j = 2; j <= (int)(sqrt(a[i])); ++j) {
			if (a[i]%j==0) {
				flag = 1;
				break;
			}
		}
		if (flag==0) {
			count++;
		}
		flag = 0;
	}

	return 0;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:2: error: illegal character: '#'
#include <math.h>
^
Main.java:4: error: illegal character: '#'
#define X 10000
^
Main.java:8: error: class, interface, enum, or record expected
	a[0] = 0;
	^
Main.java:9: error: class, interface, enum, or record expected
	scanf("%d", &n);
	^
Main.java:11: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	^
Main.java:11: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	            ^
Main.java:11: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	                   ^
Main.java:13: error: class, interface, enum, or record expected
	}
	^
Main.java:15: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	            ^
Main.java:15: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	                   ^
Main.java:16: error: class, interface, enum, or record expected
		for (j = 2; j <= (int)(sqrt(a[i])); ++j) {
		            ^
Main.java:16: error: class, interface, enum, or record expected
		for (j = 2; j <= (int)(sqrt(a[i])); ++j) {
		                                    ^
Main.java:19: error: class, interface, enum, or record expected
				break;
				^
Main.java:20: error: class, interface, enum, or record expected
			}
			^
Main.java:24: error: class, interface, enum, or record expected
		}
		^
Main.java:26: error: class, interface, enum, or record expected
	}
	^
Main.java:29: error: class, interface, enum, or record expected
}
^
19 errors
Language: Java

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

#define X 10000

int main() {
	int n = 0, a[10000], i, j, count = 0, flag = 0;
	scanf("%d", &n);
	for (i = 0; i < n; i++) {
		scanf("%d", &a[i]);
	}

	for (i = 0; i < n; i++) {
		for (j = 2; j <= (int)sqrt(a[i]); ++j) {
			if (a[i] % j == 0) {
				flag = 1;
				break;
			}
		}
		if (flag == 0) {
			count++;
		}
		flag = 0;
	}

	printf("%d\n", count);

	return 0;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:2: error: illegal character: '#'
#include <math.h>
^
Main.java:4: error: illegal character: '#'
#define X 10000
^
Main.java:8: error: class, interface, enum, or record expected
	scanf("%d", &n);
	^
Main.java:9: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	^
Main.java:9: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	            ^
Main.java:9: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	                   ^
Main.java:11: error: class, interface, enum, or record expected
	}
	^
Main.java:13: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	            ^
Main.java:13: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	                   ^
Main.java:14: error: class, interface, enum, or record expected
		for (j = 2; j <= (int)sqrt(a[i]); ++j) {
		            ^
Main.java:14: error: class, interface, enum, or record expected
		for (j = 2; j <= (int)sqrt(a[i]); ++j) {
		                                  ^
Main.java:17: error: class, interface, enum, or record expected
				break;
				^
Main.java:18: error: class, interface, enum, or record expected
			}
			^
Main.java:22: error: class, interface, enum, or record expected
		}
		^
Main.java:24: error: class, interface, enum, or record expected
	}
	^
Main.java:28: error: class, interface, enum, or record expected
	return 0;
	^
Main.java:29: error: class, interface, enum, or record expected
}
^
19 errors
Language: Java

#include <stdio.h>

#define X 10000

int main() {
	int n = 0, a[10000], i, j, count = 0, flag = 0;
	scanf("%d", &n);
	for (i = 0; i < n; i++) {
		scanf("%d", &a[i]);
	}

	for (i = 0; i < n; i++) {
		for (j = 2; j <= (int)sqrt(a[i]); ++j) {
			if (a[i] % j == 0) {
				flag = 1;
				break;
			}
		}
		if (flag == 0) {
			count++;
		}
		flag = 0;
	}

	printf("%d\n", count);

	return 0;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:3: error: illegal character: '#'
#define X 10000
^
Main.java:7: error: class, interface, enum, or record expected
	scanf("%d", &n);
	^
Main.java:8: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	^
Main.java:8: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	            ^
Main.java:8: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	                   ^
Main.java:10: error: class, interface, enum, or record expected
	}
	^
Main.java:12: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	            ^
Main.java:12: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	                   ^
Main.java:13: error: class, interface, enum, or record expected
		for (j = 2; j <= (int)sqrt(a[i]); ++j) {
		            ^
Main.java:13: error: class, interface, enum, or record expected
		for (j = 2; j <= (int)sqrt(a[i]); ++j) {
		                                  ^
Main.java:16: error: class, interface, enum, or record expected
				break;
				^
Main.java:17: error: class, interface, enum, or record expected
			}
			^
Main.java:21: error: class, interface, enum, or record expected
		}
		^
Main.java:23: error: class, interface, enum, or record expected
	}
	^
Main.java:27: error: class, interface, enum, or record expected
	return 0;
	^
Main.java:28: error: class, interface, enum, or record expected
}
^
18 errors
Language: Java

#include <stdio.h>

#define X 10000

int main() {
	int n = 0, a[10000], i, j, count = 0, flag = 0;
	scanf("%d", &n);
	for (i = 0; i < n; i++) {
		scanf("%d", &a[i]);
	}

	for (i = 0; i < n; i++) {
		for (j = 2; j <a[i]; ++j) {
			if (a[i] % j == 0) {
				flag = 1;
				break;
			}
		}
		if (flag == 0) {
			count++;
		}
		flag = 0;
	}

	printf("%d\n", count);

	return 0;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:3: error: illegal character: '#'
#define X 10000
^
Main.java:7: error: class, interface, enum, or record expected
	scanf("%d", &n);
	^
Main.java:8: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	^
Main.java:8: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	            ^
Main.java:8: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	                   ^
Main.java:10: error: class, interface, enum, or record expected
	}
	^
Main.java:12: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	            ^
Main.java:12: error: class, interface, enum, or record expected
	for (i = 0; i < n; i++) {
	                   ^
Main.java:13: error: class, interface, enum, or record expected
		for (j = 2; j <a[i]; ++j) {
		            ^
Main.java:13: error: class, interface, enum, or record expected
		for (j = 2; j <a[i]; ++j) {
		                     ^
Main.java:16: error: class, interface, enum, or record expected
				break;
				^
Main.java:17: error: class, interface, enum, or record expected
			}
			^
Main.java:21: error: class, interface, enum, or record expected
		}
		^
Main.java:23: error: class, interface, enum, or record expected
	}
	^
Main.java:27: error: class, interface, enum, or record expected
	return 0;
	^
Main.java:28: error: class, interface, enum, or record expected
}
^
18 errors
Language: Java

#include <stdio.h>
#include <math.h>
#define N 10000
int main(){
  int i,j,n,count;
  int kazu;

  scanf("%d",&n);
  count = n;

  for(i=0;i<n;i++){
    scanf("%d",&kazu);
    if(kazu == 2){
      continue;
    }
    if(kazu%2==0){
      count--;
      continue;
    }
    for(j=3;j<=sqrt(kazu);j+=2){
      if(kazu%j==0){
	break;
      }
      count--;
    }
  }

  printf("%d\n",count);

  return 0;
}



Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:2: error: illegal character: '#'
#include <math.h>
^
Main.java:3: error: illegal character: '#'
#define N 10000
^
Main.java:6: error: unnamed classes are a preview feature and are disabled by default.
  int kazu;
  ^
  (use --enable-preview to enable unnamed classes)
Main.java:8: error: class, interface, enum, or record expected
  scanf("%d",&n);
  ^
Main.java:9: error: class, interface, enum, or record expected
  count = n;
  ^
Main.java:11: error: class, interface, enum, or record expected
  for(i=0;i<n;i++){
  ^
Main.java:11: error: class, interface, enum, or record expected
  for(i=0;i<n;i++){
          ^
Main.java:11: error: class, interface, enum, or record expected
  for(i=0;i<n;i++){
              ^
Main.java:13: error: class, interface, enum, or record expected
    if(kazu == 2){
    ^
Main.java:15: error: class, interface, enum, or record expected
    }
    ^
Main.java:18: error: class, interface, enum, or record expected
      continue;
      ^
Main.java:19: error: class, interface, enum, or record expected
    }
    ^
Main.java:20: error: class, interface, enum, or record expected
    for(j=3;j<=sqrt(kazu);j+=2){
            ^
Main.java:20: error: class, interface, enum, or record expected
    for(j=3;j<=sqrt(kazu);j+=2){
                          ^
Main.java:23: error: class, interface, enum, or record expected
      }
      ^
Main.java:25: error: class, interface, enum, or record expected
    }
    ^
Main.java:30: error: class, interface, enum, or record expected
  return 0;
  ^
Main.java:31: error: class, interface, enum, or record expected
}
^
20 errors
Language: Java

import java.util.*;

public class C{
    boolean p = true;
    public static void main(String[] args){
	int count = 0;
	boolean p = false;
	Scanner a = new Scanner(System.in);
	int n = a.nextInt();
	int m[] = new int[n];
	for(int i = 0; i < n; i++){
	    m[i] = a.nextInt();
	}
	for(int i=0; i<n; i++){
	    if(m[i]==2 || m[i]==3 || m[i]==5){
		p = true;
	    }
	    else if(m[i]>2 && m[i]%2==0){
		p = false;
	    }
	    else if(m[i]>3 && m[i]%2!=0){
		for(int j=3; j <= m[i]/2; j+=2){
		    if(m[i]%j == 0){
			p = false;
			break;
		    }
		    p = true;
		}
	    }
	    if(p){
		count++;
	    }
	}
	System.out.println(count);
    }
}



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

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

public class Main {
	
	public static void  main (String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String wdn;
		wdn = br.readLine();
		int N = Integer.parseInt(wdn);
		int ans = N;
		int num = 0;

		for (int i=0; i< N; i++) {
			String wdnum = br.readLine();
			num = Integer.parseInt(wdnum);
			if (num == 2){
				continue;
			}
			else if (num % 2 ==0){
				ans--;
				continue;
			}
			for (int j=3; j<num/2; j+=2){
				if (num%j==0) {
					ans--;
					break;
				}
			}
		}
		System.out.println(ans);
	}
}


Compiler output:
Main.java:9: error: unreported exception IOException; must be caught or declared to be thrown
		wdn = br.readLine();
		                 ^
Main.java:15: error: unreported exception IOException; must be caught or declared to be thrown
			String wdnum = br.readLine();
			                          ^
2 errors
Language: Java

import java.util.Scanner;
public class PrimeNumbers {
	public static void main(String[] args){
		Scanner scan=new Scanner(System.in);
		boolean[] prime=new boolean[(int)Math.pow(10,8)+1];
		prime[0]=prime[1]=true;
		for(int i=2;i<(int)Math.sqrt(Math.pow(10,8));){
			for(int j=2;i*j<=(int)Math.pow(10,8);j++){
				prime[i*j]=true;
			}
			for(int j=i+1;j<=(int)Math.pow(10,8);j++){
				if(!prime[j]){
					i=j;
					break;
				}
			}
		}
		int N=scan.nextInt();
		int count=0;
		for(int i=0;i<N;i++){
			if(!prime[scan.nextInt()]) count++;
		}
		System.out.println(count);
		scan.close();
	}
}

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

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

 
int main(int argc, char** argv)
{
    int N, i, aaa, bbb;
    result = 0;
 
    scanf("%d", &N);
 
    for (i = 0; i < N; i++) {
        scanf("%d", &aaa);
 
        if (isPrimeNumber(aaa)) {
            bbb++;
        }
    }
 
    printf("%d\n", bbb);
    return 0;
}


int isPrimeNumber(int v)
{
    int i, count;
 
    count = 0;
    if (v == 0 || v == 1) {
        return 0;
    }
    else if (v == 2 || v == 3) {
        return 1;
    }
    else if (v % 2 == 0) {
        return 0;
    }
    else {
        for (i = 1; i <= sqrt((double)v); i += 2) {
            if (v % i == 0) {
                count++;
 
                if (count > 1) {
                    return 0;
                }
            }
        }
    }
    return 1;
}


Compiler output:
main.c: In function 'main':
main.c:9:5: error: 'result' undeclared (first use in this function)
    9 |     result = 0;
      |     ^~~~~~
main.c:9:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:13: error: implicit declaration of function 'isPrimeNumber' [-Wimplicit-function-declaration]
   16 |         if (isPrimeNumber(aaa)) {
      |             ^~~~~~~~~~~~~
Language: C

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

 
int main(int argc, char** argv)
{
    int N, i, aaa, bbb;
    result = 0;
 
    scanf("%d", &N);
 
    for (i = 0; i < N; i++) {
        scanf("%d", &aaa);
 
        if (isPrimeNumber(aaa)) {
            bbb++;
        }
    }
 
    printf("%d\n", bbb);
    return 0;
}

int isPrimeNumber(int v)
{
    int i, count;
 
    count = 0;
    if (v == 0 || v == 1) {
        return 0;
    }
    else if (v == 2 || v == 3) {
        return 1;
    }
    else if (v % 2 == 0) {
        return 0;
    }
    else {
        for (i = 1; i <= sqrt((double)v); i += 2) {
            if (v % i == 0) {
                count++;
 
                if (count > 1) {
                    return 0;
                }
            }
        }
    }
    return 1;
}


Compiler output:
main.c: In function 'main':
main.c:9:5: error: 'result' undeclared (first use in this function)
    9 |     result = 0;
      |     ^~~~~~
main.c:9:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:13: error: implicit declaration of function 'isPrimeNumber' [-Wimplicit-function-declaration]
   16 |         if (isPrimeNumber(aaa)) {
      |             ^~~~~~~~~~~~~