Language: C

package aoj;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.LinkedList;
import java.util.Queue;

public class RoundRobinScheduling {

    public static void main(String args[]) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] firstRow = br.readLine().split("\\s");

        // 要素数
        int elementNum = Integer.parseInt(firstRow[0]);
        // 減算する値
        int quantum = Integer.parseInt(firstRow[1]);

       
        Queue<Process> que = new LinkedList<Process>();
        for (int i = 0; i < elementNum; i++) {
            String[] stringArray = br.readLine().split("\\s");
           。。
            Process process = new Process(stringArray[0],
                    Integer.parseInt(stringArray[1]));
            que.offer(process);
        }

        // 処理合計時間
        int resultTime = 0;
        while (que.size() > 0) {
            Process process = que.poll();
            // 合計処理時間として加算
            resultTime += quantum;
            // 処理時間を減算する
            if ((process.processTime = process.processTime - quantum) > 0) {
               
                que.offer(process);
                continue; 
            }
           
            resultTime += process.processTime;
           
            System.out.println(process.name + " " + resultTime);
        }

    }  
     // Process管理クラス
     
    private final static class Process {
        // めんどいからpublicに。。。
        public String name = null;
        public int processTime = 0;

        public Process(String name, int processTime) {
            this.name = name;
            this.processTime = processTime;
        }
    }
}



Compiler output:
main.c:1:1: error: unknown type name 'package'
    1 | package aoj;
      | ^~~~~~~
main.c:3:1: error: unknown type name 'import'
    3 | import java.io.BufferedReader;
      | ^~~~~~
main.c:3:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    3 | import java.io.BufferedReader;
      |            ^
main.c:4:1: error: unknown type name 'import'
    4 | import java.io.IOException;
      | ^~~~~~
main.c:4:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    4 | import java.io.IOException;
      |            ^
main.c:5:1: error: unknown type name 'import'
    5 | import java.io.InputStreamReader;
      | ^~~~~~
main.c:5:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    5 | import java.io.InputStreamReader;
      |            ^
main.c:6:1: error: unknown type name 'import'
    6 | import java.util.LinkedList;
      | ^~~~~~
main.c:6:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    6 | import java.util.LinkedList;
      |            ^
main.c:7:1: error: unknown type name 'import'
    7 | import java.util.Queue;
      | ^~~~~~
main.c:7:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    7 | import java.util.Queue;
      |            ^
main.c:9:1: error: unknown type name 'public'
    9 | public class RoundRobinScheduling {
      | ^~~~~~
main.c:9:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'RoundRobinScheduling'
    9 | public class RoundRobinScheduling {
      |              ^~~~~~~~~~~~~~~~~~~~
main.c:24:12: error: stray '\343' in program
   24 |            <U+3002><U+3002>
      |            ^~~~~~~~
main.c:24:14: error: stray '\343' in program
   24 |            <U+3002><U+3002>
      |                    ^~~~~~~~