0_0_25651284_9324.cpp: In function 'int LCA(int, int)':
0_0_25651284_9324.cpp:36:35: error: 'swap' was not declared in this scope
if (dep[x] < dep[y]) swap(x, y);/*dep[x] >= dep[y]*/
^
0_0_25651284_9324.cpp: In function 'int Calc(int, int, int)':
0_0_25651284_9324.cpp:63:51: error: 'swap' was not declared in this scope
if (dep[tab.x] < dep[tac.x]) swap(tab, tac);
^
0_0_25651284_9324.cpp:67:51: error: 'swap' was not declared in this scope
if (dep[tab.x] < dep[tac.x]) swap(tab, tac);
^
0_0_25651284_9324.cpp:71:42: error: 'swap' was not declared in this scope
if (tab.kind == -1) swap(tab, tac);
^
0_0_25651284_9324.cpp: In function 'int main(int, const char**)':
0_0_25651284_9324.cpp:84:23: error: 'read' was not declared in this scope
int kase;read(kase);
^
0_0_25651284_9324.cpp:88:37: error: 'memset' was not declared in this scope
memset(head, -1, sizeof head), ecnt = 0;/*kuai*/
^
0_0_25651284_9324.cpp:90:13: error: 'i' was not declared in this scope
Rep(i, 1, n - 1) {
^
0_0_25651284_9324.cpp:90:24: error: 'Rep' was not declared in this scope
Rep(i, 1, n - 1) {
^
0_0_25651284_9324.cpp:102:77: error: 'printf' was not declared in this scope
printf("%d %d %d\n", Calc(a, b, c), Calc(b, a, c), Calc(c, a, b));
^
|