Language: Java

public class Main{
  public void run(java.io.InputStream in, java.io.PrintStream out){
    java.util.Scanner sc = new java.util.Scanner(in);
/*answer*/
    int r, c;
    int[][] a;
    int i, j;
 
    r = sc.nextInt();
    c = sc.nextInt();
    a = new int[r + 1][c + 1];
 
    for(i = 0;i < r;i++){
      for(j = 0;j < c;j++){
        a[i][j] = sc.nextInt();
      }
    }
 
    for(i = 0;i < r;i++){
      for(j = 0;j < c;j++){
        a[i][c] += a[i][j];
        a[r][j] += a[i][j];
      }
      a[r][c] += a[i][c];
    }
 
    for(i = 0;i < r + 1;i++){
      for(j = 0;j < c;j++){
        System.out.print(a[i][j] + " ");
      }
      System.out.println(a[i][j]);
    }
 
    sc.close();
  }
  public static void main(String[] args){
    (new Main()).run(System.in, System.out);
  }
}


Compiler output:
Main.java:2: error: illegal character: '\u00a0'
??public void run(java.io.InputStream in, java.io.PrintStream out){
^
Main.java:2: error: illegal character: '\u00a0'
??public void run(java.io.InputStream in, java.io.PrintStream out){
 ^
Main.java:3: error: illegal character: '\u00a0'
????java.util.Scanner sc = new java.util.Scanner(in);
^
Main.java:3: error: illegal character: '\u00a0'
????java.util.Scanner sc = new java.util.Scanner(in);
 ^
Main.java:3: error: illegal character: '\u00a0'
????java.util.Scanner sc = new java.util.Scanner(in);
  ^
Main.java:3: error: illegal character: '\u00a0'
????java.util.Scanner sc = new java.util.Scanner(in);
   ^
Main.java:5: error: illegal character: '\u00a0'
????int r, c;
^
Main.java:5: error: illegal character: '\u00a0'
????int r, c;
 ^
Main.java:5: error: illegal character: '\u00a0'
????int r, c;
  ^
Main.java:5: error: illegal character: '\u00a0'
????int r, c;
   ^
Main.java:6: error: illegal character: '\u00a0'
????int[][] a;
^
Main.java:6: error: illegal character: '\u00a0'
????int[][] a;
 ^
Main.java:6: error: illegal character: '\u00a0'
????int[][] a;
  ^
Main.java:6: error: illegal character: '\u00a0'
????int[][] a;
   ^
Main.java:7: error: illegal character: '\u00a0'
????int i, j;
^
Main.java:7: error: illegal character: '\u00a0'
????int i, j;
 ^
Main.java:7: error: illegal character: '\u00a0'
????int i, j;
  ^
Main.java:7: error: illegal character: '\u00a0'
????int i, j;
   ^
Main.java:8: error: illegal character: '\u00a0'
?
^
Main.java:9: error: illegal character: '\u00a0'
????r = sc.nextInt();
^
Main.java:9: error: illegal character: '\u00a0'
????r = sc.nextInt();
 ^
Main.java:9: error: illegal character: '\u00a0'
????r = sc.nextInt();
  ^
Main.java:9: error: illegal character: '\u00a0'
????r = sc.nextInt();
   ^
Main.java:10: error: illegal character: '\u00a0'
????c = sc.nextInt();
^
Main.java:10: error: illegal character: '\u00a0'
????c = sc.nextInt();
 ^
Main.java:10: error: illegal character: '\u00a0'
????c = sc.nextInt();
  ^
Main.java:10: error: illegal character: '\u00a0'
????c = sc.nextInt();
   ^
Main.java:11: error: illegal character: '\u00a0'
????a = new int[r + 1][c + 1];
^
Main.java:11: error: illegal character: '\u00a0'
????a = new int[r + 1][c + 1];
 ^
Main.java:11: error: illegal character: '\u00a0'
????a = new int[r + 1][c + 1];
  ^
Main.java:11: error: illegal character: '\u00a0'
????a = new int[r + 1][c + 1];
   ^
Main.java:12: error: illegal character: '\u00a0'
?
^
Main.java:13: error: illegal character: '\u00a0'
????for(i = 0;i < r;i++){
^
Main.java:13: error: illegal character: '\u00a0'
????for(i = 0;i < r;i++){
 ^
Main.java:13: error: illegal character: '\u00a0'
????for(i = 0;i < r;i++){
  ^
Main.java:13: error: illegal character: '\u00a0'
????for(i = 0;i < r;i++){
   ^
Main.java:14: error: illegal character: '\u00a0'
??????for(j = 0;j < c;j++){
^
Main.java:14: error: illegal character: '\u00a0'
??????for(j = 0;j < c;j++){
 ^
Main.java:14: error: illegal character: '\u00a0'
??????for(j = 0;j < c;j++){
  ^
Main.java:14: error: illegal character: '\u00a0'
??????for(j = 0;j < c;j++){
   ^
Main.java:14: error: illegal character: '\u00a0'
??????for(j = 0;j < c;j++){
    ^
Main.java:14: error: illegal character: '\u00a0'
??????for(j = 0;j < c;j++){
     ^
Main.java:15: error: illegal character: '\u00a0'
????????a[i][j] = sc.nextInt();
^
Main.java:15: error: illegal character: '\u00a0'
????????a[i][j] = sc.nextInt();
 ^
Main.java:15: error: illegal character: '\u00a0'
????????a[i][j] = sc.nextInt();
  ^
Main.java:15: error: illegal character: '\u00a0'
????????a[i][j] = sc.nextInt();
   ^
Main.java:15: error: illegal character: '\u00a0'
????????a[i][j] = sc.nextInt();
    ^
Main.java:15: error: illegal character: '\u00a0'
????????a[i][j] = sc.nextInt();
     ^
Main.java:15: error: illegal character: '\u00a0'
????????a[i][j] = sc.nextInt();
      ^
Main.java:15: error: illegal character: '\u00a0'
????????a[i][j] = sc.nextInt();
       ^
Main.java:16: error: illegal character: '\u00a0'
??????}
^
Main.java:16: error: illegal character: '\u00a0'
??????}
 ^
Main.java:16: error: illegal character: '\u00a0'
??????}
  ^
Main.java:16: error: illegal character: '\u00a0'
??????}
   ^
Main.java:16: error: illegal character: '\u00a0'
??????}
    ^
Main.java:16: error: illegal character: '\u00a0'
??????}
     ^
Main.java:17: error: illegal character: '\u00a0'
????}
^
Main.java:17: error: illegal character: '\u00a0'
????}
 ^
Main.java:17: error: illegal character: '\u00a0'
????}
  ^
Main.java:17: error: illegal character: '\u00a0'
????}
   ^
Main.java:18: error: illegal character: '\u00a0'
?
^
Main.java:19: error: illegal character: '\u00a0'
????for(i = 0;i < r;i++){
^
Main.java:19: error: illegal character: '\u00a0'
????for(i = 0;i < r;i++){
 ^
Main.java:19: error: illegal character: '\u00a0'
????for(i = 0;i < r;i++){
  ^
Main.java:19: error: illegal character: '\u00a0'
????for(i = 0;i < r;i++){
   ^
Main.java:20: error: illegal character: '\u00a0'
??????for(j = 0;j < c;j++){
^
Main.java:20: error: illegal character: '\u00a0'
??????for(j = 0;j < c;j++){
 ^
Main.java:20: error: illegal character: '\u00a0'
??????for(j = 0;j < c;j++){
  ^
Main.java:20: error: illegal character: '\u00a0'
??????for(j = 0;j < c;j++){
   ^
Main.java:20: error: illegal character: '\u00a0'
??????for(j = 0;j < c;j++){
    ^
Main.java:20: error: illegal character: '\u00a0'
??????for(j = 0;j < c;j++){
     ^
Main.java:21: error: illegal character: '\u00a0'
????????a[i][c] += a[i][j];
^
Main.java:21: error: illegal character: '\u00a0'
????????a[i][c] += a[i][j];
 ^
Main.java:21: error: illegal character: '\u00a0'
????????a[i][c] += a[i][j];
  ^
Main.java:21: error: illegal character: '\u00a0'
????????a[i][c] += a[i][j];
   ^
Main.java:21: error: illegal character: '\u00a0'
????????a[i][c] += a[i][j];
    ^
Main.java:21: error: illegal character: '\u00a0'
????????a[i][c] += a[i][j];
     ^
Main.java:21: error: illegal character: '\u00a0'
????????a[i][c] += a[i][j];
      ^
Main.java:21: error: illegal character: '\u00a0'
????????a[i][c] += a[i][j];
       ^
Main.java:22: error: illegal character: '\u00a0'
????????a[r][j] += a[i][j];
^
Main.java:22: error: illegal character: '\u00a0'
????????a[r][j] += a[i][j];
 ^
Main.java:22: error: illegal character: '\u00a0'
????????a[r][j] += a[i][j];
  ^
Main.java:22: error: illegal character: '\u00a0'
????????a[r][j] += a[i][j];
   ^
Main.java:22: error: illegal character: '\u00a0'
????????a[r][j] += a[i][j];
    ^
Main.java:22: error: illegal character: '\u00a0'
????????a[r][j] += a[i][j];
     ^
Main.java:22: error: illegal character: '\u00a0'
????????a[r][j] += a[i][j];
      ^
Main.java:22: error: illegal character: '\u00a0'
????????a[r][j] += a[i][j];
       ^
Main.java:23: error: illegal character: '\u00a0'
??????}
^
Main.java:23: error: illegal character: '\u00a0'
??????}
 ^
Main.java:23: error: illegal character: '\u00a0'
??????}
  ^
Main.java:23: error: illegal character: '\u00a0'
??????}
   ^
Main.java:23: error: illegal character: '\u00a0'
??????}
    ^
Main.java:23: error: illegal character: '\u00a0'
??????}
     ^
Main.java:24: error: illegal character: '\u00a0'
??????a[r][c] += a[i][c];
^
Main.java:24: error: illegal character: '\u00a0'
??????a[r][c] += a[i][c];
 ^
Main.java:24: error: illegal character: '\u00a0'
??????a[r][c] += a[i][c];
  ^
Main.java:24: error: illegal character: '\u00a0'
??????a[r][c] += a[i][c];
   ^
Main.java:24: error: illegal character: '\u00a0'
??????a[r][c] += a[i][c];
    ^
Main.java:24: error: illegal character: '\u00a0'
??????a[r][c] += a[i][c];
     ^
Main.java:25: error: illegal character: '\u00a0'
????}
^
100 errors
only showing the first 100 errors, of 154 total; use -Xmaxerrs if you would like to see more