/in/exam3_matrix.cpp:14:55: error: destructors may not have parameters
~intMatrix(int rows=1, int cols=1, int initialValue=1);//TODO: Complete this destructor. 5Pts.
^
/in/exam3_matrix.cpp:16:17: error: 'rows' has not been declared
int getRowSize(rows){
^~~~
/in/exam3_matrix.cpp:20:20: error: 'cols' has not been declared
int getColumnSize(cols){
^~~~
/in/exam3_matrix.cpp:60:2: error: expected '}' at end of input
};
^
/in/exam3_matrix.cpp: In member function 'int intMatrix::getRowSize(int)':
/in/exam3_matrix.cpp:17:11: error: 'cout' is not a member of 'std'
std::cout<<rows<<std::sendl;
^~~~
/in/exam3_matrix.cpp:17:11: note: suggested alternative: 'copy'
std::cout<<rows<<std::sendl;
^~~~
copy
/in/exam3_matrix.cpp:17:17: error: 'rows' was not declared in this scope
std::cout<<rows<<std::sendl;
^~~~
/in/exam3_matrix.cpp:17:28: error: 'sendl' is not a member of 'std'
std::cout<<rows<<std::sendl;
^~~~~
/in/exam3_matrix.cpp:17:28: note: suggested alternative: 'endl'
std::cout<<rows<<std::sendl;
^~~~~
endl
/in/exam3_matrix.cpp:18:2: error: no return statement in function returning non-void [-Werror=return-type]
}//TODO. 1Pts
^
/in/exam3_matrix.cpp: In member function 'int intMatrix::getColumnSize(int)':
/in/exam3_matrix.cpp:21:11: error: 'cout' is not a member of 'std'
std::cout<<cols<<std::endl;
^~~~
/in/exam3_matrix.cpp:21:11: note: suggested alternative: 'copy'
std::cout<<cols<<std::endl;
^~~~
copy
/in/exam3_matrix.cpp:21:17: error: 'cols' was not declared in this scope
std::cout<<cols<<std::endl;
^~~~
/in/exam3_matrix.cpp:22:2: error: no return statement in function returning non-void [-Werror=return-type]
}//TODO. 1Pts
^
/in/exam3_matrix.cpp: In member function 'void intMatrix::fillFrom(std::vector<int>&)':
/in/exam3_matrix.cpp:27:6: error: 'cols' was not declared in this scope
if(cols*rows != sz + 1){
^~~~
/in/exam3_matrix.cpp:27:11: error: 'rows' was not declared in this scope
if(cols*rows != sz + 1){
^~~~
/in/exam3_matrix.cpp:28:12: error: 'cout' is not a member of 'std'
std::cout<<"size unmatched"<<std::endl;
^~~~
/in/exam3_matrix.cpp:28:12: note: suggested alternative: 'copy'
std::cout<<"size unmatched"<<std::endl;
^~~~
copy
/in/exam3_matrix.cpp:31:8: error: 'flatternArray' was not declared in this scope
flatternArray[i] = source[i];
^~~~~~~~~~~~~
/in/exam3_matrix.cpp:36:40: error: a function-definition is not allowed here before '{' token
int getElement(int rowNum, int colNum){
^
/in/exam3_matrix.cpp:44:35: error: a function-definition is not allowed here before '{' token
void saveTo(std::string fileName){
^
/in/exam3_matrix.cpp:52:1: error: expected primary-expression before 'protected'
protected:
^~~~~~~~~
/in/exam3_matrix.cpp:56:6: error: unused variable 'cols' [-Werror=unused-variable]
int cols;
^~~~
/in/exam3_matrix.cpp:59:7: error: unused variable 'flatternArray' [-Werror=unused-variable]
int *flatternArray;
^~~~~~~~~~~~~
/in/exam3_matrix.cpp: At global scope:
/in/exam3_matrix.cpp:60:1: error: expected unqualified-id at end of input
};
^
cc1plus: all warnings being treated as errors