0_0_25586512_32589.cpp:6:11: error: redefinition of 'int f [55][55]' int f[N][N]; ^ 0_0_25586512_32589.cpp:5:21: note: 'int f [55][55]' previously declared here int g[N][N],d[N][N],f[N][N],a[M][N][N],b[M][N][N]; ^