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