第一次用POJ,求大佬告知为什么会编译错误

编译错误提示:

Main.cpp
F:\ temp \ 22561088.35224 \ Main.cpp(23):错误C3867:'std :: basic_string <_Elem,_Traits,_Ax> :: length':函数调用缺少参数列表; 使用'&std :: basic_string <_Elem,_Traits,_Ax> :: length'创建一个指向成员的指针
        和
        [
            _Elem = char,
            _Traits = std :: char_traits <char>,
            _Ax = std :: allocator <char>
        ]
F:\ temp \ 22561088.35224 \ Main.cpp(23):错误C2296:'-':非法,左操作数的类型为'unsigned int(std :: basic_string <_Elem,_Traits,_Ax> :: *)(void)const '
        和
        [
            _Elem = char,
            _Traits = std :: char_traits <char>,
            _Ax = std :: allocator <char>
        ]
F:\ temp \ 22561088.35224 \ Main.cpp(51):错误C2065:'长度':未声明的标识符
F:\ temp \ 22561088.35224 \ Main.cpp(51):错误C2109:下标需要数组或指针类型
F:\ temp \ 22561088.35224 \ Main.cpp(66):错误C3867:'std :: basic_string <_Elem,_Traits,_Ax> :: length':函数调用缺少参数列表; 使用'&std :: basic_string <_Elem,_Traits,_Ax> :: length'创建一个指向成员的指针
        和
        [
            _Elem = char,
            _Traits = std :: char_traits <char>,
            _Ax = std :: allocator <char>
        ]

代码:

请用代码控件贴出代码