criyle/codenet-compile-errors huggingface dataset:
Language: Java

import oracle.jvm.hotspot.jfr.JFRTypeIDs;

import java.io.*;
import java.util.*;

public class Main {
    public static final long mod = (long)1e9+7;
    public static final long INF = Long.MAX_VALUE/10;
    public static final int inf = Integer.MAX_VALUE/10;

    static void solve(InputReader in, PrintWriter out){
        int n = in.ni(), m = in.ni();
        char[][] a = new char[n][n];
        char[][] b = new char[m][m];
        for (int i = 0; i < n; i++) {
            a[i] = in.ns().toCharArray();
        }
        for (int i = 0; i < m; i++) {
            b[i] = in.ns().toCharArray();
        }
        boolean flag = true;
        out:for (int i = 0; i < n - m + 1; i++) {
            in:for (int j = 0; j < n - m + 1; j++) {
                flag = true;
                for (int k = 0; k < m; k++) {
                    for (int l = 0; l < m; l++) {
                        if(a[i+k][j+l]!=b[k][l]){
                            flag = false;
                            continue in;
                        }
                    }
                }
                if(flag) break out;
            }
        }
        out.println(flag?"Yes":"No");
    }

    public static void main(String[] args) throws Exception{
        InputReader in = new InputReader(System.in);
        PrintWriter out = new PrintWriter(System.out);
        solve(in, out);
        out.close();
    }
    public static class InputReader{
        private BufferedReader br;
        private StringTokenizer st;
        public InputReader(InputStream is){
            br = new BufferedReader(new InputStreamReader(is));
            st = null;
        }
        public String ns(){
            if(st == null || !st.hasMoreTokens()){
                try{
                    st = new StringTokenizer(br.readLine());
                }catch (Exception e){
                    throw new RuntimeException(e);
                }
            }
            return st.nextToken();
        }
        public long nl(){
            return Long.parseLong(ns());
        }
        public int ni(){
            return Integer.parseInt(ns());
        }
        public Double nd(){
            return Double.parseDouble(ns());
        }
        public int[] ni(int n){
            int[] a = new int[n];
            for (int i = 0; i < n; i++) {
                a[i] = ni();
            }
            return a;
        }
        public long[] nl(int n){
            long[] a = new long[n];
            for (int i = 0; i < n; i++) {
                a[i] = nl();
            }
            return a;
        }
        public double[] nd(int n){
            double[] a = new double[n];
            for (int i = 0; i < n; i++) {
                a[i] = nd();
            }
            return a;
        }
    }
}

Compiler output:
Main.java:1: error: package oracle.jvm.hotspot.jfr does not exist
import oracle.jvm.hotspot.jfr.JFRTypeIDs;
                             ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
  int n,m ; cin >> n >> m;
  vector<vector<int>> a(n,vector<int> (n));
  for(int i=0;i<n;i++){
    for(int j=0;j<n;j++){
      cin >> a.at(i).at(j);
    }
  }
  vector<vector<int>> b(m,vector<int> (m));
  for(int i=0;i<m;i++){
    for(int j=0;j<m;j++){
      cin >> b.at(i).at(j) ;
    }
  }
  bool exist = false;
  for(int i=0;i<n;i++){
    for(int j=0;j<n;j++){
      if(n-i+1<m || n-j+1<m) continue;
    
        
        bool match = true;
        for(int k=0;k<m;k++){
          for(int l=0;l<m;l++){
            
          if(a.at(i+k).at(j+l) != b.at(k).at(l)){
            match = false;
          }          
          }
        }
          if(macth) exist = true;
    }
  }
            
    if(exist){
      cout << "Yes" << endl;
    }
    else{
      cout << "No" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:14: error: 'macth' was not declared in this scope; did you mean 'match'?
   33 |           if(macth) exist = true;
      |              ^~~~~
      |              match
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define MAX(a,b) (a > b) ? a : b
#define MIN(a,b) (a < b) ? a : b
const int inf = 1000000000; // 10^9

int main(){
   int n,m;scanf("%d %d",&n,&m);
   char a[51][51];for(int i = 0;i < n;i++)scanf("%s",a[i]);
   char b[51][51];for(int i = 0;i < m;i++)scanf("%s",b[i]);
   int match = 1;
   //int count = 0;
   //printf("n:%d m:%d\n",n,m);
   for(int i = 0;i < (n-m);i++){
      for(int j = 0;j < (n-m);j++){
         for(int k = 0;k < m;k++){
            for(int l = 0;l < m;l++){
               //printf("i:%dj:%dk:%dl:%d\n",i,j,k,l);
               if(a[k][l] != b[i+k][j+l])match--;
               if(flag == 1)break;
               //count++;
            }
            if(flag == 1)break;
         }
         if(flag == 1)break;
      }
      if(flag == 1)break;
   }
   //printf("%d\n",count);
   if(match == 1)printf("Yes\n");
   else printf("No\n");
}

Compiler output:
main.c: In function 'main':
main.c:22:19: error: 'flag' undeclared (first use in this function)
   22 |                if(flag == 1)break;
      |                   ^~~~
main.c:22:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  bool ans = false;
  int N,M;
  cin >> N >> M;
  vector<vector<char> > A(N, vector<char>(N));
  vector<vector<char> > B(M, vector<char>(M));
  vector<vector<bool> > F(N - M + 1, vector<bool>(N - M + 1,true));
  for (int i = 0; i < N; i++) {
    for (int j = 0; j < N; j++) {
      cin >> A[i][j];
    }
  }
  for (int i = 0; i < M; i++) {
    for (int j = 0; j < M; j++) {
      cin >> B[i][j];
    }
  }
  for (int i = 0; i < N - M + 1; i++) {
    for (int j = 0; j < N - M + 1; j++) {
      for (int k = 0; k < M; k++) {
        for (int l = 0; l < M; l++) {
          if (A[i + k][j + l] != B[k][l]) {
             F[i][j] = false;
            }
          }
        }
      }
    }
  }
  for (int i = 0; i < N - M + 1; i++) {
    for (int j = 0; j < N - M + 1; j++) {
        if (F[i][j] == true) {
          ans = true;
        }
      }
    }
  }
  if (ans) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}

Compiler output:
a.cc:32:3: error: expected unqualified-id before 'for'
   32 |   for (int i = 0; i < N - M + 1; i++) {
      |   ^~~
a.cc:32:19: error: 'i' does not name a type
   32 |   for (int i = 0; i < N - M + 1; i++) {
      |                   ^
a.cc:32:34: error: 'i' does not name a type
   32 |   for (int i = 0; i < N - M + 1; i++) {
      |                                  ^
a.cc:39:3: error: expected declaration before '}' token
   39 |   }
      |   ^
a.cc:40:3: error: expected unqualified-id before 'if'
   40 |   if (ans) cout << "Yes" << endl;
      |   ^~
a.cc:41:3: error: expected unqualified-id before 'else'
   41 |   else cout << "No" << endl;
      |   ^~~~
a.cc:42:3: error: expected unqualified-id before 'return'
   42 |   return 0;
      |   ^~~~~~
a.cc:43:1: error: expected declaration before '}' token
   43 | }
      | ^
Language: C++

#include<bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < n; ++i)
#define rep2(i,s,n) for (int i = s; i < n; ++i)
#define all(a) a.begin(),a.end()
using namespace std;
using ll = long long;
using P = pair<int,int>;

int main() {
    int n;
    cin >> n;
    vector<string> a(n),b(m);
    rep(i,n) cin >> a[i];
    rep(i,m) cin >> b[i];
    rep(i,n-m+1) {
        rep(j,n-m+1) {
            bool same = true;
            rep(k,m) {
                if(a[i+k].substr(j,m) != b[k]) same = false;
            }
            if(same) {
                cout << "Yes" << endl;
                return 0;
            }
        }
    }
    cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:27: error: 'm' was not declared in this scope
   12 |     vector<string> a(n),b(m);
      |                           ^
Language: C++

#include<iostream>
#include<vector>
using namespace std ;

int main(){
	using vc = vector<char> ;
	using vcc = vector<vc> ;
	int n,m ;
	cin >> n >> m ;
	vcc a(n,vc(n)) ;
	vcc b(m.vc(m)) ;
	for(int i=0;i<n;i++){
		for(int j=0;j<n;j++){
			cin >> a.at(i).at(j) ;
		}
	}
	for(int i=0;i<m;i++){
		for(int j=0;j<m;j++){
			cin >> b.at(i).at(j) ;
		}
	}
	for(int i=0;i<n-m+1;i++){
		for(int j=0;j<n-m+1;j++){
			bool ok = true ;
			for(int k=0;k<m;k++){
				for(int l=0;l<m;l++){
					if(a.at(k+i).at(l+j)!=b.at(k).at(l)) ok =false ;
				}
			}
			if(ok){
				cout << "Yes" << endl ;
				return 0 ;
			}
		}
	}
	cout << "No" << endl ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: request for member 'vc' in 'm', which is of non-class type 'int'
   11 |         vcc b(m.vc(m)) ;
      |                 ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;

#define loop(i, n) for(int i = 0;i < int(n);i++)
#define rloop(i, n) for(int i = int(n);i >= 0;i--)
#define range(i, a, b) for(int i = int(a);i <= int(b);i++)
#define sz(c) int(c.size())
#define clr(v, d)   memset(v, d, sizeof(v))
#define ALL(c) c.begin(), c.end()
#define RALL(c) c.rbegin(), c.rend()
#define PI acos(-1)
#define pb push_back
#define mp make_pair
#define fr first
#define sc second
#define INF             INT64_MAX
#define NINF            INT64_MIN
#define ROW 1001
#define COL 1001

typedef long long ll;
typedef pair<int, int> ii;
typedef pair<ll, ll> pll;
typedef vector<ii> vii;
typedef vector<int> vi;
typedef vector<pll> vll;
typedef vector<ll> vl;
vector<string> A(50),B(50);
int n,m;
bool findBinA(int start)
{
    loop(i,m)
    {
        loop(j,m)
        {
            if(B[i][j]!=A[i][j])
                return false;
        }
    }
    return true;
}
int main(void){


    cin>>n;

    cin>>m4 1
            ....
            ....
            ....
            ....
            #;
    loop(i,n)
            cin>>A[i];
    loop(i,m)
            cin>>B[i];
    loop(i,n-m)
    {
        loop(j,n-m)
        {
            if(findBinA(j))
            {
                cout<<"YES"<<endl;
                return 0;
            }
        }
    }
    cout<<"NO"<<endl;

    return 0;
}


Compiler output:
a.cc:52:14: error: invalid preprocessing directive #;
   52 |             #;
      |              ^
a.cc: In function 'int main()':
a.cc:47:10: error: 'm4' was not declared in this scope; did you mean 'm'?
   47 |     cin>>m4 1
      |          ^~
      |          m
a.cc:53:10: error: 'i' was not declared in this scope; did you mean 'vi'?
   53 |     loop(i,n)
      |          ^
a.cc:4:34: note: in definition of macro 'loop'
    4 | #define loop(i, n) for(int i = 0;i < int(n);i++)
      |                                  ^
Language: C++

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <numeric>
#include <queue>
#include <vector>
#include <cmath>
#include <cctype>
#include <cstring>
#include <cstdio>
#include <set>
#include <map>

using namespace std;

typedef long long LL;
typedef pair<int, int> PII;

#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define repl(i, n) for(LL i = 0; i < (LL)(n); i++)

int main(void){

Compiler output:
a.cc: In function 'int main()':
a.cc:23:16: error: expected '}' at end of input
   23 | int main(void){
      |               ~^
Language: C++

#include <bits/stdc++.h>

using namespace std;
int main(){
  int N,M,l;
  cin>>N>>M;
  vector<vector<char>>A(N,vector<char>N),B(N,vector<char>N);
  for(int i=0;i<N;i++)for(int j=0;j<N;j++)cin>>A.at(i).at(j);
  for(int i=0;i<M;i++)for(int j=0;j<M;j++)cin>>A.at(i).at(j);
  for(int i=0;i<N-M;i++){
    for(int j=0;j<N-M;j++){    
      for(int k=0;k<M;k++){
        for(l=0;l<M;l++)if(A.at(i+k).at(j+l)==B.at(k).at(l))break;
        if(l!=M)break;
      }
      if(l==M)break;
    }
    if(l==M)break;
  }
  if(l==M)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:39: error: expected primary-expression before 'N'
    7 |   vector<vector<char>>A(N,vector<char>N),B(N,vector<char>N);
      |                                       ^
a.cc:7:58: error: expected primary-expression before 'N'
    7 |   vector<vector<char>>A(N,vector<char>N),B(N,vector<char>N);
      |                                                          ^
Language: C++

#include<bits/stdc++.h>
#include<string>
using namespace std;
int main(){
  int N,M,k,l;
  cin>>N>>M;
  vector<string>A(N),B(M);
  for(int i=0;i<N;i++)cin>>A.at(i);
  for(int i=0;i<M;i++)cin>>B.at(i);
  for(int i=0;i<N-M;i++){
    for(int j=0;j<N-M;j++){
      for(k=0;k<M;k++){
        for(l=0;l<M;l++){
          if(A.at(i+k).at(j+l))!=B.at(k).at(l))break;
        }
        if(l!=M)break;
      }
      if(k!=M)break;
    }
    if(k==M)break;
  }
  if(k==M)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:32: error: expected primary-expression before '!=' token
   14 |           if(A.at(i+k).at(j+l))!=B.at(k).at(l))break;
      |                                ^~
Language: C++

#include<bits/stdc++.h>
#include<string>
using namespace std;
int main(){
  int N,M,k;
  cin>>N>>M;
  vector<string>A(N),B(M);
  for(int i=0;i<N;i++)cin>>A.at(i);
  for(int i=0;i<M;i++)cin>>B.at(i);
  for(int i=0;i<N-M;i++){
    for(int j=0;j<N-M;j++){
      for(k=0;k<M;k++){
        if(A.at(i+k).substr(j,M))!=B.at(i+k))break; 
      }
      if(k==M)break;
    }
    if(k==M)break;
  }
  if(k==M)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:28: error: could not convert 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::substr(size_type, size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int](((std::__cxx11::basic_string<char>::size_type)j), ((std::__cxx11::basic_string<char>::size_type)M))' from 'std::__cxx11::basic_string<char>' to 'bool'
   13 |         if(A.at(i+k).substr(j,M))!=B.at(i+k))break;
      |            ~~~~~~~~~~~~~~~~^~~~~
      |                            |
      |                            std::__cxx11::basic_string<char>
a.cc:13:34: error: expected primary-expression before '!=' token
   13 |         if(A.at(i+k).substr(j,M))!=B.at(i+k))break;
      |                                  ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;


int main() {
  int n,m;
  cin >> n >> m;
  
  vector<string> a(n),b(m);
  for(int i=0; i<n; i++){
    cin >> a[i];
  }
  for(int i=0; i<m; i++){
    cin >> b[i];
  }
  
  bool a = false;
  for(int i=0; i<n-m+1; i++){
    for(int j=0; j<n-m+1; j++){
      if(a[i].substr(j,m)==b[0]){
        for(int k=1; k<m; k++){
          if(a[i+k].substr(j,m)!=b[k]) break;
        }
        cout << "Yes" << endl;
        return;
      }
    }
  }
  cout << "No" << endl; 
        
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:8: error: conflicting declaration 'bool a'
   17 |   bool a = false;
      |        ^
a.cc:9:18: note: previous declaration as 'std::vector<std::__cxx11::basic_string<char> > a'
    9 |   vector<string> a(n),b(m);
      |                  ^
a.cc:25:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   25 |         return;
      |         ^~~~~~
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#define rep(i, n) for(int64_t i = 0; i < n; ++i)
using namespace std;

int main() {
  int n, m;
  cin >> n >> m;
  bool b = 1;
  vector<vector<char>> a(n, vector<char>(n)), b(m, vector<char>(m));
  rep(i, n){
    string s;
    cin >> s;
    rep(j, n) a[i][j] = s[j];
  }
  rep(i, m){
    string s;
    cin >> s;
    rep(j, m) b[i][j] = s[j];
  }
  rep(i, n-m){
    rep(j, n-m){
      b = 1;
      rep(k, m){
        rep(l, m){
          if(a[i+k][j+l] != b[k][l]){
            b = 0;
            break;
          }
        }
        if(!b) break;
      }
      if(b) break;
    }
    if(b) break;
  }
  if(b) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:47: error: conflicting declaration 'std::vector<std::vector<char> > b'
   10 |   vector<vector<char>> a(n, vector<char>(n)), b(m, vector<char>(m));
      |                                               ^
a.cc:9:8: note: previous declaration as 'bool b'
    9 |   bool b = 1;
      |        ^
a.cc:19:16: error: invalid types 'bool[int64_t {aka long int}]' for array subscript
   19 |     rep(j, m) b[i][j] = s[j];
      |                ^
a.cc:26:30: error: invalid types 'bool[int64_t {aka long int}]' for array subscript
   26 |           if(a[i+k][j+l] != b[k][l]){
      |                              ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  int N,M;
  cin>>N>>M;
  vector<string> A(N),B(M);
  for(int i=0;i<N;i++){
    cin>>A.at(i);
  }
  for(int i=0;i<M;i++){
    cin>>B.at(i);
  }
  
  bool flag=false;
  for(int i=0;i<N-M+1){
    for(int j=0;j<N-M+1){
      bool flag=true;
      for(int k=0;k<M;k++){
        for(int l=0;l<M;l++){
          if(A.at(i+k).at(j+l)!=B.at(k).at(l)){
            flag=false;
            break;
          }
        }
        if(!flag){
          break;
        }
      }
      if(flag){
        break;
      }
    }
    if(flag){
      break;
    }
  }
  if(flag){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:22: error: expected ';' before ')' token
   16 |   for(int i=0;i<N-M+1){
      |                      ^
      |                      ;
a.cc:17:24: error: expected ';' before ')' token
   17 |     for(int j=0;j<N-M+1){
      |                        ^
      |                        ;
Language: C++

int main(void){
 int N,M;
 cin >> N >> M;

 const int nmmax=50;
 char A[nmmax][nmmax],B[nmmax][nmmax];


 for(int y=0;y<N;++y){
 for(int x=0;x<N;++x){
 cin >> A[y][x];
 }
 }

 for(int y=0;y<M;++y){
 for(int x=0;x<M;++x){
 cin >> B[y][x];
 }
 }

 bool exist=false;

 for(int ly=0;ly<N;++ly){
 for(int lx=0;lx<N;++lx){
 if(ly+M-1>=N or lx+M-1>=N) continue;

 bool match=true;
 for(int y=0;y<M;++y){
 for(int x=0;x<M;++x){
 if(A[ly+y][lx+x]!=B[y][x]) match=false;
 }
 }
 if(match) exist=true;
 }
 }

 if(exist)
 cout << "Yes" << endl;
 else
 cout << "No" << endl;

 return 0;
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:3:2: error: 'cin' was not declared in this scope
    3 |  cin >> N >> M;
      |  ^~~
a.cc:38:2: error: 'cout' was not declared in this scope
   38 |  cout << "Yes" << endl;
      |  ^~~~
a.cc:38:19: error: 'endl' was not declared in this scope
   38 |  cout << "Yes" << endl;
      |                   ^~~~
a.cc:40:2: error: 'cout' was not declared in this scope
   40 |  cout << "No" << endl;
      |  ^~~~
a.cc:40:18: error: 'endl' was not declared in this scope
   40 |  cout << "No" << endl;
      |                  ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main()
{
  	int N, M;
  	cin>>N>>M;
  	int a[N][N], b[M][M];
  	for(int i = 0; i < N; i++)
      for(int j = 0; j < N; j++)
        cin>>a[i][j];
  	for(int i = 0; i < M; i++)
      for(int j = 0; j < M; j++)
        cin>>b[i][j];
  bool exist=false;

 for(int ly=0;ly<N;++ly){
 for(int lx=0;lx<N;++lx){
 if(ly+M-1>=N or lx+M-1>=N) continue;

 bool match=true;
 for(int y=0;y<M;++y){
 for(int x=0;x<M;++x){
 if(a[ly+y][lx+x]!=b[y][x]) match=false;
}
 }
 if(match) exist=true;
 }
 }

 if(exist)
cout << "Yes" << endl;
 else
 cout << "No" << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:34:23: error: expected '}' at end of input
   34 |  cout << "No" << endl;
      |                       ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C

#include <cstdio>
#include <iostream>
using namespace std;

char N[55][55],M[55][55];
int n,m;

bool isSame(int startX, int startY)
{
	for(int k=1;k<=m;k++)
		for(int l=1;l<=m;l++)
			if(N[startX+k-1][startY+l-1]!=M[k][l])
				return false;

	return true;
} 

int main()
{   
	cin>>n>>m;
	for(int i=1;i<=n;i++)
		for(int j=1;j<=n;j++)
			cin>>N[i][j];
	for(int i=1;i<=m;i++)
		for(int j=1;j<=m;j++)
			cin>>M[i][j];

	for(int i=1;i<=n-m+1;i++)
		for(int j=1;j<=n-m+1;j++)
			if(isSame(i,j))
			{
				printf("Yes\n");
				return 0;
			}


	printf("No\n");
	return 0;
}

Compiler output:
main.c:1:10: fatal error: cstdio: No such file or directory
    1 | #include <cstdio>
      |          ^~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namespace std;
int main() {
	int n, m;
	cin >> n >> m;
	
	char s[55][55];
	char t[55][55];
	for (int i = 0; i < n; i++) {
		for (int j = 0; j < n; j++) {
			cin >> s[i][j];
		}
	}

	for (int i = 0; i < m; i++) {
		for (int j = 0; j < m; j++) {
			cin >> t[i][j];
		}
	}
	bool flag = true;
	for (int a = 0; a < n - m + 1; a++) {
		for (int b = 0; b < n - m + 1; b++) {
			for (int i = 0; i < m; i++) {
				for (int j = 0; j < m; j++) {
					if (s[i + a][j + b] != t[i][j]) {
						flag = false;
						
					}
					
				}
			}	
			if (flag) {
				cout << "Yes" << endl;
				return 0;
			}
		}
	}
	cout << "No" << endl;
	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:39:18: error: expected '}' at end of input
   39 |         return 0;
      |                  ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define REP(i,n) for(long long i=0;i<n;++i)
#define REPP(i,m,n) for(long long i=m;i<n;++i)
#define rep(i,n) for(long long i = n-1;i>=0;--i)
#define repp(i,n,m) for(long long i = n-1; i >= m; --i)
#define ALL(N) (N.begin(),N.end())
#define de cout << "line : " << __LINE__ << " debug" << endl;
#define pb push_back
#define pq priority_queue
#define Dcout(N) cout << setprecision(20) << N << endl
constexpr int INF = 2147483647;
constexpr long long INFF = 9223372036854775807;

signed main() {
    cin.tie(0);
	ios::sync_with_stdio(false);
    int N,M;cin >> N >> M;
    char A[N][N],B[M][M];
    REP(i,N) REP(j,N) cin >> A[i][j];
    REP(i,M) REP(j,M) cin >> B[i][j];
    REP(i,N- k) REP(j,N - M){
        REP(k,M) REP(l,M){
            if(A[i+k][j+l] != B[k][l]) break;
            if(k == M-1 && l == M-1){
                cout << "Yes" << endl;
                return 0;
            }
        }
    }
    cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:14: error: 'k' was not declared in this scope
   23 |     REP(i,N- k) REP(j,N - M){
      |              ^
a.cc:4:38: note: in definition of macro 'REP'
    4 | #define REP(i,n) for(long long i=0;i<n;++i)
      |                                      ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
long int pow107 = (int)pow(10, 9) + 7;

bool comp(pair<int, string> a, pair<int, string> b){
    if(a.first != b.first) return a.first > b.first;
    else return a.second < b.second;
}

long int jou(long int x, long int y){
    long int f = 1;
    for(int i = 0; i < y; ++i){
        f = f * x % pow107;
    }
    return f;
}

bool pn(long int x){
    if(x != 2 && x % 2 == 0)
        return false;
    for(int i = 3; i < x; ++i){
        if(x != i && x % i == 0)
            return false;
    }
    return true;
}

long int factorial(long int n){
    long int f = 1;
    for(long int i = 1; i <= n; ++i){
        f = f * i % pow107;
    }
    return f;
}


int main(){
    int N,M;
 cin >> N >> M;

 const int nmmax=50;
 char A[nmmax][nmmax],B[nmmax][nmmax];


for(int y=0;y<N;++y){
 for(in x=0;x<N;++x){
 cin >> A[y][x];
 }
 }

 for(int y=0;y<M;++y){
 for(int x=0;x<M;++x){
 cin >> B[y][x];
 }
 }

 bool exist=false;

 for(int ly=0;ly<N;++ly){
 for(int lx=0;lx<N;++lx){
 if(ly+M-1>=N or lx+M-1>=N) continue;

 bool match=true;
 for(int y=0;y<M;++y){
 for(int x=0;x<M;++x){
 if(A[ly+y][lx+x]!=B[y][x]) match=false;
 }
 }
 if(match) exist=true;
 }
 }

 if(exist)
 cout << "Yes" << endl;
 else
 cout << "No" << endl;

 return 0;
 }
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:46:6: error: 'in' was not declared in this scope; did you mean 'yn'?
   46 |  for(in x=0;x<N;++x){
      |      ^~
      |      yn
a.cc:46:13: error: 'x' was not declared in this scope
   46 |  for(in x=0;x<N;++x){
      |             ^
a.cc: At global scope:
a.cc:80:4: error: expected unqualified-id before 'return'
   80 |    return 0;
      |    ^~~~~~
a.cc:81:1: error: expected declaration before '}' token
   81 | }
      | ^
Language: C++

#include <bits/stdc++.h>

#define mod 1000000007

#define rep(i, n) for(int i=0; i<n; ++i)

using namespace std;
typedef long long ll;
const long long INF = 1LL << 60;
 
int main(void){
	
	int M, N;
	
	cin >> M >> N;
	
	int A[N][M], B[N][M];
	
	rep(i, N)
		rep(j, N)
			cin >> A[i][j];
			
	rep(i, M)
		rep(j, M)
			cin >> B[i][j];
	
	rep(i, N){
		rep(j, N){
			if(i + M - 1 >= N || j + M - 1 >= N)
				continue;
			bool match = true;
			rep(k, M)
				rep(l, M)
					if(A[i + k][j + l] != B[k][l])
						match = false;
			if(match)
				exist = true;
		}
	}
	
	if(exist)
		cout << "Yes";
	else
		cout << "No";
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:33: error: 'exist' was not declared in this scope; did you mean 'exit'?
   37 |                                 exist = true;
      |                                 ^~~~~
      |                                 exit
a.cc:41:12: error: 'exist' was not declared in this scope; did you mean 'exit'?
   41 |         if(exist)
      |            ^~~~~
      |            exit
Language: C++

#include <iostream>
#include <string>
#include <vector>
using namespace std;

int main()
{
	int n,m;cin>>n>>m;
	vector<string> a(n);
	for(int i=0;i<n;++i)cin>>a[i];
	vector<string> b(m);
	for(int i=0;i<m;++i)cin>>b[i];

	for(int i=0;i<n-m+1;++i)
	{
		for(int j=0;j<n-m+1;++j)
		{
			for(int k=0;k<m;++k)
			{
				bool match==true;
				for(int l=0;l<m;++l)
				{
					//cout<<a[i+k][j+l]<<b[k][l]<<endl;
					if(a[i+k][j+l]!=b[k][l]){
						match=false;
							break;
						}
					}	
				if(match)
				{
					cout<<"Yes"<<endl;
					return 0;
				}
			}
		}	
	}
	cout<<"No"<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:43: error: expected initializer before '==' token
   20 |                                 bool match==true;
      |                                           ^~
a.cc:25:49: error: 'match' was not declared in this scope; did you mean 'rpmatch'?
   25 |                                                 match=false;
      |                                                 ^~~~~
      |                                                 rpmatch
a.cc:29:36: error: 'match' was not declared in this scope; did you mean 'rpmatch'?
   29 |                                 if(match)
      |                                    ^~~~~
      |                                    rpmatch
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N,M; 
  cin >> N >> M;
  char A[50][50],B[50][50];
 for(int i=0;i<N;++i){ 
   for(int j=0;j<N;++j)
      cin >> A[i][j]; 
 }
    

 for(int i=0;i<M;++i){
   for(int j=0;j<M;++j)
     cin >> B[i][j];
 }
   bool abcde =false;
  for(int i=0;i<=N;i++){
        for(int j=0;j<=N;j++){
           if(i+M-1>=N or j+M-1>=N) continue;
            bool abc=true;
            for(int h=0;h<M;h++){
                for(int k=0;k<M;k++){
                    if(A[i+h][j+k]!=B[h][k]){
                        abc = false;                                                
                    }
                }
              if(abc) abcde =true;
            }
        }
    
            if(abcde){
                cout<<"Yes"<< endl;
                return 0;
            }
        
    
  else{
    cout<<"No"<< endl;
    return 0;
  }
}
        
  


Compiler output:
a.cc: In function 'int main()':
a.cc:43:2: error: expected '}' at end of input
   43 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N,M; 
  cin >> N >> M;
  char A[50][50],B[50][50];
 for(int i=0;i<N;++i){ 
   for(int j=0;j<N;++j)
      cin >> A[i][j]; 
 }
    

 for(int i=0;i<M;++i){
   for(int j=0;j<M;++j)
     cin >> B[i][j];
 }
   bool abcde =false;
  for(int i=0;i<=N;i++){
        for(int j=0;j<=N;j++){
           if(i+M-1>=N or j+M-1>=N) continue;
            bool abc=true;
            for(int h=0;h<M;h++){
                for(int k=0;k<M;k++){
                    if(A[i+h][j+k]!=B[h][k]){
                        abc = false;                                                
                    }
                }
              if(abc) abcde =true;
            }
            if(abcde){
                cout<<"Yes"<< endl;
                return 0;
            }
        
    }
  else{
    cout<<"No"<< endl;
    return 0;
  }
}
        
  


Compiler output:
a.cc: In function 'int main()':
a.cc:37:3: error: 'else' without a previous 'if'
   37 |   else{
      |   ^~~~
a.cc:41:2: error: expected '}' at end of input
   41 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N,M; 
  cin >> N >> M;
  char A[50][50],B[50][50];
 for(int i=0;i<N;++i){ 
   for(int j=0;j<N;++j)
      cin >> A[i][j]; 
 }
    

 for(int i=0;i<M;++i){
   for(int j=0;j<M;++j)
     cin >> B[i][j];
 }
   bool abcde =false;
  for(int i=0;i<=N;i++){
        for(int j=0;j<=N;j++){
           if(i+M-1>=N or j+M-1>=N) continue;
            bool abc=true;
            for(int h=0;h<M;h++){
                for(int k=0;k<M;k++){
                    if(A[i+h][j+k]!=B[h][k]){
                        abc = false;                                                
                    }
                }
              if(abc) abcde =true;
            }
            if(abcde){
                cout<<"Yes"<< endl;
                return 0;
            }
        }
    }
  else{
    cout<<"No"<< endl;
    return 0;
  }
}
        
  


Compiler output:
a.cc: In function 'int main()':
a.cc:37:3: error: 'else' without a previous 'if'
   37 |   else{
      |   ^~~~
Language: C++

#include <iostream>
#include <vector>
using namespace std;

int main()
{
  int n,m;
  cin >> n >> m;
  
  vector<string> a(n);
  vector<string> b(n);
  for( int i = 0; i < n; i++ )
  {
    cin >> a[i];
  }
  for( int i = 0; i < n; i++ )
  {
    cin >> b[i];
  }
  bool ok = false;
  for( int i = 0; i < n; i++ )
  {
    for ( int j = 0; j < n - m + 1; j++ )
    {
      string substr = a[i].substring(j,j+m-1);
      if( substr == b[i] )
      {
        for( int k = i+1; k < i+m; k++ )
        {
          substr = a[k].substring(j,j+m-1);
          if( substr != b[k] )
          {
            ok = false;
          }
        }
        if(ok) 
        {
          cout << "Yes" << endl;
          return 0;
        }
      }
    }
  }
  
  cout << "No" << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:28: error: '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'substring'; did you mean 'substr'?
   25 |       string substr = a[i].substring(j,j+m-1);
      |                            ^~~~~~~~~
      |                            substr
a.cc:30:25: error: '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'substring'; did you mean 'substr'?
   30 |           substr = a[k].substring(j,j+m-1);
      |                         ^~~~~~~~~
      |                         substr
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
typedef long long ll;

int main() {
    int N, M;
    cin >> N >> M;
    vector<string> A(N);
    vector<string> B(M);
    for (int i = 0; i < N; i++){
        cin >> A[i];
    }
    for (int i = 0; i < M; i++){
        cin >> B[i];
    }
    bool flag = true;
    for (int i = 0; i + M < N; i++){
        for (int j = 0; j + M < N; j++) {
            for (int k = 0; k < M; k++){
                for (int l = 0; l < M; l++){
                    if A[i+k][j+l] != A[k][l]{
                        flag = false;
                        break;
                    }
                    if (flag == false){
                        break;
                    }
                }
                if (flag == false) {
                    break;
                }
            }
            if (flag) {
                break;
            }
        }
        if(flag){
            break;
        }
    }
    if (flag) {
        cout << "Yes" << endl;
    }
    else{
        cout << "No" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:24: error: expected '(' before 'A'
   23 |                     if A[i+k][j+l] != A[k][l]{
      |                        ^
      |                        (
Language: C++

#include <isotream>
#include <vector>

using namespace std;

int main(){
  int N, M;
  cin >> N >> M;
  vector<vector<char>> I(N,vector<char>(N,'x'));
  vector<vector<char>> P(M,vector<char>(M,'x'));
  for(int i = 0; i < N; i++){
    for(int j = 0; j < N; j++) cin >> I[i][j];
  }
  for(int i = 0; i < M; i++){
    for(int j = 0; j < M; j++) cin >> P[i][j];
  }
  bool ans = false;
  bool f = false;
  for(int si = 0; si < N - M; si++){
    for(int sj = 0; sj < N - M; sj++){
      if(I[si][sj] == P[0][0] && I[si+M-1][sj+M-1] == P[M-1][M-1]){
        f = false;
        for(int a = 0; a < M; a++){
          for(int b = 0; b < M; b++){
            if(I[si+a][sj+b] != P[a][b]){
              f = true;
              break;
            }
          }
          if(!f) ans = true;
        }
      }
    }
  }
  if(ans) cout << "Yes";
  else cout << "No";
}

Compiler output:
a.cc:1:10: fatal error: isotream: No such file or directory
    1 | #include <isotream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  int a;
  cin>>a;
  vector<vector<char>> origin(a,vector<char>(a));
  for(int i=0;i<a;i++){
    for(int j=0;j<a;j++){
      cin>>origin[i][j];
    }
  }
  int b;
  cin>>b;
  vector<vector<char>> cover(b,vector<char>(b));
  for(int i=0;i<b;i++){
    for(int j=0;j<b;j++){
      cin>>cover[i][j];
    }
  }
  int count1=0,count2=0;
  while(count2<=a-b){
    bool flag=false;
    for(int i=0;i<b;i++){
      for(int j=0;j<b;j++){
        if(cover[i][j]!=origin[i+count1][j+count2]){
          count1++;
          if(count1==a-b){
            count1=0;
            count2++;
          }
          flag=true;
          break;
        }
      }
      if(flag) break;
      if(j==b-1)  {
        cout<<"Yes"<<endl;
        return 0;
      }
    }
  }
  cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:10: error: 'j' was not declared in this scope
   37 |       if(j==b-1)  {
      |          ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  int n, m;
  cin >> n >> m;
  
  int a[50][50];
  int b[50][50];
  
  for (int i = 0; i < n; i++) {
  	for (int j = 0; j < n; j++) {
    	cin >> a[i][j];
    }
  }
  for (int i = 0; i < m; i++) {
  	for (int j = 0; j < m; j++) {
    	cin >> b[i][j];
    }
  }
  
  bool ans = true;
  
  for (int i = 0; i < n; i++) {
  	for (int j = 0; j < n; j++) {
      
      for (int k = 0; k < n; k++) {
  		for (int l = 0; l < n; l++) {
      
          if (a[i+k][j+l] != b[k][l]) {
            ans = false;
          }
          
        }
      }
    }
  }
  if (ans) {
    cout << "Yes":
  }
  else {
    cout << "No";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:38:18: error: expected ';' before ':' token
   38 |     cout << "Yes":
      |                  ^
      |                  ;
Language: C++

#include<bits/stdc++.h>
#include<vector>
#include<string>
using namespace std;

int N, M;

int main () {
  cin >> N >> M;
  vector<string> A(N);
  vector<string> B(M);
  
  for (int i = 0; i < N; i++){
    cin >> A[i];
  }
  for (int i = 0; i < M; i++){
    cin >> B[i];
  }
  
  int count = 0;
  
  for (int i = 0; i < N-M+1; i++){
    for (int j = 0; j < N-M+1; j++){
      bool f = true;
      for (int k = 0; k < M; k++){
        for (int l = 0; l < M; l++){
          if ((A[i+k][j+l])　!= (B[k][l])){
            f = false;
          }
        }
      }
      if(f){
        cout << "Yes" << endl;
        return 0;
      }
    }
  }
  cout << "No" << endl;
  return 0;
}
  

Compiler output:
a.cc:27:28: error: extended character 　 is not valid in an identifier
   27 |           if ((A[i+k][j+l])　!= (B[k][l])){
      |                            ^
a.cc: In function 'int main()':
a.cc:27:28: error: expected ')' before '\U00003000'
   27 |           if ((A[i+k][j+l])　!= (B[k][l])){
      |              ~             ^~
      |                            )
Language: C++

#include<bits/stdc++.h>
#include<vector>
#include<string>
using namespace std;

int N, M;

int main () {
  cin >> N >> M;
  vector<string> A(N);
  vector<string> B(M);
  
  for (int i = 0; i < N; i++){
    cin >> A[i];
  }
  for (int i = 0; i < M; i++){
    cin >> B[i];
  }
  
  int count = 0;
  
  for (int i = 0; i < N-M+1; i++){
    for (int j = 0; j < N-M+1; j++){
      for (int k = 0; k < M; k++){
        for (int l = 0; l < M; l++){
          if ((A[i+k][j+l])　== (B[k][l])){
            count++;
          }
        }
      }
    }
  }
  if (count == M*M){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}
  

Compiler output:
a.cc:26:28: error: extended character 　 is not valid in an identifier
   26 |           if ((A[i+k][j+l])　== (B[k][l])){
      |                            ^
a.cc: In function 'int main()':
a.cc:26:28: error: expected ')' before '\U00003000'
   26 |           if ((A[i+k][j+l])　== (B[k][l])){
      |              ~             ^~
      |                            )
Language: C++

#include<bits/stdc++.h>
using namespace std;

int N, M;

int main () {
  cin >> N >> M;
  vector<string> A(N);
  vector<string> B(M);
  
  for (int i = 0; i < N; i++){
    cin >> A[i];
  }
  for (int i = 0; i < M; i++){
    cin >> B[i];
  }
  
  int count = 0;
  
  for (int i = 0; i < N-M+1; i++){
    for (int j = 0; j < N-M+1; j++){
      for (int k = 0; k < M; k++){
        for (int l = 0; l < M; l++){
          if (A[i+k][j+l]　== B[k][l]){
            count++;
          }
        }
      }
    }
  }
  if (count == M*M){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}
  

Compiler output:
a.cc:24:26: error: extended character 　 is not valid in an identifier
   24 |           if (A[i+k][j+l]　== B[k][l]){
      |                          ^
a.cc: In function 'int main()':
a.cc:24:26: error: expected ')' before '\U00003000'
   24 |           if (A[i+k][j+l]　== B[k][l]){
      |              ~           ^~
      |                          )
Language: C++

#include<bits/stdc++.h>
using namespace std;

int N, M;

int main () {
  cin >> N >> M;

  for (int i = 0; i < N; i++){
    cin >> A[i];
  }
  for (int i = 0; i < M; i++){
    cin >> B[i];
  }
  
  int count = 0;
  
  for (int i = 0; i < N-M+1; i++){
    for (int j = 0; j < N-M+1; j++){
      for (int k = 0; k < M; k++){
        for (int l = 0; l < M; l++){
          if (A[i+k][j+l]　== B[k][l]){
            count++;
          }
        }
      }
    }
  }
  if (count == M*M){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}
  

Compiler output:
a.cc:22:26: error: extended character 　 is not valid in an identifier
   22 |           if (A[i+k][j+l]　== B[k][l]){
      |                          ^
a.cc: In function 'int main()':
a.cc:10:12: error: 'A' was not declared in this scope
   10 |     cin >> A[i];
      |            ^
a.cc:13:12: error: 'B' was not declared in this scope
   13 |     cin >> B[i];
      |            ^
a.cc:22:15: error: 'A' was not declared in this scope
   22 |           if (A[i+k][j+l]　== B[k][l]){
      |               ^
a.cc:22:26: error: expected ')' before '\U00003000'
   22 |           if (A[i+k][j+l]　== B[k][l]){
      |              ~           ^~
      |                          )
Language: C++

#include<bits/stdc++.h>
#include<>
using namespace std;

int N, M;

int main () {
  cin >> N >> M;

  for (int i = 0; i < N; i++){
    cin >> A[i];
  }
  for (int i = 0; i < M; i++){
    cin >> B[i];
  }
  
  int count = 0;
  
  for (int i = 0; i < N-M+1; i++){
    for (int j = 0; j < N-M+1; j++){
      for (int k = 0; k < M; k++){
        for (int l = 0; l < M; l++){
          if (A[i+k][j+l]　== B[k][l]){
            count++;
          }
        }
      }
    }
  }
  if (count == M*M){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}
  

Compiler output:
a.cc:2:9: error: empty filename in #include
    2 | #include<>
      |         ^~
a.cc:23:26: error: extended character 　 is not valid in an identifier
   23 |           if (A[i+k][j+l]　== B[k][l]){
      |                          ^
a.cc: In function 'int main()':
a.cc:11:12: error: 'A' was not declared in this scope
   11 |     cin >> A[i];
      |            ^
a.cc:14:12: error: 'B' was not declared in this scope
   14 |     cin >> B[i];
      |            ^
a.cc:23:15: error: 'A' was not declared in this scope
   23 |           if (A[i+k][j+l]　== B[k][l]){
      |               ^
a.cc:23:26: error: expected ')' before '\U00003000'
   23 |           if (A[i+k][j+l]　== B[k][l]){
      |              ~           ^~
      |                          )
Language: C++

#include<bits/stdc++.h>
using namespace std;

int N, M;

int main () {
  cin >> N >> M;
  vector<string> A(N);
  vector<string> B(M);
  
  for (int i = 0; i < N; i++){
    cin >> A[i];
  }
  for (int i = 0; i < M; i++){
    cin >> B[i];
  }
  
  int count = 0;
  
  for (int i = 0; i < N-M+1; i++){
    for (int j = 0; j < N-M+1; j++){
      for (int k = 0; k < M; k++){
        for (int l = 0; l < M; l++){
          if (A[i+k]　== B[j+l]){
            count++;
          }
        }
      }
    }
  }
  if (count == M*M){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}
  

Compiler output:
a.cc:24:21: error: extended character 　 is not valid in an identifier
   24 |           if (A[i+k]　== B[j+l]){
      |                     ^
a.cc: In function 'int main()':
a.cc:24:21: error: expected ')' before '\U00003000'
   24 |           if (A[i+k]　== B[j+l]){
      |              ~      ^~
      |                     )
a.cc:24:32: error: could not convert 'A.std::vector<std::__cxx11::basic_string<char> >::operator[](((std::vector<std::__cxx11::basic_string<char> >::size_type)(i + k)))' from '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
   24 |           if (A[i+k]　== B[j+l]){
      |                                ^
      |                                |
      |                                __gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type {aka std::__cxx11::basic_string<char>}
Language: C++

#include<bits/stdc++.h>
using namespace std;

int N, M;

int main () {
  cin >> N >> M;
  vector<string> A(N);
  vector<string> B(M);
  
  for (int i = 0; i < N; i++){
    cin >> A[i];
  }
  for (int i = 0; i < M; i++){
    cin >> B[i];
  }
  
  int count = 0;
  
  for (int i = 0; i < N-M+1; i++){
    for (int j = 0; j < N-M+1; j++){
      for (int k = 0; k < M; k++){
        for (int l = 0; l < M; l++){
          if (A[i+k]　== B[j+l]){
            count++;
          }
        }
      }
    }
  }
  if (count == m*m){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}
  

Compiler output:
a.cc:24:21: error: extended character 　 is not valid in an identifier
   24 |           if (A[i+k]　== B[j+l]){
      |                     ^
a.cc: In function 'int main()':
a.cc:24:21: error: expected ')' before '\U00003000'
   24 |           if (A[i+k]　== B[j+l]){
      |              ~      ^~
      |                     )
a.cc:24:32: error: could not convert 'A.std::vector<std::__cxx11::basic_string<char> >::operator[](((std::vector<std::__cxx11::basic_string<char> >::size_type)(i + k)))' from '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
   24 |           if (A[i+k]　== B[j+l]){
      |                                ^
      |                                |
      |                                __gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type {aka std::__cxx11::basic_string<char>}
a.cc:31:16: error: 'm' was not declared in this scope
   31 |   if (count == m*m){
      |                ^
Language: C++

#include<bits/stdc++.h>
using namespace std;

int N, M;

int main () {
  cin >> N >> M;
  vector<string> A(N);
  vector<string> B(M);
  
  for (int i = 0; i < N; i++){
    cin >> A[i];
  }
  for (int i = 0; i < M; i++){
    cin >> B[i];
  }
  
  int count = 0;
  
  for (int i = 0; i < N-M+1; i++){
    for (int j = 0; j < N-M+1; j++){
      for (int k = 0; k < m; k++){
        for (int l = 0; l < m; l++){
          if (A[i+k]　== B[j+l]){
            count++;
          }
        }
      }
    }
  }
  if (count == m*m){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}
  

Compiler output:
a.cc:24:21: error: extended character 　 is not valid in an identifier
   24 |           if (A[i+k]　== B[j+l]){
      |                     ^
a.cc: In function 'int main()':
a.cc:22:27: error: 'm' was not declared in this scope
   22 |       for (int k = 0; k < m; k++){
      |                           ^
a.cc:24:21: error: expected ')' before '\U00003000'
   24 |           if (A[i+k]　== B[j+l]){
      |              ~      ^~
      |                     )
a.cc:24:32: error: could not convert 'A.std::vector<std::__cxx11::basic_string<char> >::operator[](((std::vector<std::__cxx11::basic_string<char> >::size_type)(i + k)))' from '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
   24 |           if (A[i+k]　== B[j+l]){
      |                                ^
      |                                |
      |                                __gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type {aka std::__cxx11::basic_string<char>}
a.cc:31:16: error: 'm' was not declared in this scope
   31 |   if (count == m*m){
      |                ^
Language: C++

#include<bits/stdc++.h>
using namespace std;

int N, M;

int main () {
  cin >> N >> M;
  vector<string> A(N);
  vector<string> B(M);
  
  for (int i = 0; i < N; i++){
    cin >> A[i];
  }
  for (int i = 0; i < M; i++){
    cin >> B[i];
  }
  
  int count = 0;
  
  for (int i = 0; i < N-M+1; i++){
    for (int j = 0; j < N-M+1; j++){
      for (int k = 0; k < M; k++){
        for (int l = 0; l < M; l++){
          if (A[i+k]　== B[j+l]){
            count++;
          }
        }
      }
    }
  }
  if (count == m*m)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
  

Compiler output:
a.cc:24:21: error: extended character 　 is not valid in an identifier
   24 |           if (A[i+k]　== B[j+l]){
      |                     ^
a.cc: In function 'int main()':
a.cc:24:21: error: expected ')' before '\U00003000'
   24 |           if (A[i+k]　== B[j+l]){
      |              ~      ^~
      |                     )
a.cc:24:32: error: could not convert 'A.std::vector<std::__cxx11::basic_string<char> >::operator[](((std::vector<std::__cxx11::basic_string<char> >::size_type)(i + k)))' from '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
   24 |           if (A[i+k]　== B[j+l]){
      |                                ^
      |                                |
      |                                __gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type {aka std::__cxx11::basic_string<char>}
a.cc:31:16: error: 'm' was not declared in this scope
   31 |   if (count == m*m)
      |                ^