0_0_36361599_26405.cpp:11:5: error: redefinition of 'int cnt' int cnt; ^ 0_0_36361599_26405.cpp:9:15: note: 'int cnt' previously defined here int stk[MAXN],cnt = 0; ^