Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
??
class Main {
????????public static void main(String[] args) throws IOException {
????????????????InputStreamReader isr = new InputStreamReader(System.in);
????????????????BufferedReader br = new BufferedReader(isr);
??
????????????????String[] inputList = br.readLine().split(" ");
????????????????int r = Integer.parseInt(inputList[0]);
????????????????int c = Integer.parseInt(inputList[1]);
????????????????int[][] list = new int[r + 1][c + 1];
????????????????int i, j, num, sum;
????????????????for (i = 0; i < r; i++) {
????????????????????????sum = 0;
????????????????????????String[] hoge = br.readLine().split(" ");
????????????????????????for (j = 0; j < c; j++) {
????????????????????????????????num = Integer.parseInt(hoge[j]);
????????????????????????????????list[i][j] = Integer.parseInt(hoge[j]);
????????????????????????????????sum = sum + num;
????????????????????????}
????????????????????????list[i][c] = sum;
????????????????}
??
????????????????for (i = 0; i < c + 1; i++) {
????????????????????????sum = 0;
????????????????????????for (j = 0; j < r + 1; j++) {
????????????????????????????????sum = sum + list[j][i];
????????????????????????}
????????????????????????list[r][i] = sum;
????????????????}
??
????????????????String output;
????????????????for (i = 0; i < r + 1; i++) {
????????????????????????output = "";
????????????????????????for (j = 0; j < c + 1; j++) {
????????????????????????????????output = output + list[i][j] + " ";
????????????????????????}
????????????????????????System.out.println(output.substring(0, output.length() - 1));
????????????????}
????????}
}

Compiler output:
Main.java:4: error: class, interface, enum, or record expected
??
^
Main.java:6: error: illegal start of type
????????public static void main(String[] args) throws IOException {
^
Main.java:7: error: illegal start of expression
????????????????InputStreamReader isr = new InputStreamReader(System.in);
^
Main.java:7: error: illegal start of expression
????????????????InputStreamReader isr = new InputStreamReader(System.in);
 ^
Main.java:7: error: illegal start of expression
????????????????InputStreamReader isr = new InputStreamReader(System.in);
  ^
Main.java:7: error: illegal start of expression
????????????????InputStreamReader isr = new InputStreamReader(System.in);
   ^
Main.java:7: error: illegal start of expression
????????????????InputStreamReader isr = new InputStreamReader(System.in);
    ^
Main.java:7: error: illegal start of expression
????????????????InputStreamReader isr = new InputStreamReader(System.in);
     ^
Main.java:7: error: illegal start of expression
????????????????InputStreamReader isr = new InputStreamReader(System.in);
      ^
Main.java:7: error: illegal start of expression
????????????????InputStreamReader isr = new InputStreamReader(System.in);
       ^
Main.java:7: error: illegal start of expression
????????????????InputStreamReader isr = new InputStreamReader(System.in);
        ^
Main.java:7: error: illegal start of expression
????????????????InputStreamReader isr = new InputStreamReader(System.in);
         ^
Main.java:7: error: illegal start of expression
????????????????InputStreamReader isr = new InputStreamReader(System.in);
          ^
Main.java:7: error: illegal start of expression
????????????????InputStreamReader isr = new InputStreamReader(System.in);
           ^
Main.java:7: error: illegal start of expression
????????????????InputStreamReader isr = new InputStreamReader(System.in);
            ^
Main.java:7: error: illegal start of expression
????????????????InputStreamReader isr = new InputStreamReader(System.in);
             ^
Main.java:7: error: illegal start of expression
????????????????InputStreamReader isr = new InputStreamReader(System.in);
              ^
Main.java:7: error: illegal start of expression
????????????????InputStreamReader isr = new InputStreamReader(System.in);
               ^
Main.java:7: error: : expected
????????????????InputStreamReader isr = new InputStreamReader(System.in);
                                 ^
Main.java:7: error: : expected
????????????????InputStreamReader isr = new InputStreamReader(System.in);
                                                                        ^
Main.java:8: error: illegal start of expression
????????????????BufferedReader br = new BufferedReader(isr);
^
Main.java:8: error: illegal start of expression
????????????????BufferedReader br = new BufferedReader(isr);
 ^
Main.java:8: error: illegal start of expression
????????????????BufferedReader br = new BufferedReader(isr);
  ^
Main.java:8: error: illegal start of expression
????????????????BufferedReader br = new BufferedReader(isr);
   ^
Main.java:8: error: illegal start of expression
????????????????BufferedReader br = new BufferedReader(isr);
    ^
Main.java:8: error: illegal start of expression
????????????????BufferedReader br = new BufferedReader(isr);
     ^
Main.java:8: error: illegal start of expression
????????????????BufferedReader br = new BufferedReader(isr);
      ^
Main.java:8: error: illegal start of expression
????????????????BufferedReader br = new BufferedReader(isr);
       ^
Main.java:8: error: illegal start of expression
????????????????BufferedReader br = new BufferedReader(isr);
        ^
Main.java:8: error: illegal start of expression
????????????????BufferedReader br = new BufferedReader(isr);
         ^
Main.java:8: error: illegal start of expression
????????????????BufferedReader br = new BufferedReader(isr);
          ^
Main.java:8: error: illegal start of expression
????????????????BufferedReader br = new BufferedReader(isr);
           ^
Main.java:8: error: illegal start of expression
????????????????BufferedReader br = new BufferedReader(isr);
            ^
Main.java:8: error: illegal start of expression
????????????????BufferedReader br = new BufferedReader(isr);
             ^
Main.java:8: error: illegal start of expression
????????????????BufferedReader br = new BufferedReader(isr);
              ^
Main.java:8: error: illegal start of expression
????????????????BufferedReader br = new BufferedReader(isr);
               ^
Main.java:8: error: : expected
????????????????BufferedReader br = new BufferedReader(isr);
                              ^
Main.java:8: error: : expected
????????????????BufferedReader br = new BufferedReader(isr);
                                                           ^
Main.java:9: error: illegal start of expression
??
^
Main.java:9: error: illegal start of expression
??
 ^
Main.java:10: error: illegal start of expression
????????????????String[] inputList = br.readLine().split(" ");
^
Main.java:10: error: illegal start of expression
????????????????String[] inputList = br.readLine().split(" ");
 ^
Main.java:10: error: illegal start of expression
????????????????String[] inputList = br.readLine().split(" ");
  ^
Main.java:10: error: illegal start of expression
????????????????String[] inputList = br.readLine().split(" ");
   ^
Main.java:10: error: illegal start of expression
????????????????String[] inputList = br.readLine().split(" ");
    ^
Main.java:10: error: illegal start of expression
????????????????String[] inputList = br.readLine().split(" ");
     ^
Main.java:10: error: illegal start of expression
????????????????String[] inputList = br.readLine().split(" ");
      ^
Main.java:10: error: illegal start of expression
????????????????String[] inputList = br.readLine().split(" ");
       ^
Main.java:10: error: illegal start of expression
????????????????String[] inputList = br.readLine().split(" ");
        ^
Main.java:10: error: illegal start of expression
????????????????String[] inputList = br.readLine().split(" ");
         ^
Main.java:10: error: illegal start of expression
????????????????String[] inputList = br.readLine().split(" ");
          ^
Main.java:10: error: illegal start of expression
????????????????String[] inputList = br.readLine().split(" ");
           ^
Main.java:10: error: illegal start of expression
????????????????String[] inputList = br.readLine().split(" ");
            ^
Main.java:10: error: illegal start of expression
????????????????String[] inputList = br.readLine().split(" ");
             ^
Main.java:10: error: illegal start of expression
????????????????String[] inputList = br.readLine().split(" ");
              ^
Main.java:10: error: illegal start of expression
????????????????String[] inputList = br.readLine().split(" ");
               ^
Main.java:10: error: '.class' expected
????????????????String[] inputList = br.readLine().split(" ");
                         ^
Main.java:10: error: : expected
????????????????String[] inputList = br.readLine().split(" ");
                                                             ^
Main.java:11: error: illegal start of expression
????????????????int r = Integer.parseInt(inputList[0]);
^
Main.java:11: error: illegal start of expression
????????????????int r = Integer.parseInt(inputList[0]);
 ^
Main.java:11: error: illegal start of expression
????????????????int r = Integer.parseInt(inputList[0]);
  ^
Main.java:11: error: illegal start of expression
????????????????int r = Integer.parseInt(inputList[0]);
   ^
Main.java:11: error: illegal start of expression
????????????????int r = Integer.parseInt(inputList[0]);
    ^
Main.java:11: error: illegal start of expression
????????????????int r = Integer.parseInt(inputList[0]);
     ^
Main.java:11: error: illegal start of expression
????????????????int r = Integer.parseInt(inputList[0]);
      ^
Main.java:11: error: illegal start of expression
????????????????int r = Integer.parseInt(inputList[0]);
       ^
Main.java:11: error: illegal start of expression
????????????????int r = Integer.parseInt(inputList[0]);
        ^
Main.java:11: error: illegal start of expression
????????????????int r = Integer.parseInt(inputList[0]);
         ^
Main.java:11: error: illegal start of expression
????????????????int r = Integer.parseInt(inputList[0]);
          ^
Main.java:11: error: illegal start of expression
????????????????int r = Integer.parseInt(inputList[0]);
           ^
Main.java:11: error: illegal start of expression
????????????????int r = Integer.parseInt(inputList[0]);
            ^
Main.java:11: error: illegal start of expression
????????????????int r = Integer.parseInt(inputList[0]);
             ^
Main.java:11: error: illegal start of expression
????????????????int r = Integer.parseInt(inputList[0]);
              ^
Main.java:11: error: illegal start of expression
????????????????int r = Integer.parseInt(inputList[0]);
               ^
Main.java:11: error: '.class' expected
????????????????int r = Integer.parseInt(inputList[0]);
                    ^
Main.java:11: error: : expected
????????????????int r = Integer.parseInt(inputList[0]);
                                                      ^
Main.java:12: error: illegal start of expression
????????????????int c = Integer.parseInt(inputList[1]);
^
Main.java:12: error: illegal start of expression
????????????????int c = Integer.parseInt(inputList[1]);
 ^
Main.java:12: error: illegal start of expression
????????????????int c = Integer.parseInt(inputList[1]);
  ^
Main.java:12: error: illegal start of expression
????????????????int c = Integer.parseInt(inputList[1]);
   ^
Main.java:12: error: illegal start of expression
????????????????int c = Integer.parseInt(inputList[1]);
    ^
Main.java:12: error: illegal start of expression
????????????????int c = Integer.parseInt(inputList[1]);
     ^
Main.java:12: error: illegal start of expression
????????????????int c = Integer.parseInt(inputList[1]);
      ^
Main.java:12: error: illegal start of expression
????????????????int c = Integer.parseInt(inputList[1]);
       ^
Main.java:12: error: illegal start of expression
????????????????int c = Integer.parseInt(inputList[1]);
        ^
Main.java:12: error: illegal start