0_0_26036262_22743.cpp:14:9: error: 'vector' does not name a type
typedef vector<int> VI;
^
0_0_26036262_22743.cpp:15:9: error: 'pair' does not name a type
typedef pair<int, int> PII;
^
0_0_26036262_22743.cpp:30:1: error: 'vector' does not name a type
vector<int>ver[MX + 5];
^
0_0_26036262_22743.cpp: In function 'void init()':
0_0_26036262_22743.cpp:32:23: error: 'ver' was not declared in this scope
rep(i, 1, MX + 1) ver[i].push_back(1);
^
0_0_26036262_22743.cpp:34:9: error: 'ver' was not declared in this scope
ver[i].push_back(i);
^
0_0_26036262_22743.cpp: In function 'void PushUP(int)':
0_0_26036262_22743.cpp:40:64: error: 'max' was not declared in this scope
if(ls[rt] && rs[rt]) sum[rt] = max(sum[ls[rt]], sum[rs[rt]]);
^
0_0_26036262_22743.cpp: In function 'int merge(int, int, int&)':
0_0_26036262_22743.cpp:46:51: error: 'max' was not declared in this scope
if(sum[rt] == sum[prt]) ans = max(ans, sum[rt]);
^
0_0_26036262_22743.cpp: In function 'int main()':
0_0_26036262_22743.cpp:77:5: error: 'cin' was not declared in this scope
cin >> n;
^
0_0_26036262_22743.cpp:80:24: error: 'scanf' was not declared in this scope
scanf("%d", &fa);
^
0_0_26036262_22743.cpp:85:23: error: 'scanf' was not declared in this scope
scanf("%d", &x);
^
0_0_26036262_22743.cpp:87:19: error: 'ver' was not declared in this scope
rep(j, 0, ver[x].size()) update(ver[x][j], 1, MX, root[i]);
^
0_0_26036262_22743.cpp:5:34: note: in definition of macro 'rep'
#define rep(i,a,b) for(int i=a;i<b;++i)
^
0_0_26036262_22743.cpp:90:43: error: 'printf' was not declared in this scope
rep(i, 1, n + 1) printf("%d\n", ans[i]);
^
|