0_0_26080776_21493.cpp:5:7: error: 'll' does not name a type
const ll maxn = 1e5+10;
^
0_0_26080776_21493.cpp:6:7: error: 'll' does not name a type
const ll maxm = 1e6+10;
^
0_0_26080776_21493.cpp:7:14: error: 'll' was not declared in this scope
typedef pair<ll,ll> pii;
^
0_0_26080776_21493.cpp:7:17: error: 'll' was not declared in this scope
typedef pair<ll,ll> pii;
^
0_0_26080776_21493.cpp:7:19: error: template argument 1 is invalid
typedef pair<ll,ll> pii;
^
0_0_26080776_21493.cpp:7:19: error: template argument 2 is invalid
0_0_26080776_21493.cpp:7:24: error: invalid type in declaration before ';' token
typedef pair<ll,ll> pii;
^
0_0_26080776_21493.cpp:10:15: error: 'maxm' was not declared in this scope
vector<pii> G[maxm];
^
0_0_26080776_21493.cpp:11:18: error: 'maxn' was not declared in this scope
ll n,m,u,v,w,sum[maxn],pre[maxn];
^
0_0_26080776_21493.cpp:11:28: error: 'maxn' was not declared in this scope
ll n,m,u,v,w,sum[maxn],pre[maxn];
^
0_0_26080776_21493.cpp: In function 'void add(ll, ll, ll)':
0_0_26080776_21493.cpp:15:2: error: 'G' was not declared in this scope
G[f].push_back(make_pair(t,w));
^
0_0_26080776_21493.cpp: In function 'void init()':
0_0_26080776_21493.cpp:22:3: error: 'G' was not declared in this scope
G[i].clear(); sum[i] = 0;
^
0_0_26080776_21493.cpp:22:17: error: 'sum' was not declared in this scope
G[i].clear(); sum[i] = 0;
^
0_0_26080776_21493.cpp:23:3: error: 'pre' was not declared in this scope
pre[i] = i;
^
0_0_26080776_21493.cpp: In function 'void dfs(ll, ll)':
0_0_26080776_21493.cpp:27:2: error: 'sum' was not declared in this scope
sum[x] = 1;
^
0_0_26080776_21493.cpp:28:20: error: 'G' was not declared in this scope
for(ll i = 0; i < G[x].size(); ++i) {
^
0_0_26080776_21493.cpp:3:12: error: request for member 'first' in 'u', which is of non-class type 'pii {aka int}'
#define fi first
^
0_0_26080776_21493.cpp:30:13: note: in expansion of macro 'fi'
ll to = u.fi;
^
0_0_26080776_21493.cpp:4:12: error: request for member 'second' in 'u', which is of non-class type 'pii {aka int}'
#define se second
^
0_0_26080776_21493.cpp:34:32: note: in expansion of macro 'se'
ans += sum[to]*(n-sum[to])*u.se;
^
0_0_26080776_21493.cpp: In function 'll find(ll)':
0_0_26080776_21493.cpp:38:14: error: 'pre' was not declared in this scope
return x == pre[x] ? x : pre[x] = find(pre[x]);
^
0_0_26080776_21493.cpp: At global scope:
0_0_26080776_21493.cpp:45:7: error: 'maxm' was not declared in this scope
}edge[maxm];
^
0_0_26080776_21493.cpp: In function 'int main()':
0_0_26080776_21493.cpp:53:27: error: 'edge' was not declared in this scope
scanf("%lld%lld%lld", &edge[i].u, &edge[i].v, &edge[i].w);
^
0_0_26080776_21493.cpp:56:8: error: 'edge' was not declared in this scope
sort(edge,edge+m);
^
0_0_26080776_21493.cpp:61:12: error: 'y' was not declared in this scope
if(x == y) continue;
^
0_0_26080776_21493.cpp:62:4: error: 'pre' was not declared in this scope
pre[x] = y;
^
0_0_26080776_21493.cpp:62:13: error: 'y' was not declared in this scope
pre[x] = y;
^
0_0_26080776_21493.cpp:70:43: error: 'prllf' was not declared in this scope
prllf("%lld %.2lf\n",mst,1.0*ans/n/(n-1));
^
|