Java Solution along with c++
Accepted Solution in java\n\nclass Solution {\n    public int[][] rangeAddQueries(int n, int[][] qu) {\n        int ans[][] =new int[n][n];\n        for(int [] 
# Accepted Solution in java\n```\nclass Solution {\n    public int[][] rangeAddQueries(int n, int[][] qu) {\n        int ans[][] =new int[n][n];\n        for(int [] q:qu){\n            int r1=q[0];\n            int c1=q[1];\n            int r2=q[2];\n            int c2=q[3];\n            for(int i=r1;i<=r2;i++){\n                for(int j=c1;j<=c2;j++){\n                    ans[i][j]++;\n                }\n            }\n        }\n        return ans;\n        \n    }\n}\n```\n# TlE in c++ solution for same code line \uD83E\uDD72\n```\nclass Solution {\npublic:\n    vector<vector<int>> rangeAddQueries(int n, vector<vector<int>>& queries) {\n        vector<vector<int>> vv(n,vector<int> (n,0));\n        for(auto q:queries){\n            int r1=q[0];\n            int c1=q[1];\n            int r2=q[2];\n            int c2=q[3];\n            for(int j=r1;j<=r2;j++){\n                for(int k=c1;k<=c2;k++){\n                    vv[j][k]++;\n                }\n            }\n        }\n        return vv;\n    }\n};\n```
['C++', 'Java']