Help me in solving MATMULTIPLIC problem

My issue

I don’t know whats the error in this code.
need help!

My code

#include <bits/stdc++.h>
using namespace std;

int main() {
        int m,n;
        cin >> m >> n;
        vector<vector<int>>arr1(m,vector<int>(n));
        
        for(int i = 0; i<m; i++){
                for(int j=0; j<n; j++){
                        cin>> arr1[i][j];
                }
        }
	int p;
	cin >> p;
	
	
	
	vector<vector<int>> arr2(n,vector<int>(p));
	
	for(int i = 0 ; i<n; i++){
	        for(int j=0; j<p; j++){
	                cin >> arr2[i][j];
	        }
	}
	vector<vector<int>>arr3(m,vector<int>(p,0));

	for (int i=0; i<m; i++){
	        for(int j=0; j<p; j++){
	                for(int k=0; k<n; k++){
	                        arr3[i][j] += arr1[i][k] * arr2[k][j];
	                }
	        }
	}
	
	
	
	
	for(int i=0; i<m; i++){
	        for(int j=0; j<p; j++){
	                cout << arr3[i][j] << " ";
	        }
	        cout << endl;
	}
	return 0;
}

Learning course: Data structures & Algorithms lab
Problem Link: https://www.codechef.com/learn/course/muj-aiml-dsa-c/MUJADSAC09/problems/MATMULTIPLIC