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

import java.util.Scanner;

public class Nnin{
	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 < scores.length;i++){
				average += scores[i];
			}
			average = average/n;
			for(int i = 0;i < scores.length;i++){
				variance += (scores[i]-average)*(scores[i]-average);
			}
			variance = variance/n;
			System.out.println(Math.sqrt(variance));
		}
	}
}

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

import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
        int i;
        double avr=0, ans=0;
        int[] num;
        
		while(true){

        int n = sc.nextInt();
        num=new int[n];
        
		if(n==0){
			System.exit(0);
		}

    	for(i=0;i<num.length;i++){
        num[i] = sc.nextInt();
        avr+=num[i];
    	}
    	avr = avr/num.length;
        for(i=0;i<num.length;i++){
            ans=ans+(num[i]-avr)*(num[i]-avr);
        }
        System.out.printf(Math.sqrt(ans/num.length));
		}
	}
}

Compiler output:
Main.java:28: error: no suitable method found for printf(double)
        System.out.printf(Math.sqrt(ans/num.length));
                  ^
    method PrintStream.printf(String,Object...) is not applicable
      (argument mismatch; double cannot be converted to String)
    method PrintStream.printf(Locale,String,Object...) is not applicable
      (argument mismatch; double cannot be converted to Locale)
1 error
Language: Java

import java.util.Scanner;
public Main {
public static voidmain(String[] args) {
// ?¨??????\???????????????????????????????????????
Scanner sc= newScanner(System.in);
while(true) {
intn = sc.nextInt();
if (n == 0) { break; }
int[] scores = new int[n];
for(inti= 0; i< scores.length; i++) {
scores[i] = sc.nextInt();
}
doubleaverage = 0, variance = 0;
// ??? ?????????average??¨????????£variance????¨????????????????
for(i=0;i<scores.length;i++){
    average+=scores[i];
	}
	avarage = avarage/scores.length;
    for(i=0;i<scores.length;i++){
        variance=variance+(scores[i]-avarage)*(scores[i]-avarage);
    }
System.out.println(Math.sqrt(variance));
}
}
}

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
public Main {
       ^
Main.java:3: error: class, interface, enum, or record expected
public static voidmain(String[] args) {
              ^
Main.java:6: error: class, interface, enum, or record expected
while(true) {
^
Main.java:8: error: class, interface, enum, or record expected
if (n == 0) { break; }
^
Main.java:8: error: class, interface, enum, or record expected
if (n == 0) { break; }
                     ^
Main.java:10: error: class, interface, enum, or record expected
for(inti= 0; i< scores.length; i++) {
^
Main.java:10: error: class, interface, enum, or record expected
for(inti= 0; i< scores.length; i++) {
             ^
Main.java:10: error: class, interface, enum, or record expected
for(inti= 0; i< scores.length; i++) {
                               ^
Main.java:12: error: class, interface, enum, or record expected
}
^
Main.java:15: error: class, interface, enum, or record expected
for(i=0;i<scores.length;i++){
^
Main.java:15: error: class, interface, enum, or record expected
for(i=0;i<scores.length;i++){
        ^
Main.java:15: error: class, interface, enum, or record expected
for(i=0;i<scores.length;i++){
                        ^
Main.java:17: error: class, interface, enum, or record expected
	}
	^
Main.java:19: error: class, interface, enum, or record expected
    for(i=0;i<scores.length;i++){
    ^
Main.java:19: error: class, interface, enum, or record expected
    for(i=0;i<scores.length;i++){
            ^
Main.java:19: error: class, interface, enum, or record expected
    for(i=0;i<scores.length;i++){
                            ^
Main.java:21: error: class, interface, enum, or record expected
    }
    ^
Main.java:23: error: class, interface, enum, or record expected
}
^
18 errors
Language: Java

import java.util.Scanner;
public Main {
public static voidmain(String[] args) {
// ?¨??????\???????????????????????????????????????
Scanner sc= newScanner(System.in);
while(true) {
intn = sc.nextInt();
if (n == 0) { break; }
int[] scores = new int[n];
for(int i= 0; i< scores.length; i++) {
scores[i] = sc.nextInt();
}
doubleaverage = 0, variance = 0;
// ??? ?????????average??¨????????£variance????¨????????????????
for(i=0;i<scores.length;i++){
    average+=scores[i];
	}
	avarage = avarage/scores.length;
    for(i=0;i<scores.length;i++){
        variance=variance+(scores[i]-avarage)*(scores[i]-avarage);
    }
System.out.println(Math.sqrt(variance));
}
}
}

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
public Main {
       ^
Main.java:3: error: class, interface, enum, or record expected
public static voidmain(String[] args) {
              ^
Main.java:6: error: class, interface, enum, or record expected
while(true) {
^
Main.java:8: error: class, interface, enum, or record expected
if (n == 0) { break; }
^
Main.java:8: error: class, interface, enum, or record expected
if (n == 0) { break; }
                     ^
Main.java:10: error: class, interface, enum, or record expected
for(int i= 0; i< scores.length; i++) {
^
Main.java:10: error: class, interface, enum, or record expected
for(int i= 0; i< scores.length; i++) {
              ^
Main.java:10: error: class, interface, enum, or record expected
for(int i= 0; i< scores.length; i++) {
                                ^
Main.java:12: error: class, interface, enum, or record expected
}
^
Main.java:15: error: class, interface, enum, or record expected
for(i=0;i<scores.length;i++){
^
Main.java:15: error: class, interface, enum, or record expected
for(i=0;i<scores.length;i++){
        ^
Main.java:15: error: class, interface, enum, or record expected
for(i=0;i<scores.length;i++){
                        ^
Main.java:17: error: class, interface, enum, or record expected
	}
	^
Main.java:19: error: class, interface, enum, or record expected
    for(i=0;i<scores.length;i++){
    ^
Main.java:19: error: class, interface, enum, or record expected
    for(i=0;i<scores.length;i++){
            ^
Main.java:19: error: class, interface, enum, or record expected
    for(i=0;i<scores.length;i++){
                            ^
Main.java:21: error: class, interface, enum, or record expected
    }
    ^
Main.java:23: error: class, interface, enum, or record expected
}
^
18 errors
Language: Java

import java.util.Scanner;

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

		}
	}

}

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

import java.util.Scanner;

public class Main {
	public static void main(System[] 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;
			int variance = 0;
			for(int i =0;i<n;i++){
				average += scores[i];
			}
			average /=n;
			for(int i =0;i<n;i++){
				variance += Math.pow(scores[i]-average,2);
			}
			variance /=2;
		}
		System.out.println(Math.sqrt(variance));
	}
}

Compiler output:
Main.java:26: error: cannot find symbol
		System.out.println(Math.sqrt(variance));
		                             ^
  symbol:   variable variance
  location: class Main
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) {
			double ave = 0, var = 0;
			int n = sc.nextInt();
			if (n == 0) {break;}
			int[] point = new int[n];
			for (int i = 0; i < point.length; i++) {
				point[i] = sc.nextInt();
				ave = ave + point[i];
			}
			ave = ave / point.length;
			for (int i = 0; i < point.length; i5
				++) {
				var = var + (point[i] - ave) * (point[i] - ave);
			}
			var = var / point.length;
			System.out.println(Math.sqrt(var));
		}
	}
}

Compiler output:
Main.java:15: error: cannot find symbol
			for (int i = 0; i < point.length; i5
			                                  ^
  symbol:   variable i5
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		int i;
		double s[]=new double[1000];
		double n,m,a,sum=0,sig=0,answer;
		while((n=sc.nextInt())!=0){
			for(i=0;i<=n-1;i++){
				s[i]=sc.nextInt();
				sum+=s[i];
			}
			m=sum/n;
			for(i=0;i<=n-1;i++){
				sig=sig+(s[i]-m)*(s[i]-m);
			}
			a=sig/n;
			answer=Math.sqrt(a);
			System.out.println(String.format("%.8f",answer));
		}
	}

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

import java.util.Scanner;

public class bunsan{
	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 ave = 0, variance = 0;
		int sum=0;
		for(int i= 0; i< scores.length; i++) {
			scores[i] = sc.nextInt();
			sum+=scores[i];	
			
		}
		ave=(double)sum/n;
		double sum2=0;
		for(int i= 0; i< scores.length; i++){
			sum2+=(scores[i]-ave)*(scores[i]-ave);
			variance=sum2/n;
		}

		
		
		System.out.println(Math.sqrt(variance));
		}
	}
}

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

import java.util.Scanner;

public class main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);		
                double average = 0,variance = 0;
		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();
			}
			for(int i =0;i<n;i++){
				average += scores[i];
			}
			average /=n;
			for(int i =0;i<n;i++){
				variance += Math.pow(scores[i]-average,2);
			}
			variance /=n;
		}
		System.out.println(Math.sqrt(variance));
	}
}

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

import java.util.Scanner;

public class main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);		
                double average = 0,variance = 0;
		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();
			}
			for(int i =0;i<n;i++){
				average += scores[i];
			}
			average = (double)average/n;
			for(int i =0;i<n;i++){
				variance += Math.pow((scores[i]-average),2);
			}
			variance /=n;
		}
		System.out.println(Math.sqrt(variance));
	}
}

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

	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;
	average= scores[] / n ;
	
	for (int i=0; i<n; i++) {
        variance= (scores[]-average)*(scores[]-average) / n ;
	}

	System.out.println(average);
	System.out.println(Math.sqrt(variance)); 	
	}
	} 
	}

Compiler output:
Main.java:13: error: '.class' expected
	average= scores[] / n ;
	                  ^
Main.java:16: error: '.class' expected
        variance= (scores[]-average)*(scores[]-average) / n ;
                           ^
Main.java:16: error: '.class' expected
        variance= (scores[]-average)*(scores[]-average) / n ;
                                              ^
3 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;
	average = scores.length / n ;
	
	for (int i=0; i<n; i++) {
        variance= ((scores.length-average)*(scores.length-average)) / n ;
	}

	System.out.println(average);
	System.out.println(Math.sqrt(variance)); 	
	}
	} 
	}

Compiler output:
Main.java:2: error: class main is public, should be declared in a file named main.java
	public class main { 
	       ^
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;
	}
	int[] scores = new int[n];
	for(int i = 0;i<scores.length;i++){
	scores[i]=sc.nextInt();
	}
	double average=0,variance=0;
	double sum=0;
	for(int i = 0;i<scores.length;i++){
	sum = scores[i]+sum;}
	average=sum/n;
	int j;
	
	    
	for(int j = 0;j<n;j++){
	variance=(score[j]-average)*(score[j]-average)+variance;
	
	variance=variance/n;
	}
	
	System.out.println(Math.sqrt(variance));
	}
	}
}

Compiler output:
Main.java:22: error: variable j is already defined in method main(String[])
	for(int j = 0;j<n;j++){
	        ^
Main.java:23: error: cannot find symbol
	variance=(score[j]-average)*(score[j]-average)+variance;
	          ^
  symbol:   variable score
  location: class Main
Main.java:23: error: cannot find symbol
	variance=(score[j]-average)*(score[j]-average)+variance;
	                             ^
  symbol:   variable score
  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);
	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;
	double sum=0;
	for(int i = 0;i<scores.length;i++){
	sum = scores[i]+sum;}
	average=sum/n;
	int j;
	
	    
	for(int j = 0;j<n;j++){
	variance=(scores[j]-average)*(scores[j]-average)+variance;
	
	variance=variance/n;
	}
	
	System.out.println(Math.sqrt(variance));
	}
	}
}

Compiler output:
Main.java:22: error: variable j is already defined in method main(String[])
	for(int j = 0;j<n;j++){
	        ^
1 error
Language: Java


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

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

import java.util.*;
 
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 sum = 0;
             
            int s = new int[n];
             
            for(int i = 0; i < n; i++) {
                s[i] = sc.nextInt();
                sum=sum+s[i];
            }
             
            double ave = (double)sum / n;
            double dsp = 0;
             
            for(int i = 0; i < n; i++) {
                dsp+=(double)Math.pow(s[i] - ave, 2);
            }
            dsp=dsp/n; 
             
            double sd = Math.sqrt(disp);
             
            System.out.println(sd);
        }
         
        for(int i = 0; i < ans.size(); i++) {
            System.out.println(ans.get(i));
        }
    }
}

Compiler output:
Main.java:14: error: incompatible types: int[] cannot be converted to int
            int s = new int[n];
                    ^
Main.java:17: error: array required, but int found
                s[i] = sc.nextInt();
                 ^
Main.java:18: error: array required, but int found
                sum=sum+s[i];
                         ^
Main.java:25: error: array required, but int found
                dsp+=(double)Math.pow(s[i] - ave, 2);
                                       ^
Main.java:29: error: cannot find symbol
            double sd = Math.sqrt(disp);
                                  ^
  symbol:   variable disp
  location: class Main
Main.java:34: error: cannot find symbol
        for(int i = 0; i < ans.size(); i++) {
                           ^
  symbol:   variable ans
  location: class Main
Main.java:35: error: cannot find symbol
            System.out.println(ans.get(i));
                               ^
  symbol:   variable ans
  location: class Main
7 errors
Language: Java

import java.util.*;
 
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 sum = 0;
             
            int s[] = new int[n];
             
            for(int i = 0; i < n; i++) {
                s[i] = sc.nextInt();
                sum=sum+s[i];
            }
             
            double ave = (double)sum / n;
            double dsp = 0;
             
            for(int i = 0; i < n; i++) {
                dsp+=(double)Math.pow(s[i] - ave, 2);
            }
            dsp=dsp/n; 
             
            double sd = Math.sqrt(disp);
             
            System.out.println(sd);
        }
         
        for(int i = 0; i < ans.size(); i++) {
            System.out.println(ans.get(i));
        }
    }
}

Compiler output:
Main.java:29: error: cannot find symbol
            double sd = Math.sqrt(disp);
                                  ^
  symbol:   variable disp
  location: class Main
Main.java:34: error: cannot find symbol
        for(int i = 0; i < ans.size(); i++) {
                           ^
  symbol:   variable ans
  location: class Main
Main.java:35: error: cannot find symbol
            System.out.println(ans.get(i));
                               ^
  symbol:   variable ans
  location: class Main
3 errors
Language: Java

import java.util.*;
 
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 sum = 0;
             
            int s[] = new int[n];
             
            for(int i = 0; i < n; i++) {
                s[i] = sc.nextInt();
                sum=sum+s[i];
            }
             
            double ave = (double)sum / n;
            double dsp = 0;
             
            for(int i = 0; i < n; i++) {
                dsp+=(double)Math.pow(s[i] - ave, 2);
            }
            dsp=dsp/n; 
             
            double sd = Math.sqrt(dsp);
             
            System.out.println(sd);
        }
         
        for(int i = 0; i < ans.size(); i++) {
            System.out.println(ans.get(i));
        }
    }
}

Compiler output:
Main.java:34: error: cannot find symbol
        for(int i = 0; i < ans.size(); i++) {
                           ^
  symbol:   variable ans
  location: class Main
Main.java:35: error: cannot find symbol
            System.out.println(ans.get(i));
                               ^
  symbol:   variable ans
  location: class Main
2 errors
Language: Java

package programingA;

import java.util.Scanner;

public class StandardDeviation {

	public static void main(String args[]){

		int n,avg,sum,a2;
		Scanner in = new Scanner(System.in);


		while(true){
			n = Integer.parseInt(in.next());
			if(n == 0)break;

			int num[] = new int[n];
			sum = 0;
			a2 = 0;

			for(int i=0;i<n;i++){
				num[i] = Integer.parseInt(in.next());
				sum += num[i];
			}

			avg = sum/n;

			for(int i=0;i<n;i++){
				a2 += (num[i] - avg)*(num[i] - avg);
			}

			a2 = a2/n;

			System.out.println(Math.sqrt( (double) a2 ));
		}

		in.close();
	}
}

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

import java.util.Scanner;
public classMain {
  public static voidmain(String[] args) {
    Scanner sc= newScanner(System.in);
    while(true) {
      intn = sc.nextInt();
      if (n == 0) { break; }
      int[] scores = new int[n];
      for(inti= 0; i< scores.length; i++) {
        scores[i] = sc.nextInt();
      }

    double average = 0, variance = 0;
    int a;

    for(i=0;i<scores.length;i++){
      average+=scores[i];
    }
    average=average/n;

    for(i=0;i<scores.length;i++){
      variance+=(scores[i]-average)*(scores[i]-average);
    }
    variance=variance/n;

    printf(variance);

    System.out.println(Math.sqrt(variance));
    }
  }
}

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
public classMain {
       ^
Main.java:3: error: class, interface, enum, or record expected
  public static voidmain(String[] args) {
                ^
Main.java:5: error: class, interface, enum, or record expected
    while(true) {
    ^
Main.java:7: error: class, interface, enum, or record expected
      if (n == 0) { break; }
      ^
Main.java:7: error: class, interface, enum, or record expected
      if (n == 0) { break; }
                           ^
Main.java:9: error: class, interface, enum, or record expected
      for(inti= 0; i< scores.length; i++) {
      ^
Main.java:9: error: class, interface, enum, or record expected
      for(inti= 0; i< scores.length; i++) {
                   ^
Main.java:9: error: class, interface, enum, or record expected
      for(inti= 0; i< scores.length; i++) {
                                     ^
Main.java:11: error: class, interface, enum, or record expected
      }
      ^
Main.java:14: error: unnamed classes are a preview feature and are disabled by default.
    int a;
    ^
  (use --enable-preview to enable unnamed classes)
Main.java:16: error: class, interface, enum, or record expected
    for(i=0;i<scores.length;i++){
    ^
Main.java:16: error: class, interface, enum, or record expected
    for(i=0;i<scores.length;i++){
            ^
Main.java:16: error: class, interface, enum, or record expected
    for(i=0;i<scores.length;i++){
                            ^
Main.java:18: error: class, interface, enum, or record expected
    }
    ^
Main.java:21: error: class, interface, enum, or record expected
    for(i=0;i<scores.length;i++){
    ^
Main.java:21: error: class, interface, enum, or record expected
    for(i=0;i<scores.length;i++){
            ^
Main.java:21: error: class, interface, enum, or record expected
    for(i=0;i<scores.length;i++){
                            ^
Main.java:23: error: class, interface, enum, or record expected
    }
    ^
Main.java:26: error: class, interface, enum, or record expected
    printf(variance);
    ^
Main.java:28: error: class, interface, enum, or record expected
    System.out.println(Math.sqrt(variance));
    ^
Main.java:29: error: class, interface, enum, or record expected
    }
    ^
21 errors
Language: Java

import java.util.Scanner;
import java.lang.Math;

public class StandardDeviation {

	public static void main(String args[]){

		int n,avg,sum,a2;
		Scanner in = new Scanner(System.in);


		while(true){
			n = Integer.parseInt(in.next());
			if(n == 0)break;

			int num[] = new int[n];
			sum = 0;
			a2 = 0;

			for(int i=0;i<n;i++){
				num[i] = Integer.parseInt(in.next());
				sum += num[i];
			}

			avg = sum/n;

			for(int i=0;i<n;i++){
				a2 += (num[i] - avg)*(num[i] - avg);
			}

			a2 = a2/n;

			System.out.println(Math.sqrt( (double) a2 ));
		}

		in.close();
	}
}

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

import java.util.Scanner;
public class Main {
  public static voidmain(String[] args) {
    Scanner sc= newScanner(System.in);
    while(true) {
      intn = sc.nextInt();
      if (n == 0) { break; }
      int[] scores = new int[n];
      for(inti= 0; i< scores.length; i++) {
        scores[i] = sc.nextInt();
      }

    double average = 0, variance = 0;
    int a;

    for(i=0;i<scores.length;i++){
      average+=scores[i];
    }
    average=average/n;

    for(i=0;i<scores.length;i++){
      variance+=(scores[i]-average)*(scores[i]-average);
    }
    variance=variance/n;

    System.out.println(Math.sqrt(variance));
    }
  }
}

Compiler output:
Main.java:3: error: invalid method declaration; return type required
  public static voidmain(String[] args) {
                ^
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;}
			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<scores.length;i++){
				average += scores[i];
			}
			average /= n;
			for(int i=0;i<scores.length;i++){
				variance += (scores[i]-average)*(scores[i]-average);
			}
			variance /= n;
			System.out.println(Math.sqrt(variance))
		}
	}
}

Compiler output:
Main.java:22: error: ';' expected
			System.out.println(Math.sqrt(variance))
			                                       ^
1 error
Language: Java

import java.util.Scanner;
public class Main {
  public static void main(String[] args) {
    Scanner sc= newScanner(System.in);
    while(true) {
      int n = sc.nextInt();
      if (n == 0) { break; }
      int[] scores = new int[n];
      for(inti= 0; i< scores.length; i++) {
        scores[i] = sc.nextInt();
      }

    double average = 0, variance = 0;
    int a;

    for(i=0;i<scores.length;i++){
      average+=scores[i];
    }
    average=average/n;

    for(i=0;i<scores.length;i++){
      variance+=(scores[i]-average)*(scores[i]-average);
    }
    variance=variance/n;

    System.out.println(Math.sqrt(variance));
    }
  }
}

Compiler output:
Main.java:4: error: cannot find symbol
    Scanner sc= newScanner(System.in);
                ^
  symbol:   method newScanner(InputStream)
  location: class Main
Main.java:9: error: cannot find symbol
      for(inti= 0; i< scores.length; i++) {
          ^
  symbol:   variable inti
  location: class Main
Main.java:9: error: cannot find symbol
      for(inti= 0; i< scores.length; i++) {
                   ^
  symbol:   variable i
  location: class Main
Main.java:9: error: cannot find symbol
      for(inti= 0; i< scores.length; i++) {
                                     ^
  symbol:   variable i
  location: class Main
Main.java:10: error: cannot find symbol
        scores[i] = sc.nextInt();
               ^
  symbol:   variable i
  location: class Main
Main.java:16: error: cannot find symbol
    for(i=0;i<scores.length;i++){
        ^
  symbol:   variable i
  location: class Main
Main.java:16: error: cannot find symbol
    for(i=0;i<scores.length;i++){
            ^
  symbol:   variable i
  location: class Main
Main.java:16: error: cannot find symbol
    for(i=0;i<scores.length;i++){
                            ^
  symbol:   variable i
  location: class Main
Main.java:17: error: cannot find symbol
      average+=scores[i];
                      ^
  symbol:   variable i
  location: class Main
Main.java:21: error: cannot find symbol
    for(i=0;i<scores.length;i++){
        ^
  symbol:   variable i
  location: class Main
Main.java:21: error: cannot find symbol
    for(i=0;i<scores.length;i++){
            ^
  symbol:   variable i
  location: class Main
Main.java:21: error: cannot find symbol
    for(i=0;i<scores.length;i++){
                            ^
  symbol:   variable i
  location: class Main
Main.java:22: error: cannot find symbol
      variance+=(scores[i]-average)*(scores[i]-average);
                        ^
  symbol:   variable i
  location: class Main
Main.java:22: error: cannot find symbol
      variance+=(scores[i]-average)*(scores[i]-average);
                                            ^
  symbol:   variable i
  location: class Main
14 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 = average + scores[i];
 }
 average = average / i;
 for (i = 0; i<n ; i++){
    variance = (scores[i]-average)*(scores[i]-average);javascript:void(0);
 }
  variance = variance / n;
 // ??? ?????????average??¨????????£variance????¨????????????? ???
 System.out.println(Math.sqrt(variance));
 }
 }
 }

Compiler output:
Main.java:15: error: ';' expected
 for (i = 0; i<n :i++){
                ^
Main.java:15: error: illegal start of expression
 for (i = 0; i<n :i++){
                 ^
Main.java:15: error: ';' expected
 for (i = 0; i<n :i++){
                     ^
Main.java:20: error: illegal start of expression
    variance = (scores[i]-average)*(scores[i]-average);javascript:void(0);
                                                                  ^
Main.java:20: error: ';' expected
    variance = (scores[i]-average)*(scores[i]-average);javascript:void(0);
                                                                      ^
5 errors
Language: Java

import java.util.Scanner;
public class Main {
  public static void main(String[] args) {
    Scanner sc= newScanner(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;
    int a;

    for(i=0;i<scores.length;i++){
      average+=scores[i];
    }
    average=average/n;

    for(i=0;i<scores.length;i++){
      variance+=(scores[i]-average)*(scores[i]-average);
    }
    variance=variance/n;

    System.out.println(Math.sqrt(variance));
    }
  }
}

Compiler output:
Main.java:4: error: cannot find symbol
    Scanner sc= newScanner(System.in);
                ^
  symbol:   method newScanner(InputStream)
  location: class Main
Main.java:16: error: cannot find symbol
    for(i=0;i<scores.length;i++){
        ^
  symbol:   variable i
  location: class Main
Main.java:16: error: cannot find symbol
    for(i=0;i<scores.length;i++){
            ^
  symbol:   variable i
  location: class Main
Main.java:16: error: cannot find symbol
    for(i=0;i<scores.length;i++){
                            ^
  symbol:   variable i
  location: class Main
Main.java:17: error: cannot find symbol
      average+=scores[i];
                      ^
  symbol:   variable i
  location: class Main
Main.java:21: error: cannot find symbol
    for(i=0;i<scores.length;i++){
        ^
  symbol:   variable i
  location: class Main
Main.java:21: error: cannot find symbol
    for(i=0;i<scores.length;i++){
            ^
  symbol:   variable i
  location: class Main
Main.java:21: error: cannot find symbol
    for(i=0;i<scores.length;i++){
                            ^
  symbol:   variable i
  location: class Main
Main.java:22: error: cannot find symbol
      variance+=(scores[i]-average)*(scores[i]-average);
                        ^
  symbol:   variable i
  location: class Main
Main.java:22: error: cannot find symbol
      variance+=(scores[i]-average)*(scores[i]-average);
                                            ^
  symbol:   variable i
  location: class Main
10 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 = average + scores[i];
 }
 average = average / i;
 for (i = 0; i<n ; i++){
    variance = (scores[i]-average)*(scores[i]-average);javascript:void(0);
 }
  variance = variance / n;
 // ??? ?????????average??¨????????£variance????¨????????????? ???
 System.out.println(Math.sqrt(variance));
 }
 }
 }

Compiler output:
Main.java:20: error: illegal start of expression
    variance = (scores[i]-average)*(scores[i]-average);javascript:void(0);
                                                                  ^
Main.java:20: error: ';' expected
    variance = (scores[i]-average)*(scores[i]-average);javascript:void(0);
                                                                      ^
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 (i = 0; i<n ;i++){
    average = average + scores[i];
 }
 average = average / i;
 for (i = 0; i<n ; i++){
    variance = (scores[i]-average)*(scores[i]-average);
 }
  variance = variance / n;
 // ??? ?????????average??¨????????£variance????¨????????????? ???
 System.out.println(Math.sqrt(variance));
 }
 }
 }

Compiler output:
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 = average + scores[i];
                               ^
  symbol:   variable i
  location: class Main
Main.java:18: error: cannot find symbol
 average = average / i;
                     ^
  symbol:   variable i
  location: class Main
Main.java:19: error: cannot find symbol
 for (i = 0; i<n ; i++){
      ^
  symbol:   variable i
  location: class Main
Main.java:19: error: cannot find symbol
 for (i = 0; i<n ; i++){
             ^
  symbol:   variable i
  location: class Main
Main.java:19: error: cannot find symbol
 for (i = 0; i<n ; i++){
                   ^
  symbol:   variable i
  location: class Main
Main.java:20: error: cannot find symbol
    variance = (scores[i]-average)*(scores[i]-average);
                       ^
  symbol:   variable i
  location: class Main
Main.java:20: error: cannot find symbol
    variance = (scores[i]-average)*(scores[i]-average);
                                           ^
  symbol:   variable i
  location: class Main
10 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<n ;i++){
    average = average + scores[i];
 }
 average = average / i;
 for (int i = 0; i<n ; i++){
    variance = (scores[i]-average)*(scores[i]-average);
 }
  variance = variance / n;
 // ??? ?????????average??¨????????£variance????¨????????????? ???
 System.out.println(Math.sqrt(variance));
 }
 }
 }

Compiler output:
Main.java:18: error: cannot find symbol
 average = average / i;
                     ^
  symbol:   variable i
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class Main {
 public static void main(String[] args) { 
// ?¨??????\??????????????????????????????????????? 
Scanner sc = new Scanner(System.in);
int i = 0;
 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<n ;i++){
    average = average + scores[i];
 }
 average = average / i;
 for (int i = 0; i<n ; i++){
    variance = (scores[i]-average)*(scores[i]-average);
 }
  variance = variance / n;
 // ??? ?????????average??¨????????£variance????¨????????????? ???
 System.out.println(Math.sqrt(variance));
 }
 }
 }

Compiler output:
Main.java:12: error: variable i is already defined in method main(String[])
 for (int i = 0; i < scores.length; i++) {
          ^
Main.java:16: error: variable i is already defined in method main(String[])
 for (int i = 0; i<n ;i++){
          ^
Main.java:20: error: variable i is already defined in method main(String[])
 for (int i = 0; i<n ; i++){
          ^
3 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<scores.length;i++){
				average+=scores[i];
			}
			average/=n;
			for(int i=0;i<scores.length;i++){
				variance+=(scores[i]-average)*(scores[i]-average);
			}
			variance/=n;
			System.out.println(Math.sqrt(variance));
		}
	}

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

import java.util.Scanner;

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

Compiler output:
Main.java:21: error: cannot find symbol
    variance = variance + (scores[i]-average)*(scores[I]-average);
                                                      ^
  symbol:   variable I
  location: class Main
1 error
Language: Java

import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
	// ?¨??????\???????????????????????????????????????
	double average=0;num=0;
	Scanner sc= newScanner(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();
			average = average + scores[i];
		}
		double variance = 0;
		// ??? ?????????average??¨????????£variance????¨????????????????
		average = average / n;
		for(i=0;i<scores.length;i++){
			num =num+(scores[i]-average)*(scores[i]-average);
		}
		variance = num/n;
		System.out.println(Math.sqrt(variance));
	}
	}
}

Compiler output:
Main.java:5: error: cannot find symbol
	double average=0;num=0;
	                 ^
  symbol:   variable num
  location: class Main
Main.java:6: error: cannot find symbol
	Scanner sc= newScanner(System.in);
	            ^
  symbol:   method newScanner(InputStream)
  location: class Main
Main.java:20: error: cannot find symbol
		for(i=0;i<scores.length;i++){
		    ^
  symbol:   variable i
  location: class Main
Main.java:20: error: cannot find symbol
		for(i=0;i<scores.length;i++){
		        ^
  symbol:   variable i
  location: class Main
Main.java:20: error: cannot find symbol
		for(i=0;i<scores.length;i++){
		                        ^
  symbol:   variable i
  location: class Main
Main.java:21: error: cannot find symbol
			num =num+(scores[i]-average)*(scores[i]-average);
			^
  symbol:   variable num
  location: class Main
Main.java:21: error: cannot find symbol
			num =num+(scores[i]-average)*(scores[i]-average);
			     ^
  symbol:   variable num
  location: class Main
Main.java:21: error: cannot find symbol
			num =num+(scores[i]-average)*(scores[i]-average);
			                 ^
  symbol:   variable i
  location: class Main
Main.java:21: error: cannot find symbol
			num =num+(scores[i]-average)*(scores[i]-average);
			                                     ^
  symbol:   variable i
  location: class Main
Main.java:23: error: cannot find symbol
		variance = num/n;
		           ^
  symbol:   variable num
  location: class Main
10 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 k=0;k<scores.length;k++){
		average=average + scores[k];
	    }
	    average=average/scores.length;

	   

	    for(int l=0;l<scores.length;l++){
		variance+=(scores[l]-average)*(scores[l]-average);
		
	    }
	    variance = variance / scores.length;
	}

	System.out.println(Math.sqrt(variance));
	
    }

}    

Compiler output:
Main.java:32: error: cannot find symbol
	System.out.println(Math.sqrt(variance));
	                             ^
  symbol:   variable variance
  location: class Main
1 error
Language: Java

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int[] b = new int[1000];
	int i = 0;
	int sum = 0;
	int ave;
	int a = 0;
	int n = sc.nextInt();
	if(n == 0){
	    break;
	}
	for(i=0; i<n; i++){
	    b[i] = sc.nextInt();
	    sum += b[i];
	}
	ave = sum/n;
	for(i=0; i<n; i++){
	    a += (b[i]-ave)*(b[i]-ave);
	}
	double ans = Math.sqrt(a/n);
	System.out.println(ans);
    }
}

Compiler output:
Main.java:12: error: break outside switch or loop
	    break;
	    ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int[] b = new int[1000];
	int i;
	int sum = 0;
	int ave;
	int a = 0;
	int n = sc.nextInt();
	if(n == 0){
	    break;
	}
	for(i=0; i<n; i++){
	    b[i] = sc.nextInt();
	    sum += b[i];
	}
	ave = sum/n;
	for(i=0; i<n; i++){
	    a += (b[i]-ave)*(b[i]-ave);
	}
	double ans = Math.sqrt(a/n);
	System.out.println(ans);
    }
}

Compiler output:
Main.java:12: error: break outside switch or loop
	    break;
	    ^
1 error
Language: Java

import java.util.Scanner;
public class main{
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int[] b = new int[1000];
	int i;
	int sum = 0;
	int ave;
	int a = 0;
	while(true){
	    int n = sc.nextInt();
	    if(n == 0){
		break;
	    }
	    for(i=0; i<n; i++){
		b[i] = sc.nextInt();
		sum += b[i];
	    }
	    ave = sum/n;
	    for(i=0; i<n; i++){
		a += (b[i]-ave)*(b[i]-ave);
	    }
	    double ans = Math.sqrt(a/n);
	    System.out.println(ans);
	}
    }
}

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

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int[] b = new int[1000];
	int i;
	int sum = 0;
	double ave;
	doble a = 0.0;
	while(true){
	    int n = sc.nextInt();
	    if(n == 0){
		break;
	    }
	    for(i=0; i<n; i++){
		b[i] = sc.nextInt();
		sum += b[i];
	    }
	    ave = (double)sum/n;
	    for(i=0; i<n; i++){
		a += (b[i]-ave)*(b[i]-ave);
	    }
	    double ans = Math.sqrt(a/n);
	    System.out.println(ans);
	}
    }
}

Compiler output:
Main.java:9: error: cannot find symbol
	doble a = 0.0;
	^
  symbol:   class doble
  location: class Main
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; }
			int[] scores = new int[n];
			for (int i = 0; i < scores.length; i++) {
				scores[i] = sc.nextInt();
			}
			double average = 0, variance = 0;
			double sum =0,hennsa =0;
			// ??? ?????????average??¨????????£variance????¨????????????? ???
			//??????????????????????±???????
			for(int i = 0; i < scores.length; i++){
				sum = scores[i] + sum;
			}
			average = sum / n;
			//?¬????????????£????±???????
			for(int i = 0; i < scores.length; i++){
				sum1 = (score[i]-average)*(score[i]-average) + sum1;
			}
			variance = sum1 / n;
			
			System.out.println(Math.sqrt(variance));
		}
	}
}

Compiler output:
Main.java:23: error: cannot find symbol
				sum1 = (score[i]-average)*(score[i]-average) + sum1;
				^
  symbol:   variable sum1
  location: class Main
Main.java:23: error: cannot find symbol
				sum1 = (score[i]-average)*(score[i]-average) + sum1;
				        ^
  symbol:   variable score
  location: class Main
Main.java:23: error: cannot find symbol
				sum1 = (score[i]-average)*(score[i]-average) + sum1;
				                           ^
  symbol:   variable score
  location: class Main
Main.java:23: error: cannot find symbol
				sum1 = (score[i]-average)*(score[i]-average) + sum1;
				                                               ^
  symbol:   variable sum1
  location: class Main
Main.java:25: error: cannot find symbol
			variance = sum1 / n;
			           ^
  symbol:   variable sum1
  location: class Main
5 errors
Language: Java

import java.util.Scanner;

public class Main {

public static void main(String[] args) {


	Scanner sc = new Scanner(System.in);
	int[] ten;
	int i,n;
	double ave=0,sum=0,bunsan;
	
	for(;;){
		n = sc.nextInt();
		if ()  n==0 break; 
		ten = new int[n];

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

		for(i=0;i<n;i++){
			ave+= ten[i]/(n+0.0);
		}

		for(i=0;i<n;i++){
			sum+= (ten[i]-ave)*(ten[i]-ave);
		}
		bunsan=Math.sqrt(sum/n);

		System.out.println(bunsan);
	}
}
}

Compiler output:
Main.java:15: error: illegal start of expression
		if ()  n==0 break; 
		    ^
Main.java:15: error: not a statement
		if ()  n==0 break; 
		        ^
Main.java:15: error: ';' expected
		if ()  n==0 break; 
		           ^
3 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=0;
			double sum,average,variance=0;
			n =sc.nextInt();
			if (n==0){break;}
			int[] scores=new int[n];
			for(int i=0; i<scores.length; i++){
				scores[i]=sc.nextInt();
				sum=sum + scores[i];
			}
			for(int i=0; i<scores.length; i++){
				average= sum / scores.length;
				variance= variance + ((scores[i]-average)*(scores[i]-average)); 
			}
						
			System.out.println(Math.sqrt(variance/n));
			}
	}
}

Compiler output:
Main.java:15: error: variable sum might not have been initialized
				sum=sum + scores[i];
				    ^
Main.java:18: error: variable sum might not have been initialized
				average= sum / scores.length;
				         ^
2 errors