/in/exam3_matrix.cpp:16:5: error: prototype for 'intMatrix::intMatrix(int, int, int*)' does not match any in class 'intMatrix'
intMatrix::intMatrix(int num_row,int num_col,int*initialValue)
^~~~~~~~~
In file included from /in/exam3_matrix.cpp:2:0:
/in/compile/exam3_matrix.h:27:2: error: candidates are: intMatrix::intMatrix(int, int, int)
intMatrix(int r = 1 , int c = 1, int initialValue = 1); //TODO: Complete this construstor. 7Pts.
^~~~~~~~~
/in/compile/exam3_matrix.h:23:2: error: intMatrix::intMatrix(const intMatrix&)
intMatrix(const intMatrix & that) {
^~~~~~~~~
/in/exam3_matrix.cpp:48:6: error: extra ';' [-Werror=pedantic]
};//TODO. 7Pts.
^
/in/exam3_matrix.cpp: In member function 'void intMatrix::saveTo(std::__cxx11::string)':
/in/exam3_matrix.cpp:64:22: error: ISO C++ forbids variable length array 'matrix' [-Werror=vla]
int matrix[rows][cols];
^
/in/exam3_matrix.cpp:64:22: error: ISO C++ forbids variable length array 'matrix' [-Werror=vla]
/in/exam3_matrix.cpp:71:25: error: cannot convert 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' to 'FILE* {aka _IO_FILE*}' for argument '1' to 'int fprintf(FILE*, const char*, ...)'
fprintf(fileName);
^
cc1plus: all warnings being treated as errors