0_0_29567770_17357.cpp:126:5: error: redefinition of 'int n' int n; ^ 0_0_29567770_17357.cpp:48:16: note: 'int n' previously declared here int tot, root, n, INF = 0x7fffffff; ^