A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
You are using a compiler that offers a non-standard additional feature: Variable-Length Arrays.
In Visual Studio, try an alternative:
//int a[R][C]; // >>>>>>>>>>>>>>>> LINE 39, C2131 Error <<<<<<<<<<<<<<<
vector<vector<int>> a( R );
for( auto& r : a ) r.resize( C );
Also add #include <vector>.
However, there are other solutions.