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