Language: C++

#include<iostream>
using namespace std;
void judge(string *);
void judge(string *str)
{
  string sub0;
  string sub1;
  if((str->length % 2) == 0)
  {
    cout << "No";
  }
  else if(str->length == 1)
  {
    cout << "Yes";
  }
  else
  {
    sub0 = str->substr(0, ((str->length - 1) / 2));
    sub1 = str->substr(((str->length) / 2), str->length);
    judge(sub0);
    judge(sub1);
  }
}


int main(void)
{
  string str;
  
  cin >> str;
  judge(str);
 
}

Compiler output:
a.cc: In function 'void judge(std::string*)':
a.cc:8:12: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    8 |   if((str->length % 2) == 0)
      |       ~~~~~^~~~~~
      |                  ()
a.cc:12:16: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   12 |   else if(str->length == 1)
      |           ~~~~~^~~~~~
      |                      ()
a.cc:18:34: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   18 |     sub0 = str->substr(0, ((str->length - 1) / 2));
      |                             ~~~~~^~~~~~
      |                                        ()
a.cc:19:31: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   19 |     sub1 = str->substr(((str->length) / 2), str->length);
      |                         ~~~~~~^~~~~~~
      |                                      ()
a.cc:20:11: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'std::string*' {aka 'std::__cxx11::basic_string<char>*'}
   20 |     judge(sub0);
      |           ^~~~
      |           |
      |           std::string {aka std::__cxx11::basic_string<char>}
a.cc:4:20: note:   initializing argument 1 of 'void judge(std::string*)'
    4 | void judge(string *str)
      |            ~~~~~~~~^~~
a.cc:21:11: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'std::string*' {aka 'std::__cxx11::basic_string<char>*'}
   21 |     judge(sub1);
      |           ^~~~
      |           |
      |           std::string {aka std::__cxx11::basic_string<char>}
a.cc:4:20: note:   initializing argument 1 of 'void judge(std::string*)'
    4 | void judge(string *str)
      |            ~~~~~~~~^~~
a.cc: In function 'int main()':
a.cc:31:9: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'std::string*' {aka 'std::__cxx11::basic_string<char>*'}
   31 |   judge(str);
      |         ^~~
      |         |
      |         std::string {aka std::__cxx11::basic_string<char>}
a.cc:4:20: note:   initializing argument 1 of 'void judge(std::string*)'
    4 | void judge(string *str)
      |            ~~~~~~~~^~~