/in/exam3_matrix.cpp:8:21: error: expected constructor, destructor, or type conversion before '(' token
intMatrix::intMatrix(rows = 1, cols = 1, initialValue = 1){
^
/in/exam3_matrix.cpp: In function 'void fillFrom(std::vector<int>&)':
/in/exam3_matrix.cpp:22:26: error: 'cols' was not declared in this scope
if (source.size() != cols) {
^~~~
/in/exam3_matrix.cpp:28:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int k = 0; k < source.size(); k++) {
~~^~~~~~~~~~~~~~~
/in/exam3_matrix.cpp:29:13: error: 'flatternarray' was not declared in this scope
flatternarray[i + 1][k] = source[k];
^~~~~~~~~~~~~
/in/exam3_matrix.cpp:29:27: error: 'i' was not declared in this scope
flatternarray[i + 1][k] = source[k];
^
/in/exam3_matrix.cpp: In function 'int getElement(int, int)':
/in/exam3_matrix.cpp:35:9: error: 'flatternArray' was not declared in this scope
a = flatternArray[rowNum - 1][colNum - 1];
^~~~~~~~~~~~~
/in/exam3_matrix.cpp: In function 'void saveTo(std::__cxx11::string)':
/in/exam3_matrix.cpp:41:25: error: 'rows' was not declared in this scope
for (int i = 0; i < rows; i++) {
^~~~
/in/exam3_matrix.cpp:42:29: error: 'cols' was not declared in this scope
for (int j = 0; j < cols; j++) {
^~~~
/in/exam3_matrix.cpp:43:21: error: 'flatternArray' was not declared in this scope
fout << flatternArray[i][j] << ',';
^~~~~~~~~~~~~
cc1plus: all warnings being treated as errors