Main.cc: In function ‘int main()’:
Main.cc:8:20: error: no matching function for call to ‘strstr(std::__cxx11::string&, std::__cxx11::string&)’
if(strstr(s2,s1)) cout<}’ to ‘char*’
/usr/include/string.h:322:1: note: candidate: const char* strstr(const char*, const char*)
strstr (const char *__haystack, const char *__needle) __THROW
^~~~~~
/usr/include/string.h:322:1: note: no known conversion for argument 1 from ‘std::__cxx11::string {aka std::__cxx11::basic_string}’ to ‘const char*’
Main.cc:8:33: error: ‘s3’ was not declared in this scope
if(strstr(s2,s1)) cout<}’ to ‘char*’
/usr/include/string.h:322:1: note: candidate: const char* strstr(const char*, const char*)
strstr (const char *__haystack, const char *__needle) __THROW
^~~~~~
/usr/include/string.h:322:1: note: no known conversion for argument 1 from ‘std::__cxx11::string {aka std::__cxx11::basic_string}’ to ‘const char*’
Main.cc:9:38: error: ‘s3’ was not declared in this scope
else if(strstr(s1,s2)) cout<