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