0_0_33107353_12174.cpp: In function 'int main()':
0_0_33107353_12174.cpp:3:2: error: 'ios_base' has not been declared
ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
^
0_0_33107353_12174.cpp:3:32: error: 'cin' was not declared in this scope
ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
^
0_0_33107353_12174.cpp:3:44: error: 'cout' was not declared in this scope
ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
^
0_0_33107353_12174.cpp:8:10: error: 'head' was not declared in this scope
memset(head, 0, sizeof(head));
^
0_0_33107353_12174.cpp:8:31: error: 'memset' was not declared in this scope
memset(head, 0, sizeof(head));
^
0_0_33107353_12174.cpp:9:10: error: 'son' was not declared in this scope
memset(son, 0, sizeof(son));
^
0_0_33107353_12174.cpp:10:10: error: 'd' was not declared in this scope
memset(d, 0, sizeof(d));
^
0_0_33107353_12174.cpp:11:10: error: 'tree1' was not declared in this scope
memset(tree1, 0, sizeof(tree1));
^
0_0_33107353_12174.cpp:12:10: error: 'lazy1' was not declared in this scope
memset(lazy1, 0, sizeof(lazy1));
^
0_0_33107353_12174.cpp:13:10: error: 'tree2' was not declared in this scope
memset(tree2, 0, sizeof(tree2));
^
0_0_33107353_12174.cpp:14:10: error: 'lazy2' was not declared in this scope
memset(lazy2, 0, sizeof(lazy2));
^
0_0_33107353_12174.cpp:15:3: error: 'cnt' was not declared in this scope
cnt = 1;
^
0_0_33107353_12174.cpp:16:3: error: 'tm' was not declared in this scope
tm = 0;
^
0_0_33107353_12174.cpp:17:10: error: 'n' was not declared in this scope
cin >> n >> q;
^
0_0_33107353_12174.cpp:17:15: error: 'q' was not declared in this scope
cin >> n >> q;
^
0_0_33107353_12174.cpp:20:21: error: 'ed1' was not declared in this scope
int x, y; cin >> ed1[i] >>ed2[i] ;
^
0_0_33107353_12174.cpp:20:30: error: 'ed2' was not declared in this scope
int x, y; cin >> ed1[i] >>ed2[i] ;
^
0_0_33107353_12174.cpp:22:13: error: 'adde' was not declared in this scope
adde(x, y); adde(y, x);
^
0_0_33107353_12174.cpp:24:12: error: 'dfs1' was not declared in this scope
dfs1(1, 1);
^
0_0_33107353_12174.cpp:25:12: error: 'dfs2' was not declared in this scope
dfs2(1, 1);
^
0_0_33107353_12174.cpp:28:4: error: 'string' was not declared in this scope
string s; cin >> s;
^
0_0_33107353_12174.cpp:28:21: error: 's' was not declared in this scope
string s; cin >> s;
^
0_0_33107353_12174.cpp:32:17: error: 'sum1' was not declared in this scope
sum1(x, y, c);
^
0_0_33107353_12174.cpp:37:17: error: 'sum2' was not declared in this scope
sum2(x, y, c);
^
0_0_33107353_12174.cpp:40:40: error: 'endl' was not declared in this scope
cout << "Case #" << tt - t << ":" << endl;
^
0_0_33107353_12174.cpp:41:18: error: 'bh' was not declared in this scope
cout << query1(bh[1], 1, n, 1);
^
0_0_33107353_12174.cpp:41:32: error: 'query1' was not declared in this scope
cout << query1(bh[1], 1, n, 1);
^
0_0_33107353_12174.cpp:47:7: error: 'ed1' was not declared in this scope
if (ed1[1] == f[ed2[1]])cout << query2(bh[ed2[1]], 1, n, 1);
^
0_0_33107353_12174.cpp:47:17: error: 'f' was not declared in this scope
if (ed1[1] == f[ed2[1]])cout << query2(bh[ed2[1]], 1, n, 1);
^
0_0_33107353_12174.cpp:47:19: error: 'ed2' was not declared in this scope
if (ed1[1] == f[ed2[1]])cout << query2(bh[ed2[1]], 1, n, 1);
^
0_0_33107353_12174.cpp:47:61: error: 'query2' was not declared in this scope
if (ed1[1] == f[ed2[1]])cout << query2(bh[ed2[1]], 1, n, 1);
^
0_0_33107353_12174.cpp:48:41: error: 'query2' was not declared in this scope
else cout<< query2(bh[ed1[1]], 1, n, 1);
^
0_0_33107353_12174.cpp:51:7: error: 'ed1' was not declared in this scope
if(ed1[i]==f[ed2[i]])cout<<" "<<query2(bh[ed2[i]], 1, n, 1);
^
0_0_33107353_12174.cpp:51:15: error: 'f' was not declared in this scope
if(ed1[i]==f[ed2[i]])cout<<" "<<query2(bh[ed2[i]], 1, n, 1);
^
0_0_33107353_12174.cpp:51:17: error: 'ed2' was not declared in this scope
if(ed1[i]==f[ed2[i]])cout<<" "<<query2(bh[ed2[i]], 1, n, 1);
^
0_0_33107353_12174.cpp:51:62: error: 'query2' was not declared in this scope
if(ed1[i]==f[ed2[i]])cout<<" "<<query2(bh[ed2[i]], 1, n, 1);
^
0_0_33107353_12174.cpp:52:50: error: 'query2' was not declared in this scope
else cout << " " << query2(bh[ed1[i]], 1, n, 1);
^
|