0_0_25459064_19099.cpp: In function 'int main()': 0_0_25459064_19099.cpp:22:17: error: 'p' was not declared in this scope mp[i*n+j][k*p+(j*k+i)%n] = 1; ^