运行 ID: 63959

Main.cc: In function ‘void cmp(node, node)’:
Main.cc:12:30: error: ‘a’ was not declared in this scope
  if(A.score==B.score) return a.idB.score
                        ^~~~~
Main.cc:14:1: error: expected ‘;’ before ‘}’ token
 }
 ^
Main.cc: In function ‘int main()’:
Main.cc:20:26: error: no match for ‘operator+’ (operand types are ‘int’ and ‘node’)
      s[i].score=s[i].math+s[i]chinese+s[i].english;
                 ~~~~~~~~~^~~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/7/bits/char_traits.h:39,
                 from /usr/include/c++/7/ios:40,
                 from /usr/include/c++/7/istream:38,
                 from /usr/include/c++/7/sstream:38,
                 from /usr/include/c++/7/complex:45,
                 from /usr/include/c++/7/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from Main.cc:1:
/usr/include/c++/7/bits/stl_iterator.h:400:5: note: candidate: template 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++/7/bits/stl_iterator.h:400:5: note:   template argument deduction/substitution failed:
Main.cc:20:30: note:   ‘node’ is not derived from ‘const std::reverse_iterator<_Iterator>’
      s[i].score=s[i].math+s[i]chinese+s[i].english;
                              ^
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/7/bits/char_traits.h:39,
                 from /usr/include/c++/7/ios:40,
                 from /usr/include/c++/7/istream:38,
                 from /usr/include/c++/7/sstream:38,
                 from /usr/include/c++/7/complex:45,
                 from /usr/include/c++/7/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from Main.cc:1:
/usr/include/c++/7/bits/stl_iterator.h:1201:5: note: candidate: template std::move_iterator<_IteratorL> std::operator+(typename std::move_iterator<_IteratorL>::difference_type, const std::move_iterator<_IteratorL>&)
     operator+(typename move_iterator<_Iterator>::difference_type __n,
     ^~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:1201:5: note:   template argument deduction/substitution failed:
Main.cc:20:30: note:   ‘node’ is not derived from ‘const std::move_iterator<_IteratorL>’
      s[i].score=s[i].math+s[i]chinese+s[i].english;
                              ^
In file included from /usr/include/c++/7/string:52: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/istream:38,
                 from /usr/include/c++/7/sstream:38,
                 from /usr/include/c++/7/complex:45,
                 from /usr/include/c++/7/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from Main.cc:1:
/usr/include/c++/7/bits/basic_string.h:5888:5: note: candidate: template std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
     ^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:5888:5: note:   template argument deduction/substitution failed:
Main.cc:20:30: note:   mismatched types ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘int’
      s[i].score=s[i].math+s[i]chinese+s[i].english;
                              ^
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/istream:38,
                 from /usr/include/c++/7/sstream:38,
                 from /usr/include/c++/7/complex:45,
                 from /usr/include/c++/7/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from Main.cc:1:
/usr/include/c++/7/bits/basic_string.tcc:1157:5: note: candidate: template std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const _CharT*, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
     operator+(const _CharT* __lhs,
     ^~~~~~~~
/usr/include/c++/7/bits/basic_string.tcc:1157:5: note:   template argument deduction/substitution failed:
Main.cc:20:30: note:   mismatched types ‘const _CharT*’ and ‘int’
      s[i].score=s[i].math+s[i]chinese+s[i].english;
                              ^
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/istream:38,
                 from /usr/include/c++/7/sstream:38,
                 from /usr/include/c++/7/complex:45,
                 from /usr/include/c++/7/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from Main.cc:1:
/usr/include/c++/7/bits/basic_string.tcc:1173:5: note: candidate: template std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(_CharT, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
     operator+(_CharT __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs)
     ^~~~~~~~
/usr/include/c++/7/bits/basic_string.tcc:1173:5: note:   template argument deduction/substitution failed:
Main.cc:20:30: note:   ‘node’ is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
      s[i].score=s[i].math+s[i]chinese+s[i].english;
                              ^
In file included from /usr/include/c++/7/string:52: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/istream:38,
                 from /usr/include/c++/7/sstream:38,
                 from /usr/include/c++/7/complex:45,
                 from /usr/include/c++/7/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from Main.cc:1:
/usr/include/c++/7/bits/basic_string.h:5925:5: note: candidate: template std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)
     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
     ^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:5925:5: note:   template argument deduction/substitution failed:
Main.cc:20:30: note:   mismatched types ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘int’
      s[i].score=s[i].math+s[i]chinese+s[i].english;
                              ^
In file included from /usr/include/c++/7/string:52: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/istream:38,
                 from /usr/include/c++/7/sstream:38,
                 from /usr/include/c++/7/complex:45,
                 from /usr/include/c++/7/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from Main.cc:1:
/usr/include/c++/7/bits/basic_string.h:5941:5: note: candidate: template std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, _CharT)
     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs)
     ^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:5941:5: note:   template argument deduction/substitution failed:
Main.cc:20:30: note:   mismatched types ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘int’
      s[i].score=s[i].math+s[i]chinese+s[i].english;
                              ^
In file included from /usr/include/c++/7/string:52: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/istream:38,
                 from /usr/include/c++/7/sstream:38,
                 from /usr/include/c++/7/complex:45,
                 from /usr/include/c++/7/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from Main.cc:1:
/usr/include/c++/7/bits/basic_string.h:5953:5: note: candidate: template std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
     operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
     ^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:5953:5: note:   template argument deduction/substitution failed:
Main.cc:20:30: note:   mismatched types ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘int’
      s[i].score=s[i].math+s[i]chinese+s[i].english;
                              ^
In file included from /usr/include/c++/7/string:52: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/istream:38,
                 from /usr/include/c++/7/sstream:38,
                 from /usr/include/c++/7/complex:45,
                 from /usr/include/c++/7/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from Main.cc:1:
/usr/include/c++/7/bits/basic_string.h:5959:5: note: candidate: template std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&)
     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
     ^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:5959:5: note:   template argument deduction/substitution failed:
Main.cc:20:30: note:   mismatched types ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘int’
      s[i].score=s[i].math+s[i]chinese+s[i].english;
                              ^
In file included from /usr/include/c++/7/string:52: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/istream:38,
                 from /usr/include/c++/7/sstream:38,
                 from /usr/include/c++/7/complex:45,
                 from /usr/include/c++/7/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from Main.cc:1:
/usr/include/c++/7/bits/basic_string.h:5965:5: note: candidate: template std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&)
     operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
     ^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:5965:5: note:   template argument deduction/substitution failed:
Main.cc:20:30: note:   mismatched types ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘int’
      s[i].score=s[i].math+s[i]chinese+s[i].english;
                              ^
In file included from /usr/include/c++/7/string:52: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/istream:38,
                 from /usr/include/c++/7/sstream:38,
                 from /usr/include/c++/7/complex:45,
                 from /usr/include/c++/7/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from Main.cc:1:
/usr/include/c++/7/bits/basic_string.h:5977:5: note: candidate: template std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const _CharT*, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&)
     operator+(const _CharT* __lhs,
     ^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:5977:5: note:   template argument deduction/substitution failed:
Main.cc:20:30: note:   mismatched types ‘const _CharT*’ and ‘int’
      s[i].score=s[i].math+s[i]chinese+s[i].english;
                              ^
In file included from /usr/include/c++/7/string:52: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/istream:38,
                 from /usr/include/c++/7/sstream:38,
                 from /usr/include/c++/7/complex:45,
                 from /usr/include/c++/7/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from Main.cc:1:
/usr/include/c++/7/bits/basic_string.h:5983:5: note: candidate: template std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(_CharT, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&)
     operator+(_CharT __lhs,
     ^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:5983:5: note:   template argument deduction/substitution failed:
Main.cc:20:30: note:   ‘node’ is not derived from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
      s[i].score=s[i].math+s[i]chinese+s[i].english;
                              ^
In file included from /usr/include/c++/7/string:52: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/istream:38,
                 from /usr/include/c++/7/sstream:38,
                 from /usr/include/c++/7/complex:45,
                 from /usr/include/c++/7/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from Main.cc:1:
/usr/include/c++/7/bits/basic_string.h:5989:5: note: candidate: template std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const _CharT*)
     operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
     ^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:5989:5: note:   template argument deduction/substitution failed:
Main.cc:20:30: note:   mismatched types ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘int’
      s[i].score=s[i].math+s[i]chinese+s[i].english;
                              ^
In file included from /usr/include/c++/7/string:52: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/istream:38,
                 from /usr/include/c++/7/sstream:38,
                 from /usr/include/c++/7/complex:45,
                 from /usr/include/c++/7/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from Main.cc:1:
/usr/include/c++/7/bits/basic_string.h:5995:5: note: candidate: template std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, _CharT)
     operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
     ^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:5995:5: note:   template argument deduction/substitution failed:
Main.cc:20:30: note:   mismatched types ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘int’
      s[i].score=s[i].math+s[i]chinese+s[i].english;
                              ^
In file included from /usr/include/c++/7/ccomplex:39:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from Main.cc:1:
/usr/include/c++/7/complex:326:5: note: candidate: template std::complex<_Tp> std::operator+(const std::complex<_Tp>&, const std::complex<_Tp>&)
     operator+(const complex<_Tp>& __x, const complex<_Tp>& __y)
     ^~~~~~~~
/usr/include/c++/7/complex:326:5: note:   template argument deduction/substitution failed:
Main.cc:20:30: note:   mismatched types ‘const std::complex<_Tp>’ and ‘int’
      s[i].score=s[i].math+s[i]chinese+s[i].english;
                              ^
In file included from /usr/include/c++/7/ccomplex:39:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from Main.cc:1:
/usr/include/c++/7/complex:335:5: note: candidate: template std::complex<_Tp> std::operator+(const std::complex<_Tp>&, const _Tp&)
     operator+(const complex<_Tp>& __x, const _Tp& __y)
     ^~~~~~~~
/usr/include/c++/7/complex:335:5: note:   template argument deduction/substitution failed:
Main.cc:20:30: note:   mismatched types ‘const std::complex<_Tp>’ and ‘int’
      s[i].score=s[i].math+s[i]chinese+s[i].english;
                              ^
In file included from /usr/include/c++/7/ccomplex:39:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from Main.cc:1:
/usr/include/c++/7/complex:344:5: note: candidate: template std::complex<_Tp> std::operator+(const _Tp&, const std::complex<_Tp>&)
     operator+(const _Tp& __x, const complex<_Tp>& __y)
     ^~~~~~~~
/usr/include/c++/7/complex:344:5: note:   template argument deduction/substitution failed:
Main.cc:20:30: note:   ‘node’ is not derived from ‘const std::complex<_Tp>’
      s[i].score=s[i].math+s[i]chinese+s[i].english;
                              ^
In file included from /usr/include/c++/7/ccomplex:39:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from Main.cc:1:
/usr/include/c++/7/complex:445:5: note: candidate: template std::complex<_Tp> std::operator+(const std::complex<_Tp>&)
     operator+(const complex<_Tp>& __x)
     ^~~~~~~~
/usr/include/c++/7/complex:445:5: note:   template argument deduction/substitution failed:
Main.cc:20:30: note:   mismatched types ‘const std::complex<_Tp>’ and ‘int’
      s[i].score=s[i].math+s[i]chinese+s[i].english;
                              ^
In file included from /usr/include/c++/7/deque:64:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:68,
                 from Main.cc:1:
/usr/include/c++/7/bits/stl_deque.h:374:5: note: candidate: template std::_Deque_iterator<_Tp, _Ref, _Ptr> std::operator+(std::ptrdiff_t, const std::_Deque_iterator<_Tp, _Ref, _Ptr>&)
     operator+(ptrdiff_t __n, const _Deque_iterator<_Tp, _Ref, _Ptr>& __x)
     ^~~~~~~~
/usr/include/c++/7/bits/stl_deque.h:374:5: note:   template argument deduction/substitution failed:
Main.cc:20:30: note:   ‘node’ is not derived from ‘const std::_Deque_iterator<_Tp, _Ref, _Ptr>’
      s[i].score=s[i].math+s[i]chinese+s[i].english;
                              ^
In file included from /usr/include/c++/7/vector:65:0,
                 from /usr/include/c++/7/queue:61,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:86,
                 from Main.cc:1:
/usr/include/c++/7/bits/stl_bvector.h:297:3: note: candidate: std::_Bit_iterator std::operator+(std::ptrdiff_t, const std::_Bit_iterator&)
   operator+(ptrdiff_t __n, const _Bit_iterator& __x)
   ^~~~~~~~
/usr/include/c++/7/bits/stl_bvector.h:297:3: note:   no known conversion for argument 2 from ‘node’ to ‘const std::_Bit_iterator&’
/usr/include/c++/7/bits/stl_bvector.h:387:3: note: candidate: 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++/7/bits/stl_bvector.h:387:3: note:   no known conversion for argument 2 from ‘node’ to ‘const std::_Bit_const_iterator&’
In file included from /usr/include/c++/7/valarray:592:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:95,
                 from Main.cc:1:
/usr/include/c++/7/bits/valarray_after.h:402:5: note: candidate: template std::_Expr, typename std::__fun::result_type> std::operator+(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const std::_Expr<_Dom2, typename _Dom2::value_type>&)
     _DEFINE_EXPR_BINARY_OPERATOR(+, __plus)
     ^
/usr/include/c++/7/bits/valarray_after.h:402:5: note:   template argument deduction/substitution failed:
Main.cc:20:30: note:   mismatched types ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’ and ‘int’
      s[i].score=s[i].math+s[i]chinese+s[i].english;
                              ^
In file included from /usr/include/c++/7/valarray:592:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:95,
                 from Main.cc:1:
/usr/include/c++/7/bits/valarray_after.h:402:5: note: candidate: template std::_Expr, typename std::__fun::result_type> std::operator+(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)
     _DEFINE_EXPR_BINARY_OPERATOR(+, __plus)
     ^
/usr/include/c++/7/bits/valarray_after.h:402:5: note:   template argument deduction/substitution failed:
Main.cc:20:30: note:   mismatched types ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’ and ‘int’
      s[i].score=s[i].math+s[i]chinese+s[i].english;
                              ^
In file included from /usr/include/c++/7/valarray:592:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:95,
                 from Main.cc:1:
/usr/include/c++/7/bits/valarray_after.h:402:5: note: candidate: template std::_Expr, typename std::__fun::result_type> std::operator+(const typename _Dom::value_type&, const std::_Expr<_Dom1, typename _Dom1::value_type>&)
     _DEFINE_EXPR_BINARY_OPERATOR(+, __plus)
     ^
/usr/include/c++/7/bits/valarray_after.h:402:5: note:   template argument deduction/substitution failed:
Main.cc:20:30: note:   ‘node’ is not derived from ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’
      s[i].score=s[i].math+s[i]chinese+s[i].english;
                              ^
In file included from /usr/include/c++/7/valarray:592:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:95,
                 from Main.cc:1:
/usr/include/c++/7/bits/valarray_after.h:402:5: note: candidate: template std::_Expr, typename std::__fun::result_type> std::operator+(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const std::valarray&)
     _DEFINE_EXPR_BINARY_OPERATOR(+, __plus)
     ^
/usr/include/c++/7/bits/valarray_after.h:402:5: note:   template argument deduction/substitution failed:
Main.cc:20:30: note:   mismatched types ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’ and ‘int’
      s[i].score=s[i].math+s[i]chinese+s[i].english;
                              ^
In file included from /usr/include/c++/7/valarray:592:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:95,
                 from Main.cc:1:
/usr/include/c++/7/bits/valarray_after.h:402:5: note: candidate: template std::_Expr, typename std::__fun::result_type> std::operator+(const std::valarray&, const std::_Expr<_Dom1, typename _Dom1::value_type>&)
     _DEFINE_EXPR_BINARY_OPERATOR(+, __plus)
     ^
/usr/include/c++/7/bits/valarray_after.h:402:5: note:   template argument deduction/substitution failed:
Main.cc:20:30: note:   ‘node’ is not derived from ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’
      s[i].score=s[i].math+s[i]chinese+s[i].english;
                              ^
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:95:0,
                 from Main.cc:1:
/usr/include/c++/7/valarray:1172:1: note: candidate: template std::_Expr, typename std::__fun::result_type> std::operator+(const std::valarray<_Tp>&, const std::valarray<_Tp>&)
 _DEFINE_BINARY_OPERATOR(+, __plus)
 ^
/usr/include/c++/7/valarray:1172:1: note:   template argument deduction/substitution failed:
Main.cc:20:30: note:   mismatched types ‘const std::valarray<_Tp>’ and ‘int’
      s[i].score=s[i].math+s[i]chinese+s[i].english;
                              ^
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:95:0,
                 from Main.cc:1:
/usr/include/c++/7/valarray:1172:1: note: candidate: template std::_Expr, typename std::__fun::result_type> std::operator+(const std::valarray<_Tp>&, const _Tp&)
 _DEFINE_BINARY_OPERATOR(+, __plus)
 ^
/usr/include/c++/7/valarray:1172:1: note:   template argument deduction/substitution failed:
Main.cc:20:30: note:   mismatched types ‘const std::valarray<_Tp>’ and ‘int’
      s[i].score=s[i].math+s[i]chinese+s[i].english;
                              ^
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:95:0,
                 from Main.cc:1:
/usr/include/c++/7/valarray:1172:1: note: candidate: template std::_Expr, typename std::__fun::result_type> std::operator+(const _Tp&, const std::valarray<_Tp>&)
 _DEFINE_BINARY_OPERATOR(+, __plus)
 ^
/usr/include/c++/7/valarray:1172:1: note:   template argument deduction/substitution failed:
Main.cc:20:30: note:   ‘node’ is not derived from ‘const std::valarray<_Tp>’
      s[i].score=s[i].math+s[i]chinese+s[i].english;
                              ^
Main.cc:24:6: error: no match for ‘operator<<’ (operand types are ‘std::ostream {aka std::basic_ostream}’ and ‘node’)
  cout<::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [with _CharT = char; _Traits = std::char_traits; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream]
       operator<<(__ostream_type& (*__pf)(__ostream_type&))
       ^~~~~~~~
/usr/include/c++/7/ostream:108:7: note:   no known conversion for argument 1 from ‘node’ to ‘std::basic_ostream::__ostream_type& (*)(std::basic_ostream::__ostream_type&) {aka std::basic_ostream& (*)(std::basic_ostream&)}’
/usr/include/c++/7/ostream:117:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ios_type& (*)(std::basic_ostream<_CharT, _Traits>::__ios_type&)) [with _CharT = char; _Traits = std::char_traits; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream; std::basic_ostream<_CharT, _Traits>::__ios_type = std::basic_ios]
       operator<<(__ios_type& (*__pf)(__ios_type&))
       ^~~~~~~~