F.cpp: In member function ‘A A::operator*(A&)’:
F.cpp:81:16: error: no match for ‘operator+=’ (operand types are ‘B’ and ‘B’)
r.a[i][j] += (a[i][k] * p.a[k][j]);
^
F.cpp:81:16: note: candidate is:
F.cpp:36:7: note: void B::operator+=(B&)
void operator +=(B &a){
^
F.cpp:36:7: note: no known conversion for argument 1 from ‘B’ to ‘B&’
F.cpp: In member function ‘A A::operator-(A&)’:
F.cpp:90:13: warning: unused variable ‘k’ [-Wunused-variable]
int i, j, k;
^
F.cpp: In member function ‘A A::operator+(A&)’:
F.cpp:103:13: warning: unused variable ‘k’ [-Wunused-variable]
int i, j, k;
^
F.cpp: In function ‘A exxp(A, int)’:
F.cpp:141:6: warning: unused variable ‘i’ [-Wunused-variable]
int i, j, k;
^
F.cpp:141:9: warning: unused variable ‘j’ [-Wunused-variable]
int i, j, k;
^
F.cpp:141:12: warning: unused variable ‘k’ [-Wunused-variable]
int i, j, k;
^
F.cpp: In function ‘int main()’:
F.cpp:201:21: error: no match for ‘operator+=’ (operand types are ‘B’ and ‘B’)
me.a[id1][id2] += me.a[j][l] * me.a[i][k];
^
F.cpp:201:21: note: candidate is:
F.cpp:36:7: note: void B::operator+=(B&)
void operator +=(B &a){
^
F.cpp:36:7: note: no known conversion for argument 1 from ‘B’ to ‘B&’
F.cpp:229:19: error: no match for ‘operator+=’ (operand types are ‘B’ and ‘B’)
me.a[i+22][id] += (me.a[i][j] * (-1));
^
F.cpp:229:19: note: candidate is:
F.cpp:36:7: note: void B::operator+=(B&)
void operator +=(B &a){
^
F.cpp:36:7: note: no known conversion for argument 1 from ‘B’ to ‘B&’
F.cpp:255:19: error: no match for ‘operator+=’ (operand types are ‘B’ and ‘B’)
me.a[i+26][id] += (me.a[i][j] * (-1));
^
F.cpp:255:19: note: candidate is:
F.cpp:36:7: note: void B::operator+=(B&)
void operator +=(B &a){
^
F.cpp:36:7: note: no known conversion for argument 1 from ‘B’ to ‘B&’
F.cpp:280:32: error: no match for ‘operator+’ (operand types are ‘B’ and ‘B’)
B res = ((rrr.a[jj][0]) * q) +((rrr.a[jj][1]) * p) + ((rrr.a[jj][3]) * r)
^
F.cpp:280:32: note: candidates are:
F.cpp:32:4: note: B B::operator+(B&)
B operator +(B &a){
^
F.cpp:32:4: note: no known conversion for argument 1 from ‘B’ to ‘B&’
F.cpp:41:4: note: B B::operator+(long long int)
B operator +(long long int a){
^
F.cpp:41:4: note: no known conversion for argument 1 from ‘B’ to ‘long long int’
In file included from /usr/include/c++/4.9/bits/stl_algobase.h:67:0,
from /usr/include/c++/4.9/algorithm:61,
from F.cpp:2:
/usr/include/c++/4.9/bits/stl_iterator.h:334:5: note: template<class _Iterator> std::reverse_iterator<_Iterator> std::operator+(typename std::reverse_iterator<_Iterator>::difference_type, const std::reverse_iterator<_Iterator>&)
operator+(typename reverse_iterator<_Iterator>::difference_type __n,
^
/usr/include/c++/4.9/bits/stl_iterator.h:334:5: note: template argument deduction/substitution failed:
F.cpp:280:52: note: ‘B’ is not derived from ‘const std::reverse_iterator<_Iterator>’
B res = ((rrr.a[jj][0]) * q) +((rrr.a[jj][1]) * p) + ((rrr.a[jj][3]) * r)
^
In file included from /usr/include/c++/4.9/bits/stl_algobase.h:67:0,
from /usr/include/c++/4.9/algorithm:61,
from F.cpp:2:
/usr/include/c++/4.9/bits/stl_iterator.h:1135:5: note: template<class _Iterator> std::move_iterator<_Iterator> std::operator+(typename std::move_iterator<_Iterator>::difference_type, const std::move_iterator<_Iterator>&)
operator+(typename move_iterator<_Iterator>::difference_type __n,
^
/usr/include/c++/4.9/bits/stl_iterator.h:1135:5: note: template argument deduction/substitution failed:
F.cpp:280:52: note: ‘B’ is not derived from ‘const std::move_iterator<_Iterator>’
B res = ((rrr.a[jj][0]) * q) +((rrr.a[jj][1]) * p) + ((rrr.a[jj][3]) * r)
^
In file included from /usr/include/c++/4.9/string:52:0,
from /usr/include/c++/4.9/random:40,
from /usr/include/c++/4.9/bits/stl_algo.h:66,
from /usr/include/c++/4.9/algorithm:62,
from F.cpp:2:
/usr/include/c++/4.9/bits/basic_string.h:2384:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&)
operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
^
/usr/include/c++/4.9/bits/basic_string.h:2384:5: note: template argument deduction/substitution failed:
F.cpp:280:52: note: ‘B’ is not derived from ‘const std::basic_string<_CharT, _Traits, _Alloc>’
B res = ((rrr.a[jj][0]) * q) +((rrr.a[jj][1]) * p) + ((rrr.a[jj][3]) * r)
^
In file included from /usr/include/c++/4.9/string:53:0,
from /usr/include/c++/4.9/random:40,
from /usr/include/c++/4.9/bits/stl_algo.h:66,
from /usr/include/c++/4.9/algorithm:62,
from F.cpp:2:
/usr/include/c++/4.9/bits/basic_string.tcc:692:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const _CharT*, const std::basic_string<_CharT, _Traits, _Alloc>&)
operator+(const _CharT* __lhs,
^
/usr/include/c++/4.9/bits/basic_string.tcc:692:5: note: template argument deduction/substitution failed:
F.cpp:280:52: note: mismatched types ‘const _CharT*’ and ‘B’
B res = ((rrr.a[jj][0]) * q) +((rrr.a[jj][1]) * p) + ((rrr.a[jj][3]) * r)
^
In file included from /usr/include/c++/4.9/string:53:0,
from /usr/include/c++/4.9/random:40,
from /usr/include/c++/4.9/bits/stl_algo.h:66,
from /usr/include/c++/4.9/algorithm:62,
from F.cpp:2:
/usr/include/c++/4.9/bits/basic_string.tcc:708:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(_CharT, const std::basic_string<_CharT, _Traits, _Alloc>&)
operator+(_CharT __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs)
^
/usr/include/c++/4.9/bits/basic_string.tcc:708:5: note: template argument deduction/substitution failed:
F.cpp:280:52: note: ‘B’ is not derived from ‘const std::basic_string<_CharT, _Traits, _Alloc>’
B res = ((rrr.a[jj][0]) * q) +((rrr.a[jj][1]) * p) + ((rrr.a[jj][3]) * r)
^
In file included from /usr/include/c++/4.9/string:52:0,
from /usr/include/c++/4.9/random:40,
from /usr/include/c++/4.9/bits/stl_algo.h:66,
from /usr/include/c++/4.9/algorithm:62,
from F.cpp:2:
/usr/include/c++/4.9/bits/basic_string.h:2421:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)
operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
^
/usr/include/c++/4.9/bits/basic_string.h:2421:5: note: template argument deduction/substitution failed:
F.cpp:280:52: note: ‘B’ is not derived from ‘const std::basic_string<_CharT, _Traits, _Alloc>’
B res = ((rrr.a[jj][0]) * q) +((rrr.a[jj][1]) * p) + ((rrr.a[jj][3]) * r)
^
In file included from /usr/include/c++/4.9/string:52:0,
from /usr/include/c++/4.9/random:40,
from /usr/include/c++/4.9/bits/stl_algo.h:66,
from /usr/include/c++/4.9/algorithm:62,
from F.cpp:2:
/usr/include/c++/4.9/bits/basic_string.h:2437:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::basic_string<_CharT, _Traits, _Alloc>&, _CharT)
operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs)
^
/usr/include/c++/4.9/bits/basic_string.h:2437:5: note: template argument deduction/substitution failed:
F.cpp:280:52: note: ‘B’ is not derived from ‘const std::basic_string<_CharT, _Traits, _Alloc>’
B res = ((rrr.a[jj][0]) * q) +((rrr.a[jj][1]) * p) + ((rrr.a[jj][3]) * r)
^
In file included from /usr/include/c++/4.9/string:52:0,
from /usr/include/c++/4.9/random:40,
from /usr/include/c++/4.9/bits/stl_algo.h:66,
from /usr/include/c++/4.9/algorithm:62,
from F.cpp:2:
/usr/include/c++/4.9/bits/basic_string.h:2449:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(std::basic_string<_CharT, _Traits, _Alloc>&&, const std::basic_string<_CharT, _Traits, _Alloc>&)
operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
^
/usr/include/c++/4.9/bits/basic_string.h:2449:5: note: template argument deduction/substitution failed:
F.cpp:280:52: note: ‘B’ is not derived from ‘std::basic_string<_CharT, _Traits, _Alloc>’
B res = ((rrr.a[jj][0]) * q) +((rrr.a[jj][1]) * p) + ((rrr.a[jj][3]) * r)
^
In file included from /usr/include/c++/4.9/string:52:0,
from /usr/include/c++/4.9/random:40,
from /usr/include/c++/4.9/bits/stl_algo.h:66,
from /usr/include/c++/4.9/algorithm:62,
from F.cpp:2:
/usr/include/c++/4.9/bits/basic_string.h:2455:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::basic_string<_CharT, _Traits, _Alloc>&, std::basic_string<_CharT, _Traits, _Alloc>&&)
operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
^
/usr/include/c++/4.9/bits/basic_string.h:2455:5: note: template argument deduction/substitution failed:
F.cpp:280:52: note: ‘B’ is not derived from ‘const std::basic_string<_CharT, _Traits, _Alloc>’
B res = ((rrr.a[jj][0]) * q) +((rrr.a[jj][1]) * p) + ((rrr.a[jj][3]) * r)
^
In file included from /usr/include/c++/4.9/string:52:0,
from /usr/include/c++/4.9/random:40,
from /usr/include/c++/4.9/bits/stl_algo.h:66,
from /usr/include/c++/4.9/algorithm:62,
from F.cpp:2:
/usr/include/c++/4.9/bits/basic_string.h:2461:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(std::basic_string<_CharT, _Traits, _Alloc>&&, std::basic_string<_CharT, _Traits, _Alloc>&&)
operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
^
/usr/include/c++/4.9/bits/basic_string.h:2461:5: note: template argument deduction/substitution failed:
F.cpp:280:52: note: ‘B’ is not derived from ‘std::basic_string<_CharT, _Traits, _Alloc>’
B res = ((rrr.a[jj][0]) * q) +((rrr.a[jj][1]) * p) + ((rrr.a[jj][3]) * r)
^
In file included from /usr/include/c++/4.9/string:52:0,
from /usr/include/c++/4.9/random:40,
from /usr/include/c++/4.9/bits/stl_algo.h:66,
from /usr/include/c++/4.9/algorithm:62,
from F.cpp:2:
/usr/include/c++/4.9/bits/basic_string.h:2473:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const _CharT*, std::basic_string<_CharT, _Traits, _Alloc>&&)
operator+(const _CharT* __lhs,
^
/usr/include/c++/4.9/bits/basic_string.h:2473:5: note: template argument deduction/substitution failed:
F.cpp:280:52: note: mismatched types ‘const _CharT*’ and ‘B’
B res = ((rrr.a[jj][0]) * q) +((rrr.a[jj][1]) * p) + ((rrr.a[jj][3]) * r)
^
In file included from /usr/include/c++/4.9/string:52:0,
from /usr/include/c++/4.9/random:40,
from /usr/include/c++/4.9/bits/stl_algo.h:66,
from /usr/include/c++/4.9/algorithm:62,
from F.cpp:2:
/usr/include/c++/4.9/bits/basic_string.h:2479:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(_CharT, std::basic_string<_CharT, _Traits, _Alloc>&&)
operator+(_CharT __lhs,
^
/usr/include/c++/4.9/bits/basic_string.h:2479:5: note: template argument deduction/substitution failed:
F.cpp:280:52: note: ‘B’ is not derived from ‘std::basic_string<_CharT, _Traits, _Alloc>’
B res = ((rrr.a[jj][0]) * q) +((rrr.a[jj][1]) * p) + ((rrr.a[jj][3]) * r)
^
In file included from /usr/include/c++/4.9/string:52:0,
from /usr/include/c++/4.9/random:40,
from /usr/include/c++/4.9/bits/stl_algo.h:66,
from /usr/include/c++/4.9/algorithm:62,
from F.cpp:2:
/usr/include/c++/4.9/bits/basic_string.h:2485:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(std::basic_string<_CharT, _Traits, _Alloc>&&, const _CharT*)
operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
^
/usr/include/c++/4.9/bits/basic_string.h:2485:5: note: template argument deduction/substitution failed:
F.cpp:280:52: note: ‘B’ is not derived from ‘std::basic_string<_CharT, _Traits, _Alloc>’
B res = ((rrr.a[jj][0]) * q) +((rrr.a[jj][1]) * p) + ((rrr.a[jj][3]) * r)
^
In file included from /usr/include/c++/4.9/string:52:0,
from /usr/include/c++/4.9/random:40,
from /usr/include/c++/4.9/bits/stl_algo.h:66,
from /usr/include/c++/4.9/algorithm:62,
from F.cpp:2:
/usr/include/c++/4.9/bits/basic_string.h:2491:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(std::basic_string<_CharT, _Traits, _Alloc>&&, _CharT)
operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
^
/usr/include/c++/4.9/bits/basic_string.h:2491:5: note: template argument deduction/substitution failed:
F.cpp:280:52: note: ‘B’ is not derived from ‘std::basic_string<_CharT, _Traits, _Alloc>’
B res = ((rrr.a[jj][0]) * q) +((rrr.a[jj][1]) * p) + ((rrr.a[jj][3]) * r)
^
In file included from /usr/include/c++/4.9/vector:65:0,
from /usr/include/c++/4.9/bits/random.h:34,
from /usr/include/c++/4.9/random:49,
from /usr/include/c++/4.9/bits/stl_algo.h:66,
from /usr/include/c++/4.9/algorithm:62,
from F.cpp:2:
/usr/include/c++/4.9/bits/stl_bvector.h:297:3: note: std::_Bit_iterator std::operator+(std::ptrdiff_t, const std::_Bit_iterator&)
operator+(ptrdiff_t __n, const _Bit_iterator& __x)
^
/usr/include/c++/4.9/bits/stl_bvector.h:297:3: note: no known conversion for argument 1 from ‘B’ to ‘std::ptrdiff_t {aka long int}’
/usr/include/c++/4.9/bits/stl_bvector.h:387:3: note: std::_Bit_const_iterator std::operator+(std::ptrdiff_t, const std::_Bit_const_iterator&)
operator+(ptrdiff_t __n, const _Bit_const_iterator& __x)
^
/usr/include/c++/4.9/bits/stl_bvector.h:387:3: note: no known conversion for argument 1 from ‘B’ to ‘std::ptrdiff_t {aka long int}’
F.cpp:159:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld %lld %lld %lld",&n,&ll,&mm,&rr);
^