/in/exam3_matrix.cpp:5:1: error: prototype for 'intMatrix::intMatrix()' does not match any in class 'intMatrix'
intMatrix::intMatrix(){
^~~~~~~~~
In file included from /in/exam3_matrix.cpp:3: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:12:1: error: prototype for 'intMatrix::intMatrix(int&, int&, int*)' does not match any in class 'intMatrix'
intMatrix::intMatrix(int &x,int &y,int *z){
^~~~~~~~~
In file included from /in/exam3_matrix.cpp:3: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:22:11: error: 'raws' was not declared in this scope
delete[] raws;
^~~~
/in/exam3_matrix.cpp:22:11: note: suggested alternative: 'rows'
delete[] raws;
^~~~
rows
/in/exam3_matrix.cpp:23:11: error: type 'int' argument given to 'delete', expected pointer
delete[] cols;
^~~~
/in/exam3_matrix.cpp: In member function 'int intMatrix::getRowSize()':
/in/exam3_matrix.cpp:28:15: error: 'class intMatrix' has no member named 'raws'; did you mean 'rows'?
return this->raws;
^~~~
rows
/in/exam3_matrix.cpp: In member function 'void intMatrix::fillFrom(std::vector<int>&)':
/in/exam3_matrix.cpp:36:9: error: 'raws' was not declared in this scope
int x0=raws*raws;
^~~~
/in/exam3_matrix.cpp:36:9: note: suggested alternative: 'rows'
int x0=raws*raws;
^~~~
rows
/in/exam3_matrix.cpp:38:16: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for(int i=0;i<source.size();i++){
~^~~~~~~~~~~~~~
/in/exam3_matrix.cpp:42:7: error: no match for 'operator>>' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'const char [15]')
cout>>"size unmatched">>endl;
~~~~^~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/7/string:53:0,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from /in/exam3_matrix.cpp:1:
/usr/include/c++/7/bits/basic_string.tcc:1465:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
operator>>(basic_istream<_CharT, _Traits>& __in,
^~~~~~~~
/usr/include/c++/7/bits/basic_string.tcc:1465:5: note: template argument deduction/substitution failed:
/in/exam3_matrix.cpp:42:9: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>'
cout>>"size unmatched">>endl;
^~~~~~~~~~~~~~~~
In file included from /usr/include/c++/7/istream:991:0,
from /usr/include/c++/7/iostream:40,
from /in/exam3_matrix.cpp:1:
/usr/include/c++/7/bits/istream.tcc:963:5: note: candidate: template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*)
operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
^~~~~~~~
/usr/include/c++/7/bits/istream.tcc:963:5: note: template argument deduction/substitution failed:
/in/exam3_matrix.cpp:42:9: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>'
cout>>"size unmatched">>endl;
^~~~~~~~~~~~~~~~
In file included from /usr/include/c++/7/istream:991:0,
from /usr/include/c++/7/iostream:40,
from /in/exam3_matrix.cpp:1:
/usr/include/c++/7/bits/istream.tcc:931:5: note: candidate: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&)
operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
^~~~~~~~
/usr/include/c++/7/bits/istream.tcc:931:5: note: template argument deduction/substitution failed:
/in/exam3_matrix.cpp:42:9: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>'
cout>>"size unmatched">>endl;
^~~~~~~~~~~~~~~~
In file included from /usr/include/c++/7/iostream:40:0,
from /in/exam3_matrix.cpp:1:
/usr/include/c++/7/istream:756:5: note: candidate: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&)
operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
^~~~~~~~
/usr/include/c++/7/istream:756:5: note: template argument deduction/substitution failed:
/in/exam3_matrix.cpp:42:9: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>'
cout>>"size unmatched">>endl;
^~~~~~~~~~~~~~~~
In file included from /usr/include/c++/7/iostream:40:0,
from /in/exam3_matrix.cpp:1:
/usr/include/c++/7/istream:761:5: note: candidate: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&)
operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
^~~~~~~~
/usr/include/c++/7/istream:761:5: note: template argument deduction/substitution failed:
/in/exam3_matrix.cpp:42:9: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>'
cout>>"size unmatched">>endl;
^~~~~~~~~~~~~~~~
In file included from /usr/include/c++/7/iostream:40:0,
from /in/exam3_matrix.cpp:1:
/usr/include/c++/7/istream:803:5: note: candidate: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char*)
operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
^~~~~~~~
/usr/include/c++/7/istream:803:5: note: template argument deduction/substitution failed:
/in/exam3_matrix.cpp:42:9: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>'
cout>>"size unmatched">>endl;
^~~~~~~~~~~~~~~~
In file included from /usr/include/c++/7/iostream:40:0,
from /in/exam3_matrix.cpp:1:
/usr/include/c++/7/istream:808:5: note: candidate: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char*)
operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
^~~~~~~~
/usr/include/c++/7/istream:808:5: note: template argument deduction/substitution failed:
/in/exam3_matrix.cpp:42:9: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>'
cout>>"size unmatched">>endl;
^~~~~~~~~~~~~~~~
In file included from /usr/include/c++/7/iostream:40:0,
from /in/exam3_matrix.cpp:1:
/usr/include/c++/7/istream:980:5: note: candidate: template<class _Istream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_istream<_Istream>, std::__is_extractable<typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type, _Tp&&, void> >::value, typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type>::type std::operator>>(_Istream&&, _Tp&&)
operator>>(_Istream&& __is, _Tp&& __x)
^~~~~~~~
/usr/include/c++/7/istream:980:5: note: template argument deduction/substitution failed:
/usr/include/c++/7/istream: In substitution of 'template<class _Istream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_istream<_Istream>, std::__is_extractable<typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type, _Tp&&, void> >::value, typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type>::type std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = const char (&)[15]]':
/in/exam3_matrix.cpp:42:9: required from here
/usr/include/c++/7/istream:980:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
/in/exam3_matrix.cpp:36:6: error: unused variable 'x0' [-Werror=unused-variable]
int x0=raws*raws;
^~
/in/exam3_matrix.cpp: In member function 'int intMatrix::getElement(int, int)':
/in/exam3_matrix.cpp:46:25: error: 'raws' was not declared in this scope
return *(flatternArray+raws*(colNum-1)+rowNum-1);
^~~~
/in/exam3_matrix.cpp:46:25: note: suggested alternative: 'rows'
return *(flatternArray+raws*(colNum-1)+rowNum-1);
^~~~
rows
cc1plus: all warnings being treated as errors