0_0_17200325_23281.cpp:10:7: error: expected initializer before 'buf'
node buf[] = new node[maxn];
^
0_0_17200325_23281.cpp:11:20: error: 'maxn' was not declared in this scope
int E[] = new int[maxn], len;
^
0_0_17200325_23281.cpp:11:24: error: initializer fails to determine size of 'E'
int E[] = new int[maxn], len;
^
0_0_17200325_23281.cpp:11:24: error: array must be initialized with a brace-enclosed initializer
0_0_17200325_23281.cpp: In function 'void add(int, int, int)':
0_0_17200325_23281.cpp:13:3: error: 'buf' was not declared in this scope
buf[len] = new node(b, E[a], v);
^
0_0_17200325_23281.cpp:4:3: error: 'node::node(int, int, int)' is private
node(int b, int e, int v) {
^
0_0_17200325_23281.cpp:13:33: error: within this context
buf[len] = new node(b, E[a], v);
^
0_0_17200325_23281.cpp:14:3: error: 'id' was not declared in this scope
id[b] = len;
^
0_0_17200325_23281.cpp: At global scope:
0_0_17200325_23281.cpp:17:2: error: 'Scanner' does not name a type
Scanner scan = new Scanner(System.in);
^
0_0_17200325_23281.cpp:18:27: error: 'maxn' was not declared in this scope
int n, m, id[] = new int[maxn], sum;
^
0_0_17200325_23281.cpp:18:31: error: initializer fails to determine size of 'id'
int n, m, id[] = new int[maxn], sum;
^
0_0_17200325_23281.cpp:18:31: error: array must be initialized with a brace-enclosed initializer
0_0_17200325_23281.cpp:19:2: error: 'boolean' does not name a type
boolean is[] = new boolean[maxn];
^
0_0_17200325_23281.cpp:20:2: error: 'MINCOST' does not name a type
MINCOST sp = new MINCOST();
^
0_0_17200325_23281.cpp: In function 'void init()':
0_0_17200325_23281.cpp:22:3: error: 'sp' was not declared in this scope
sp.init();
^
0_0_17200325_23281.cpp:24:3: error: 'Arrays' was not declared in this scope
Arrays.fill(E, -1);
^
0_0_17200325_23281.cpp:25:15: error: 'is' was not declared in this scope
Arrays.fill(is, true);
^
0_0_17200325_23281.cpp: In function 'void run()':
0_0_17200325_23281.cpp:29:13: error: 'scan' was not declared in this scope
int cas = scan.nextInt();
^
0_0_17200325_23281.cpp:31:4: error: 'System' was not declared in this scope
System.out.print("Case #" + k + ": ");
^
0_0_17200325_23281.cpp:31:36: error: invalid operands of types 'const char*' and 'const char [3]' to binary 'operator+'
System.out.print("Case #" + k + ": ");
^
0_0_17200325_23281.cpp:39:5: error: 'is' was not declared in this scope
is[a] = false;
^
0_0_17200325_23281.cpp:44:9: error: 'is' was not declared in this scope
if (is[i]) {
^
0_0_17200325_23281.cpp:56:5: error: 'sp' was not declared in this scope
sp.addcap(id[s], id[t], l, c);
^
0_0_17200325_23281.cpp:59:39: error: 'buf' was not declared in this scope
for (int i = E[root]; i != -1; i = buf[i].ne) {
^
0_0_17200325_23281.cpp:61:5: error: 'sp' was not declared in this scope
sp.addcap(n - 1, i, inf, 0);
^
0_0_17200325_23281.cpp:61:25: error: 'inf' was not declared in this scope
sp.addcap(n - 1, i, inf, 0);
^
0_0_17200325_23281.cpp:62:10: error: 'dfs' was not declared in this scope
dfs(i);
^
0_0_17200325_23281.cpp:64:4: error: 'sp' was not declared in this scope
sp.addcap(n - 1, n + 1, temp, 0);
^
0_0_17200325_23281.cpp: In function 'void dfs(int)':
0_0_17200325_23281.cpp:73:14: error: 'buf' was not declared in this scope
int temp = buf[a].val;
^
0_0_17200325_23281.cpp:76:4: error: 'sp' was not declared in this scope
sp.addcap(a, i, inf, 0);
^
0_0_17200325_23281.cpp:76:20: error: 'inf' was not declared in this scope
sp.addcap(a, i, inf, 0);
^
0_0_17200325_23281.cpp:81:4: error: 'sp' was not declared in this scope
sp.addcap(n, a, temp, 0);
^
0_0_17200325_23281.cpp:84:4: error: 'sp' was not declared in this scope
sp.addcap(a, n + 1, -temp, 0);
^
|