Compile Error

foo.cc: In function ‘int main()’:
foo.cc:7:25: error: invalid use of member function ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]’ (did you forget the ‘()’ ?)
    7 |         for(int i=0;i<s.size;i++){
      |                       ~~^~~~
      |                             ()
foo.cc:8:21: error: no match for ‘operator!=’ (operand types are ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} and ‘char’)
    8 |                 if(s!=' ')
      |                    ~^~~~~
      |                    |  |
      |                    |  char
      |                    std::string {aka std::__cxx11::basic_string<char>}
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/regex:68,
                 from /nix/gcc-14.3.0/include/c++/14.3.0/x86_64-unknown-linux-gnu/bits/stdc++.h:181:
/nix/gcc-14.3.0/include/c++/14.3.0/bits/regex.h:1132:5: note: candidate: ‘template<class _BiIter> bool std::__cxx11::operator!=(const sub_match<_BiIter>&, const sub_match<_BiIter>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/regex.h:1132:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::__cxx11::sub_match<_BiIter>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/regex.h:1212:5: note: candidate: ‘template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator!=(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/regex.h:1212:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   mismatched types ‘const std::__cxx11::sub_match<_BiIter>’ and ‘char’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/regex.h:1305:5: note: candidate: ‘template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator!=(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/regex.h:1305:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::__cxx11::sub_match<_BiIter>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/regex.h:1379:5: note: candidate: ‘template<class _Bi_iter> bool std::__cxx11::operator!=(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/regex.h:1379:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   mismatched types ‘const std::__cxx11::sub_match<_BiIter>’ and ‘char’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/regex.h:1473:5: note: candidate: ‘template<class _Bi_iter> bool std::__cxx11::operator!=(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/regex.h:1473:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::__cxx11::sub_match<_BiIter>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/regex.h:1547:5: note: candidate: ‘template<class _Bi_iter> bool std::__cxx11::operator!=(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/regex.h:1547:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   mismatched types ‘const std::__cxx11::sub_match<_BiIter>’ and ‘char’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/regex.h:1647:5: note: candidate: ‘template<class _Bi_iter> bool std::__cxx11::operator!=(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/regex.h:1647:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::__cxx11::sub_match<_BiIter>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/regex.h:2213:5: note: candidate: ‘template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator!=(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/regex.h:2213:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::__cxx11::match_results<_BiIter, _Alloc>’
    8 |                 if(s!=' ')
      |                       ^~~
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_algobase.h:64,
                 from /nix/gcc-14.3.0/include/c++/14.3.0/algorithm:60,
                 from /nix/gcc-14.3.0/include/c++/14.3.0/x86_64-unknown-linux-gnu/bits/stdc++.h:51:
/nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_pair.h:1052:5: note: candidate: ‘template<class _T1, class _T2> constexpr bool std::operator!=(const pair<_T1, _T2>&, const pair<_T1, _T2>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_pair.h:1052:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::pair<_T1, _T2>’
    8 |                 if(s!=' ')
      |                       ^~~
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_algobase.h:67:
/nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_iterator.h:455:5: note: candidate: ‘template<class _Iterator> bool std::operator!=(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_iterator.h:455:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::reverse_iterator<_Iterator>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_iterator.h:500:5: note: candidate: ‘template<class _IteratorL, class _IteratorR> bool std::operator!=(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_iterator.h:500:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::reverse_iterator<_Iterator>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_iterator.h:1686:5: note: candidate: ‘template<class _IteratorL, class _IteratorR> bool std::operator!=(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_iterator.h:1686:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::move_iterator<_IteratorL>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_iterator.h:1753:5: note: candidate: ‘template<class _Iterator> bool std::operator!=(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_iterator.h:1753:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::move_iterator<_IteratorL>’
    8 |                 if(s!=' ')
      |                       ^~~
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/bits/char_traits.h:42,
                 from /nix/gcc-14.3.0/include/c++/14.3.0/string:42,
                 from /nix/gcc-14.3.0/include/c++/14.3.0/bitset:52,
                 from /nix/gcc-14.3.0/include/c++/14.3.0/x86_64-unknown-linux-gnu/bits/stdc++.h:52:
/nix/gcc-14.3.0/include/c++/14.3.0/bits/postypes.h:197:5: note: candidate: ‘template<class _StateT> bool std::operator!=(const fpos<_StateT>&, const fpos<_StateT>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/postypes.h:197:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::fpos<_StateT>’
    8 |                 if(s!=' ')
      |                       ^~~
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/string:43:
/nix/gcc-14.3.0/include/c++/14.3.0/bits/allocator.h:243:5: note: candidate: ‘template<class _T1, class _T2> bool std::operator!=(const allocator<_CharT>&, const allocator<_T2>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/allocator.h:243:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::allocator<_CharT>’
    8 |                 if(s!=' ')
      |                       ^~~
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/string:54:
/nix/gcc-14.3.0/include/c++/14.3.0/bits/basic_string.h:3833:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const __cxx11::basic_string<_CharT, _Traits, _Alloc>&, const __cxx11::basic_string<_CharT, _Traits, _Alloc>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/basic_string.h:3833:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   mismatched types ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘char’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/basic_string.h:3847:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Alloc>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/basic_string.h:3847:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   mismatched types ‘const _CharT*’ and ‘std::__cxx11::basic_string<char>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/basic_string.h:3860:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const __cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/basic_string.h:3860:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   mismatched types ‘const _CharT*’ and ‘char’
    8 |                 if(s!=' ')
      |                       ^~~
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/functional:53,
                 from /nix/gcc-14.3.0/include/c++/14.3.0/x86_64-unknown-linux-gnu/bits/stdc++.h:53:
/nix/gcc-14.3.0/include/c++/14.3.0/tuple:2615:5: note: candidate: ‘template<class ... _TElements, class ... _UElements> constexpr bool std::operator!=(const tuple<_Elements ...>&, const tuple<_Elements ...>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/tuple:2615:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::tuple<_Elements ...>’
    8 |                 if(s!=' ')
      |                       ^~~
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/functional:59:
/nix/gcc-14.3.0/include/c++/14.3.0/bits/std_function.h:761:5: note: candidate: ‘template<class _Res, class ... _Args> bool std::operator!=(const function<_Res(_ArgTypes ...)>&, nullptr_t)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/std_function.h:761:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::function<_Res(_ArgTypes ...)>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/std_function.h:767:5: note: candidate: ‘template<class _Res, class ... _Args> bool std::operator!=(nullptr_t, const function<_Res(_ArgTypes ...)>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/std_function.h:767:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   mismatched types ‘const std::function<_Res(_ArgTypes ...)>’ and ‘char’
    8 |                 if(s!=' ')
      |                       ^~~
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/iterator:66,
                 from /nix/gcc-14.3.0/include/c++/14.3.0/x86_64-unknown-linux-gnu/bits/stdc++.h:54:
/nix/gcc-14.3.0/include/c++/14.3.0/bits/streambuf_iterator.h:242:5: note: candidate: ‘template<class _CharT, class _Traits> bool std::operator!=(const istreambuf_iterator<_CharT, _Traits>&, const istreambuf_iterator<_CharT, _Traits>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/streambuf_iterator.h:242:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::istreambuf_iterator<_CharT, _Traits>’
    8 |                 if(s!=' ')
      |                       ^~~
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/memory:78,
                 from /nix/gcc-14.3.0/include/c++/14.3.0/x86_64-unknown-linux-gnu/bits/stdc++.h:56:
/nix/gcc-14.3.0/include/c++/14.3.0/bits/unique_ptr.h:862:5: note: candidate: ‘template<class _Tp, class _Dp, class _Up, class _Ep> bool std::operator!=(const unique_ptr<_Tp, _Dp>&, const unique_ptr<_Up, _Ep>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/unique_ptr.h:862:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::unique_ptr<_Tp, _Dp>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/unique_ptr.h:870:5: note: candidate: ‘template<class _Tp, class _Dp> bool std::operator!=(const unique_ptr<_Tp, _Dp>&, nullptr_t)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/unique_ptr.h:870:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::unique_ptr<_Tp, _Dp>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/unique_ptr.h:877:5: note: candidate: ‘template<class _Tp, class _Dp> bool std::operator!=(nullptr_t, const unique_ptr<_Tp, _Dp>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/unique_ptr.h:877:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   mismatched types ‘const std::unique_ptr<_Tp, _Dp>’ and ‘char’
    8 |                 if(s!=' ')
      |                       ^~~
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/bits/shared_ptr.h:53,
                 from /nix/gcc-14.3.0/include/c++/14.3.0/memory:80:
/nix/gcc-14.3.0/include/c++/14.3.0/bits/shared_ptr_base.h:1828:5: note: candidate: ‘template<class _Tp1, class _Tp2, __gnu_cxx::_Lock_policy _Lp> bool std::operator!=(const __shared_ptr<_Tp1, _Lp>&, const __shared_ptr<_Tp2, _Lp>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/shared_ptr_base.h:1828:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::__shared_ptr<_Tp1, _Lp>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/shared_ptr_base.h:1834:5: note: candidate: ‘template<class _Tp, __gnu_cxx::_Lock_policy _Lp> bool std::operator!=(const __shared_ptr<_Tp, _Lp>&, nullptr_t)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/shared_ptr_base.h:1834:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::__shared_ptr<_Tp, _Lp>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/shared_ptr_base.h:1839:5: note: candidate: ‘template<class _Tp, __gnu_cxx::_Lock_policy _Lp> bool std::operator!=(nullptr_t, const __shared_ptr<_Tp, _Lp>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/shared_ptr_base.h:1839:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   mismatched types ‘const std::__shared_ptr<_Tp, _Lp>’ and ‘char’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/shared_ptr.h:587:5: note: candidate: ‘template<class _Tp, class _Up> bool std::operator!=(const shared_ptr<_Tp>&, const shared_ptr<_Tp>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/shared_ptr.h:587:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::shared_ptr<_Tp>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/shared_ptr.h:593:5: note: candidate: ‘template<class _Tp> bool std::operator!=(const shared_ptr<_Tp>&, nullptr_t)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/shared_ptr.h:593:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::shared_ptr<_Tp>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/shared_ptr.h:599:5: note: candidate: ‘template<class _Tp> bool std::operator!=(nullptr_t, const shared_ptr<_Tp>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/shared_ptr.h:599:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   mismatched types ‘const std::shared_ptr<_Tp>’ and ‘char’
    8 |                 if(s!=' ')
      |                       ^~~
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/x86_64-unknown-linux-gnu/bits/stdc++.h:63:
/nix/gcc-14.3.0/include/c++/14.3.0/array:332:5: note: candidate: ‘template<class _Tp, long unsigned int _Nm> bool std::operator!=(const array<_Tp, _Nm>&, const array<_Tp, _Nm>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/array:332:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::array<_Tp, _Nm>’
    8 |                 if(s!=' ')
      |                       ^~~
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/x86_64-unknown-linux-gnu/bits/stdc++.h:67:
/nix/gcc-14.3.0/include/c++/14.3.0/scoped_allocator:519:5: note: candidate: ‘template<class _OutA1, class _OutA2, class ... _InA> bool std::operator!=(const scoped_allocator_adaptor<_OutA1, _InA ...>&, const scoped_allocator_adaptor<_InnerHead, _InnerTail ...>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/scoped_allocator:519:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::scoped_allocator_adaptor<_OutA1, _InA ...>’
    8 |                 if(s!=' ')
      |                       ^~~
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/ccomplex:39,
                 from /nix/gcc-14.3.0/include/c++/14.3.0/x86_64-unknown-linux-gnu/bits/stdc++.h:127:
/nix/gcc-14.3.0/include/c++/14.3.0/complex:491:5: note: candidate: ‘template<class _Tp> constexpr bool std::operator!=(const complex<_Tp>&, const complex<_Tp>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/complex:491:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::complex<_Tp>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/complex:496:5: note: candidate: ‘template<class _Tp> constexpr bool std::operator!=(const complex<_Tp>&, const _Tp&)’
/nix/gcc-14.3.0/include/c++/14.3.0/complex:496:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::complex<_Tp>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/complex:501:5: note: candidate: ‘template<class _Tp> constexpr bool std::operator!=(const _Tp&, const complex<_Tp>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/complex:501:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   mismatched types ‘const std::complex<_Tp>’ and ‘char’
    8 |                 if(s!=' ')
      |                       ^~~
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/deque:66,
                 from /nix/gcc-14.3.0/include/c++/14.3.0/x86_64-unknown-linux-gnu/bits/stdc++.h:139:
/nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_deque.h:2342:5: note: candidate: ‘template<class _Tp, class _Alloc> bool std::operator!=(const deque<_Tp, _Alloc>&, const deque<_Tp, _Alloc>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_deque.h:2342:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::deque<_Tp, _Alloc>’
    8 |                 if(s!=' ')
      |                       ^~~
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/list:65,
                 from /nix/gcc-14.3.0/include/c++/14.3.0/x86_64-unknown-linux-gnu/bits/stdc++.h:150:
/nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_list.h:2196:5: note: candidate: ‘template<class _Tp, class _Alloc> bool std::operator!=(const __cxx11::list<_Tp, _Alloc>&, const __cxx11::list<_Tp, _Alloc>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_list.h:2196:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::__cxx11::list<_Tp, _Alloc>’
    8 |                 if(s!=' ')
      |                       ^~~
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/map:63,
                 from /nix/gcc-14.3.0/include/c++/14.3.0/x86_64-unknown-linux-gnu/bits/stdc++.h:152:
/nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_map.h:1557:5: note: candidate: ‘template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator!=(const map<_Key, _Tp, _Compare, _Alloc>&, const map<_Key, _Tp, _Compare, _Alloc>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_map.h:1557:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::map<_Key, _Tp, _Compare, _Alloc>’
    8 |                 if(s!=' ')
      |                       ^~~
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/map:64:
/nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_multimap.h:1179:5: note: candidate: ‘template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator!=(const multimap<_Key, _Tp, _Compare, _Alloc>&, const multimap<_Key, _Tp, _Compare, _Alloc>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_multimap.h:1179:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::multimap<_Key, _Tp, _Compare, _Alloc>’
    8 |                 if(s!=' ')
      |                       ^~~
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/vector:66,
                 from /nix/gcc-14.3.0/include/c++/14.3.0/queue:63,
                 from /nix/gcc-14.3.0/include/c++/14.3.0/x86_64-unknown-linux-gnu/bits/stdc++.h:157:
/nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_vector.h:2117:5: note: candidate: ‘template<class _Tp, class _Alloc> bool std::operator!=(const vector<_Tp, _Alloc>&, const vector<_Tp, _Alloc>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_vector.h:2117:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::vector<_Tp, _Alloc>’
    8 |                 if(s!=' ')
      |                       ^~~
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/queue:66:
/nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_queue.h:404:5: note: candidate: ‘template<class _Tp, class _Seq> bool std::operator!=(const queue<_Tp, _Seq>&, const queue<_Tp, _Seq>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_queue.h:404:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::queue<_Tp, _Seq>’
    8 |                 if(s!=' ')
      |                       ^~~
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/set:63,
                 from /nix/gcc-14.3.0/include/c++/14.3.0/x86_64-unknown-linux-gnu/bits/stdc++.h:158:
/nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_set.h:1032:5: note: candidate: ‘template<class _Key, class _Compare, class _Alloc> bool std::operator!=(const set<_Key, _Compare, _Alloc>&, const set<_Key, _Compare, _Alloc>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_set.h:1032:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::set<_Key, _Compare, _Alloc>’
    8 |                 if(s!=' ')
      |                       ^~~
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/set:64:
/nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_multiset.h:1018:5: note: candidate: ‘template<class _Key, class _Compare, class _Alloc> bool std::operator!=(const multiset<_Key, _Compare, _Alloc>&, const multiset<_Key, _Compare, _Alloc>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_multiset.h:1018:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::multiset<_Key, _Compare, _Alloc>’
    8 |                 if(s!=' ')
      |                       ^~~
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/stack:63,
                 from /nix/gcc-14.3.0/include/c++/14.3.0/x86_64-unknown-linux-gnu/bits/stdc++.h:160:
/nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_stack.h:380:5: note: candidate: ‘template<class _Tp, class _Seq> bool std::operator!=(const stack<_Tp, _Seq>&, const stack<_Tp, _Seq>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/stl_stack.h:380:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::stack<_Tp, _Seq>’
    8 |                 if(s!=' ')
      |                       ^~~
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/valarray:605,
                 from /nix/gcc-14.3.0/include/c++/14.3.0/x86_64-unknown-linux-gnu/bits/stdc++.h:166:
/nix/gcc-14.3.0/include/c++/14.3.0/bits/valarray_after.h:418:5: note: candidate: ‘template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__not_equal_to, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__not_equal_to, typename _Dom1::value_type>::result_type> std::operator!=(const _Expr<_Dom1, typename _Dom1::value_type>&, const _Expr<_Dom2, typename _Dom2::value_type>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/valarray_after.h:418:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/valarray_after.h:418:5: note: candidate: ‘template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__not_equal_to, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__not_equal_to, typename _Dom1::value_type>::result_type> std::operator!=(const _Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/valarray_after.h:418:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/valarray_after.h:418:5: note: candidate: ‘template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__not_equal_to, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__not_equal_to, typename _Dom1::value_type>::result_type> std::operator!=(const typename _Dom::value_type&, const _Expr<_Dom1, typename _Dom1::value_type>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/valarray_after.h:418:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   mismatched types ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’ and ‘char’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/valarray_after.h:418:5: note: candidate: ‘template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__not_equal_to, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename std::__fun<std::__not_equal_to, typename _Dom1::value_type>::result_type> std::operator!=(const _Expr<_Dom1, typename _Dom1::value_type>&, const valarray<typename _Dom::value_type>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/valarray_after.h:418:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/valarray_after.h:418:5: note: candidate: ‘template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__not_equal_to, std::_ValArray, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__not_equal_to, typename _Dom1::value_type>::result_type> std::operator!=(const valarray<typename _Dom::value_type>&, const _Expr<_Dom1, typename _Dom1::value_type>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/valarray_after.h:418:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   mismatched types ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’ and ‘char’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/valarray:1209:1: note: candidate: ‘template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__not_equal_to, std::_ValArray, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__not_equal_to, _Tp>::result_type> std::operator!=(const valarray<_Tp>&, const valarray<_Tp>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/valarray:1209:1: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::valarray<_Tp>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/valarray:1209:1: note: candidate: ‘template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__not_equal_to, std::_ValArray, std::_Constant, _Tp, _Tp>, typename std::__fun<std::__not_equal_to, _Tp>::result_type> std::operator!=(const valarray<_Tp>&, const typename valarray<_Tp>::value_type&)’
/nix/gcc-14.3.0/include/c++/14.3.0/valarray:1209:1: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::valarray<_Tp>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/valarray:1209:1: note: candidate: ‘template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__not_equal_to, std::_Constant, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__not_equal_to, _Tp>::result_type> std::operator!=(const typename valarray<_Tp>::value_type&, const valarray<_Tp>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/valarray:1209:1: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   mismatched types ‘const std::valarray<_Tp>’ and ‘char’
    8 |                 if(s!=' ')
      |                       ^~~
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/forward_list:40,
                 from /nix/gcc-14.3.0/include/c++/14.3.0/x86_64-unknown-linux-gnu/bits/stdc++.h:175:
/nix/gcc-14.3.0/include/c++/14.3.0/bits/forward_list.h:1507:5: note: candidate: ‘template<class _Tp, class _Alloc> bool std::operator!=(const forward_list<_Tp, _Alloc>&, const forward_list<_Tp, _Alloc>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/forward_list.h:1507:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::forward_list<_Tp, _Alloc>’
    8 |                 if(s!=' ')
      |                       ^~~
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/random:48,
                 from /nix/gcc-14.3.0/include/c++/14.3.0/x86_64-unknown-linux-gnu/bits/stdc++.h:179:
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:545:5: note: candidate: ‘template<class _UIntType, _UIntType __a, _UIntType __c, _UIntType __m> bool std::operator!=(const linear_congruential_engine<_UIntType, __a, __c, __m>&, const linear_congruential_engine<_UIntType, __a, __c, __m>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:545:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::linear_congruential_engine<_UIntType, __a, __c, __m>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:787:5: note: candidate: ‘template<class _UIntType, long unsigned int __w, long unsigned int __n, long unsigned int __m, long unsigned int __r, _UIntType __a, long unsigned int __u, _UIntType __d, long unsigned int __s, _UIntType __b, long unsigned int __t, _UIntType __c, long unsigned int __l, _UIntType __f> bool std::operator!=(const mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>&, const mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:787:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:993:5: note: candidate: ‘template<class _UIntType, long unsigned int __w, long unsigned int __s, long unsigned int __r> bool std::operator!=(const subtract_with_carry_engine<_UIntType, __w, __s, __r>&, const subtract_with_carry_engine<_UIntType, __w, __s, __r>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:993:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::subtract_with_carry_engine<_UIntType, __w, __s, __r>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:1221:5: note: candidate: ‘template<class _RandomNumberEngine, long unsigned int __p, long unsigned int __r> bool std::operator!=(const discard_block_engine<_RandomNumberEngine, __p, __r>&, const discard_block_engine<_RandomNumberEngine, __p, __r>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:1221:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::discard_block_engine<_RandomNumberEngine, __p, __r>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:1423:5: note: candidate: ‘template<class _RandomNumberEngine, long unsigned int __w, class _UIntType> bool std::operator!=(const independent_bits_engine<_RandomNumberEngine, __w, _UIntType>&, const independent_bits_engine<_RandomNumberEngine, __w, _UIntType>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:1423:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::independent_bits_engine<_RandomNumberEngine, __w, _UIntType>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:1684:5: note: candidate: ‘template<class _RandomNumberEngine, long unsigned int __k> bool std::operator!=(const shuffle_order_engine<_RandomNumberEngine, __k>&, const shuffle_order_engine<_RandomNumberEngine, __k>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:1684:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::shuffle_order_engine<_RandomNumberEngine, __k>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:1835:5: note: candidate: ‘template<class _IntType> bool std::operator!=(const uniform_int_distribution<_IntType>&, const uniform_int_distribution<_IntType>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:1835:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::uniform_int_distribution<_IntType>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:2063:5: note: candidate: ‘template<class _IntType> bool std::operator!=(const uniform_real_distribution<_IntType>&, const uniform_real_distribution<_IntType>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:2063:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::uniform_real_distribution<_IntType>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:2327:5: note: candidate: ‘template<class _RealType> bool std::operator!=(const normal_distribution<_RealType>&, const normal_distribution<_RealType>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:2327:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::normal_distribution<_RealType>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:2544:5: note: candidate: ‘template<class _RealType> bool std::operator!=(const lognormal_distribution<_RealType>&, const lognormal_distribution<_RealType>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:2544:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::lognormal_distribution<_RealType>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:2789:6: note: candidate: ‘template<class _RealType> bool std::operator!=(const gamma_distribution<_RealType>&, const gamma_distribution<_RealType>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:2789:6: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::gamma_distribution<_RealType>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:3027:5: note: candidate: ‘template<class _RealType> bool std::operator!=(const chi_squared_distribution<_RealType>&, const chi_squared_distribution<_RealType>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:3027:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::chi_squared_distribution<_RealType>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:3207:5: note: candidate: ‘template<class _RealType> bool std::operator!=(const cauchy_distribution<_RealType>&, const cauchy_distribution<_RealType>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:3207:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::cauchy_distribution<_RealType>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:3478:5: note: candidate: ‘template<class _RealType> bool std::operator!=(const fisher_f_distribution<_RealType>&, const fisher_f_distribution<_RealType>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:3478:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::fisher_f_distribution<_RealType>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:3707:5: note: candidate: ‘template<class _RealType> bool std::operator!=(const student_t_distribution<_RealType>&, const student_t_distribution<_RealType>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:3707:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::student_t_distribution<_RealType>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:4183:5: note: candidate: ‘template<class _IntType> bool std::operator!=(const binomial_distribution<_IntType>&, const binomial_distribution<_IntType>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:4183:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::binomial_distribution<_IntType>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:4368:5: note: candidate: ‘template<class _IntType> bool std::operator!=(const geometric_distribution<_IntType>&, const geometric_distribution<_IntType>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:4368:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::geometric_distribution<_IntType>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:4629:5: note: candidate: ‘template<class _IntType> bool std::operator!=(const negative_binomial_distribution<_IntType>&, const negative_binomial_distribution<_IntType>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:4629:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::negative_binomial_distribution<_IntType>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:4861:5: note: candidate: ‘template<class _IntType> bool std::operator!=(const poisson_distribution<_IntType>&, const poisson_distribution<_IntType>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:4861:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::poisson_distribution<_IntType>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:5058:5: note: candidate: ‘template<class _RealType> bool std::operator!=(const exponential_distribution<_RealType>&, const exponential_distribution<_RealType>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:5058:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::exponential_distribution<_RealType>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:5275:5: note: candidate: ‘template<class _RealType> bool std::operator!=(const weibull_distribution<_RealType>&, const weibull_distribution<_RealType>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:5275:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::weibull_distribution<_RealType>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:5492:5: note: candidate: ‘template<class _RealType> bool std::operator!=(const extreme_value_distribution<_RealType>&, const extreme_value_distribution<_RealType>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:5492:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::extreme_value_distribution<_RealType>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:5772:5: note: candidate: ‘template<class _IntType> bool std::operator!=(const discrete_distribution<_IntType>&, const discrete_distribution<_IntType>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:5772:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::discrete_distribution<_IntType>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:6056:5: note: candidate: ‘template<class _RealType> bool std::operator!=(const piecewise_constant_distribution<_RealType>&, const piecewise_constant_distribution<_RealType>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:6056:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::piecewise_constant_distribution<_RealType>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:6338:5: note: candidate: ‘template<class _RealType> bool std::operator!=(const piecewise_linear_distribution<_RealType>&, const piecewise_linear_distribution<_RealType>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:6338:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::piecewise_linear_distribution<_RealType>’
    8 |                 if(s!=' ')
      |                       ^~~
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/unordered_map:41,
                 from /nix/gcc-14.3.0/include/c++/14.3.0/x86_64-unknown-linux-gnu/bits/stdc++.h:188:
/nix/gcc-14.3.0/include/c++/14.3.0/bits/unordered_map.h:2151:5: note: candidate: ‘template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> bool std::operator!=(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>&, const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/unordered_map.h:2151:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/unordered_map.h:2165:5: note: candidate: ‘template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> bool std::operator!=(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>&, const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/unordered_map.h:2165:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>’
    8 |                 if(s!=' ')
      |                       ^~~
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/unordered_set:41,
                 from /nix/gcc-14.3.0/include/c++/14.3.0/x86_64-unknown-linux-gnu/bits/stdc++.h:189:
/nix/gcc-14.3.0/include/c++/14.3.0/bits/unordered_set.h:1820:5: note: candidate: ‘template<class _Value, class _Hash, class _Pred, class _Alloc> bool std::operator!=(const unordered_set<_Value, _Hash, _Pred, _Alloc>&, const unordered_set<_Value, _Hash, _Pred, _Alloc>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/unordered_set.h:1820:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::unordered_set<_Value, _Hash, _Pred, _Alloc>’
    8 |                 if(s!=' ')
      |                       ^~~
/nix/gcc-14.3.0/include/c++/14.3.0/bits/unordered_set.h:1834:5: note: candidate: ‘template<class _Value, class _Hash, class _Pred, class _Alloc> bool std::operator!=(const unordered_multiset<_Value, _Hash, _Pred, _Alloc>&, const unordered_multiset<_Value, _Hash, _Pred, _Alloc>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/unordered_set.h:1834:5: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::unordered_multiset<_Value, _Hash, _Pred, _Alloc>’
    8 |                 if(s!=' ')
      |                       ^~~
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/x86_64-unknown-linux-gnu/bits/c++allocator.h:33,
                 from /nix/gcc-14.3.0/include/c++/14.3.0/bits/allocator.h:46:
/nix/gcc-14.3.0/include/c++/14.3.0/bits/new_allocator.h:222:2: note: candidate: ‘template<class _Up> bool std::operator!=(const __new_allocator<char>&, const __new_allocator<_Tp>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/new_allocator.h:222:2: note:   template argument deduction/substitution failed:
foo.cc:8:23: note:   mismatched types ‘const std::__new_allocator<_Tp>’ and ‘char’
    8 |                 if(s!=' ')
      |                       ^~~
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/bits/ios_base.h:46,
                 from /nix/gcc-14.3.0/include/c++/14.3.0/streambuf:43,
                 from /nix/gcc-14.3.0/include/c++/14.3.0/bits/streambuf_iterator.h:35:
/nix/gcc-14.3.0/include/c++/14.3.0/system_error:525:3: note: candidate: ‘bool std::operator!=(const error_code&, const error_code&)’
/nix/gcc-14.3.0/include/c++/14.3.0/system_error:525:32: note:   no known conversion for argument 1 from ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘const std::error_code&’
/nix/gcc-14.3.0/include/c++/14.3.0/system_error:530:3: note: candidate: ‘bool std::operator!=(const error_code&, const error_condition&)’
/nix/gcc-14.3.0/include/c++/14.3.0/system_error:530:32: note:   no known conversion for argument 1 from ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘const std::error_code&’
/nix/gcc-14.3.0/include/c++/14.3.0/system_error:535:3: note: candidate: ‘bool std::operator!=(const error_condition&, const error_code&)’
/nix/gcc-14.3.0/include/c++/14.3.0/system_error:535:37: note:   no known conversion for argument 1 from ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘const std::error_condition&’
/nix/gcc-14.3.0/include/c++/14.3.0/system_error:540:3: note: candidate: ‘bool std::operator!=(const error_condition&, const error_condition&)’
/nix/gcc-14.3.0/include/c++/14.3.0/system_error:540:37: note:   no known conversion for argument 1 from ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘const std::error_condition&’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:3901:3: note: candidate: ‘bool std::operator!=(const bernoulli_distribution&, const bernoulli_distribution&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/random.h:3901:49: note:   no known conversion for argument 1 from ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘const std::bernoulli_distribution&’
In file included from /nix/gcc-14.3.0/include/c++/14.3.0/x86_64-unknown-linux-gnu/bits/stdc++.h:184:
/nix/gcc-14.3.0/include/c++/14.3.0/thread:79:3: note: candidate: ‘bool std::operator!=(thread::id, thread::id)’
/nix/gcc-14.3.0/include/c++/14.3.0/thread:79:25: note:   no known conversion for argument 1 from ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘std::thread::id’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/allocator.h:220:7: note: candidate: ‘bool std::operator!=(const allocator<char>&, const allocator<char>&)’
/nix/gcc-14.3.0/include/c++/14.3.0/bits/allocator.h:220:18: note:   no known conversion for argument 1 from ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘const std::allocator<char>&’

信息

递交者
类型
递交
题目
P1809 标题统计
语言
C++
递交时间
2025-08-02 08:53:46
评测时间
2025-08-06 06:27:44
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes