0_0_28636179_26884.cpp:7:29: error: redefinition of 'int cnt' int t[maxn][maxn],n,r,c,cnt,cnt; ^ 0_0_28636179_26884.cpp:7:25: note: 'int cnt' previously declared here int t[maxn][maxn],n,r,c,cnt,cnt; ^