criyle/codenet-compile-errors huggingface dataset:
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
Language: Java

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


}

    }
}


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

package standardDeviation;

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;
			else {
				int[] s = new int[n];
				int sum1 = 0, sum2 = 0;
				for (int i = 0; i < n; i++) {
					s[i] = sc.nextInt();
					sum1 += s[i];
				}
				double m = sum1 / n;
				for (int i = 0; i < n; i++) {
					sum2 += (s[i] - m) * (s[i] - m);
				}
				double sd = Math.sqrt((double) sum2 / n);
				System.out.printf("%.4f\n", sd);
			}
		}
		sc.close();
	}


Compiler output:
Main.java:29: 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);
        while(true){
            int n= sc.nextInt();
            if(n==0) break;
            int i;
            int[] ten;
            ten=new int[n];
            int sum=0;
            for(i=0;i<n;i++){
                ten[i]=sc.nextInt();
                sum=sum+ten[i];
            }
            double ave=(double)sum/n;
            int t;
            double s;
            t=0;
            for(i=0;i<n;i++){
                t=t+(ten[i]-ave)*(ten[i]-ave);
            }
            s=t/n;
            System.out.printf("%f\n",Math.sqrt(s));
        }
    }
}


Compiler output:
Main.java:21: error: incompatible types: possible lossy conversion from double to int
                t=t+(ten[i]-ave)*(ten[i]-ave);
                   ^
1 error
Language: Java

package class2nd;

import java.util.*;

public class main {

	public static void main(String[] args) {
		
		int n,i;
		int sum=0;
		double syg;
		int[] data;
		data = new int[1000];
		Scanner sc = new Scanner(System.in);
		
		while(true) {
			n=sc.nextInt();
			if (n==0) {
				break;
			}
			for (i=0 ; i<n ; i++) {
				data[i]=sc.nextInt();
				sum += data[i]^2;
			}
			syg = Math.sqrt((double)sum/(double)n);
			System.out.println(""+syg);
		}
		
		sc.close();
	}	
}


Compiler output:
Main.java:5: 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){
        try(Scanner sc = new Scanner(System.in)){
            while(true){
            int sum=0,sqsum=0;
            int n=sc.nextInt();
            if(n==0) break;
            int[] score = new int[n];
            for(int i=0;i<score.length;i++){
                score[i]=sc.nextInt();
                sum+=score[i];
                }
                double ave=0,bunsan=0;
                ave=(double) sum/n;
                for(int i=0;i<score.length;i++){
                    sqsum+=(score[i]-ave)*(score[i]-ave);
                }
                bunsan=(double) sqsum/n;
                System.out.println(Math.sqrt(bunsan));
            }
        }   
    }
}


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){
   try(Scanner sc = new Scanner(System.in)){
      while(ture){
       int n = sc.nextInt();
      if(n == 0){
	break;
      }
	int[]score = new int[n];
	for(i = 0;i < n;i++){
	scores[i] = sc.nextInt();
	}
	double average = 0,variance = 0;
	for(i = 0;i < n;i++){
	average = average+scores[i];
	}
	average = average/n;
	for(i = 0;i < n;i++){
	variance = (scores[i]-average)^2+variance;
	}
	variance = variance/n;
	System.out.println(Math.sqrt(variance));
     }   
   }
  }
}


Compiler output:
Main.java:6: error: cannot find symbol
      while(ture){
            ^
  symbol:   variable ture
  location: class Main
Main.java:12: error: cannot find symbol
	for(i = 0;i < n;i++){
	    ^
  symbol:   variable i
  location: class Main
Main.java:12: error: cannot find symbol
	for(i = 0;i < n;i++){
	          ^
  symbol:   variable i
  location: class Main
Main.java:12: error: cannot find symbol
	for(i = 0;i < n;i++){
	                ^
  symbol:   variable i
  location: class Main
Main.java:13: error: cannot find symbol
	scores[i] = sc.nextInt();
	^
  symbol:   variable scores
  location: class Main
Main.java:13: 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 < 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 = average+scores[i];
	                  ^
  symbol:   variable scores
  location: class Main
Main.java:17: error: cannot find symbol
	average = average+scores[i];
	                         ^
  symbol:   variable i
  location: class Main
Main.java:20: error: cannot find symbol
	for(i = 0;i < n;i++){
	    ^
  symbol:   variable i
  location: class Main
Main.java:20: error: cannot find symbol
	for(i = 0;i < n;i++){
	          ^
  symbol:   variable i
  location: class Main
Main.java:20: error: cannot find symbol
	for(i = 0;i < n;i++){
	                ^
  symbol:   variable i
  location: class Main
Main.java:21: error: cannot find symbol
	variance = (scores[i]-average)^2+variance;
	            ^
  symbol:   variable scores
  location: class Main
Main.java:21: error: cannot find symbol
	variance = (scores[i]-average)^2+variance;
	                   ^
  symbol:   variable i
  location: class Main
16 errors
Language: Java

import java.util.Scanner;
public class Hyouhen {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int isum=0;
        double dsum;
        double ave;
        double s;
        double tmp=0;
        int num = sc.nextInt();
        if(num==0) System.exit(0);
        int[] score=new int[num];
        for (int i = 0; i < num; i++) {
            score[i]=sc.nextInt();
            isum+=score[i];
        }
        dsum=isum;
        ave=dsum/num;
        for(int i=0;i<num;i++){
            tmp+=Math.pow(score[i]-ave,2.0);
        }
        s=Math.sqrt(tmp/num);
        System.out.println(s);
    }
}



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

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

        while (sc.hasNext()) {
            int i = 0;
            double m = 0, sum = 0, a = 0, b = 0;
            double[] rem;
            rem = new double[100];

            int n = sc.nextInt();

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

            m = sum / n;

            for (i = 0; i < n; i++) {
                b += (rem[i] - m) * (rem[i] - m);
            }
            a = Math.sqrt(b / n);

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



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.*;

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

    while(true){
      int n = scan.nextInt();
      int[] score;
      int sum = 0, avg;
      double bunsan = 0;
      if(n==0) break;
      score = new int[n];
      for(int i=0;i<n;i++){
        score[i] = scan.nextInt();
        sum += score[i];
      }
      avg = sum / n;
      for(int i=0;i<n;i++){
        bunsan += (score[i]-avg)*(score[i]-avg);
      }
      bunsan /= n;
      bunsan = Math.sqrt(bunsan);
      System.out.println(bunsan);
    }
  }
}



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.Scanner;

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



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

import java.util.Scanner;

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


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

package StandardDevitation;

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];
                for (int i = 0; i < scores.length; i++) {
                    scores[i] = sc.nextInt();
                }
                double average = 0, variance = 0;
// ... 平均値averageと，分散varianceを計算しよう ...
                int b=0;
                for(int i=0; i<scores.length;i++) {
                    s=s+scores[i]
                }
                double s, a;
                average=s/n;
                for(int i=0; i<scores.length;i++) {
                    a = Math.pow((scores[i] - average), 2);
                    b = a + b; 
                }
                variance=b/n;    
                System.out.println(Math.sqrt(variance));
                }
            }
        }
    }
}


Compiler output:
Main.java:18: error: ';' expected
                    s=s+scores[i]
                                 ^
Main.java:32: error: class, interface, enum, or record expected
}
^
2 errors
Language: Java

import java.util.Scanner;

public class mathfunctuions {
	  public static void main(String[]args){
		    Scanner sc = new Scanner(System.in);
		    int ten[];
		    int i=0;
		    int sum=0;
		    int m=0;
		    int x=0;
		    int A=0;
		    ten = new int[1000];
		    	int n=sc.nextInt();
		    	for(i=0;i<n;++i)
		    	{
		    		ten[i]=sc.nextInt();
		    		sum=sum+ten[i];
		    	}
		    	m=sum/n;
		    	for(i=0;i<n;++i)
		    	{
		    		x=x+(ten[i]-m)*(ten[i]-m);
		    	}
		    	A=x/n;
		    	double a=Math.sqrt(A);
		    	System.out.println(a);
		    	sc.close();
		    }
}


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

import java.util.Scanner;

public class mathfunctuions {
	  public static void main(String[]args){
		    Scanner sc = new Scanner(System.in);
		    int ten[];
		    int i=0;
		    int sum=0;
		    int m=0;
		    int x=0;
		    double A=0;
		    ten = new int[1000];
		    	int n=sc.nextInt();
		    	for(i=0;i<n;++i)
		    	{
		    		ten[i]=sc.nextInt();
		    		sum=sum+ten[i];
		    	}
		    	m=sum/n;
		    	for(i=0;i<n;++i)
		    	{
		    		x=x+(ten[i]-m)*(ten[i]-m);
		    	}
		    	A=x/n;
		    	double a=Math.sqrt(A);
		    	System.out.println(a);
		    	sc.close();
		    }
}


Compiler output:
Main.java:3: error: class mathfunctuions is public, should be declared in a file named mathfunctuions.java
public class mathfunctuions {
       ^
1 error
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=0;
		    int sum=0;
		    double m=0;
		    int x=0;
		    double A=0;
		    ten = new int[1000];
		    	int n=sc.nextInt();
		    	for(i=0;i<n;++i)
		    	{
		    		ten[i]=sc.nextInt();
		    		sum=sum+ten[i];
		    	}
		    	m=sum/n;
		    	for(i=0;i<n;++i)
		    	{
		    		x=x+(ten[i]-m)*(ten[i]-m);
		    	}
		    	A=x/n;
		    	double a=Math.sqrt(A);
		    	System.out.println(a);
		    	sc.close();
		    }
}


Compiler output:
Main.java:22: error: incompatible types: possible lossy conversion from double to int
		    		x=x+(ten[i]-m)*(ten[i]-m);
		    		   ^
1 error
Language: Java

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];
	            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 += (double)scores[i] / scores.length;
                }
                for (int i = 0; i < scores.length; i++) {
                    variance += (double)Math. pow(scores[i]-average, 2.0) / scores.length;
                }
                System.out.println(Math.sqrt(variance));
            }
        }
    }
}



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

import java.util.Scanner;

public class Main25{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int i, j, k;
        double a, b, m, n;
        double[] Score = new double[100];
        for(i = 0; ; i++){
            int Total = 0;
            double Totalup = 0.0;
            n = sc.nextDouble();
            if(n == 0.0){
                break;
            } else{
                for(j = 0; j < n; j++){
                    Score[j] = sc.nextDouble();
                    Total += Score[j];
                }
                m = Total / n;
            }
            for(k = 0; k < n; k++){
                Totalup += Math.pow(Score[k] - m, 2.0);
            }
            a = Totalup / n;
            b = Math.pow(a, 0.5);
            System.out.println(b);
        }
    }
}


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

class Main{
  public static void main(String[] args) throws IOException{
    Scanner scan=new Scanner(System.in);
    while(true){
      int n=Integer.parseInt(scan.next());
      if(n==0)break;
      int[] s=new int[n];
      for(int i=0;i<n;i++){
        s[i]=Integer.parseInt(scan.next());
      }
      double sum=0;
      double sum2=0;
      for(int i=0;i<n;i++){
        sum+=s[i];
        sum2+=Math.pow(s[i],2);
      }
      double avg=sum/n;
      double dev=Math.sqrt(sum2/n-Math.pow(avg,2));
      System.out.println(dev);
    }
  }
}


Compiler output:
Main.java:2: error: cannot find symbol
  public static void main(String[] args) throws IOException{
                                                ^
  symbol:   class IOException
  location: class Main
Main.java:3: error: cannot find symbol
    Scanner scan=new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
    Scanner scan=new Scanner(System.in);
                     ^
  symbol:   class Scanner
  location: class Main
3 errors
Language: Java

import java.util.Scanner;
public class Main{
	public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n;
        double ave=0,sum=0,sum2=0;
        double[] data = new int[1001];
        double[] data2 = new double[1001];
        
        
        while(true) {
            n = sc.nextInt();
            if(n==0)break;
            for(int i = 0;i<n;i++) {
            	data[i]=sc.nextInt();
            	sum +=data[i];
            }
            ave = sum/n;
        	
            for(int i = 0;i<n;i++) {
            	data2[i]=Math.pow(data[i]-ave, 2);
            	sum2 +=data2[i];
            	}
            double ans = sum2/n;
            System.out.printf("%f\n", Math.sqrt(ans));
            
            
            
            sum =0 ;
            sum2=0;
        }
        
        
        
        
        sc.close();
	}


}



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



import java.awt.List;
import java.util.ArrayList;
import java.util.Scanner;

public class Math {

	public static void main(String[] args) {
		// 標準入力
		Scanner sc = new Scanner(System.in);
		int input_number = 0;
		int points = 0;
		int all_points = 0;
		int roop = 0;
		// 入力数の配列
		ArrayList<Integer> input_array = new ArrayList<Integer>();
		// 答えの配列
		double[] double_array = new double[100];
		// 何個入力があるか
		while (sc.hasNext()) {
			input_number = sc.nextInt();

			// 入力値が0だった場合、結果を出力
			if (input_number == 0) {

			}

			// 入力個数分まわす
			for (int i = 0; i < input_number; i++) {

				//
				while (sc.hasNext()) {
					//
					points = sc.nextInt();
					input_array.add(points);
					break;
				}
				// 合計値
				all_points += points;
			}
			// インスタンスを作る
			Sta_Math obj = new Sta_Math(all_points, input_number, input_array);
			obj.cast_standard();
			//
			double_array[roop] = obj.getStandard();
			roop++;
		}
		for (int i = 0; i < roop; i++) {
			System.out.println(double_array[i]);
		}
	}
}

class Sta_Math {

	// 合計値
	private int all = 0;
	// 入力個数
	private int input_number = 0;
	// 平均
	private int average = 0;
	// 標準偏差
	private double standard = 0;
	// 入力数字列
	ArrayList<Integer> input_arr = null;

	// コンストラクタ
	Sta_Math(int a, int i, ArrayList<Integer> b) {
		all = a;
		input_number = i;
		input_arr = b;
		average = all / input_number;
	}

	// 標準偏差を計算
	public void cast_standard() {
		int hoge = 0;
		// 分子に使う数
		int namerator = 0;
		// 入っている数列分まわす
		for (int val : input_arr) {
			hoge = (val - average) * (val - average);
			namerator += hoge;
		}

		standard = namerator / input_number;
	}

	// ゲッター
	public double getStandard() {
		return standard;
	}

}

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



import java.awt.List;
import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// 標準入力
		Scanner sc = new Scanner(System.in);
		int input_number = 0;
		int points = 0;
		int all_points = 0;
		int roop = 0;
		// 入力数の配列
		ArrayList<Integer> input_array = new ArrayList<Integer>();
		// 答えの配列
		double[] double_array = new double[100];
		// 何個入力があるか
		while (sc.hasNext()) {
			input_number = sc.nextInt();

			// 入力値が0だった場合、結果を出力
			if (input_number == 0) {
                            break;
			}

			// 入力個数分まわす
			for (int i = 0; i < input_number; i++) {

				//
				while (sc.hasNext()) {
					//
					points = sc.nextInt();
					input_array.add(points);
					break;
				}
				// 合計値
				all_points += points;
			}
			// インスタンスを作る
			Sta_Math obj = new Sta_Math(all_points, input_number, input_array);
			obj.cast_standard();
			//
			double_array[roop] = obj.getStandard();
			roop++;
		}
		for (int i = 0; i < roop; i++) {
			System.out.println(double_array[i]);
		}
	}
}

class Sta_Math {

	// 合計値
	private int all = 0;
	// 入力個数
	private int input_number = 0;
	// 平均
	private int average = 0;
	// 標準偏差
	private double standard = 0;
	// 入力数字列
	ArrayList<Integer> input_arr = null;

	// コンストラクタ
	Sta_Math(int a, int i, ArrayList<Integer> b) {
		all = a;
		input_number = i;
		input_arr = b;
		average = all / input_number;
	}

	// 標準偏差を計算
	public void cast_standard() {
		int hoge = 0;
		// 分子に使う数
		int namerator = 0;
		// 入っている数列分まわす
		for (int val : input_arr) {
			hoge = (val - average) * (val - average);
			namerator += hoge;
		}

		standard = Math.sqrt(namerator / input_number)
	}

	// ゲッター
	public double getStandard() {
		return standard;
	}

}

Compiler output:
Main.java:87: error: ';' expected
		standard = Math.sqrt(namerator / input_number)
		                                              ^
1 error
Language: Java



import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;

public class test {
	
	public static void main(String[] args){
		
		//リストを用意
		ArrayList<Integer> testInt = new ArrayList<Integer>();
		
		//リストに要素を追加
		testInt.add(5);
		testInt.add(222);
		testInt.add(1);
		testInt.add(10);
		
		//リストを降順で並べたい
		Collections.sort(testInt);
		
		//結果を表示
		for(int i = 0;i < 4;i++){
			System.out.println(testInt.get(i));
		}
	}

}

//降順に並べたい
class testCompare implements Comparator {
	
	public int compare(Object s, Object t) {
		//比較する数
		int ss = Integer.parseInt(s.toString());
		int tt = Integer.parseInt(t.toString());
		
		//降順で結果を返す
		return  -(ss - tt);
	}
}

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

import java.util.Scanner;
import java.lang.Math;
public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);	
		int n = scan.nextInt();
		int[] data = new int[n];
		long sum=0;
		while(n!=0){
			for(int i=0;i<n;i++){
				data[i]=scan.nextInt();
			}
			int ave=average(data,n);
			for(int i=0;i<n;i++){
				sum+=(data[i]*data[i]);
			}
			System.out.println(Math.sqrt(sum/n-ave*ave));
			n=scan.nextInt();
			data = new int[n];
			sum=0;
		}
	}
	public static int average(int[] data,int n){
		long sum=0;
		for(int i=0;i<n;i++){
			sum+=data[i];
		}
		return sum/n;
	}
}

Compiler output:
Main.java:28: error: incompatible types: possible lossy conversion from long to int
		return sum/n;
		          ^
1 error
Language: Java

import java.util.Scanner;
import java.lang.Math;
public class Diviation {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);	
		int n = scan.nextInt();
		int[] data = new int[n];
		double sum=0;
		while(n!=0){
			for(int i=0;i<n;i++){
				data[i]=scan.nextInt();
			}
			int ave=average(data,n);
			for(int i=0;i<n;i++){
				sum+=(data[i]*data[i]);
			}
			System.out.println(Math.sqrt(sum/n-ave*ave));
			n=scan.nextInt();
			data = new int[n];
			sum=0;
		}
	}
	public static int average(int[] data,int n){
		int sum=0;
		for(int i=0;i<n;i++){
			sum+=data[i];
		}
		return sum/n;
	}
}

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

#include <stdio.h> 
 #include <math.h> 
 
 
 int main(){ 
     int n; 
    int i, j=0, sum; 
     int score[MAX]; 
double ave, tmp; 
     double dev[MAX]; 

 
     while(1){ 
         scanf("%d", &n); 
         if(n==0)break; 
sum=0; 
        for(i=0;i<n;i++){ 
scanf("%d", &score[i]); 
             sum+=score[i]; 
} 
         ave=(double)sum/(double)n; 
         tmp=0.0; 
         for(i=0;i<n;i++){ 
tmp+=pow(score[i]-ave, 2); 
         } 
         dev[j++]=sqrt(tmp/(double)n); 
     } 
     for(i=0;i<j;i++){ 
         printf("%f\n", dev[i]); 
     } 
return 0; 
 } 



Compiler output:
main.c: In function 'main':
main.c:8:16: error: 'MAX' undeclared (first use in this function)
    8 |      int score[MAX];
      |                ^~~
main.c:8:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h> 

 
 
 int main(){ 
     int n; 
    int i, j=0, sum; 
     int score[MAX]; 
double ave, tmp; 
     double dev[MAX]; 

 
     while(1){ 
         scanf("%d", &n); 
         if(n==0)break; 
sum=0; 
        for(i=0;i<n;i++){ 
scanf("%d", &score[i]); 
             sum+=score[i]; 
} 
         ave=(double)sum/(double)n; 
         tmp=0.0; 
         for(i=0;i<n;i++){ 
tmp+=pow(score[i]-ave, 2); 
         } 
         dev[j++]=sqrt(tmp/(double)n); 
     } 
     for(i=0;i<j;i++){ 
         printf("%f\n", dev[i]); 
     } 
return 0; 
 } 



Compiler output:
main.c: In function 'main':
main.c:8:16: error: 'MAX' undeclared (first use in this function)
    8 |      int score[MAX];
      |                ^~~
main.c:8:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:24:6: error: implicit declaration of function 'pow' [-Wimplicit-function-declaration]
   24 | tmp+=pow(score[i]-ave, 2);
      |      ^~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'pow'
    1 | #include <stdio.h>
  +++ |+#include <math.h>
    2 | 
main.c:24:6: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch]
   24 | tmp+=pow(score[i]-ave, 2);
      |      ^~~
main.c:24:6: note: include '<math.h>' or provide a declaration of 'pow'
main.c:26:19: error: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
   26 |          dev[j++]=sqrt(tmp/(double)n);
      |                   ^~~~
main.c:26:19: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:26:19: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch]
main.c:26:19: note: include '<math.h>' or provide a declaration of 'sqrt'
Language: C

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

int main()
{
 int n,i,j,s,sum,k;
 double m,a,shiguma;

for(i=0;;i++){
        scanf("%d",&n);
        if(n==0)break;
        for(j=0;j<n;j++){
                         sum=0;
                         scanf("%d",&s);
                         sum+=s;
                         }
        m=sum/n:
        for(k=0;k<n;k++){
                         shiguma=0;
                         scanf("%d",&s);
                         shiguma+=pow(s-m);
                         }
        a=sqrt(shiguma)/n;
        printf("%f\n",a);
                }
 return 0;
}



Compiler output:
main.c: In function 'main':
main.c:17:16: error: expected ';' before ':' token
   17 |         m=sum/n:
      |                ^
      |                ;
Language: C

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

int main()
{
 int n,i,j,s,sum,k;
 double m,a,shiguma;

for(i=0;;i++){
        scanf("%d",&n);
        if(n==0)break;
        for(j=0;j<n;j++){
                         sum=0;
                         scanf("%d",&s);
                         sum+=s;
                         }
        m=sum/n;
        for(k=0;k<n;k++){
                         shiguma=0;
                         scanf("%d",&s);
                         shiguma+=pow(s-m);
                         }
        a=sqrt(shiguma)/n;
        printf("%f\n",a);
                }
 return 0;
}



Compiler output:
main.c: In function 'main':
main.c:21:35: error: too few arguments to function 'pow'
   21 |                          shiguma+=pow(s-m);
      |                                   ^~~
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from main.c:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:173:1: note: declared here
  173 | __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
      | ^~~~~~~~~~~~~~
Language: C

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

int main()
{
 int j,s[1001],sum;
 double n,m,a,shiguma,kake;

for(;;){
        scanf("%lf",&n);
        if(n==0)break;
        for(j=0;j<n;j++){
                         sum=0;
                         scanf("%d",&s[i]);
                         sum+=s;
                         }
        m=sum/n;
        for(j=0;j<n;j++){
                         shiguma=0;
                         shiguma+=pow(s[j],2);
                         }
        a=sqrt(shiguma)/n;
        printf("%f\n",a);
                }
 return 0;
}



Compiler output:
main.c: In function 'main':
main.c:14:40: error: 'i' undeclared (first use in this function)
   14 |                          scanf("%d",&s[i]);
      |                                        ^
main.c:14:40: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:29: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion]
   15 |                          sum+=s;
      |                             ^~
Language: C

#include <stdio.h>
#include <math.h>
#define MAX 1000int main(){    
int n;    
int i, j=0, sum;    
int score[MAX];    
double ave, tmp;    
double dev[MAX];    
while(1){        
scanf("%d", &n);        
if(n==0)break;        
sum=0;        
for(i=0;i<n;i++){            
scanf("%d", &score[i]);            
sum+=score[i];        }        
ave=(double)sum/(double)n;        
tmp=0.0;        
for(i=0;i<n;i++){            
tmp+=pow(score[i]-ave, 2);        }        
dev[j++]=sqrt(tmp/(double)n);    }    
for(i=0;i<j;i++){        
printf("%f\n", dev[i]);    }    
return 0;}


Compiler output:
main.c:3:13: error: invalid suffix "int" on integer constant
    3 | #define MAX 1000int main(){
      |             ^~~~~~~
main.c:6:11: note: in expansion of macro 'MAX'
    6 | int score[MAX];
      |           ^~~
main.c:3:21: error: expected ']' before 'main'
    3 | #define MAX 1000int main(){
      |                     ^~~~
main.c:6:11: note: in expansion of macro 'MAX'
    6 | int score[MAX];
      |           ^~~
main.c:3:13: error: invalid suffix "int" on integer constant
    3 | #define MAX 1000int main(){
      |             ^~~~~~~
main.c:8:12: note: in expansion of macro 'MAX'
    8 | double dev[MAX];
      |            ^~~
Language: C

#include <stdio.h>
#include <math.h>
#define MAX 1000int main()
{    
int n;    
int i, j=0, sum;    
int score[MAX];    
double ave, tmp;    
double dev[MAX];    
while(1){        
scanf("%d", &n);        
if(n==0)break;        
sum=0;        
for(i=0;i<n;i++)
{            
scanf("%d", &score[i]);            
sum+=score[i];        
}        
ave=(double)sum/(double)n;        
tmp=0.0;        
for(i=0;i<n;i++)
{            
tmp+=pow(score[i]-ave, 2);        
}        
dev[j++]=sqrt(tmp/(double)n);    
}    
for(i=0;i<j;i++)
{        
printf("%f\n", dev[i]);    
}    
return 0;
}


Compiler output:
main.c:4:1: error: expected identifier or '(' before '{' token
    4 | {
      | ^
main.c:3:13: error: invalid suffix "int" on integer constant
    3 | #define MAX 1000int main()
      |             ^~~~~~~
main.c:7:11: note: in expansion of macro 'MAX'
    7 | int score[MAX];
      |           ^~~
main.c:3:13: error: invalid suffix "int" on integer constant
    3 | #define MAX 1000int main()
      |             ^~~~~~~
main.c:9:12: note: in expansion of macro 'MAX'
    9 | double dev[MAX];
      |            ^~~
Language: C

#include <stdio.h>
#include <math.h>
#define MAX 1000int main(){    
int n;    
int i, j=0, sum;    
int score[MAX];    
double ave, tmp;    
double dev[MAX];    
while(1){        scanf("%d", &n);        
if(n==0)break;        
sum=0;        
for(i=0;i<n;i++){            scanf("%d", &score[i]);            
sum+=score[i];        
}        
ave=(double)sum/(double)n;        
tmp=0.0;        
for(i=0;i<n;i++){            tmp+=pow(score[i]-ave, 2);        
}        
dev[j++]=sqrt(tmp/(double)n);    
}    
for(i=0;i<j;i++){        
printf("%f\n", dev[i]);    }    
return 0;}


Compiler output:
main.c:3:13: error: invalid suffix "int" on integer constant
    3 | #define MAX 1000int main(){
      |             ^~~~~~~
main.c:6:11: note: in expansion of macro 'MAX'
    6 | int score[MAX];
      |           ^~~
main.c:3:21: error: expected ']' before 'main'
    3 | #define MAX 1000int main(){
      |                     ^~~~
main.c:6:11: note: in expansion of macro 'MAX'
    6 | int score[MAX];
      |           ^~~
main.c:3:13: error: invalid suffix "int" on integer constant
    3 | #define MAX 1000int main(){
      |             ^~~~~~~
main.c:8:12: note: in expansion of macro 'MAX'
    8 | double dev[MAX];
      |            ^~~
Language: C

#include <stdio.h>
#include <math.h>
#define MAX 1000int main(){    
int n;    
int i, j=0, sum;    
int score[MAX];    
double ave, tmp;    
double dev[MAX];    
while(1){        
scanf("%d", &n);        
if(n==0)break;        
sum=0;        
for(i=0;i<n;i++){            
scanf("%d", &score[i]);            
sum+=score[i];        
}        
ave=(double)sum/(double)n;        
tmp=0.0;        
for(i=0;i<n;i++){            
tmp+=pow(score[i]-ave, 2);        
}        
dev[j++]=sqrt(tmp/(double)n);    
}    
for(i=0;i<j;i++){        
printf("%f\n", dev[i]);    }    
return 0;
}


Compiler output:
main.c:3:13: error: invalid suffix "int" on integer constant
    3 | #define MAX 1000int main(){
      |             ^~~~~~~
main.c:6:11: note: in expansion of macro 'MAX'
    6 | int score[MAX];
      |           ^~~
main.c:3:21: error: expected ']' before 'main'
    3 | #define MAX 1000int main(){
      |                     ^~~~
main.c:6:11: note: in expansion of macro 'MAX'
    6 | int score[MAX];
      |           ^~~
main.c:3:13: error: invalid suffix "int" on integer constant
    3 | #define MAX 1000int main(){
      |             ^~~~~~~
main.c:8:12: note: in expansion of macro 'MAX'
    8 | double dev[MAX];
      |            ^~~
Language: C

{
    int n=1, i, j;
    
    while (n != 0)
    {
        double a[1000], goukei = 0, heikin = 0, siguma = 0, hensa = 0;

        scanf("%d", &n);

        for (i = 1;i <= n;i++)
        {
            scanf("%lf", &a[i]);
            goukei = goukei + a[i];
        }

        heikin = goukei / n;

        for (j = 1;j <= n;j++)
        {
            siguma = siguma + pow((a[j] - heikin), 2);
        }

        hensa = sqrt(siguma / n);

        printf("%f\n", hensa);
    }
    return 0;

}


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

#include<iostream>
#include<math.h>
#include<stdio.h>
using namespace std;
 
int main()
{
  double n,m,s[1000],bun;
 
  while(cin>>n && n){
    m=0;bun=0;
    for(int i=0;i<n;i++){
      cin>>s[i];
      m+=s[i];
    }
    m/=n;
    for(int i=0;i<n;i++){
      bun+=(s[i]-m)*(s[i]-m);
    }
    bun/=n;
    printf("%.8f\n",sqrt(bun));
  }
  return 0;
}


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

m#include<stdio.h>
#include<math.h>
int main(){
int i,n,sum=0,s[1001];
double ave,a=0;
while(1){
scanf("%d",&n);
if(n==0) break;
for(i=0;i<n;i++){
scanf("%d",&s[i]);
sum+=s[i];

}
ave=(double)sum/n;

  for(i=0;i<n;i++){
    a+=((s[i]-ave)*(s[i]-ave));
  }
  printf("%f\n",sqrt((double)a/n));
  sum=0;
  a=0;
  }

return 0;

}


Compiler output:
main.c:1:2: error: stray '#' in program
    1 | m#include<stdio.h>
      |  ^
main.c:1:1: error: unknown type name 'm'
    1 | m#include<stdio.h>
      | ^
main.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | m#include<stdio.h>
      |          ^
main.c: In function 'main':
main.c:7:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 | scanf("%d",&n);
      | ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    2 | #include<math.h>
  +++ |+#include <stdio.h>
    3 | int main(){
main.c:7:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 | scanf("%d",&n);
      | ^~~~~
main.c:7:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:19:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   19 |   printf("%f\n",sqrt((double)a/n));
      |   ^~~~~~
main.c:19:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:19:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:19:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

int main(void)
{
    int i,j,n;
    double x,mean,poi[1010];
    
    while(n!=0){
        mean=0;
        scanf("%d",&n);
        for(i=0;i<n;i++){
            scanf("%lf",&poi[i]);
            x+=poi[i];
        }
        mean=double(x/n);
        x=0;
        for(i=0;i<n;i++){
            x+=pow(poi[i]-mean,2);
        }
        mean=sqrt(x/n);
        printf("%f\n",mean);
    }
    return 0;
    
}


Compiler output:
main.c: In function 'main':
main.c:16:14: error: expected expression before 'double'
   16 |         mean=double(x/n);
      |              ^~~~~~
Language: C

//#define _CRT_SECURE_NO_WARNINGS

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

int main()
{
	int n, i, sum = 0, s[1000] = {};
	double a = 0,average=0;
	//while (1)
	//{
		scanf("%d",&n);
		if (n == 0)
		{
			break;
		}
		for (i = 0; i < n; i++)
		{
			scanf("%d",&s[i]);
			sum += s[i];
		}
		average = sum / (double)n;
		printf("%lf\n",average);
		for (i = 0; i < n; i++)
		{
			a += pow(s[i] - average, 2.0);
		}
		printf("%lf\n",sqrt(a / n));
	//	scanf("%d",&a);
	//}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:25: error: break statement not within loop or switch
   15 |                         break;
      |                         ^~~~~
Language: C


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

int main()
{
	int n, i, sum, s[1000] = {};
	double a = 0,average=0;
	while (1)
	{
		a = 0; sum = 0; s[1000] = {0};
		scanf("%d",&n);
		if (n == 0)
		{
			break;
		}
		for (i = 0; i < n; i++)
		{
			scanf("%d",&s[i]);
			sum += s[i];
		}
		average = sum / n;
		for (i = 0; i < n; i++)
		{
			a += pow(s[i] - average, 2.0);
		}
		printf("%lf\n",sqrt(a / n));
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:43: error: expected expression before '{' token
   11 |                 a = 0; sum = 0; s[1000] = {0};
      |                                           ^
Language: C

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

int main()
{
	int n, i, sum, s[1000] = {};
	double a = 0,average=0;
	while (1)
	{
		a = 0; sum = 0; s[1000] = {};
		scanf("%d",&n);
		if (n == 0)
		{
			break;
		}
		for (i = 0; i < n; i++)
		{
			scanf("%d",&s[i]);
			sum += s[i];
		}
		average = sum / n;
		for (i = 0; i < n; i++)
		{
			a += pow(s[i] - average, 2.0);
		}
		printf("%lf\n",sqrt(a / n));
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:43: error: expected expression before '{' token
   10 |                 a = 0; sum = 0; s[1000] = {};
      |                                           ^
Language: C

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

int main()
{
	int n, i, sum, s[1000] = {};
	double a, average;
	while (1)
	{
		a = 0; sum = 0; s[1000] = {};
		scanf("%d", &n);
		if (n == 0)
		{
			break;
		}
		for (i = 0; i < n; i++)
		{
			scanf("%d", &s[i]);
			sum += s[i];
		}
		average = sum / n;
		for (i = 0; i < n; i++)
		{
			a += pow(s[i] - average, 2.0);
		}
		printf("%lf\n", sqrt(a / n));
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:43: error: expected expression before '{' token
   10 |                 a = 0; sum = 0; s[1000] = {};
      |                                           ^
Language: C

#include<stdio.h>
#include<math.h>
int main(void){
double i,r,n[1000],sum=0,ave;
while(1){
scanf("%lf",&r);
if(r==0){break;}
for(i=0;i<r;i++){
scanf("%lf",&n[i]);
sum+=n[i];
}
ave=sum/r;
sum=0;
for(i=0;i<r;i++){
sum+=(n[i]-ave)*(n[i]-ave);
}
sum=sum/r;
printf("%ld\n",sqrt(sum));
sum=0;
}

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:15: error: array subscript is not an integer
    9 | scanf("%lf",&n[i]);
      |               ^
main.c:10:7: error: array subscript is not an integer
   10 | sum+=n[i];
      |       ^
main.c:15:8: error: array subscript is not an integer
   15 | sum+=(n[i]-ave)*(n[i]-ave);
      |        ^
main.c:15:19: error: array subscript is not an integer
   15 | sum+=(n[i]-ave)*(n[i]-ave);
      |                   ^
Language: C

#include<stdio.h>
#include<math.h>
int main(void){
double i,r,n[1000],sum=0,ave;
while(1){
scanf("%lf",&r);
if(r==0){break;}
for(i=0;i<r;i++){
scanf("%lf",&n[i]);
sum+=n[i];
}
ave=sum/r;
sum=0;
for(i=0;i<r;i++){
sum+=(n[i]-ave)*(n[i]-ave);
}
sum=sum/r;
printf("%lf\n",sqrt(sum));
sum=0;
}

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:15: error: array subscript is not an integer
    9 | scanf("%lf",&n[i]);
      |               ^
main.c:10:7: error: array subscript is not an integer
   10 | sum+=n[i];
      |       ^
main.c:15:8: error: array subscript is not an integer
   15 | sum+=(n[i]-ave)*(n[i]-ave);
      |        ^
main.c:15:19: error: array subscript is not an integer
   15 | sum+=(n[i]-ave)*(n[i]-ave);
      |                   ^
Language: C

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

int main(){
  int i,n,s[1000];
  double a.m;

  while(1){
    scanf("%d",&n);
    if(n==0)break;
    m=0;
    for(i=0;i<n;i++){
      scanf("%d",&s[i]);
      m += s[i];
    }
    m /= n;
    a=0.0;
    for(i=0;i<n;i++)
      a += (s[i]-m)*(s[i]-m);
    a=a/n;
    a=sqrt(a);
    printf("%f\n",a);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    6 |   double a.m;
      |           ^
main.c:6:11: error: expected expression before '.' token
main.c:11:5: error: 'm' undeclared (first use in this function)
   11 |     m=0;
      |     ^
main.c:11:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:5: error: 'a' undeclared (first use in this function)
   17 |     a=0.0;
      |     ^
Language: C

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

int main(){
  int i,n,s[1000];
  double a.m;

  while(1){
    scanf("%d",&n);
    if(n==0)break;
    m=0.0;
    for(i=0;i<n;i++){
      scanf("%d",&s[i]);
      m += s[i];
    }
    m /= n;
    a=0.0;
    for(i=0;i<n;i++)
      a += (s[i]-m)*(s[i]-m);
    a=a/n;
    a=sqrt(a);
    printf("%f\n",a);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    6 |   double a.m;
      |           ^
main.c:6:11: error: expected expression before '.' token
main.c:11:5: error: 'm' undeclared (first use in this function)
   11 |     m=0.0;
      |     ^
main.c:11:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:5: error: 'a' undeclared (first use in this function)
   17 |     a=0.0;
      |     ^
Language: C

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

int main()
{
    while (1){
        int n;

        scanf(" %d", &n);
        if (n == 0){
            break;
        }

        int score[n];

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

        int sum = 0;
        double ave;
       
        for (int i = 0; i < n; i++){
            sum += score[i];
        }
        
        ave = (double)sum / n;

        double alpha = 0;

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

        printf("%lf\n", sqrt(alpha/n));
    }

    return 0;
}
    

Compiler output:
/usr/bin/ld: /tmp/ccn3zzo2.o: in function `main':
main.c:(.text+0x155): undefined reference to `pow'
/usr/bin/ld: main.c:(.text+0x192): undefined reference to `sqrt'
collect2: error: ld returned 1 exit status
Language: C

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

int main()
{
    while (1){
        int n;

        scanf(" %d", &n);
        if (n == 0){
            break;
        }

        int score[n];

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

        int sum = 0;
        double ave;
       
        for (int i = 0; i < n; i++){
            sum += score[i];
        }
        
        ave = (double)sum / n;

        double alpha = 0;

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

        printf("%lf\n", sqrt(alpha/n));
    }

    return 0;
}
    

Compiler output:
/usr/bin/ld: /tmp/ccEdpQDL.o: in function `main':
main.c:(.text+0x155): undefined reference to `pow'
/usr/bin/ld: main.c:(.text+0x192): undefined reference to `sqrt'
collect2: error: ld returned 1 exit status
Language: C

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

int main()
{
    while (1){
        int n;

        scanf(" %d", &n);
        if (n == 0){
            break;
        }

        int score[n];

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

        int sum = 0;
        double ave;
       
        for (int i = 0; i < n; i++){
            sum += score[i];
        }
        
        ave = (double)sum / n;

        double alpha = 0;

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

        printf("%lf\n", sqrt(alpha/n));
    }

    return 0;
}
    

Compiler output:
/usr/bin/ld: /tmp/ccwUmlRK.o: in function `main':
main.c:(.text+0x155): undefined reference to `pow'
/usr/bin/ld: main.c:(.text+0x192): undefined reference to `sqrt'
collect2: error: ld returned 1 exit status