0_0_38172941_27092.cpp:1:1: error: 'import' does not name a type
import java.util.*;
^
0_0_38172941_27092.cpp:5:12: error: expected ':' before 'static'
public static void main(String[] args) {
^
0_0_38172941_27092.cpp:5:29: error: 'String' has not been declared
public static void main(String[] args) {
^
0_0_38172941_27092.cpp:5:38: error: expected ',' or '...' before 'args'
public static void main(String[] args) {
^
0_0_38172941_27092.cpp:35:1: error: expected ';' after class definition
}
^
0_0_38172941_27092.cpp: In static member function 'static void Main::main(int*)':
0_0_38172941_27092.cpp:6:9: error: 'Scanner' was not declared in this scope
Scanner sc = new Scanner(System.in);
^
0_0_38172941_27092.cpp:7:9: error: 'Node' was not declared in this scope
Node[] d = new Node[100];
^
0_0_38172941_27092.cpp:7:14: error: expected primary-expression before ']' token
Node[] d = new Node[100];
^
0_0_38172941_27092.cpp:8:17: error: 'sc' was not declared in this scope
int n = sc.nextInt(), fs = sc.nextInt(), rs = 0;
^
0_0_38172941_27092.cpp:10:13: error: 'String' was not declared in this scope
String name = sc.next();
^
0_0_38172941_27092.cpp:13:24: error: expected ';' before 's'
String s = sc.next();
^
0_0_38172941_27092.cpp:14:21: error: 's' was not declared in this scope
if (s.charAt(0) > '0') {
^
0_0_38172941_27092.cpp:24:36: error: 'fs' was not declared in this scope
ct += ci * fs;
^
0_0_38172941_27092.cpp:29:13: error: 'd' was not declared in this scope
d[rs++] = new Node(name, cn, ct);
^
0_0_38172941_27092.cpp:29:15: error: 'rs' was not declared in this scope
d[rs++] = new Node(name, cn, ct);
^
0_0_38172941_27092.cpp:29:27: error: expected type-specifier before 'Node'
d[rs++] = new Node(name, cn, ct);
^
0_0_38172941_27092.cpp:31:9: error: 'Arrays' was not declared in this scope
Arrays.sort(d, 0, rs);
^
0_0_38172941_27092.cpp:31:21: error: 'd' was not declared in this scope
Arrays.sort(d, 0, rs);
^
0_0_38172941_27092.cpp:31:27: error: 'rs' was not declared in this scope
Arrays.sort(d, 0, rs);
^
0_0_38172941_27092.cpp:33:13: error: 'System' was not declared in this scope
System.out.printf("%-10s %2d %4d\n", d[i].s, d[i].n, d[i].time);
^
0_0_38172941_27092.cpp: At global scope:
0_0_38172941_27092.cpp:37:23: error: expected initializer before 'Comparable'
class Node implements Comparable<Node> {
^
|