0_0_33817174_31938.cpp: In function 'int main()':
0_0_33817174_31938.cpp:21:21: error: cannot convert 'std::string {aka std::basic_string<char>}' to 'const char*' for argument '1' to 'size_t strlen(const char*)'
if(strlen(s1)==strlen(s2))
^
0_0_33817174_31938.cpp:21:33: error: cannot convert 'std::string {aka std::basic_string<char>}' to 'const char*' for argument '1' to 'size_t strlen(const char*)'
if(strlen(s1)==strlen(s2))
^
0_0_33817174_31938.cpp:23:28: error: cannot convert 'std::string {aka std::basic_string<char>}' to 'const char*' for argument '1' to 'int strcmp(const char*, const char*)'
if(strcmp(s1,s2)==0)
^
0_0_33817174_31938.cpp:27:40: error: cannot convert 'std::string {aka std::basic_string<char>}' to 'const char*' for argument '1' to 'size_t strlen(const char*)'
for(int i=0;i<strlen(s1);i++)
^
0_0_33817174_31938.cpp:38:32: error: cannot convert 'std::string {aka std::basic_string<char>}' to 'const char*' for argument '1' to 'int strcmp(const char*, const char*)'
if(strcmp(s1,s2)==0)
^
0_0_33817174_31938.cpp:46:36: error: cannot convert 'std::string {aka std::basic_string<char>}' to 'const char*' for argument '1' to 'size_t strlen(const char*)'
for(int i=0;i<strlen(s1);i++)
^
0_0_33817174_31938.cpp:50:13: error: expected primary-expression before '}' token
}
^
|