0_0_31528402_21169.cpp:1:1: error: 'include' does not name a type
include <bits/stdc++.h>
^
0_0_31528402_21169.cpp:11:9: error: 'pair' does not name a type
typedef pair<int, int> PII;
^
0_0_31528402_21169.cpp:25:1: error: 'vector' does not name a type
vector<int>E[MX];
^
0_0_31528402_21169.cpp: In function 'void init(int)':
0_0_31528402_21169.cpp:27:23: error: 'E' was not declared in this scope
rep (i, 1, n + 1) E[i].clear();
^
0_0_31528402_21169.cpp: At global scope:
0_0_31528402_21169.cpp:31:5: error: 'vector' does not name a type
vector <int> T;
^
0_0_31528402_21169.cpp: In member function 'void Tree::init(int)':
0_0_31528402_21169.cpp:34:9: error: 'T' was not declared in this scope
T.resize (n + 1);
^
0_0_31528402_21169.cpp: In member function 'void Tree::add(int, int)':
0_0_31528402_21169.cpp:38:46: error: 'T' was not declared in this scope
for (int i = x; i <= n; i += i & -i) T[i] += v;
^
0_0_31528402_21169.cpp: In member function 'int Tree::sum(int)':
0_0_31528402_21169.cpp:43:52: error: 'T' was not declared in this scope
for (int i = x; i > 0; i -= i & -i) ret += T[i];
^
0_0_31528402_21169.cpp: In function 'int solve(int, ll)':
0_0_31528402_21169.cpp:52:15: error: 'E' was not declared in this scope
rep(i, 0, E[u].size()) sum = sum * val[E[u][i]] % mod;
^
0_0_31528402_21169.cpp:6:34: note: in definition of macro 'rep'
#define rep(i,a,b) for(int i=a;i<b;++i)
^
0_0_31528402_21169.cpp:53:12: error: 'E' was not declared in this scope
per(i, E[u].size(), 0) {
^
0_0_31528402_21169.cpp:7:30: note: in definition of macro 'per'
#define per(i,a,b) for(int i=a-1;i>=b;--i)
^
0_0_31528402_21169.cpp:54:70: error: 'lower_bound' was not declared in this scope
int nxt = lower_bound (E[u].begin(), E[u].end(), a[index + 1]) - E[u].begin();
^
0_0_31528402_21169.cpp: In function 'void dfs(int, int)':
0_0_31528402_21169.cpp:65:18: error: 'E' was not declared in this scope
if (pre > 0) E[u].erase(find(E[u].begin(), E[u].end(), pre));
^
0_0_31528402_21169.cpp:65:63: error: 'find' was not declared in this scope
if (pre > 0) E[u].erase(find(E[u].begin(), E[u].end(), pre));
^
0_0_31528402_21169.cpp:66:16: error: 'E' was not declared in this scope
val[u] = f[E[u].size()];
^
0_0_31528402_21169.cpp:70:40: error: 'sort' was not declared in this scope
sort (E[u].begin(), E[u].end() );
^
0_0_31528402_21169.cpp: In function 'int main()':
0_0_31528402_21169.cpp:82:12: error: 'cin' was not declared in this scope
int T; cin >> T;
^
0_0_31528402_21169.cpp:84:24: error: 'scanf' was not declared in this scope
scanf ("%d", &n);
^
0_0_31528402_21169.cpp:90:13: error: 'E' was not declared in this scope
E[u].push_back (
^
0_0_31528402_21169.cpp:90:28: error: expected primary-expression at end of input
E[u].push_back (
^
0_0_31528402_21169.cpp:90:28: error: expected '}' at end of input
0_0_31528402_21169.cpp:90:28: error: expected '}' at end of input
0_0_31528402_21169.cpp:90:28: error: expected '}' at end of input
|