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

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

class Main {

	public static void main(String[] args) throws IOException {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] strs = str.split(" ");
		int a = Integer.parseInt(strs[0]);
		int b = Integer.parseInt(strs[1]);
		double C = 2 * Math.PI * (Integer.parseInt(strs[2])) / 360;

		double S, L, h;
		S = a * b * Math.sin(C) / 2;
		L = a + b + Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(C));
		h = b * Math.cos(C);

		System.out.println(S);
		System.out.println(L);
		System.out.println(h);
	}
}


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:7:15: error: expected ':' before 'static'
    7 |         public static void main(String[] args) throws IOException {
      |               ^~~~~~~
      |               :
a.cc:7:33: error: 'String' has not been declared
    7 |         public static void main(String[] args) throws IOException {
      |                                 ^~~~~~
a.cc:7:42: error: expected ',' or '...' before 'args'
    7 |         public static void main(String[] args) throws IOException {
      |                                          ^~~~
a.cc:7:46: error: expected ';' at end of member declaration
    7 |         public static void main(String[] args) throws IOException {
      |                                              ^
      |                                               ;
a.cc:7:48: error: 'throws' does not name a type
    7 |         public static void main(String[] args) throws IOException {
      |                                                ^~~~~~
a.cc:25:2: error: expected ';' after class definition
   25 | }
      |  ^
      |  ;
Language: C++

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

public class Main {

	public static void main(String[] args)throws IOException {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] strs = str.split(" ");
		int a = Integer.parseInt(strs[0]);
		int b = Integer.parseInt(strs[1]);
		double C = 2 * Math.PI * (Integer.parseInt(strs[2])) / 360;

		double S, L, h;
		S = a * b * Math.sin(C) / 2;
		L = a + b + Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(C));
		h = b * Math.cos(C);

		System.out.println(S);
		System.out.println(L);
		System.out.println(h);
	}
}


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:5:1: error: expected unqualified-id before 'public'
    5 | public class Main {
      | ^~~~~~
Language: C++

#include <iostream>
#include <cmath>
double PI= 3.1415926535897932384626433832;
using namespace std;
int main()
{
    double a,b,C;
    cin>>a>>b>>C;
    cout<<setiosflags(ios::fixed)<<setprecision(10)<<0.5*a*b*sin(C*PI/180)<<endl<<a+b+sqrt(a*a+b*b-2*a*b*cos(C*PI/180))<<endl<<b*sin(C*PI/180)<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: 'setiosflags' was not declared in this scope
    9 |     cout<<setiosflags(ios::fixed)<<setprecision(10)<<0.5*a*b*sin(C*PI/180)<<endl<<a+b+sqrt(a*a+b*b-2*a*b*cos(C*PI/180))<<endl<<b*sin(C*PI/180)<<endl;
      |           ^~~~~~~~~~~
a.cc:3:1: note: 'std::setiosflags' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    2 | #include <cmath>
  +++ |+#include <iomanip>
    3 | double PI= 3.1415926535897932384626433832;
a.cc:9:36: error: 'setprecision' was not declared in this scope
    9 |     cout<<setiosflags(ios::fixed)<<setprecision(10)<<0.5*a*b*sin(C*PI/180)<<endl<<a+b+sqrt(a*a+b*b-2*a*b*cos(C*PI/180))<<endl<<b*sin(C*PI/180)<<endl;
      |                                    ^~~~~~~~~~~~
a.cc:9:36: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
Language: C++

#include <stdio.h>
#include <math.h>
double PI;

double deg2rad(double deg){
    return (deg/360)*2*PI;
}

int main()
{
    int a,b,c;
    double cr;

    PI=acos(-1);

    scanf("%d %d %d",&a,&b,&c);
    cr=deg2rad(c);
    
    printf("%f\n",(a*b*sin(cr))/2);
    printf("%f\n",a+b+sqrt(a*a+b*b-2*a*b*cos(cr)));
    printf("%f\n",b*sin(cr))
        
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:29: error: expected ';' before 'return'
   21 |     printf("%f\n",b*sin(cr))
      |                             ^
      |                             ;
......
   24 |     return 0;
      |     ~~~~~~
Language: C++

    #include <iostream>
    #include <string>
    #include <math.h>
    #include <stdio.h>
     
    using namespace std;
     
    int main() {
    int a,b,c;
cin >> a>>b>>c
    double d,e,f,g;
    d=c*3.141592653/180;
    e=0.5*a*b*sin(d);
    f=a+b+sqrt(a*a+b*b-2*a*b*cos(d));
    g=b*sin(d);
    printf("%.7f\n",e);
    printf("%.7f\n",f);
    printf("%.7f\n",g);
    return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: expected ';' before 'double'
   10 | cin >> a>>b>>c
      |               ^
      |               ;
   11 |     double d,e,f,g;
      |     ~~~~~~     
a.cc:12:5: error: 'd' was not declared in this scope
   12 |     d=c*3.141592653/180;
      |     ^
a.cc:13:5: error: 'e' was not declared in this scope
   13 |     e=0.5*a*b*sin(d);
      |     ^
a.cc:14:5: error: 'f' was not declared in this scope
   14 |     f=a+b+sqrt(a*a+b*b-2*a*b*cos(d));
      |     ^
a.cc:15:5: error: 'g' was not declared in this scope
   15 |     g=b*sin(d);
      |     ^
Language: C++

#include <iostream>
#include <cmath>
#include <stdio.h>
using namespace std;
int main(){

double a,b,C,S,L,h;
cin>>a>>b>>C;

S=a*b*sin(PI*C/180)/2;
L=a+b+sqrt(a*a+b*b-2*a*b*cos(PI*C/180));
h=S*(double)2/a;

printf("%.8f%.8f%.8f",S,L,h);

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'PI' was not declared in this scope
   10 | S=a*b*sin(PI*C/180)/2;
      |           ^~
Language: C++

#include <iostream>
#include <cmath>
#include <stdio.h>
using namespace std;
int main(){

double a,b,C,S,L,h;
cin>>a>>b>>C;

S=a*b*sin(Math.PI*C/180)/2;
L=a+b+sqrt(a*a+b*b-2*a*b*cos(Math.PI*C/180));
h=S*(double)2/a;

printf("%.8f%.8f%.8f",S,L,h);

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'Math' was not declared in this scope
   10 | S=a*b*sin(Math.PI*C/180)/2;
      |           ^~~~
Language: C++

#include <iostream>
#include <cmath>
#include <stdio.h>
using namespace std;
int main(){

double a,b,C,S,L,h;
cin>>a>>b>>C;

S=a*b*sin((C/180)*PI)/2;
L=a+b+sqrt(a*a+b*b-2*a*b*cos((C/180)*PI));
h=S*(double)2/a;

printf("%.8f%.8f%.8f",S,L,h);

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: 'PI' was not declared in this scope
   10 | S=a*b*sin((C/180)*PI)/2;
      |                   ^~
Language: Java

import java.text.DecimalFormat;
import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		DecimalFormat df1 = new DecimalFormat("0.########");
		DecimalFormat df2 = new DecimalFormat("0.00000000");
		
		
		while(true){
			double n = sc.nextDouble();//人数の入力
			if(n == 0){//人数が0ならば終了する
				break;
			}
			double s[] = new double[n];
			double i, m;
			double sum = 0;
			double x = 0;
			double y = 0;
			for(i = 0; i < n; i++){
				s[i] = sc.nextInt();//点数を入力する
				sum = sum + s[i];
			}
			m = sum / n;//点数の合計と人数を割って平均点を出す
			;
			for(i = 0; i < n; i++){
				x = s[i] * s[i] - 2 * s[i] * m + m * m;
			}
			double a = Math.sqrt(x / n);
			if(a > 0){
				System.out.println(df1.format(a));
			}
			else if(a == 0){
				System.out.println(df2.format(a));
			}
		}
	}
}


Compiler output:
Main.java:15: error: incompatible types: possible lossy conversion from double to int
			double s[] = new double[n];
			                        ^
Main.java:21: error: incompatible types: possible lossy conversion from double to int
				s[i] = sc.nextInt();//???????
				  ^
Main.java:22: error: incompatible types: possible lossy conversion from double to int
				sum = sum + s[i];
				              ^
Main.java:27: error: incompatible types: possible lossy conversion from double to int
				x = s[i] * s[i] - 2 * s[i] * m + m * m;
				      ^
Main.java:27: error: incompatible types: possible lossy conversion from double to int
				x = s[i] * s[i] - 2 * s[i] * m + m * m;
				             ^
Main.java:27: error: incompatible types: possible lossy conversion from double to int
				x = s[i] * s[i] - 2 * s[i] * m + m * m;
				                        ^
6 errors
Language: Java

public class Main{
    static Scanner kbd = new Scanner(System.in);
    public static void main(String[] args){
      
    while(kbd.hasNext()){
        int n = kbd.nextInt();
        if(n!=0){
        int[] s = new int[n];
        double ave = 0;
        int i;
  
        for(i=0; i<n; i++){
            s[i] = kbd.nextInt();
            ave += s[i];
        }
        ave = ave/n;
  
        double a=0;
        for(i=0; i<n; i++){
            a += (s[i]-ave)*(s[i]-ave);
        }
        a = a/n;
        a = Math.sqrt(a);
  
        System.out.println(a);
        }
    }
    }
}


Compiler output:
Main.java:2: error: cannot find symbol
    static Scanner kbd = new Scanner(System.in);
           ^
  symbol:   class Scanner
  location: class Main
Main.java:2: error: cannot find symbol
    static Scanner kbd = new Scanner(System.in);
                             ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

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

public class Main3 {
	public static void main(String[] args) throws IOException {
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();
		
		while(true){
		  int n = Integer.parseInt(input.readLine());
		  if(n == 0) break;
		  String line = input.readLine();
		  String[] str = line.split(" ");
		  double[] data = new double[n];
		  
		  double avg = 0 , sum = 0 , scat = 0 , dev = 0;
		  for(int i = 0 ; i < n ; i ++){
			  data[i] = Double.parseDouble(str[i]);
			  sum += data[i];
			  avg = sum / (double)n ;
		  }
		  for(int j = 0 ; j < n ; j++){
			  scat += Math.pow(avg - data[j], 2); 
		  }
		  
		  dev = Math.sqrt(scat/(double)n);
		  sb.append(dev + "\n");
		  
		}
		System.out.print(sb);
		
	}

}

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

**

n 人の学生を含むクラスでプログラミングの試験を行った。それぞれの得点をs1, s2 ... snとしたときの、標準偏差を求めるプログラムを作成せよ。

得点の平均値をｍとすれば、分散α2は以下の式で得られる：

α2 = (?ni=1(si - m)2)/n

分散の正の平方根が標準偏差αとなる。

 */

//スキャナつかうため

import java.util.Scanner;

public class Main {
	// プログラムのエントリポイント
	public static void main(String[] args) {
		// 入力ストリームの生成

		Scanner sc = new Scanner(System.in);
		//生徒の数に０がはいるまで処理を繰り返す
		while(true){

		//生徒の数を受け取る
		int intSeito = sc.nextInt();
		//生徒が０の場合処理を終了する
		if(intSeito == 0){
			break;
			}
		//点数と平均と結果を入れる変数を作る。
		int  [] Ten =new int [intSeito];
		double dbHeikin = 0;
		double dbKekka = 0;
		double dbGoukei = 0;
		//生徒の数だけ処理を繰り返す
		for(int i = 0; i < intSeito ; i ++){
			//受けとった数字をdb平均に足していく
			Ten [i] = sc.nextInt();
			dbGoukei += Ten[i];
		}
		//点の合計に生徒数を引いて平均点を出す。
		dbHeikin = dbGoukei/intSeito;
		//生徒の数だけ処理を繰り返す
		for(int j = 0; j < intSeito ; j++){
			//dbKekkaに点数-平均点の2乗を足していく
			dbKekka += Math.pow(Ten[j]-dbHeikin,2);
		}
		//dbKekkaから生徒の数を割り
		//平方根の中にいれる
        dbKekka= Math.sqrt(dbKekka/(double)intSeito);

        //結果表示
        System.out.println(dbKekka);


		}
	}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
**
^
Main.java:3: error: illegal character: '\u3002'
n ??????????????????????????????????s1, s2 ... sn??????????????????????????
                           ^
Main.java:3: error: illegal character: '\u3001'
n ??????????????????????????????????s1, s2 ... sn??????????????????????????
                                                       ^
Main.java:3: error: illegal character: '\u3002'
n ??????????????????????????????????s1, s2 ... sn??????????????????????????
                                                                          ^
Main.java:5: error: illegal character: '\u3001'
????????????????2???????????
            ^
Main.java:5: error: illegal character: '\uff1a'
????????????????2???????????
                           ^
Main.java:9: error: illegal character: '\u3002'
??????????????????
                 ^
7 errors
Language: Java

import java.util.Scanner;
 
class Main {
        public static void main(String[] args) {
               Scanner sc = new Scanner(System.in);
               while (true) {
                      int x = sc.nextInt();
                      if (x == 0){
                              break;
                      }
                      double sum = 0;
                      int[] y = new int[a];
                      for (int i = 0; i < x; i++) {
                              y[i] = sc.nextInt();
                              sum += y[i];
                      }
                      double c = sum / x;
                      double d = 0;
                      for (int i = 0; i < x; i++) {
                              d += Math.pow(y[i] - c, 2) / x;
                      }
                      System.out.println(Math.sqrt(d));
               }
 
        }
}

Compiler output:
Main.java:12: error: cannot find symbol
                      int[] y = new int[a];
                                        ^
  symbol:   variable a
  location: class Main
1 error
Language: Java

import java.util.*;
import java.text.*;

class Main {
    public static void main(String[]args)throws Exception {
        Scanner sc = new Scanner(System.in);
        for(;;) {
            int n = sc.nextInt();
            if(n == 0) break;
            int [] xs = new int[n];
            long s = 0;
            for(int i = 0; i < n; i++) {
                xs[i] = sc.nextInt();
                s += xs[i];
            }
            double m = s / (double) n;
            double d = 0;
            for(int i = 0; i < n; i++) {
                d += (xs[i] - m) * (xs[i] - m);
            }
            d /= n;
            double s = Math.sqrt(d);
            NumberFormat format = NumberFormat.getInstance();
            format.setMaximumFractionDigits(5);
            format.setMinimumFractionDigits(5);
            format.setGroupingUsed(false);
            System.out.println("" + format.format(s));
        }
    }
}

Compiler output:
Main.java:22: error: variable s is already defined in method main(String[])
            double s = Math.sqrt(d);
                   ^
1 error
Language: Java

import java.util.Scanner;

public class Main {
	public static Scanner sc;
	public static void main(String[] args){
		sc=new Scanner(System.in);
		while(true){
			int n=sc.nextInt(),hou,sum;
			if(n==0)break;
			for(int i=0;i<n;i++){
				int s=sc.nextInt();
				hou+=s*s;
				sum+=s;
			}
			Double kin=sum/n;
			Double a=Math.sqrt((hou/n)-kin*kin);
			System.out.println(a);
		}
	}

}

Compiler output:
Main.java:15: error: incompatible types: int cannot be converted to Double
			Double kin=sum/n;
			              ^
1 error
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    while(true){
    int n = sc.nextInt();
    if(n==0){
      break;
    }
    for(int i=0;i<scores.length;i++){
      scores[i]=sc.nextInt();
    }
    double average=0;,variance=0;
    for(i=0;i<n;i++){
      average+=(double)score[i]/n;
      variance+=(double)(scores[i]-average)*(scores[i]-average)/n;
    }
    System.out.println(Math.sqrt(variance));
    }
  }
}

Compiler output:
Main.java:14: error: illegal start of expression
    double average=0;,variance=0;
                     ^
1 error
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    while(true){
    int n = sc.nextInt();
    if(n==0){
      break;
    }
    for(int i=0;i<scores.length;i++){
      scores[i]=sc.nextInt();
    }
    double average=0,variance=0;
    for(i=0;i<n;i++){
      average+=(double)score[i]/n;
      variance+=(double)(scores[i]-average)*(scores[i]-average)/n;
    }
    System.out.println(Math.sqrt(variance));
    }
  }
}

Compiler output:
Main.java:11: error: cannot find symbol
    for(int i=0;i<scores.length;i++){
                  ^
  symbol:   variable scores
  location: class Main
Main.java:12: error: cannot find symbol
      scores[i]=sc.nextInt();
      ^
  symbol:   variable scores
  location: class Main
Main.java:15: error: cannot find symbol
    for(i=0;i<n;i++){
        ^
  symbol:   variable i
  location: class Main
Main.java:15: error: cannot find symbol
    for(i=0;i<n;i++){
            ^
  symbol:   variable i
  location: class Main
Main.java:15: error: cannot find symbol
    for(i=0;i<n;i++){
                ^
  symbol:   variable i
  location: class Main
Main.java:16: error: cannot find symbol
      average+=(double)score[i]/n;
                       ^
  symbol:   variable score
  location: class Main
Main.java:16: error: cannot find symbol
      average+=(double)score[i]/n;
                             ^
  symbol:   variable i
  location: class Main
Main.java:17: error: cannot find symbol
      variance+=(double)(scores[i]-average)*(scores[i]-average)/n;
                         ^
  symbol:   variable scores
  location: class Main
Main.java:17: error: cannot find symbol
      variance+=(double)(scores[i]-average)*(scores[i]-average)/n;
                                ^
  symbol:   variable i
  location: class Main
Main.java:17: error: cannot find symbol
      variance+=(double)(scores[i]-average)*(scores[i]-average)/n;
                                             ^
  symbol:   variable scores
  location: class Main
Main.java:17: error: cannot find symbol
      variance+=(double)(scores[i]-average)*(scores[i]-average)/n;
                                                    ^
  symbol:   variable i
  location: class Main
11 errors
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    while(true){
    int n = sc.nextInt();
    if(n==0){
      break;
    }
    int[] scores = new int[n];
    for(int i=0;i<scores.length;i++){
      scores[i]=sc.nextInt();
    }
    double average=0,variance=0;
    for(i=0;i<n;i++){
      average+=(double)score[i]/n;
      variance+=(double)(scores[i]-average)*(scores[i]-average)/n;
    }
    System.out.println(Math.sqrt(variance));
    }
  }
}

Compiler output:
Main.java:16: error: cannot find symbol
    for(i=0;i<n;i++){
        ^
  symbol:   variable i
  location: class Main
Main.java:16: error: cannot find symbol
    for(i=0;i<n;i++){
            ^
  symbol:   variable i
  location: class Main
Main.java:16: error: cannot find symbol
    for(i=0;i<n;i++){
                ^
  symbol:   variable i
  location: class Main
Main.java:17: error: cannot find symbol
      average+=(double)score[i]/n;
                       ^
  symbol:   variable score
  location: class Main
Main.java:17: error: cannot find symbol
      average+=(double)score[i]/n;
                             ^
  symbol:   variable i
  location: class Main
Main.java:18: error: cannot find symbol
      variance+=(double)(scores[i]-average)*(scores[i]-average)/n;
                                ^
  symbol:   variable i
  location: class Main
Main.java:18: error: cannot find symbol
      variance+=(double)(scores[i]-average)*(scores[i]-average)/n;
                                                    ^
  symbol:   variable i
  location: class Main
7 errors
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    while(true){
    int n = sc.nextInt();
    if(n==0){
      break;
    }
    int[] scores = new int[n];
    for(int i=0;i<scores.length;i++){
      scores[i]=sc.nextInt();
    }
    double average=0,variance=0;
    for(i=0;i<score.length;i++){
      average+=(double)score[i]/n;
      variance+=(double)(scores[i]-average)*(scores[i]-average)/n;
    }
    System.out.println(Math.sqrt(variance));
    }
  }
}

Compiler output:
Main.java:16: error: cannot find symbol
    for(i=0;i<score.length;i++){
        ^
  symbol:   variable i
  location: class Main
Main.java:16: error: cannot find symbol
    for(i=0;i<score.length;i++){
            ^
  symbol:   variable i
  location: class Main
Main.java:16: error: cannot find symbol
    for(i=0;i<score.length;i++){
              ^
  symbol:   variable score
  location: class Main
Main.java:16: error: cannot find symbol
    for(i=0;i<score.length;i++){
                           ^
  symbol:   variable i
  location: class Main
Main.java:17: error: cannot find symbol
      average+=(double)score[i]/n;
                       ^
  symbol:   variable score
  location: class Main
Main.java:17: error: cannot find symbol
      average+=(double)score[i]/n;
                             ^
  symbol:   variable i
  location: class Main
Main.java:18: error: cannot find symbol
      variance+=(double)(scores[i]-average)*(scores[i]-average)/n;
                                ^
  symbol:   variable i
  location: class Main
Main.java:18: error: cannot find symbol
      variance+=(double)(scores[i]-average)*(scores[i]-average)/n;
                                                    ^
  symbol:   variable i
  location: class Main
8 errors
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    while(true){
    int n = sc.nextInt();
    if(n==0){
      break;
    }
    int[] scores = new int[n];
    for(int i=0;i<scores.length;i++){
      scores[i]=sc.nextInt();
    }
    double average=0,variance=0;
    for(i=0;i<score.length;i++){
      average+=(double)score[i]/scores.length;
      variance+=(double)(scores[i]-average)*(scores[i]-average)/scores.length;
    }
    System.out.println(Math.sqrt(variance));
    }
  }
}

Compiler output:
Main.java:16: error: cannot find symbol
    for(i=0;i<score.length;i++){
        ^
  symbol:   variable i
  location: class Main
Main.java:16: error: cannot find symbol
    for(i=0;i<score.length;i++){
            ^
  symbol:   variable i
  location: class Main
Main.java:16: error: cannot find symbol
    for(i=0;i<score.length;i++){
              ^
  symbol:   variable score
  location: class Main
Main.java:16: error: cannot find symbol
    for(i=0;i<score.length;i++){
                           ^
  symbol:   variable i
  location: class Main
Main.java:17: error: cannot find symbol
      average+=(double)score[i]/scores.length;
                       ^
  symbol:   variable score
  location: class Main
Main.java:17: error: cannot find symbol
      average+=(double)score[i]/scores.length;
                             ^
  symbol:   variable i
  location: class Main
Main.java:18: error: cannot find symbol
      variance+=(double)(scores[i]-average)*(scores[i]-average)/scores.length;
                                ^
  symbol:   variable i
  location: class Main
Main.java:18: error: cannot find symbol
      variance+=(double)(scores[i]-average)*(scores[i]-average)/scores.length;
                                                    ^
  symbol:   variable i
  location: class Main
8 errors
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    while(true){
      int n = sc.nextInt();
      if(n==0){
        break;
      }
      int[] scores = new int[n];
      for(int i=0;i<scores.length;i++){
        scores[i]=sc.nextInt();
      }
      double average=0,variance=0;
      for(i=0;i<score.length;i++){
        average+=(double)scores[i]/scores.length;
        variance+=(double)(scores[i]-average)*(scores[i]-average)/scores.length;
      }
    System.out.println(Math.sqrt(variance));
    }
  }
}

Compiler output:
Main.java:16: error: cannot find symbol
      for(i=0;i<score.length;i++){
          ^
  symbol:   variable i
  location: class Main
Main.java:16: error: cannot find symbol
      for(i=0;i<score.length;i++){
              ^
  symbol:   variable i
  location: class Main
Main.java:16: error: cannot find symbol
      for(i=0;i<score.length;i++){
                ^
  symbol:   variable score
  location: class Main
Main.java:16: error: cannot find symbol
      for(i=0;i<score.length;i++){
                             ^
  symbol:   variable i
  location: class Main
Main.java:17: error: cannot find symbol
        average+=(double)scores[i]/scores.length;
                                ^
  symbol:   variable i
  location: class Main
Main.java:18: error: cannot find symbol
        variance+=(double)(scores[i]-average)*(scores[i]-average)/scores.length;
                                  ^
  symbol:   variable i
  location: class Main
Main.java:18: error: cannot find symbol
        variance+=(double)(scores[i]-average)*(scores[i]-average)/scores.length;
                                                      ^
  symbol:   variable i
  location: class Main
7 errors
Language: Java

import java.util.Scanner;

public class Main{
 public static void main(String[] args){
 Scanner sc = new Scanner(System.in);
 while(true){
 int n= sc.nextInt();
 if(n==0){break;}
 int[] scores=new int[n];
 double average=0, variance=0;
 for(int i=0; i<scores.length; i++){
 scores[i] =sc.nextInt();
 average+=scores[i];
 }
 for(i=0; i<scores.length;i++){
 variance+=(score[i]-average)*(score[i]-average);
 }
 variance/=n;
System.out.println(Math.sqrt(variance));
  }
 }
}

 

Compiler output:
Main.java:15: error: cannot find symbol
 for(i=0; i<scores.length;i++){
     ^
  symbol:   variable i
  location: class Main
Main.java:15: error: cannot find symbol
 for(i=0; i<scores.length;i++){
          ^
  symbol:   variable i
  location: class Main
Main.java:15: error: cannot find symbol
 for(i=0; i<scores.length;i++){
                          ^
  symbol:   variable i
  location: class Main
Main.java:16: error: cannot find symbol
 variance+=(score[i]-average)*(score[i]-average);
            ^
  symbol:   variable score
  location: class Main
Main.java:16: error: cannot find symbol
 variance+=(score[i]-average)*(score[i]-average);
                  ^
  symbol:   variable i
  location: class Main
Main.java:16: error: cannot find symbol
 variance+=(score[i]-average)*(score[i]-average);
                               ^
  symbol:   variable score
  location: class Main
Main.java:16: error: cannot find symbol
 variance+=(score[i]-average)*(score[i]-average);
                                     ^
  symbol:   variable i
  location: class Main
7 errors
Language: Java

import java.util.Scanner;

public class Main{
 public static void main(String[] args){
 Scanner sc = new Scanner(System.in);
 while(true){
 int n= sc.nextInt();
 if(n==0){break;}
 int[] scores=new int[n];
 double average=0, variance=0;
 for(int i=0; i<scores.length; i++){
 scores[i] =sc.nextInt();
 average += scores[i];
 }
 for(int i=0; i<scores.length;i++){
 variance += (score[i]-average)*(score[i]-average);
 }
 variance /= n;
System.out.println(Math.sqrt(variance));
  }
 }
}

Compiler output:
Main.java:16: error: cannot find symbol
 variance += (score[i]-average)*(score[i]-average);
              ^
  symbol:   variable score
  location: class Main
Main.java:16: error: cannot find symbol
 variance += (score[i]-average)*(score[i]-average);
                                 ^
  symbol:   variable score
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    while(true){
      int n = sc.nextInt();
      if(n==0){
        break;
      }
      int[] scores = new int[n];
      for(int i=0;i<scores.length;i++){
        scores[i]=sc.nextInt();
      }
      double average=0,variance=0;
      for(int i=0;i<score.length;i++){
        average+=(double)scores[i]/scores.length;
        variance+=(double)(scores[i]-average)*(scores[i]-average)/scores.length;
      }
    System.out.println(Math.sqrt(variance));
    }
  }
}

Compiler output:
Main.java:16: error: cannot find symbol
      for(int i=0;i<score.length;i++){
                    ^
  symbol:   variable score
  location: class Main
1 error
Language: Java

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while (true) {
			int n = sc.nextInt();
			int sum = 0;
			int sum2 = 0;
			if (n == 0) {
				break;
			}
			int[] scores = new int[n];
			for (int i = 0; i < scores.length; i++) {
				scores[i] = sc.nextInt();
				sum += scores[i];
			}
			double average = 0, variance = 0;
			average = (double) sum / scores.length;
			for (int j = 0; j < scores.length; j++) {
				sum2 += (scores[j] - average) * (scores[j] - average);
			}
			variance = (double) sum2 / scores.length;
			System.out.println(Math.sqrt(variance));
		}
	}
}

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

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

public class main{
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		while (true) {
			int n = scan.nextInt();
			if (n == 0) break;
			int[] s;
			s = new int[n];
			int sum = 0;
			for (int i = 0; i < n; i ++) {
				s[i] = scan.nextInt();
				sum += s[i];
			}
			double m = (double)sum / n;
			double shiguma = 0;
			for (int i = 0; i < n; i ++) shiguma += (s[i] - m) * (s[i] - m);
			double a = Math.sqrt(shiguma) / n;
			System.out.printf("%f\n", a);
		}
	}
}

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

import math
while True:
    n = int(raw_input())
    if n == 0:break
    s = map(int,raw_input().split())
    do = float(sum(s))/n
    ans = sum((map(lambda x: (x - do)**2,s)))/n
    print("%f" % math.sqrt(ans))
    

Compiler output:
Main.java:1: error: '.' expected
import math
           ^
1 error
Language: Java

import math
while True:
    n = int(raw_input())
    if n == 0:break
    s = map(int,raw_input().split())
    do = float(sum(s))/n
    ans = (sum(map(lambda x: (x - do)**2,s)))/n
    print("%f" % math.sqrt(ans))
    

Compiler output:
Main.java:1: error: '.' expected
import math
           ^
1 error
Language: Java

import math
while True:
    n = int(raw_input())
    if n == 0:break
    s = map(int, raw_input().split())
    m = float(sum(s)) / n
    ans = (sum(map(lambda x: (x-m)**2, s))) / n
    print("%f" % math.sqrt(ans))

Compiler output:
Main.java:1: error: '.' expected
import math
           ^
1 error
Language: Java

import math
while True:
    n = int(raw_input())
    if n == 0:break
    s = map(int, raw_input().split())
    m = float(sum(s)) / n
    ans = (sum(map(lambda x: (x-m)**2, s))) / n
    print("%f" % (math.sqrt(ans),))

Compiler output:
Main.java:1: error: '.' expected
import math
           ^
1 error
Language: Java

import math
while True:
    n = int(raw_input())
    if n == 0:break
    s = map(int, raw_input().split())
    m = float(sum(s)) / n
    a = (sum(map(lambda x: (x-m)**2, s))) / n
    ans = math.sqrt(a)
    print("%f" % (ans)

Compiler output:
Main.java:1: error: '.' expected
import math
           ^
1 error
Language: Java

import math
while True:
    n = int(raw_input())
    if n == 0:break
    s = map(int, raw_input().split())
    m = float(sum(s)) / n
    a = (sum(map(lambda x: (x-m)**2, s))) / n
    ans = math.sqrt(a)
    print("%f" % (ans,))

Compiler output:
Main.java:1: error: '.' expected
import math
           ^
1 error
Language: Java

import math
while True:
    n = int(raw_input())
    if n == 0:
       break
    s = map(int, raw_input().split())
    m = float(sum(s)) / n
    a = (sum(map(lambda x: (x-m)**2, s))) / n
    ans = math.sqrt(a)
    print("%f" % (ans,))

Compiler output:
Main.java:1: error: '.' expected
import math
           ^
1 error
Language: Java

import math
while True:
    n = int(raw_input())
    if n == 0:
       break
    s = map(int, raw_input().split())
    m = float(sum(s)) / n
    a = (sum(map(lambda x: (x-m)**2, s))) / n
    ans = math.sqrt(a)
    print("%f" % (ans))

Compiler output:
Main.java:1: error: '.' expected
import math
           ^
1 error
Language: Java

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

public class C10New {
	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader( new InputStreamReader( System.in ) );
		int i,n;
	    double m,a,sum1,sum2;
	    double[] x = new double[1000];

	    while(true){
	        sum1=0;
	        sum2=0;
	        a=0;
	        n = Integer.parseInt( br.readLine() );
	        if(n==0)break;

	    for(i=0;i<n;i++){
	    	try {
				x[i] = Double.parseDouble( br.readLine() );
			} catch (NumberFormatException e) {

				e.printStackTrace();
			}

	        sum1+=x[i];
	    }
	    m=sum1/n;
	    for(i=0;i<n;i++){
	            x[i]=(x[i]-m)*(x[i]-m);
	            sum2+=x[i];
	        }
	    a=Math.sqrt(sum2/n);
	    System.out.printf("%.8f\n",a);
	    }
	}

}

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

package package10New;

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

public class C10New {
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader( new InputStreamReader( System.in ) );

		int i;
		String n;
		double avg,a,sum1,sum2;
		//double[] x = new double[1000 + 1];

		while(true){
			sum1=0;
			sum2=0;
			a=0;
			n=br.readLine();
			if(n.equals("0"))break;
			int num=Integer.parseInt(n);

			String c=br.readLine();
			String b[]=c.split(" ");
			double d=0,sum=0;
			double e[]=new double[num];

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

				e[i] = Double.parseDouble( b[i] );

				sum1+=e[i];
			}
			avg=sum1/num;
			for(i=0;i<num;i++){

				sum2+= (Math.pow((e[i]-avg),2)/num);
			}
			a=Math.sqrt(sum2);
			System.out.printf(a + "\n" );
		}

	}
}

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


import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int ninzu = scanner.nextInt();

        int[] tensu = new int[ninzu];

        for (int i = 1; ninzu >= i; i++) {
            tensu[i] = scanner.nextInt();
        }

        long goukei = 0;

        for (int i = 1; ninzu >= i; i++) {
            goukei += tensu[i];
        }

        long heikin = goukei / ninzu;
        
        long bunsan=0;

        for (int i = 1; ninzu >= i; i++) {
            bunsan+=(tensu[i]-heikin)*(tensu[i]-heikin)/ninzu;
        }
        long bunsan2;
        bunsan2=Math.sqrt(bunsan);
        
        System.out.println(bunsan2);
    }
}

Compiler output:
Main.java:30: error: incompatible types: possible lossy conversion from double to long
        bunsan2=Math.sqrt(bunsan);
                         ^
1 error
Language: Java

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		for(;;){
			int n = scan.nextInt();
			if(n == 0){
				break;
			}
			int[] s = new int[n];
			int sum = 0;
			for(int i = 0; i < n: i++){
				s[i]  = scan.nextInt();
				sum += s[i];
			}
			double m = (double) sum / (double) n;
			for(int i = 0; i < n; i++){
				double a1 += Math.pow((double) s[i] - m, 2);
			}
			double al = Math.sqrt(a1 / (double) n);
		}
		System.out.printf("%f\n", al);
	}
}

Compiler output:
Main.java:14: error: ';' expected
			for(int i = 0; i < n: i++){
			                    ^
Main.java:14: error: ';' expected
			for(int i = 0; i < n: i++){
			                         ^
Main.java:20: error: ';' expected
				double a1 += Math.pow((double) s[i] - m, 2);
				         ^
3 errors
Language: Java

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		for(;;){
			int n = scan.nextInt();
			if(n == 0){
				break;
			}
			int[] s = new int[n];
			int sum = 0;
			for(int i = 0; i < n; i++){
				s[i]  = scan.nextInt();
				sum += s[i];
			}
			double m = (double) sum / (double) n;
			for(int i = 0; i < n; i++){
				double a1 += Math.pow((double) s[i] - m, 2);
			}
			double al = Math.sqrt(a1 / (double) n);
		}
		System.out.printf("%f\n", al);
	}
}

Compiler output:
Main.java:20: error: ';' expected
				double a1 += Math.pow((double) s[i] - m, 2);
				         ^
1 error
Language: Java

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		for(;;){
			int n = scan.nextInt();
			if(n == 0){
				break;
			}
			int[] s = new int[n];
			int sum = 0;
			for(int i = 0; i < n; i++){
				s[i]  = scan.nextInt();
				sum += s[i];
			}
			double m = (double) sum / (double) n;
			double a1 = 0;
			for(int i = 0; i < n; i++){
				a1 += Math.pow((double) s[i] - m, 2);
			}
			double al = Math.sqrt(a1 / (double) n);
		}
		System.out.printf("%f\n", al);
	}
}

Compiler output:
Main.java:25: error: cannot find symbol
		System.out.printf("%f\n", al);
		                          ^
  symbol:   variable al
  location: class Main
1 error
Language: Java

import java.io.*;

public class Main1{
	public static void main(String[] arsg) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		while(true){
		int count = Integer.parseInt(br.readLine());
		if(count == 0) break;
		
		String str[] = new String[count];
		str = br.readLine().split(" ");
		double[] s = new double[count];
		double sum = 0;
		for(int i = 0;i<count;i++){
			s[i] = Double.parseDouble(str[i]);
			sum += s[i];
		}
		double average = (double) sum/count;
		double SUM = 0;
		for(int i = 0;i<count;i++){
			SUM += Math.pow(s[i]-average,2);
		}
		double SUM1 = (double) SUM/count;
		System.out.println(Math.sqrt(SUM1));
		}
	}
}

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

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int[] data = new int[1000];
    int n = scanner.nextInt();
    int sum = 0;
    double p = 0;
    double ave;
    while(true){
    for (int i = 0; i < n; i++){
      int a = scanner.nextInt();
      data[i] = a;
      sum += a;
    }
    if(a == 0) break;
    ave = (double)sum / n;
    for(int i = 0; i < n; i++){
      p += (data[i] - ave)*(data[i] - ave);
    }
    p /= n;
    double s = Math.sqrt(p);
    System.out.printf("%.8f", s);
  }
  }
}

Compiler output:
Main.java:17: error: cannot find symbol
    if(a == 0) break;
       ^
  symbol:   variable a
  location: class Main
1 error
Language: Java

import java.io.*;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();
        int n;

        while(true){
            n = Integer.parseInt(br.readLine());
            if(n == 0){
                break;
            }

            String[] str = br.readLine().split(" ");
            double ave = 0;
            double alpha = 0;
            double[] line = new int[n];
            for(int i = 0; i < n; i++){
                line[i] = Double.parseDouble(str[i]);
                ave += line[i];
            }
            ave /= n;

            for(int i = 0; i < n; i++){
                alpha += Math.pow((line[i]-ave), 2);
            }
            alpha /= n;
            sb.append(Math.sqrt(alpha)).append("\n");
        }
        System.out.print(sb.toString());
    }
}

Compiler output:
Main.java:18: error: incompatible types: int[] cannot be converted to double[]
            double[] line = new int[n];
                            ^
1 error
Language: Java

import java.io.*;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();
        int n;

        while(true){
            n = Integer.parseInt(br.readLine());
            if(n == 0){
                break;
            }

            String[] str = br.readLine().split(" ");
            double ave = 0;
            double alpha = 0;
            int[] line = new int[n];
            for(int i = 0; i < n; i++){
                line[i] = int.parseint(str[i]);
                ave += line[i];
            }
            ave /= n;

            for(int i = 0; i < n; i++){
                alpha += Math.pow((line[i]-ave), 2);
            }
            alpha /= n;
            sb.append(Math.sqrt(alpha)).append("\n");
        }
        System.out.print(sb.toString());
    }
}

Compiler output:
Main.java:20: error: class expected
                line[i] = int.parseint(str[i]);
                              ^
Main.java:20: error: ';' expected
                line[i] = int.parseint(str[i]);
                                      ^
Main.java:20: error: not a statement
                line[i] = int.parseint(str[i]);
                                          ^
Main.java:20: error: ';' expected
                line[i] = int.parseint(str[i]);
                                             ^
4 errors
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 {
		while(true){
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

			int studentNum = 0;
			int scoreSum = 0;
			int scoreAverage = 0;
			int sigmaResult = 0;

			studentNum = Integer.parseInt(br.readLine());
			if(studentNum == 0){
				break;
			}

			String[] score = br.readLine().split(" ");

			for(int i = 0; i < studentNum;i++){
				score[i] = br.readLine();

				scoreSum =+ Integer.parseInt(score[i]);

				if(scoreSum != -1){

				}
			}

				scoreAverage = scoreSum / studentNum;
				}
			}
			for (int i = 0;i < studentNum - 1;i++){
				int sigmaSum =+ (Integer.parseInt(score[i]) - scoreAverage) * (Integer.parseInt(score[i]) - scoreAverage);
				if (j == studentNum - 1){
					sigmaResult = sigmaSum / studentNum;
				}
			}
			double alpha = Math.sqrt(sigmaResult);

			System.out.printf("% .8f\n", alpha);
		}

	}

Compiler output:
Main.java:36: error: illegal start of type
			for (int i = 0;i < studentNum - 1;i++){
			^
Main.java:36: error: > or ',' expected
			for (int i = 0;i < studentNum - 1;i++){
			                              ^
Main.java:36: error: <identifier> expected
			for (int i = 0;i < studentNum - 1;i++){
			                                   ^
Main.java:44: error: <identifier> expected
			System.out.printf("% .8f\n", alpha);
			                 ^
Main.java:44: error: illegal start of type
			System.out.printf("% .8f\n", alpha);
			                  ^
Main.java:47: error: class, interface, enum, or record expected
	}
	^
6 errors
Language: Java

import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        try(Scanner sc = new Scanner(System.in)){
            while(true){
                int n = sc.nextInt();
                if(n == 0) break;
                int[] scores = new int[n];
                int sum = 0;
                for(int i=0; i < scores.length; i++){
                    scores[i] = sc.nextInt();
                    sum += scores[i];
                }
                double average,variance;
                average = 0; variance = 0;
                average = (double)sum / scores.length;
                double number = 0;
                for(int j=0; j < scores.length; j++){
                    number += ((double)scores[j] - average) * ((double)scores[j] - average)
                }
                variance = number / scores.length;
                System.out.println(Math.sqrt(variance));
            }
        }
    }   
}


Compiler output:
Main.java:20: error: ';' expected
                    number += ((double)scores[j] - average) * ((double)scores[j] - average)
                                                                                           ^
1 error
Language: Java

import java.awt.print.Printable;
import java.util.Scanner;
import javax.sound.midi.SysexMessage;
import java.math;
  
public class Main{      
    public static void main(String[] args){

        Scanner sc = new Scanner(System.in);

        while(true){
        int n = sc.nextInt();
        if(n==0)
            break;
        int scores[]=new scores[n];
        int sum=0;
        double ave=0.0;
        double div=0.0;
        for(int i=0;i<n;i++){
            scores[i]=sc.nextInt();
            sum+=scores[i];
        }
        ave = (double)sum/(double)n;

        for(int i=0;i<n;i++){
            div += pow(scores[i]-ave,2)/n;
        }

        System.out.println(ave);
     }
        sc.close();
        
    }   
}


Compiler output:
Main.java:4: error: cannot find symbol
import java.math;
           ^
  symbol:   class math
  location: package java
Main.java:15: error: cannot find symbol
        int scores[]=new scores[n];
                         ^
  symbol:   class scores
  location: class Main
Main.java:26: error: cannot find symbol
            div += pow(scores[i]-ave,2)/n;
                   ^
  symbol:   method pow(double,int)
  location: class Main
3 errors
Language: Java

import java.awt.print.Printable;
import java.util.Scanner;
import javax.sound.midi.SysexMessage;
import java.lang.Math;
  
public class Main{      
    public static void main(String[] args){

        Scanner sc = new Scanner(System.in);

        while(true){
        int n = sc.nextInt();
        if(n==0)
            break;
        int scores[]=new int[n];
        int sum=0;
        double ave=0.0;
        double div=0.0;
        for(int i=0;i<n;i++){
            scores[i]=sc.nextInt();
            sum+=scores[i];
        }
        ave = (double)sum/(double)n;

        for(int i=0;i<n;i++){
            div += pow(scores[i]-ave,2)/n;
        }

        System.out.println(ave);
     }
        sc.close();
        
    }   
}


Compiler output:
Main.java:26: error: cannot find symbol
            div += pow(scores[i]-ave,2)/n;
                   ^
  symbol:   method pow(double,int)
  location: class Main
1 error