stations.java:1: error: illegal character: '#'
#include "stations.h"
^
stations.java:1: error: class, interface, or enum expected
#include "stations.h"
^
stations.java:2: error: illegal character: '#'
#include <bits/stdc++.h>
^
stations.java:4: error: illegal character: '#'
#define N 1005
^
stations.java:4: error: class, interface, or enum expected
#define N 1005
^
stations.java:6: error: class, interface, or enum expected
int n, ids[N], sz[N], id;
^
stations.java:7: error: class, interface, or enum expected
void dfs(int c, int pr) {
^
stations.java:9: error: class, interface, or enum expected
sz[c] = 1;
^
stations.java:10: error: class, interface, or enum expected
for(int i: adj[c]) {
^
stations.java:12: error: class, interface, or enum expected
dfs(i, c);
^
stations.java:13: error: class, interface, or enum expected
sz[c] += sz[i];
^
stations.java:14: error: class, interface, or enum expected
}
^
stations.java:18: error: class, interface, or enum expected
dfs(0, -1);
^
stations.java:19: error: class, interface, or enum expected
vector<int> ans(n);
^
stations.java:20: error: class, interface, or enum expected
for(int i = 0; i < n; i ++) {
^
stations.java:20: error: class, interface, or enum expected
for(int i = 0; i < n; i ++) {
^
stations.java:20: error: class, interface, or enum expected
for(int i = 0; i < n; i ++) {
^
stations.java:22: error: class, interface, or enum expected
ans[i] = ids[i]*1000+sz[i];
^
stations.java:23: error: class, interface, or enum expected
}
^
stations.java:25: error: class, interface, or enum expected
}
^
stations.java:27: error: class, interface, or enum expected
void DFS(int c, int pr) {
^
stations.java:29: error: class, interface, or enum expected
for(int i: adj[c]) {
^
stations.java:31: error: class, interface, or enum expected
DFS(i, c);
^
stations.java:32: error: class, interface, or enum expected
}
^
stations.java:36: error: class, interface, or enum expected
for(int i = 0; i < n; i ++) {
^
stations.java:36: error: class, interface, or enum expected
for(int i = 0; i < n; i ++) {
^
stations.java:36: error: class, interface, or enum expected
for(int i = 0; i < n; i ++) {
^
stations.java:39: error: class, interface, or enum expected
vector<int> nds = nddds;
^
stations.java:40: error: class, interface, or enum expected
vector<int> ans(n);
^
stations.java:41: error: class, interface, or enum expected
for(int j = 0; j < n; j ++) {
^
stations.java:41: error: class, interface, or enum expected
for(int j = 0; j < n; j ++) {
^
stations.java:41: error: class, interface, or enum expected
for(int j = 0; j < n; j ++) {
^
stations.java:43: error: class, interface, or enum expected
}
^
stations.java:45: error: class, interface, or enum expected
}
^
stations.java:48: error: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
assert(0);
^
stations.java:49: error: class, interface, or enum expected
}
^
stations.java:52: error: class, interface, or enum expected
for(auto&i: adj) i.clear();
^
stations.java:53: error: class, interface, or enum expected
for(int i = 0; i < n-1; i ++) {
^
stations.java:53: error: class, interface, or enum expected
for(int i = 0; i < n-1; i ++) {
^
stations.java:53: error: class, interface, or enum expected
for(int i = 0; i < n-1; i ++) {
^
stations.java:55: error: class, interface, or enum expected
adj[v[i]].push_back(u[i]);
^
stations.java:56: error: class, interface, or enum expected
}
^
stations.java:58: error: class, interface, or enum expected
for(auto&i: adj) ms = max(ms, (int)i.size());
^
stations.java:59: error: class, interface, or enum expected
if(k >= 1000000) {
^
stations.java:61: error: class, interface, or enum expected
}
^
stations.java:62: error: class, interface, or enum expected
for(int i = 0; i < n-1; i ++) {
^
stations.java:62: error: class, interface, or enum expected
for(int i = 0; i < n-1; i ++) {
^
stations.java:64: error: class, interface, or enum expected
return flatten();
^
stations.java:65: error: class, interface, or enum expected
}
^
stations.java:67: error: class, interface, or enum expected
for(int i = 0; i < n; i ++) nds.push_back(i);
^
stations.java:67: error: class, interface, or enum expected
for(int i = 0; i < n; i ++) nds.push_back(i);
^
stations.java:67: error: class, interface, or enum expected
for(int i = 0; i < n; i ++) nds.push_back(i);
^
stations.java:68: error: class, interface, or enum expected
return nds;
^
stations.java:69: error: class, interface, or enum expected
}
^
stations.java:72: error: class, interface, or enum expected
Nd(int i) : id(i/1000), sz(i%1000) {
^
stations.java:75: error: class, interface, or enum expected
int findEuler(int s, int t, vector<int> c) {
^
stations.java:77: error: class, interface, or enum expected
int tid = t/1000, tsz = t%1000;
^
stations.java:78: error: class, interface, or enum expected
if(sid <= tid && tid <= sid + ssz) {
^
stations.java:81: error: class, interface, or enum expected
if(nid <= tid && tid <= nid + nsz) {
^
stations.java:83: error: class, interface, or enum expected
}
^
stations.java:86: error: class, interface, or enum expected
}
^
stations.java:89: error: class, interface, or enum expected
if(nsz >= ssz) {
^
stations.java:91: error: class, interface, or enum expected
}
^
stations.java:94: error: class, interface, or enum expected
}
^
stations.java:98: error: class, interface, or enum expected
return c[1];
^
stations.java:99: error: class, interface, or enum expected
} else {
^
stations.java:101: error: class, interface, or enum expected
}
^
stations.java:104: error: class, interface, or enum expected
int findWeird(int s, int t, vector<int> c) {
^
stations.java:106: error: class, interface, or enum expected
for(int i = 0; i < max(s,t); i ++) {
^
stations.java:106: error: class, interface, or enum expected
for(int i = 0; i < max(s,t); i ++) {
^
stations.java:106: error: class, interface, or enum expected
for(int i = 0; i < max(s,t); i ++) {
^
stations.java:108: error: class, interface, or enum expected
adj[i/2].push_back(i+1);
^
stations.java:109: error: class, interface, or enum expected
}
^
stations.java:111: error: class, interface, or enum expected
queue<int> que;
^
stations.java:112: error: class, interface, or enum expected
que.push(t); ds[t] = 0; pr[t] = 0;
^
stations.java:112: error: class, interface, or enum expected
que.push(t); ds[t] = 0; pr[t] = 0;
^
stations.java:112: error: class, interface, or enum expected
que.push(t); ds[t] = 0; pr[t] = 0;
^
stations.java:113: error: class, interface, or enum expected
while(que.size()) {
^
stations.java:114: error: class, interface, or enum expected
int c = que.front(); que.pop();
^
stations.java:115: error: class, interface, or enum expected
for(int i: adj[c]) {
^
stations.java:118: error: class, interface, or enum expected
pr[i] = c;
^
stations.java:119: error: class, interface, or enum expected
que.push(i);
^
stations.java:120: error: class, interface, or enum expected
}
^
stations.java:124: error: class, interface, or enum expected
}
^
stations.java:127: error: class, interface, or enum expected
for(int i: c) mv = max(mv, i);
^
stations.java:128: error: class, interface, or enum expected
if(mv >= 1000) {
^
stations.java:130: error: class, interface, or enum expected
}
^
stations.java:133: error: class, interface, or enum expected
}
^
stations.java:136: error: class, interface, or enum expected
}
^
stations.java:138: error: class, interface, or enum expected
}
^
90 errors