/in/exam3_matrix.cpp:13:1: error: prototype for 'intMatrix::intMatrix(int, int, int, int)' does not match any in class 'intMatrix'
intMatrix::intMatrix(int a, int b, int c, int d){
^~~~~~~~~
In file included from /in/exam3_matrix.cpp:10: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: In destructor 'intMatrix::~intMatrix()':
/in/exam3_matrix.cpp:28:19: error: 'number' was not declared in this scope
delete [] number[i];
^~~~~~
/in/exam3_matrix.cpp:29:15: error: 'number' was not declared in this scope
delete [] number;
^~~~~~
/in/exam3_matrix.cpp: At global scope:
/in/exam3_matrix.cpp:33:2: error: extra ';' [-Werror=pedantic]
};
^
/in/exam3_matrix.cpp:36:2: error: extra ';' [-Werror=pedantic]
};
^
/in/exam3_matrix.cpp: In member function 'void intMatrix::fillFrom(std::vector<int>&)':
/in/exam3_matrix.cpp:41:13: error: 'number' was not declared in this scope
number[i][j]=source[idx];
^~~~~~
/in/exam3_matrix.cpp: In member function 'int intMatrix::getElement(int, int)':
/in/exam3_matrix.cpp:47:12: error: 'number' was not declared in this scope
return number[rowNum-1][colNum-1];
^~~~~~
/in/exam3_matrix.cpp: In member function 'void intMatrix::saveTo(std::__cxx11::string)':
/in/exam3_matrix.cpp:50:14: error: declaration of 'std::ofstream fileName' shadows a parameter
ofstream fileName;
^~~~~~~~
/in/exam3_matrix.cpp:51:5: error: 'outfile' was not declared in this scope
outfile.open(fileName, ios::binary | ios::app | ios::in | ios::out);
^~~~~~~
/in/exam3_matrix.cpp:51:5: note: suggested alternative: 'tmpfile'
outfile.open(fileName, ios::binary | ios::app | ios::in | ios::out);
^~~~~~~
tmpfile
/in/exam3_matrix.cpp:54:22: error: 'number' was not declared in this scope
outfile<<number[i][j]<<",";
^~~~~~
/in/exam3_matrix.cpp:56:18: error: 'number' was not declared in this scope
outfile<<number[i][j]<<"\n";
^~~~~~
/in/exam3_matrix.cpp:56:28: error: 'j' was not declared in this scope
outfile<<number[i][j]<<"\n";
^
/in/exam3_matrix.cpp:56:28: note: suggested alternative: 'jn'
outfile<<number[i][j]<<"\n";
^
jn
/in/exam3_matrix.cpp:49:31: error: unused parameter 'fileName' [-Werror=unused-parameter]
void intMatrix::saveTo(string fileName){
^~~~~~~~
cc1plus: all warnings being treated as errors