/in/exam3_matrix.cpp:3:1: error: 'intMatri' does not name a type; did you mean 'intMatrix'?
intMatri::intMatrix(int row, int col){
^~~~~~~~
intMatrix
/in/exam3_matrix.cpp:8:1: error: 'intMatri' does not name a type; did you mean 'intMatrix'?
intMatri::~intMatrix(){
^~~~~~~~
intMatrix
/in/exam3_matrix.cpp:12:5: error: 'intMatri' has not been declared
int intMatri::getRowSize(){
^~~~~~~~
/in/exam3_matrix.cpp: In function 'int getRowSize()':
/in/exam3_matrix.cpp:13:12: error: 'rows' was not declared in this scope
return rows;
^~~~
/in/exam3_matrix.cpp: At global scope:
/in/exam3_matrix.cpp:16:5: error: 'intMatri' has not been declared
int intMatri::getColumnSize(){
^~~~~~~~
/in/exam3_matrix.cpp: In function 'int getColumnSize()':
/in/exam3_matrix.cpp:17:12: error: 'cols' was not declared in this scope
return cols;
^~~~
/in/exam3_matrix.cpp: At global scope:
/in/exam3_matrix.cpp:19:6: error: 'intMatri' has not been declared
void intMatri::fillFrom(std::vector<int> &source){
^~~~~~~~
/in/exam3_matrix.cpp: In function 'void fillFrom(std::vector<int>&)':
/in/exam3_matrix.cpp:21:20: error: 'col' was not declared in this scope
int row = size/col;
^~~
/in/exam3_matrix.cpp:22:14: error: 'rows' was not declared in this scope
if(row > rows) printf("size unmatched\n");
^~~~
/in/exam3_matrix.cpp:22:14: note: suggested alternative: 'row'
if(row > rows) printf("size unmatched\n");
^~~~
row
/in/exam3_matrix.cpp:23:14: error: 'flatternArrary' was not declared in this scope
int *p = flatternArrary;
^~~~~~~~~~~~~~
/in/exam3_matrix.cpp:24:29: error: 'size' cannot be used as a function
for(int i = 0; i < size(); i++){
^
/in/exam3_matrix.cpp:25:22: error: no match for call to '(std::vector<int>) (int&)'
*p = source(i);
^
/in/exam3_matrix.cpp: At global scope:
/in/exam3_matrix.cpp:29:5: error: 'intMatri' has not been declared
int intMatri::getElement(int rowNum, int colNum){
^~~~~~~~
/in/exam3_matrix.cpp: In function 'int getElement(int, int)':
/in/exam3_matrix.cpp:31:28: error: 'cols' was not declared in this scope
count = (rowNum - 1) * cols + colNum;
^~~~
/in/exam3_matrix.cpp:32:14: error: 'flatternArrary' was not declared in this scope
int *p = flatternArrary;
^~~~~~~~~~~~~~
/in/exam3_matrix.cpp: At global scope:
/in/exam3_matrix.cpp:40:6: error: 'intMatri' has not been declared
void intMatri::saveTo(std::string fileName){
^~~~~~~~
/in/exam3_matrix.cpp: In function 'void saveTo(std::__cxx11::string)':
/in/exam3_matrix.cpp:40:35: error: unused parameter 'fileName' [-Werror=unused-parameter]
void intMatri::saveTo(std::string fileName){
^~~~~~~~
cc1plus: all warnings being treated as errors