Language: Java

import java.util.*;
class Main {
 
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int n = stdIn.nextInt();
        int[] x = new int[n];
        int[] y = new int[n];
        for(int i = 0; i < n; i++) {
            x[i] = stdIn.nextInt();
        }
        for(int i = 0; i < n; i++) {
            y[i] = stdIn.nextInt();
        }
        for(int p = 1; p <= 3; p++) {
            double dis = 0.0;
            for(int i = 0; i < n; i++) {
                dis += Math.pow(Math.abs(x[i] - y[i]),p);
            }
            System.out.println(Math.pow(dis, 1.0/p));
        }
        int max = 0;
        for(int i = 0; i < n; i++) {
            max = Math.max(max, Math.abs(x[i] - y[i]));
        }
        System.out.println(max);
         
    }
}


Compiler output:
Main.java:3: error: illegal character: '\u00a0'
?
^
Main.java:4: error: illegal character: '\u00a0'
????public static void main(String[] args) {
^
Main.java:4: error: illegal character: '\u00a0'
????public static void main(String[] args) {
 ^
Main.java:4: error: illegal character: '\u00a0'
????public static void main(String[] args) {
  ^
Main.java:4: error: illegal character: '\u00a0'
????public static void main(String[] args) {
   ^
Main.java:5: error: illegal character: '\u00a0'
????????Scanner stdIn = new Scanner(System.in);
^
Main.java:5: error: illegal character: '\u00a0'
????????Scanner stdIn = new Scanner(System.in);
 ^
Main.java:5: error: illegal character: '\u00a0'
????????Scanner stdIn = new Scanner(System.in);
  ^
Main.java:5: error: illegal character: '\u00a0'
????????Scanner stdIn = new Scanner(System.in);
   ^
Main.java:5: error: illegal character: '\u00a0'
????????Scanner stdIn = new Scanner(System.in);
    ^
Main.java:5: error: illegal character: '\u00a0'
????????Scanner stdIn = new Scanner(System.in);
     ^
Main.java:5: error: illegal character: '\u00a0'
????????Scanner stdIn = new Scanner(System.in);
      ^
Main.java:5: error: illegal character: '\u00a0'
????????Scanner stdIn = new Scanner(System.in);
       ^
Main.java:6: error: illegal character: '\u00a0'
????????int n = stdIn.nextInt();
^
Main.java:6: error: illegal character: '\u00a0'
????????int n = stdIn.nextInt();
 ^
Main.java:6: error: illegal character: '\u00a0'
????????int n = stdIn.nextInt();
  ^
Main.java:6: error: illegal character: '\u00a0'
????????int n = stdIn.nextInt();
   ^
Main.java:6: error: illegal character: '\u00a0'
????????int n = stdIn.nextInt();
    ^
Main.java:6: error: illegal character: '\u00a0'
????????int n = stdIn.nextInt();
     ^
Main.java:6: error: illegal character: '\u00a0'
????????int n = stdIn.nextInt();
      ^
Main.java:6: error: illegal character: '\u00a0'
????????int n = stdIn.nextInt();
       ^
Main.java:7: error: illegal character: '\u00a0'
????????int[] x = new int[n];
^
Main.java:7: error: illegal character: '\u00a0'
????????int[] x = new int[n];
 ^
Main.java:7: error: illegal character: '\u00a0'
????????int[] x = new int[n];
  ^
Main.java:7: error: illegal character: '\u00a0'
????????int[] x = new int[n];
   ^
Main.java:7: error: illegal character: '\u00a0'
????????int[] x = new int[n];
    ^
Main.java:7: error: illegal character: '\u00a0'
????????int[] x = new int[n];
     ^
Main.java:7: error: illegal character: '\u00a0'
????????int[] x = new int[n];
      ^
Main.java:7: error: illegal character: '\u00a0'
????????int[] x = new int[n];
       ^
Main.java:8: error: illegal character: '\u00a0'
????????int[] y = new int[n];
^
Main.java:8: error: illegal character: '\u00a0'
????????int[] y = new int[n];
 ^
Main.java:8: error: illegal character: '\u00a0'
????????int[] y = new int[n];
  ^
Main.java:8: error: illegal character: '\u00a0'
????????int[] y = new int[n];
   ^
Main.java:8: error: illegal character: '\u00a0'
????????int[] y = new int[n];
    ^
Main.java:8: error: illegal character: '\u00a0'
????????int[] y = new int[n];
     ^
Main.java:8: error: illegal character: '\u00a0'
????????int[] y = new int[n];
      ^
Main.java:8: error: illegal character: '\u00a0'
????????int[] y = new int[n];
       ^
Main.java:9: error: illegal character: '\u00a0'
????????for(int i = 0; i < n; i++) {
^
Main.java:9: error: illegal character: '\u00a0'
????????for(int i = 0; i < n; i++) {
 ^
Main.java:9: error: illegal character: '\u00a0'
????????for(int i = 0; i < n; i++) {
  ^
Main.java:9: error: illegal character: '\u00a0'
????????for(int i = 0; i < n; i++) {
   ^
Main.java:9: error: illegal character: '\u00a0'
????????for(int i = 0; i < n; i++) {
    ^
Main.java:9: error: illegal character: '\u00a0'
????????for(int i = 0; i < n; i++) {
     ^
Main.java:9: error: illegal character: '\u00a0'
????????for(int i = 0; i < n; i++) {
      ^
Main.java:9: error: illegal character: '\u00a0'
????????for(int i = 0; i < n; i++) {
       ^
Main.java:10: error: illegal character: '\u00a0'
????????????x[i] = stdIn.nextInt();
^
Main.java:10: error: illegal character: '\u00a0'
????????????x[i] = stdIn.nextInt();
 ^
Main.java:10: error: illegal character: '\u00a0'
????????????x[i] = stdIn.nextInt();
  ^
Main.java:10: error: illegal character: '\u00a0'
????????????x[i] = stdIn.nextInt();
   ^
Main.java:10: error: illegal character: '\u00a0'
????????????x[i] = stdIn.nextInt();
    ^
Main.java:10: error: illegal character: '\u00a0'
????????????x[i] = stdIn.nextInt();
     ^
Main.java:10: error: illegal character: '\u00a0'
????????????x[i] = stdIn.nextInt();
      ^
Main.java:10: error: illegal character: '\u00a0'
????????????x[i] = stdIn.nextInt();
       ^
Main.java:10: error: illegal character: '\u00a0'
????????????x[i] = stdIn.nextInt();
        ^
Main.java:10: error: illegal character: '\u00a0'
????????????x[i] = stdIn.nextInt();
         ^
Main.java:10: error: illegal character: '\u00a0'
????????????x[i] = stdIn.nextInt();
          ^
Main.java:10: error: illegal character: '\u00a0'
????????????x[i] = stdIn.nextInt();
           ^
Main.java:11: error: illegal character: '\u00a0'
????????}
^
Main.java:11: error: illegal character: '\u00a0'
????????}
 ^
Main.java:11: error: illegal character: '\u00a0'
????????}
  ^
Main.java:11: error: illegal character: '\u00a0'
????????}
   ^
Main.java:11: error: illegal character: '\u00a0'
????????}
    ^
Main.java:11: error: illegal character: '\u00a0'
????????}
     ^
Main.java:11: error: illegal character: '\u00a0'
????????}
      ^
Main.java:11: error: illegal character: '\u00a0'
????????}
       ^
Main.java:12: error: illegal character: '\u00a0'
????????for(int i = 0; i < n; i++) {
^
Main.java:12: error: illegal character: '\u00a0'
????????for(int i = 0; i < n; i++) {
 ^
Main.java:12: error: illegal character: '\u00a0'
????????for(int i = 0; i < n; i++) {
  ^
Main.java:12: error: illegal character: '\u00a0'
????????for(int i = 0; i < n; i++) {
   ^
Main.java:12: error: illegal character: '\u00a0'
????????for(int i = 0; i < n; i++) {
    ^
Main.java:12: error: illegal character: '\u00a0'
????????for(int i = 0; i < n; i++) {
     ^
Main.java:12: error: illegal character: '\u00a0'
????????for(int i = 0; i < n; i++) {
      ^
Main.java:12: error: illegal character: '\u00a0'
????????for(int i = 0; i < n; i++) {
       ^
Main.java:13: error: illegal character: '\u00a0'
????????????y[i] = stdIn.nextInt();
^
Main.java:13: error: illegal character: '\u00a0'
????????????y[i] = stdIn.nextInt();
 ^
Main.java:13: error: illegal character: '\u00a0'
????????????y[i] = stdIn.nextInt();
  ^
Main.java:13: error: illegal character: '\u00a0'
????????????y[i] = stdIn.nextInt();
   ^
Main.java:13: error: illegal character: '\u00a0'
????????????y[i] = stdIn.nextInt();
    ^
Main.java:13: error: illegal character: '\u00a0'
????????????y[i] = stdIn.nextInt();
     ^
Main.java:13: error: illegal character: '\u00a0'
????????????y[i] = stdIn.nextInt();
      ^
Main.java:13: error: illegal character: '\u00a0'
????????????y[i] = stdIn.nextInt();
       ^
Main.java:13: error: illegal character: '\u00a0'
????????????y[i] = stdIn.nextInt();
        ^
Main.java:13: error: illegal character: '\u00a0'
????????????y[i] = stdIn.nextInt();
         ^
Main.java:13: error: illegal character: '\u00a0'
????????????y[i] = stdIn.nextInt();
          ^
Main.java:13: error: illegal character: '\u00a0'
????????????y[i] = stdIn.nextInt();
           ^
Main.java:14: error: illegal character: '\u00a0'
????????}
^
Main.java:14: error: illegal character: '\u00a0'
????????}
 ^
Main.java:14: error: illegal character: '\u00a0'
????????}
  ^
Main.java:14: error: illegal character: '\u00a0'
????????}
   ^
Main.java:14: error: illegal character: '\u00a0'
????????}
    ^
Main.java:14: error: illegal character: '\u00a0'
????????}
     ^
Main.java:14: error: illegal character: '\u00a0'
????????}
      ^
Main.java:14: error: illegal character: '\u00a0'
????????}
       ^
Main.java:15: error: illegal character: '\u00a0'
????????for(int p = 1; p <= 3; p++) {
^
Main.java:15: error: illegal character: '\u00a0'
????????for(int p = 1; p <= 3; p++) {
 ^
Main.java:15: error: illegal character: '\u00a0'
????????for(int p = 1; p <= 3; p++) {
  ^
Main.java:15: error: illegal character: '\u00a0'
????????for(int p = 1; p <= 3; p++) {
   ^
Main.java:15: error: illegal character: '\u00a0'
????????for(int p = 1; p <= 3; p++) {
    ^
Main.java:15: error: illegal character: '\u00a0'
????????for(int p = 1; p <= 3; p++) {
     ^
Main.java:15: error: illegal character: '\u00a0'
????????for(int p = 1; p <= 3; p++) {
      ^
100 errors
only showing the first 100 errors, of 230 total; use -Xmaxerrs if you would like to see more