Language: Java

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

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
??
^
Main.java:4: error: illegal start of type
????????public static void main(String[] args) {
^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
 ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
  ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
   ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
    ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
     ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
      ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
       ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
        ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
         ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
          ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
           ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
            ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
             ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
              ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
               ^
Main.java:5: error: : expected
????????????????Scanner sc = new Scanner(System.in);
                       ^
Main.java:5: error: : expected
????????????????Scanner sc = new Scanner(System.in);
                                                   ^
Main.java:6: error: illegal start of expression
????????????????while (true) {
^
Main.java:6: error: illegal start of expression
????????????????while (true) {
 ^
Main.java:6: error: illegal start of expression
????????????????while (true) {
  ^
Main.java:6: error: illegal start of expression
????????????????while (true) {
   ^
Main.java:6: error: illegal start of expression
????????????????while (true) {
    ^
Main.java:6: error: illegal start of expression
????????????????while (true) {
     ^
Main.java:6: error: illegal start of expression
????????????????while (true) {
      ^
Main.java:6: error: illegal start of expression
????????????????while (true) {
       ^
Main.java:6: error: illegal start of expression
????????????????while (true) {
        ^
Main.java:6: error: illegal start of expression
????????????????while (true) {
         ^
Main.java:6: error: illegal start of expression
????????????????while (true) {
          ^
Main.java:6: error: illegal start of expression
????????????????while (true) {
           ^
Main.java:6: error: illegal start of expression
????????????????while (true) {
            ^
Main.java:6: error: illegal start of expression
????????????????while (true) {
             ^
Main.java:6: error: illegal start of expression
????????????????while (true) {
              ^
Main.java:6: error: illegal start of expression
????????????????while (true) {
               ^
Main.java:6: error: illegal start of expression
????????????????while (true) {
                ^
Main.java:7: error: illegal start of expression
????????????????????????int n = sc.nextInt();
^
Main.java:7: error: illegal start of expression
????????????????????????int n = sc.nextInt();
 ^
Main.java:7: error: illegal start of expression
????????????????????????int n = sc.nextInt();
  ^
Main.java:7: error: illegal start of expression
????????????????????????int n = sc.nextInt();
   ^
Main.java:7: error: illegal start of expression
????????????????????????int n = sc.nextInt();
    ^
Main.java:7: error: illegal start of expression
????????????????????????int n = sc.nextInt();
     ^
Main.java:7: error: illegal start of expression
????????????????????????int n = sc.nextInt();
      ^
Main.java:7: error: illegal start of expression
????????????????????????int n = sc.nextInt();
       ^
Main.java:7: error: illegal start of expression
????????????????????????int n = sc.nextInt();
        ^
Main.java:7: error: illegal start of expression
????????????????????????int n = sc.nextInt();
         ^
Main.java:7: error: illegal start of expression
????????????????????????int n = sc.nextInt();
          ^
Main.java:7: error: illegal start of expression
????????????????????????int n = sc.nextInt();
           ^
Main.java:7: error: illegal start of expression
????????????????????????int n = sc.nextInt();
            ^
Main.java:7: error: illegal start of expression
????????????????????????int n = sc.nextInt();
             ^
Main.java:7: error: illegal start of expression
????????????????????????int n = sc.nextInt();
              ^
Main.java:7: error: illegal start of expression
????????????????????????int n = sc.nextInt();
               ^
Main.java:7: error: illegal start of expression
????????????????????????int n = sc.nextInt();
                ^
Main.java:7: error: illegal start of expression
????????????????????????int n = sc.nextInt();
                 ^
Main.java:7: error: illegal start of expression
????????????????????????int n = sc.nextInt();
                  ^
Main.java:7: error: illegal start of expression
????????????????????????int n = sc.nextInt();
                   ^
Main.java:7: error: illegal start of expression
????????????????????????int n = sc.nextInt();
                    ^
Main.java:7: error: illegal start of expression
????????????????????????int n = sc.nextInt();
                     ^
Main.java:7: error: illegal start of expression
????????????????????????int n = sc.nextInt();
                      ^
Main.java:7: error: illegal start of expression
????????????????????????int n = sc.nextInt();
                       ^
Main.java:7: error: '.class' expected
????????????????????????int n = sc.nextInt();
                            ^
Main.java:7: error: : expected
????????????????????????int n = sc.nextInt();
                                            ^
Main.java:8: error: illegal start of expression
????????????????????????if (n == 0) {
^
Main.java:8: error: illegal start of expression
????????????????????????if (n == 0) {
 ^
Main.java:8: error: illegal start of expression
????????????????????????if (n == 0) {
  ^
Main.java:8: error: illegal start of expression
????????????????????????if (n == 0) {
   ^
Main.java:8: error: illegal start of expression
????????????????????????if (n == 0) {
    ^
Main.java:8: error: illegal start of expression
????????????????????????if (n == 0) {
     ^
Main.java:8: error: illegal start of expression
????????????????????????if (n == 0) {
      ^
Main.java:8: error: illegal start of expression
????????????????????????if (n == 0) {
       ^
Main.java:8: error: illegal start of expression
????????????????????????if (n == 0) {
        ^
Main.java:8: error: illegal start of expression
????????????????????????if (n == 0) {
         ^
Main.java:8: error: illegal start of expression
????????????????????????if (n == 0) {
          ^
Main.java:8: error: illegal start of expression
????????????????????????if (n == 0) {
           ^
Main.java:8: error: illegal start of expression
????????????????????????if (n == 0) {
            ^
Main.java:8: error: illegal start of expression
????????????????????????if (n == 0) {
             ^
Main.java:8: error: illegal start of expression
????????????????????????if (n == 0) {
              ^
Main.java:8: error: illegal start of expression
????????????????????????if (n == 0) {
               ^
Main.java:8: error: illegal start of expression
????????????????????????if (n == 0) {
                ^
Main.java:8: error: illegal start of expression
????????????????????????if (n == 0) {
                 ^
Main.java:8: error: illegal start of expression
????????????????????????if (n == 0) {
                  ^
Main.java:8: error: illegal start of expression
????????????????????????if (n == 0) {
                   ^
Main.java:8: error: illegal start of expression
????????????????????????if (n == 0) {
                    ^
Main.java:8: error: illegal start of expression
????????????????????????if (n == 0) {
                     ^
Main.java:8: error: illegal start of expression
????????????????????????if (n == 0) {
                      ^
Main.java:8: error: illegal start of expression
????????????????????????if (n == 0) {
                       ^
Main.java:8: error: illegal start of expression
????????????????????????if (n == 0) {
                        ^
Main.java:9: error: illegal start of expression
????????????????????????????????break;
^
Main.java:9: error: illegal start of expression
????????????????????????????????break;
 ^
Main.java:9: error: illegal start of expression
????????????????????????????????break;
  ^
Main.java:9: error: illegal start of expression
????????????????????????????????break;
   ^
Main.java:9: error: illegal start of expression
????????????????????????????????break;
    ^
Main.java:9: error: illegal start of expression
????????????????????????????????break;
     ^
Main.java:9: error: illegal start of expression
????????????????????????????????break;
      ^
Main.java:9: error: illegal start of expression
????????????????????????????????break;
       ^
Main.java:9: error: illegal start of expression
????????????????????????????????break;
        ^
Main.java:9: error: illegal start of expression
????????????????????????????????break;
         ^
Main.java:9: error: illegal start of expression
????????????????????????????????break;
          ^
Main.java:9: error: illegal start of expression
????????????????????????????????break;
           ^
100 errors
only showing the first 100 errors, of 121 total; use -Xmaxerrs if you would like to see mor