criyle/codenet-compile-errors huggingface dataset:
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Main
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] str = Console.ReadLine().Split(' ');
            int a, b;
            a = int.Parse(str[0]);
            b = int.Parse(str[1]);
            if (a == 1) a = 14;
            if (b == 1) b = 14;
            if (a < b) Console.WriteLine("Alice");
            else if (a == b) Console.WriteLine("Draw");
            else Console.WriteLine("Bob");
        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:11:26: error: 'string' has not been declared
   11 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:11:35: error: expected ',' or '...' before 'args'
   11 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:23:6: error: expected ';' after class definition
   23 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void Main::Program::Main(int*)':
a.cc:13:13: error: 'string' was not declared in this scope
   13 |             string[] str = Console.ReadLine().Split(' ');
      |             ^~~~~~
a.cc:13:20: error: expected primary-expression before ']' token
   13 |             string[] str = Console.ReadLine().Split(' ');
      |                    ^
a.cc:15:17: error: expected primary-expression before 'int'
   15 |             a = int.Parse(str[0]);
      |                 ^~~
a.cc:16:17: error: expected primary-expression before 'int'
   16 |             b = int.Parse(str[1]);
      |                 ^~~
a.cc:19:24: error: 'Console' was not declared in this scope
   19 |             if (a < b) Console.WriteLine("Alice");
      |                        ^~~~~~~
a.cc:20:30: error: 'Console' was not declared in this scope
   20 |             else if (a == b) Console.WriteLine("Draw");
      |                              ^~~~~~~
a.cc:21:18: error: 'Console' was not declared in this scope
   21 |             else Console.WriteLine("Bob");
      |                  ^~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b;cin >>a >> b;
	if(a == 1 && b != 1){
		cout << "Alice" << endl;
	}
	else if(a != 1 && b == 1){
		cout << "Bob" << endl;
	}
	else if (a == b){
		cout << "Draw" << endl;
	}
	else{
		a > b ? cout << "Alice" << endl; : cout << "Bob" << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:48: error: expected ':' before ';' token
   15 |                 a > b ? cout << "Alice" << endl; : cout << "Bob" << endl;
      |                                                ^
      |                                                :
a.cc:15:48: error: expected primary-expression before ';' token
a.cc:15:50: error: expected primary-expression before ':' token
   15 |                 a > b ? cout << "Alice" << endl; : cout << "Bob" << endl;
      |                                                  ^
Language: C

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

int main() {
  int i, j;
  int a, b;

  scanf("%d, %d", &a, &b);

  if (a==1) {
    a = 14;
  }
  if( b== 1){
    b = 14;
  }
  if(A>B){
    printf("Alice");
  } else if(A == B){
    printf("Draw");
  }
  else {
    printf("Bob");
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:6: error: 'A' undeclared (first use in this function)
   18 |   if(A>B){
      |      ^
main.c:18:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:8: error: 'B' undeclared (first use in this function)
   18 |   if(A>B){
      |        ^
Language: Java

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

public class A {
    public static void main(String[] args) throws Exception {
        FastScannerA fs = new FastScannerA();
        PrintWriter out = new PrintWriter(System.out);

        int n = fs.nextInt(), m = fs.nextInt();
        if(n == 1 && m == 1) {
            System.out.println("Draw");
        } else if(n == 1) {
            System.out.println("Alice");
        } else if(m == 1) {
            System.out.println("Bob");
        } else {
            if(n > m) {
                System.out.println("Alice");
            } else if(n < m) {
                System.out.println("Bob");
            } else {
                System.out.println("Draw");
            }
        }

        out.close();
    }
}

class FastScannerA {
    BufferedReader br;
    StringTokenizer st;

    public FastScannerA() {
        try	{
            br = new BufferedReader(new InputStreamReader(System.in));
            st = new StringTokenizer("");
        } catch (Exception e){e.printStackTrace();}
    }

    public String next() {
        if (st.hasMoreTokens())	return st.nextToken();
        try {st = new StringTokenizer(br.readLine());}
        catch (Exception e) {e.printStackTrace();}
        return st.nextToken();
    }

    public int nextInt() {return Integer.parseInt(next());}

    public long nextLong() {return Long.parseLong(next());}

    public double nextDouble() {return Double.parseDouble(next());}

    public String nextLine() {
        String line = "";
        try {line = br.readLine();}
        catch (Exception e) {e.printStackTrace();}
        return line;
    }

    public Integer[] nextIntegerArray(int n) {
        Integer[] a = new Integer[n];
        for(int i = 0; i < n; i++) a[i] = nextInt();
        return a;
    }

    public int[] nextIntArray(int n) {
        int[] a = new int[n];
        for(int i = 0; i < n; i++) a[i] = nextInt();
        return a;
    }

    public char[] nextCharArray() {
        return nextLine().toCharArray();
    }
}

Compiler output:
Main.java:4: error: class A is public, should be declared in a file named A.java
public class A {
       ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b;cin >>a >> b;
	if(a == 1 && b != 1){
		cout << "Alice" << endl;
	}
	else if(a != 1 && b == 1){
		cout << "Bob" << endl;
	}
	else if (a == b){
		cout << "Draw" << endl;
	}
	else{
		a > b ? cout << "Alice" << endl; cout << "Bob" << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:48: error: expected ':' before ';' token
   15 |                 a > b ? cout << "Alice" << endl; cout << "Bob" << endl;
      |                                                ^
      |                                                :
a.cc:15:48: error: expected primary-expression before ';' token
Language: C++

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

int main(){
  int N,M;cin>>N>>M;
  char A[N][N];
  char B[M][M];
  for(int i=0;i<N;i++) cin>>A[i];
  for(int i=0;i<M;i++) cin>>B[i];
  bool can=false;
  for(int i=0;i<=N-M;i++){
    for(int l=0;l<=N-M;l++){
      bool isyes=true;
      for(int j=0;j<M;j++){
        for(int k=0;k<M;k++){
          if(A[i+j][k+l]!=B[j][k]){
            isyes=false;
            break;
          }
        }
        if(!isyes) break;
      }
      if(isyes){
        can=true;
        break;
      }
    }
    if(can) break;
  }
  cout<<(can?"Yes":"No")<<endl;
}
}
    


Compiler output:
a.cc:32:1: error: expected declaration before '}' token
   32 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll =long long;
#define all(v) v.begin(),v.end()
 
int main() {
ll N,M;
  cin>>N>>M;
  vector<string> A(N);
  for(ll i=;i<N;i++) {
cin>>A[i];
  }
  vector<string> B(M);
  for(ll i=0;i<M;i++) {
cin>>B[i];
  }
  
  for(ll i=0;i<N-M+1;i++) {
for(ll j=0;j<N-M+1;j++) {
  bool a=true;
  
for(ll h=0;h<M;h++) {
for(ll k=0;k<M;k++) {
  if(S[i+h][j+k]!=T[h][k]) {
a=false;
  }
}
}
  if(a) {
cout<<"Yes"<<endl;
  return 0;
  }
}
  }
  
  cout<<"No"<<endl;
}
  

  
  
  
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected primary-expression before ';' token
   10 |   for(ll i=;i<N;i++) {
      |            ^
a.cc:24:6: error: 'S' was not declared in this scope
   24 |   if(S[i+h][j+k]!=T[h][k]) {
      |      ^
a.cc:24:19: error: 'T' was not declared in this scope
   24 |   if(S[i+h][j+k]!=T[h][k]) {
      |                   ^
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
    	int m = scn.nextInt();
    	char[][] aa = new char[n][n];
    	char[][] bb = new char[m][m];
    	for(int i=0; i<n; i++){
      		String a = scn.next();
      		for(int j=0; j<n; j++){
        		aa[i][j]=a.charAt(j);
      		}
    	}
    	for(int i=0; i<m; i++){
      		String b = scn.next();
      		for(int j=0;j<m;j++){
        		bb[i][j]=b.charAt(j);
      		}
    	}
      	for(int i=0; i<n; i++){
      		for(int j=0; j<n; j++){
        		if(i+m>n || j+m>n){
          			break;
        		}
              	String ans = "Yes";
        		for(int k=0; k<m; k++){
          			for(int l=0; l<m; l++){
            			if(aa[i+k][j+l]!=bb[k][l]){
              				ans = "No";
              				break;
            			}
          			}
        		}
              	if(ans.equals("Yes")){
                  System.out.println(ans);
                  return;
                }
            }
      	}
    	System.out.println(ans);
	}
}


Compiler output:
Main.java:42: error: cannot find symbol
    	System.out.println(ans);
    	                   ^
  symbol:   variable ans
  location: class Main
1 error
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
    	int m = scn.nextInt();
    	char[][] aa = new char[n][n];
    	char[][] bb = new char[m][m];
    	for(int i=0;i<n;i++){
      		String a = scn.next();
      		for(int j=0;j<n;j++){
        		A[i][j]=a.charAt(j);
      		}
    	}
    	for(int i=0;i<m;i++){
      		String b = scn.next();
      		for(int j=0;j<m;j++){
        		bb[i][j]=b.charAt(j);
      		}
    	}
      	String ans = "No";
      	for(int i=0;i<n;i++){
      		for(int j=0;j<n;j++){
        		if(i+m>n || j+m>n){
          			break;
        		}
        		for(int k=0;k<m;k++){
          			for(int l=0;l<m;l++){
            			if(aa[i+k][j+l]==bb[k][l]){
              				ans = "Yes";
              				break;
            			}
          			}
        		}
            }
      	}
    	System.out.println(ans);
	}
}


Compiler output:
Main.java:13: error: cannot find symbol
        		A[i][j]=a.charAt(j);
        		^
  symbol:   variable A
  location: class Main
1 error
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
    	int m = scn.nextInt();
    	char[][] A = new char[n][n];
    	char[][] B = new char[m][m];
    	for(int i=0;i<n;i++){
      		String n = scn.next();
      		for(int j=0;j<n;j++){
        		A[i][j]=n.charAt(j);
      		}
    	}
    	for(int i=0;i<m;i++){
      		String m = scn.next();
      		for(int j=0;j<m;j++){
        		B[i][j]=m.charAt(j);
      		}
    	}
      	String ans = "No";
      	for(int i=0;i<n;i++){
      		for(int j=0;j<n;j++){
        		if(i+m>n || j+m>n){
          			break;
        		}
        		for(int k=0;k<m;k++){
          			for(int l=0;l<m;l++){
            			if(A[i+k][j+l]==B[k][l]){
              				ans = "Yes";
              				break;
            			}
          			}
        		}
            }
      	}
    	System.out.println(ans);
	}
}


Compiler output:
Main.java:11: error: variable n is already defined in method main(String[])
      		String n = scn.next();
      		       ^
Main.java:12: error: bad operand types for binary operator '<'
      		for(int j=0;j<n;j++){
      		             ^
  first type:  int
  second type: String
Main.java:17: error: variable m is already defined in method main(String[])
      		String m = scn.next();
      		       ^
Main.java:18: error: bad operand types for binary operator '<'
      		for(int j=0;j<m;j++){
      		             ^
  first type:  int
  second type: String
4 errors
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
    	int m = scn.nextInt();
    	char[][] A = new char[n][n];
    	char[][] B = new char[m][m];
    	for(int i=0;i<n;i++){
      		String n = scn.next();
      		for(int j=0;j<n;j++){
        		A[i][j]=n.charAt(j);
      		}
    	}
    	for(int i=0;i<m;i++){
      		String m = scn.next();
      		for(int j=0;j<m;j++){
        		B[i][j]=m.charAt(j);
      		}
    	}
      	String ans = "No";
      	for(int i=0;i<n;i++){
      		for(int j=0;j<n;j++){
        		if(i+m>n || j+m>n){
          			break;
        		}
        	for(int k=0;k<m;k++){
          		for(int l=0;l<m;l++){
            		if(A[i+k][j+l]==B[k][l]){
              			ans = ""Yes";
              			break;
            		}
          		}
        	}
      	}
    	System.out.println(ans);
	}
}

Compiler output:
Main.java:31: error: ';' expected
              			ans = ""Yes";
              			        ^
Main.java:31: error: unclosed string literal
              			ans = ""Yes";
              			           ^
Main.java:39: error: reached end of file while parsing
}
 ^
3 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define oo (long long)1e18
#define ll long long
#define setdp memset(dp,-1,sizeof(dp))
const ll mod = 1e9+7;
void _IOS(){ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);cin.sync_with_stdio(0);}
#define PI 3.14159265359
int sx,sy,tx,ty;
ll a[3009][3009];
ll b[200003];
ll n,m;
bool vis[1009][1009];
struct threeElements{
int _1st,_2nd,_3rd;
};
int main()
{
   // freopen ("jumping.in","r",stdin);
   _IOS();
   //18:17
    vector<string>v,im;
    cin>>n>>m;
    for(int i=0;i<n;i++)
    {
        string s;
        cin>>s;
        v.push_back(s);
    }
    for(int i=0;i<m;i++)
    {
        string s;
        cin>>s;
        im.push_back(s);
    }
    for(int i=0;i<n-m+1;i++)
    {
        for(int j=0;j<n-m+1;j++)
        {

           int count = 0;
            	for(int k = 0; k < m; k++){
                	if(v[k + i].substring(j, (j + m))==im[k]){
                    	count++;
                    }else{
                    	break;
                    }
                }
                 if(count == m){
                	cout<<"Yes";
                    return 0;
                }
        }
    }
    cout<<"No";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:43:37: 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'?
   43 |                         if(v[k + i].substring(j, (j + m))==im[k]){
      |                                     ^~~~~~~~~
      |                                     substr
Language: C++

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

int main() {
  int n , m;
  cin >> n >> m;
  if ( m > n){
    cout << "No" << endl;
    return 0;
  }
  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++ ){
      bool ans = true ;
      for ( int k=0 ; k<=m-1 ; k++){
        for (int l=0 ; l<=m-1 ; l++){
         if ( b.at(k).at(l) != a.at(i+k).at(j+l)){
           ans = false ;
           break ;
         }
        }
        if(!ans){
          break ;
        }else if (ans){
          cout << "Yes" << endl;
          return 0 ;
      }
    }
  }
    cout <<  "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:38:2: error: expected '}' at end of input
   38 | }
      |  ^
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;
  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);
  }
  
  for ( int i= 0 ; i < n-m+1 ; i++){
    for ( int j=0 ; j< n-m+1 ; j++ ;){
      bool ans = true ;
      for ( int k=0 ; j<m ; k++){
        for (int l=0 ; l<m ; l++){
         if ( b.at(k).at(l) != a.at(i+k).at(j+l)){
           ans = false ;
         }
        }
        if(ans) cout << "Yes" << endl;
        return 0 ;
      }
    }
  }
    cout <<  "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
    9 |     cin >> a(i);
      |            ~^~~
a.cc:12:13: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   12 |     cin >> b(i);
      |            ~^~~
a.cc:16:35: error: expected ')' before ';' token
   16 |     for ( int j=0 ; j< n-m+1 ; j++ ;){
      |         ~                         ^~
      |                                   )
a.cc:16:37: error: expected primary-expression before ')' token
   16 |     for ( int j=0 ; j< n-m+1 ; j++ ;){
      |                                     ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

#define debug(n) cerr << #n << ':' << n << endl;
#define dline    cerr << __LINE__ << endl;

using ll = long long;
using ull = unsigned long long;
template<class T, class U> using P = pair<T,U>;
template<class T> using Heap = priority_queue<T>;
template<class T> using heaP = priority_queue<T,vector<T>,greater<T>>;
template<class T,class U> using umap = unordered_map<T,U>;
template<class T> using uset = unordered_set<T>;

template<class T>
bool ChangeMax(T&a,const T&b){
  if(a >= b) return false;
  a = b;    return true;
}

template<class T>
bool ChangeMin(T&a,const T&b){
  if(a <= b) return false;
  a = b;    return true;  
}

template<class T, size_t N, class U>
void Fill(T (&a)[N], const U&v){
    fill((U*)a,(U*)(a+N),v);
}

template<class T>
istream& operator >> (istream&is, vector<T>&v){
  for(auto&e:v)is >> e;
  return is;
}

int main(){
  int n,m;cin >> n >> m;
  vector<string> a(n); cin >> a;
  vector<string> b(m); cin >> b;
  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){
	  f &= a[i+k][j+l] == b[k][l];
	}
      }
      if(f)break;
    }
  }
  cout << (f?"Yes":"No") << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:54:12: error: 'f' was not declared in this scope
   54 |   cout << (f?"Yes":"No") << endl;
      |            ^
Language: C++

#include <bits/stdc++.h>
#define endl '\n'
#define fast_in ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define mp  make_pair
#define pb  push_back
#define  sz(x)   (int)x.size()
#define  all(x)  x.begin(), x.end()
#define	 allr(x)  x.rbegin(), x.rend()
#define  bit(x)  __builtin_popcountll(x)
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
typedef pair <int,int> pii;
const int inf = (int) 1e9+99999, mod = (int)1e9+7;
const ll linf = (ll) 2e18+99999;
int mul (int x, int y) { return ((ll)x * y) % mod; } 
int sub (int x, int y) { x -= y; if (x < 0) return x + mod; return x; } 
int add (int x, int y) { x += y; if (x >= mod) return x - mod; return x; }
 
const int maxn = (int) 3e5;
 
void solve () {
	int n, m; cin >> n >> m;
	for (int i = 1; i <= n; i ++) {
		for (int j = 1; j <= n; j ++) {
			cin >> a[i][j];
		}	
	}
	for (int i = 1; i <= n; i ++) {
		for (int j = 1; j <= n; j ++) {
			cin >> b[i][j];
		}	
	}

	for (int i = 1; i <= n; i ++) {
		for (int j = 1; j <= n; j ++) {
			bool ok = true;
			for (int x = 1; x <= m; x ++) {
				for (int y = 1; y <= m; y ++) {
					if (a[i + x - 1][j + y - 1] != b[x][y]) {
						ok = false;
						break;
					}
				}
	 		}
	 		if (ok) {
				cout << "Yes";
				return;
	 		}
		}
	}
	cout << "No";
}

main () { fast_in;
    int t = 1; //cin >> t;
    while (t --) {
    	solve ();    
    }
	return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:27:32: error: 'a' was not declared in this scope
   27 |                         cin >> a[i][j];
      |                                ^
a.cc:32:32: error: 'b' was not declared in this scope
   32 |                         cin >> b[i][j];
      |                                ^
a.cc:41:45: error: 'a' was not declared in this scope
   41 |                                         if (a[i + x - 1][j + y - 1] != b[x][y]) {
      |                                             ^
a.cc:41:72: error: 'b' was not declared in this scope
   41 |                                         if (a[i + x - 1][j + y - 1] != b[x][y]) {
      |                                                                        ^
a.cc: At global scope:
a.cc:56:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   56 | main () { fast_in;
      | ^~~~
Language: Java

package _200;

import java.util.Scanner;

public class B_TempleteMatching {
//public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		String[] A = new String[N];
		String[] B = new String[M];

		for(int i = 0; i < N; i++) {
			A[i] = sc.next();
		}
		for(int i = 0; i < M; i++) {
			B[i] = sc.next();
		}

		String result = Serch(N,M,A,B);
		System.out.println(result);
	}

	private static String Serch(int N,int M,String[] A,String[] B) {
		int count = 0;
		for(int i = 0; i <= N-M; i++) {
			for(int j = 0; j <= N-M; j++) {
				for(int k = 0; k < M; k++) {
					if(A[i+k].substring(j,j+M).equals(B[k].substring(0))) {
						count++;
					}else {
						count = 0;
						break;
					}
					if(count == M) {
						return "Yes";
					}
				}
			}
		}
		return "No";
	}
}


Compiler output:
Main.java:5: error: class B_TempleteMatching is public, should be declared in a file named B_TempleteMatching.java
public class B_TempleteMatching {
       ^
1 error
Language: Java

import java.util.Scanner;
piblic class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		String[] A = new String[N];
		String[] B = new String[M];

		for(int i = 0; i < N; i++) {
			A[i] = sc.next();
		}
		for(int i = 0; i < M; i++) {
			B[i] = sc.next();
		}

		int count = 0;
		for(int i = 0; i < N-M+1; i++) {
			for(int j = 0; j < N-M+1; j++) {
				if(A[i].substring(j,j+M).equals(B[0].substring(0))) {
					for(int k = 1; k < M; k++) {
						if(A[i+k].substring(j,j+M).equals(B[k].substring(0))) {
							count++;
						}else {
							count = 0;
							break;
						}
					}
				}
			}
		}

		if(count == 0) {
			System.out.println("No");
		}else {
			System.out.println("Yes");
		}
	}
}


Compiler output:
Main.java:2: error: class, interface, enum, or record expected
piblic class Main {
^
1 error
Language: C++

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

int main() {
    int n, m;
    cin >> n >> m;
    vector<string> a(n), b(m);
    rep(i,n) cin >> a.at(i);
    rep(i,m) cin >> b.at(i);

    for(int i = 0; i <= n-m; i++) {
        int pos = a.at(i).find(b.at(0));
        while(pos != string::npos && pos > 0) {
            for(int j = 1; j < m; j++) {
                string asub = a.at(i+j).substr(pos, b.at(j).size());
                if(asub != b.at(j)) {
                    pos = a.at(i).find(b.at(0), pos;
                    continue;
                }
            }
            cout << "Yes" << endl;
            return 0;
        }
    }

    cout << "No" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:52: error: expected ')' before ';' token
   19 |                     pos = a.at(i).find(b.at(0), pos;
      |                                       ~            ^
      |                                                    )
Language: C++

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

int main() {
	int N, M;
	cin >> N >> M;
	char 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];
	    }
	}
	for (int i=0; i<N-M+1; i++){
	    for (int j=0; j<N-M+1; j++){
	        bool found=true;
	        for (int k=0; k<M; k++){
	            for (int l=0; l<M; l++){
	                if (A[i+k][j+l]!=B[k][l]){
	                    found=false;
	                }
	            }
	        }
	        if (found){
	            cout << "Yes" << endl;
	            return 0;
	        }
	    }
	}
	cout << "No" << endl;
	return 0;
}

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | v#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'v' does not name a type
    1 | v#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> N >> M;
      |         ^~~
a.cc:29:21: error: 'cout' was not declared in this scope
   29 |                     cout << "Yes" << endl;
      |                     ^~~~
a.cc:29:38: error: 'endl' was not declared in this scope
   29 |                     cout << "Yes" << endl;
      |                                      ^~~~
a.cc:34:9: error: 'cout' was not declared in this scope
   34 |         cout << "No" << endl;
      |         ^~~~
a.cc:34:25: error: 'endl' was not declared in this scope
   34 |         cout << "No" << endl;
      |                         ^~~~
Language: C++

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

int main() {
	int N, M;
	cin >> N >> M;
	char 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];
	    }
	}
	for (int i=0; i<N-M+1; i++){
	    for (int j=0; j<N-M+1; j++){
	        bool found=true;
	        for (int k=0; k<M; k++){
	            for (int l=0; l<M; l++){
	                if (A[i+k][j+l]!=B[k][l]){
	                    found=false;
	                }
	            }
	        }
	    }
	}
	if (found) cout << "Yes" << endl;
	else cout << "No" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:13: error: 'found' was not declared in this scope; did you mean 'round'?
   30 |         if (found) cout << "Yes" << endl;
      |             ^~~~~
      |             round
Language: C++

#include<bits/stdc++.h>

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:5:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |  cin >> N >> M;
      |  ^~~
      |  std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:40:2: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   40 |  cout << "Yes" << endl;
      |  ^~~~
      |  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:40:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   40 |  cout << "Yes" << endl;
      |                   ^~~~
      |                   std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:42:2: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   42 |  cout << "No" << endl;
      |  ^~~~
      |  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:42:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   42 |  cout << "No" << endl;
      |                  ^~~~
      |                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#define _USE_MATH_DEFINES
#include <stdio.h>
#include <iostream>
#include <map>
#include <vector>
#include <string>
#include <algorithm>
#include <cmath>



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:14:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   14 |         cin >> N >> M;
      |         ^~~
      |         std::cin
In file included from a.cc:3:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:49:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   49 |                 cout << "Yes" << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:49:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   49 |                 cout << "Yes" << endl;
      |                                  ^~~~
      |                                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:51:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   51 |                 cout << "No" << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:51:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   51 |                 cout << "No" << endl;
      |                                 ^~~~
      |                                 std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main(){
  char a[50][51],b[50][51];
  int n,m,i,j,k,l,o;
  scanf("%d%d",&n,&m);
  for(i=0;i<n;i++)scanf("%s",a[i]);
  for(i=0;i<m;i++)scanf("%s",b[i]);
  for(i=0;i<=n-m;i++)for(j=0;j<=n-m;j++){
    o=1;
    for(k=0;k<m;k++)for(l=0;l<m;l++)if([i+k][j+l]!=b[k][l])o=0;
    if(o){printf("Yes");return 0;}
  }
  printf("No");
}


Compiler output:
main.c: In function 'main':
main.c:12:40: error: expected expression before '[' token
   12 |     for(k=0;k<m;k++)for(l=0;l<m;l++)if([i+k][j+l]!=b[k][l])o=0;
      |                                        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int N,M;
  cin >> N >> M;
  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];
  }
  for (int i = 0; i < N; i++) {
    for (int j = 0; j < N; j++) {
      bool valid = true;
      for (int k = 0; k < M; k++) {
        for (int l = 0; l < M; l++) {
          if (A[i+k][j+l] != B[k][l]) {
            valid = false;
          }
        }
      }
      if (valid) {
        cout << "Yes";
        return 0;
      }
    }
  }
  cout << "No"
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:15: error: expected ';' before '}' token
   29 |   cout << "No"
      |               ^
      |               ;
   30 | }
      | ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  int n,m;
  cin >> n >> m;
  vector<string>data_a(n);
  vector<string>data_b(m);
  for(int i=0;i<n;i++){
    cin >> data_a.at(i);
  }
  for(int i=0;i<m;i++){
    cin >> data_b.at(i);
  }
  bool exist=false;
  for(int li=0;li<n;li++){
    for(int lj=0;lj<n;lj++){
      if(li+m-1>=n||lj+m-1>=n){
        continue;
      }
      bool judge=true;
      for(int i=0;i<m;i++){
        for(int j=0;j<m;j++){
          if(data_a.at(li+i).at(lj+j)!=data_b.at(i).at(j)){
            judge=false;
          }
          if(judge){
            exist=true
          }
        }
      }
    }
  }
  if(exist){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:23: error: expected ';' before '}' token
   28 |             exist=true
      |                       ^
      |                       ;
   29 |           }
      |           ~
Language: C++

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

int main() {
  int N, M;
  
  char 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];
    }
  }
  
  for (int i = 0; i < N-M; i++) {
    for (int j = 0; j < N-M; j++) {
      bool cond = true;
      for (int k = 0; k < M; k++) {
        for (int l = 0; l < M; l++) {
          if (B[k][l] != A[i+k][j+l]) {
            cond = false
          }
        }
      }
      if (cond) {
        cout << "Yes" << endl;
        return 0;
      }
    }
  }
  cout << "No" << endl;
}
    
             
    
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:25: error: expected ';' before '}' token
   27 |             cond = false
      |                         ^
      |                         ;
   28 |           }
      |           ~              
a.cc: At global scope:
a.cc:44:1: error: expected declaration before '}' token
   44 | }
      | ^
Language: C++

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

int main() {
  int N, M;
  
  char 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];
    }
  }
  
  for (int i = 0; i < N-M; i++) {
    for (int j = 0; j < N-M; j++) {
      bool cond = true;
      for (int k = 0; k < M; k++) {
        for (int l = 0; l < M; l++) {
          if (B[k][l] != A[i+k][j+l]) {
            cond = false
          }
        }
      }
      if (cond) {
        cout << "Yes" << endl;
        return 0;
      }
    }
  }
  cout << "No" << endl;
}
    
             
    
  
  
}

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

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)

using namespace std;
const string YES = "Yes";
const string NO = "No";

void solve(int N, int M, vector<string> A, vector<string> B) {
  bool include = false;
  rep(i, N - M + 1) {
    // find left top
    const int offset = A[i].find(B[0]);
    if (offset == string::npos || offset > N - M)
      continue;
    // check all row
    bool match = true;
    rep(j, M)
      if (A[i + j].substr(offset, M) != B[j]) {
	match = false;
	break;
      }
    if (!match)
      continue;
    // all row is equal !!
    include = true;
    break;
    }
  }
  cout << (include ? YES : NO) << endl;
}

int main(){
  // int 3E4  long 2E9  ll 9E18
  cin.tie(0);
  ios::sync_with_stdio(false);

  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];

  solve(N, M, move(A), move(B));
  return 0;
}


Compiler output:
a.cc:29:3: error: 'cout' does not name a type
   29 |   cout << (include ? YES : NO) << endl;
      |   ^~~~
a.cc:30:1: error: expected declaration before '}' token
   30 | }
      | ^
Language: C++

#include <iostream>
#include <string>
#include <vector>
// TLEの場合はbit shiftに変える
using namespace std;
int N, M;
bool is_same(vector <string>A, vector <string>B, int strow, int stcol)
{
  if ((strow+M) > N) return false;
  if ((stcol+M) > N) return false;
  for (int Brow = 0;  Brow < M; Brow++) {
    for (int Bcol = 0; Bcol < N; Bcol++) {
      if ((B[Brow][Bcol])!=(A[Brow+strow][Bcol+stcol])) {
        return false;
      }
    }
  }
  return true;
}
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];
  
  bool ans = false;
  for (int row = 0; row < N-M+1; row++) {
    for (int col = 0; col < N-M+1; col++) {
      if (is_same(A, B, row, col)) {
        cout << "Yes" << endl;
        return 0;
      }
    }
  }
  cout << "No" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:11: error: reference to 'is_same' is ambiguous
   31 |       if (is_same(A, B, row, col)) {
      |           ^~~~~~~
In file included from /usr/include/c++/14/bits/move.h:37,
                 from /usr/include/c++/14/bits/exception_ptr.h:41,
                 from /usr/include/c++/14/exception:166,
                 from /usr/include/c++/14/ios:41,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/type_traits:780:12: note: candidates are: 'template<class, class> struct std::is_same'
  780 |     struct is_same;
      |            ^~~~~~~
a.cc:7:6: note:                 'bool is_same(std::vector<std::__cxx11::basic_string<char> >, std::vector<std::__cxx11::basic_string<char> >, int, int)'
    7 | bool is_same(vector <string>A, vector <string>B, int strow, int stcol)
      |      ^~~~~~~
Language: C++

#include <iostream>
#include <string>
#include <vector>
// TLEの場合はbit shiftに変える
using namespace std;
int N, M;
bool is_same(vector <string>A, vector <string>B, int strow, int stcol)
{
  if ((strow+M) > N) return false;
  if ((stcol+M) > N) return false;
  for (int Brow = 0;  Brow < M; Brow++) {
    for (int Bcol = 0; Bcol < N; Bcol++) {
      if ((B[Brow][Bcol])!=(A[Brow+strow][Bcol+stcol])) {
        return false;
      }
    }
  }
  return true;
}
int main()
{
  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 ans = false;
  for (int row = 0; row < N-M+1; row++) {
    for (int col = 0; col < N-M+1; col++) {
      if (is_same(A, B, row ,col)) {
        cout << "Yes" << endl;
        return 0;
      }
    }
  }
  cout << "No" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:11: error: reference to 'is_same' is ambiguous
   30 |       if (is_same(A, B, row ,col)) {
      |           ^~~~~~~
In file included from /usr/include/c++/14/bits/move.h:37,
                 from /usr/include/c++/14/bits/exception_ptr.h:41,
                 from /usr/include/c++/14/exception:166,
                 from /usr/include/c++/14/ios:41,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/type_traits:780:12: note: candidates are: 'template<class, class> struct std::is_same'
  780 |     struct is_same;
      |            ^~~~~~~
a.cc:7:6: note:                 'bool is_same(std::vector<std::__cxx11::basic_string<char> >, std::vector<std::__cxx11::basic_string<char> >, int, int)'
    7 | bool is_same(vector <string>A, vector <string>B, int strow, int stcol)
      |      ^~~~~~~
Language: C++

#include<bits/stdc++.h>
#define all(x) (x).begin(),(x).end()
#define rep(i,n) for(ll i=0;i<(ll)(n);i++)
using namespace std;
typedef long long ll;
ll gcd(ll a,ll b){return b!=0?gcd(b,a%b):a;}
ll lcm(ll a,ll b){return a*b/gcd(a,b);}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:29:17: error: return-statement with no value, in function returning 'int' [-fpermissive]
   29 |                 return;
      |                 ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
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.at(i);
  }
  for(int i=0;i<M;i++){
    cin>>B.at(i);
  }
  for(int y=0;y<=N-M;y++){
    for(int x=0;x<=N-M;c++){
      int count=0;
      for(int by=0;by<M;by++){
          if(B.at(by)==A.at(by+y).substr(x,M)){
            count++;
          }
      }
      if(count==M){
        cout<<"Yes"<<endl;
        return 0;
      }
    }
  }
  cout<<"No"<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:24: error: 'c' was not declared in this scope
   15 |     for(int x=0;x<=N-M;c++){
      |                        ^
Language: C++

#include <bits/stdc++.h>

#include <boost/algorithm/cxx11/all_of.hpp>
#include <boost/range/adaptors.hpp>
#include <boost/range/algorithm/equal.hpp>
#include <boost/range/combine.hpp>
#include <boost/range/irange.hpp>

using namespace std;
using namespace boost;
using namespace boost::adaptors;
using namespace boost::algorithm;

main() {
  int64_t n, m;
  cin >> n >> m;

  vector<string> a(n), b(m);
  for (auto&& aa : a) {
    cin >> aa;
  }
  for (auto&& bb : b) {
    cin >> bb;
  }

  for (auto si : irange(0L, n - m + 1)) {
    for (auto sj : irange(0L, n - m + 1)) {
      auto ok = all_of(combine(a | sliced(si, si + m), b), [&](const auto& ab) {
        return equal(get<0>(ab) | sliced(sj, sj + m), get<1>(ab));
      });

      if (ok) {
        cout << "Yes" << endl;
        return 0;
      }
    }
  }

  cout << "No" << endl;
}

Compiler output:
a.cc:3:10: fatal error: boost/algorithm/cxx11/all_of.hpp: No such file or directory
    3 | #include <boost/algorithm/cxx11/all_of.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vll;
#define all(x) (x).begin(), (x).end()
#define endl '\n'
#define fsp(x) cout << fixed << setprecision(x)
const ll inf = LLONG_MAX;
const long double pi = M_PI;
void Yes() {cout << "Yes" << endl;}
void No() {cout << "No" << endl;}
void YES() {cout << "YES" << endl;}
void NO() {cout << "NO" << endl;}

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

  for (ll i = 0; i < n - m + 1; i++) {
    for (ll j = 0; j < n - m + 1; j++) {
      for (ll k = 0; k < m; k++) {
        if (b[k] == a[i + k].substr(j, m)) {
          if (k == m - 1) {
            Yes();
            return 0;
          }
          continue;
        }a
        else {
          No();
          return 0;
        }
      }
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:11: error: expected ';' before 'else'
   31 |         }a
      |           ^
      |           ;
   32 |         else {
      |         ~~~~
Language: C++

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

int main(){
    int n,m;
    cin >> n >> m;
    string a[n];
    string b[m];

    for(int i=0;i<n;i++){
        cin >> a[i];
    }
    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++){
                for(int u=0;u<m;u++){
                    if(a[k][m]!=b[])
                }
            }
        }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:35: error: expected primary-expression before ']' token
   21 |                     if(a[k][m]!=b[])
      |                                   ^
a.cc:22:17: error: expected primary-expression before '}' token
   22 |                 }
      |                 ^