Language: C++

#include<iostream>
#include<sstream>
#include<vector>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
const int sz=110;
string s[sz],cmp[sz];
int a,b;
bool solve()
{
    rep(i,a-b)
    {
        rep(j,a-b)
        {
            if(s[i][j]==cmp[0][0])
            {
                bool ok=1;
                rep(k,b)
                {
                    rep(l,b)
                    {
                        if(s[i+k][j+l]!=cmp[k][l])
                        {
                            ok=0;
                            break;
                        }
                    }
                }
                if(ok)return 1;
            }
        }
    }
    return 0||s==cmp;
}
main()
{
    cin.tie(0);
    ios::sync_with_stdio(0);
    cin>>a>>b;
    rep(i,a)cin>>s[i];
    rep(i,b)cin>>cmp[i];
    puts("No");
    return 0;
}#include<iostream>
#include<sstream>
#include<vector>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
const int sz=110;
string s[sz],cmp[sz];
int a,b;
bool solve()
{
    rep(i,a-b)
    {
        rep(j,a-b)
        {
            if(s[i][j]==cmp[0][0])
            {
                bool ok=1;
                rep(k,b)
                {
                    rep(l,b)
                    {
                        if(s[i+k][j+l]!=cmp[k][l])
                        {
                            ok=0;
                            break;
                        }
                    }
                }
                if(ok)return 1;
            }
        }
    }
    return 0||s==cmp;
}
main()
{
    cin.tie(0);
    ios::sync_with_stdio(0);
    cin>>a>>b;
    rep(i,a)cin>>s[i];
    rep(i,b)cin>>cmp[i];
    puts("No");
    return 0;
}

Compiler output:
a.cc:44:2: error: stray '#' in program
   44 | }#include<iostream>
      |  ^
a.cc:35:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   35 | main()
      | ^~~~
a.cc:44:3: error: 'include' does not name a type
   44 | }#include<iostream>
      |   ^~~~~~~
a.cc:49:11: error: redefinition of 'const int sz'
   49 | const int sz=110;
      |           ^~
a.cc:6:11: note: 'const int sz' previously defined here
    6 | const int sz=110;
      |           ^~
a.cc:50:8: error: redefinition of 'std::string s [110]'
   50 | string s[sz],cmp[sz];
      |        ^
a.cc:7:8: note: 'std::string s [110]' previously declared here
    7 | string s[sz],cmp[sz];
      |        ^
a.cc:50:14: error: redefinition of 'std::string cmp [110]'
   50 | string s[sz],cmp[sz];
      |              ^~~
a.cc:7:14: note: 'std::string cmp [110]' previously declared here
    7 | string s[sz],cmp[sz];
      |              ^~~
a.cc:51:5: error: redefinition of 'int a'
   51 | int a,b;
      |     ^
a.cc:8:5: note: 'int a' previously declared here
    8 | int a,b;
      |     ^
a.cc:51:7: error: redefinition of 'int b'
   51 | int a,b;
      |       ^
a.cc:8:7: note: 'int b' previously declared here
    8 | int a,b;
      |       ^
a.cc:52:6: error: redefinition of 'bool solve()'
   52 | bool solve()
      |      ^~~~~
a.cc:9:6: note: 'bool solve()' previously defined here
    9 | bool solve()
      |      ^~~~~
a.cc:78:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   78 | main()
      | ^~~~
a.cc:78:1: error: redefinition of 'int main()'
a.cc:35:1: note: 'int main()' previously defined here
   35 | main()
      | ^~~~