So i have to write a program that reads two strings and prints out yes, if the second one is a substring of the first, and no if it's not. I would really appreciate your help. Here is my code:
You need to put your code inside the main function. You also need to include <iostream> (because you use std::cout and std::endl) and <string> (because you use std::string).