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

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

int main()
{
    char s[1000], t[1000];
    int s_len, t_len;
    int min = 10000, counts = 0;

    cin >> s >> t;
    s_len = strlen(s);
    min = t_len = strlen(t);

    //cout << s_len << " " << t_len << endl;

    for (int i = 0; i <= s_len - t_len; i++)
    {
        for (int j = 0; j < t_len; j++)
        {
            if (s[i + j] == t[j])
            {
            }
            else
            {
                counts++;
            }
        }
        min = min(min, counts);
        // if (counts < min)
        // {
        //     min = counts;
        // }
        counts = 0;
    }

    cout << min << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:18: error: 'min' cannot be used as a function
   28 |         min = min(min, counts);
      |               ~~~^~~~~~~~~~~~~
Language: C++

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

int main(){
  string b,t;
  cin >> b >> t;
  int ct = 0;
  int minct = t.size();
  for(int i = 0; i < (int)b.size(); i++){
    if(i+(int)t.size() > (int)b.size()) break;
    for(int j = 0;j < (int)t.size(); j++){
      if(b.at(i+j) != t.at(j)){
        ct++;
      }
    }
    minct = min(minct,ct)
    ct = 0;
  }
  cout << minct;
}   

Compiler output:
a.cc: In function 'int main()':
a.cc:16:26: error: expected ';' before 'ct'
   16 |     minct = min(minct,ct)
      |                          ^
      |                          ;
   17 |     ct = 0;
      |     ~~
Language: C++

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

int main(){
  string b,t;
  cin >> b >> t;
  int ct = 0;
  int minct = t.size();
  for(int i = 0; i < (int)b.size(); i++){
    if(b.at(i) != t.at(0)) continue;
    for(int j = 0;j < (int)t.size(); j++){
      if(b.at(i+j) != t.at(j)){
        ct++;
      }
    }
    minct = min(minct,ct)
    ct = 0;
  }
  cout << minct;
}   

Compiler output:
a.cc: In function 'int main()':
a.cc:16:26: error: expected ';' before 'ct'
   16 |     minct = min(minct,ct)
      |                          ^
      |                          ;
   17 |     ct = 0;
      |     ~~
Language: C++

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

int main(){
  string b,t;
  cin >> b >> t;
  int ct = 0;
  int minct = t.size();
  for(int i = 0; i < (int)b.size(); i++){
    for(int j = 0;j < (int)t.size(); j++){
      if(b.at(i+j) == t.at(j)){
        ct++;
      }
    }
    if(minct > (int)t.size()-ct){
    minct = (int)t.size()-ct;
    ct = 0;
  }
  cout << minct;
}   

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

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

int main(){
  string b,t;
  cin >> b >> t;
  int ct = 0;
  int minct = t.size();
  for(int i=0;j<b.size();i++){
    for(int j=0;j<t.size();j++){
      if(b.at(i) != t.at(j)){
        if(minct > ct){
          minct = ct;
        }
        ct = 0;
      }
      else{
        ct++;
      }
    }
  }
  cout << minct;
}
        
        
 

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: 'j' was not declared in this scope
    9 |   for(int i=0;j<b.size();i++){
      |               ^
Language: C++

#include<iostream>
#include<string>

using namespace std;

int main(void)
{
  ios::sync_with_stdio(0);
  cin.tie(nullptr);
  cout.tie(nullptr);

  string s, t;
  cin >> s >> t;
  
  int len = t.lenght();
  int range = s.length() - len + 1;
  int min = len, cnt;
  for (int i = 0; i < range; i++)
  {
    cnt = 0;
    for (int j = 0, k = i; j < len; j++, k++)
      s[k] != t[j] && cnt++;
    min = min > cnt ? cnt : min;
  }
  cout << min;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:15: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'lenght'; did you mean 'length'?
   15 |   int len = t.lenght();
      |               ^~~~~~
      |               length
Language: C++

#include<iostream>
#include<string>

using namespace std;

int main(void)
{
  ios::sync_with_stdio(nullptr);
  cin.tie(nullptr);
  cout.tie(nullptr);

  string s, t;
  cin >> s >> t;
  
  int len = lenght(t);
  int range = length(s) - len + 1;
  int min = len, cnt;
  for (int i = 0; i < range; i++)
  {
    cnt = 0;
    for (int j = 0, k = i; j < len; j++, k++)
      s[k] != t[j] && cnt++;
    min = min > cnt ? cnt : min;
  }
  cout << min;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: converting to 'bool' from 'std::nullptr_t' requires direct-initialization [-fpermissive]
    8 |   ios::sync_with_stdio(nullptr);
      |                        ^~~~~~~
In file included from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/ios_base.h:803:26: note:   initializing argument 1 of 'static bool std::ios_base::sync_with_stdio(bool)'
  803 |     sync_with_stdio(bool __sync = true);
      |                     ~~~~~^~~~~~~~~~~~~
a.cc:15:13: error: 'lenght' was not declared in this scope
   15 |   int len = lenght(t);
      |             ^~~~~~
a.cc:16:15: error: 'length' was not declared in this scope
   16 |   int range = length(s) - len + 1;
      |               ^~~~~~
Language: C

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

int main()
{
  char * s;
  char * t;
  scanf("%s", s);
  scanf("%s", t);
  
  int min = length(t);
  for (int i = 0, range = length(s) - length(t) + 1, cnt; i < range; i++)
  {
    cnt = 0;
    for (int j = 0, k = i, len = length(t); j < len; j++, k++)
      s[k] != t[j] && cnt++;
    min = min > cnt ? cnt : min;
  }
  printf("%d", min);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:13: error: implicit declaration of function 'length' [-Wimplicit-function-declaration]
   11 |   int min = length(t);
      |             ^~~~~~
Language: C++

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

int needChanging(sting s, string t, int offset){
  int ret=0;
  for(int i=0;i<t.length();i++){
    if(s[i+offset]!=t[i]){
      ret++;
    }
  }
  return ret;
}

int main(){
  string s,t;
  cin>>s>>t;
  int res=t.length();
  for(int i=0;i<(s.length()-t.length());i++){
    int temp=needChanging(s, t, i);
    if(res>temp){
      res=temp;
    }
  }
  cout<<res<<endl;
  return 0;
}

Compiler output:
a.cc:5:18: error: 'sting' was not declared in this scope
    5 | int needChanging(sting s, string t, int offset){
      |                  ^~~~~
a.cc:5:34: error: expected primary-expression before 't'
    5 | int needChanging(sting s, string t, int offset){
      |                                  ^
a.cc:5:37: error: expected primary-expression before 'int'
    5 | int needChanging(sting s, string t, int offset){
      |                                     ^~~
a.cc:5:47: error: expression list treated as compound expression in initializer [-fpermissive]
    5 | int needChanging(sting s, string t, int offset){
      |                                               ^
a.cc: In function 'int main()':
a.cc:20:26: error: 'needChanging' cannot be used as a function
   20 |     int temp=needChanging(s, t, i);
      |              ~~~~~~~~~~~~^~~~~~~~~
Language: C++

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

int main(){
  string s, t; cin>>s>>t;
  ll szs = s.length(), szt = t.length();
  ll ans = szs;
  for(ll i=0;i<=szs-szt;i++){
    ll sum = 0;
    for(ll j=0;j<szt;j++)
      sum += (s[i+j] != t[j])? 1 : 0;
    ans = min(ans, sum);
  cout<<ans;
  return 0;
}

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

	#include<stdio.h>
	int main()
{
	char s[1003],t[1003];
	scanf("%s%s",s,t);
	int x,y,i,j;
	for(x=0;s[x]!='\0';x++);
	for(y=0;t[y]!='\0';y++);
	int ans=y,a;
	for(i=0;i<=x-y;i++){
		a=0
		for(j=0;j<y;j++){
			if(s[i+j]!=t[j]){
				a++;
			}
		}
		if(a<ans){
			ans=a;
		}
	}
	printf("%d\n",ans);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:20: error: expected ';' before 'for'
   11 |                 a=0
      |                    ^
      |                    ;
   12 |                 for(j=0;j<y;j++){
      |                 ~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
   string>>s>>t;cin>>s>>t;
   int ans=t.size();
   for(int i=0;i<=s.size()-t.size();i++){
       int diff=0;
       for(int j=0;j<t.size();j++){
           if(t[j]!=s[i+j]) diff++;
       }
       ans=min(ans,diff);
   }
   cout<<ans<<endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: expected unqualified-id before '>>' token
    7 |    string>>s>>t;cin>>s>>t;
      |          ^~
a.cc:7:22: error: 's' was not declared in this scope
    7 |    string>>s>>t;cin>>s>>t;
      |                      ^
a.cc:7:25: error: 't' was not declared in this scope; did you mean 'tm'?
    7 |    string>>s>>t;cin>>s>>t;
      |                         ^
      |                         tm
Language: C++

#include <iostream>
#include <algorithm>
#include <queue>

#define rep(i,n) for (int i=0; i < (n); ++i)
using ll = long long ;
using namespace std;
const int INF = 1001001001;

int main() {

    string s,t ;
    cin >> s >> t ;

    int ans = t.size() ;
    for(int i=0;i<=s.size()-t.size();++i){
        int diff = 0 ;
        for(int j=0;j<t.size();++t){
            if(t[j]!=s[i+j]){
                diff++ ;
            }
        }
        ans = min(ans,diff) ;
    }

    cout << ans << endl ;
    
    return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:32: error: no match for 'operator++' (operand type is 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   18 |         for(int j=0;j<t.size();++t){
      |                                ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(void)
{
string s1,s2;
cin>>S1>>S2;
map<char,int> A;
for(auto i:S1)
A[i]++;
for(auto i:S2)
A[i]++;
int counter=0;
for(auto i:A)
if(i.second%2!=0)
counter++;
cout<<counter;
 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: 'S1' was not declared in this scope; did you mean 's1'?
    6 | cin>>S1>>S2;
      |      ^~
      |      s1
a.cc:6:10: error: 'S2' was not declared in this scope; did you mean 's2'?
    6 | cin>>S1>>S2;
      |          ^~
      |          s2
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(void)
{
string s1,s2;
cin>>s1>>s2;
map<char,int> A;
for(auto i:S1)
A[i]++;
for(auto i:S2)
A[i]++;
int counter=0;
for(auto i:A)
if(i.second%2!=0)
counter++;
cout<<counter;
 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'S1' was not declared in this scope; did you mean 's1'?
    8 | for(auto i:S1)
      |            ^~
      |            s1
a.cc:10:12: error: 'S2' was not declared in this scope; did you mean 's2'?
   10 | for(auto i:S2)
      |            ^~
      |            s2
Language: C++

#include <iostream>
#include <fstream>

using namespace std;

int main()
{
	//freopen("in.txt","r",stdin);
	string s1,s2;
	cin>>s1>>s2;

	int s1_length=s1.size();
	int s2_length=s2.size();

int ans=INT_MAX;
	for(int i=0;i<s1_length;i++)
	{
		int cnt=0;
		if(i+s2_length-1 <=s1_length-1)
			for(int j=0;j<s2_length;j++)
			{
				//cout<<s1[i+j]<<" "<<s2[j];
				if(s1[i+j]!=s2[j])
					cnt++;

				//cout<<cnt<<endl;
			}
		else
			break;

			//cout<<cnt<<endl;
			ans=min(ans,cnt);
			//cout<<endl;

	}
	cout<<ans<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'INT_MAX' was not declared in this scope
   15 | int ans=INT_MAX;
      |         ^~~~~~~
a.cc:3:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    2 | #include <fstream>
  +++ |+#include <climits>
    3 |
Language: Java

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        String t = sc.next();
        int max = t.length();
        int ans = 0;

        for(int i = 0; i <= s.length()-t.length(); i++){
            int diff = 0;
            for(int j = 0; j < t.length(); j++){
                if(t.charAt(j) != s.charAt(i+j)){
                    diff++;
                }
            }
            ans = Math.min(max,diff);
        }
        System.out.println(ans);
      sc.close;
    }
}

Compiler output:
Main.java:21: error: not a statement
      sc.close;
        ^
1 error
Language: C

#include<iostream>
#include<string>


using namespace std;

int main(){
	//哈哈哈 暴力遍历解决
	
	string s,t;
	cin >> s >> t;
	
	int slen = s.length();
	int tlen = t.length();
	
	int ans = 1000;
	for(int i = 0;i + tlen <= slen;i++){
		int change = 0;
		for(int j = 0;j < tlen;j++){
			if(s[i+j] != t[j]){
				change++;
			}
		}
		ans = min(ans,change);
	}
	 
	cout << ans << "\n";
	
	return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int manin()
{
  string s,t;
  cin>>s>>t;
  ll a,b,i,j,c=0,l=0;
  a=s.length();
  b=t.length();
  
  for(i=0;i<a-b;i++)
  {
    for(j=0;j<b;j++)
       if(s[j+i]==t[j])
        c++;
        else
        {
          l=max(c,l);
          break;
        }
    

Compiler output:
a.cc: In function 'int manin()':
a.cc:21:10: error: expected '}' at end of input
   21 |         }
      |          ^
a.cc:13:3: note: to match this '{'
   13 |   {
      |   ^
a.cc:21:10: error: expected '}' at end of input
   21 |         }
      |          ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
a.cc:21:10: warning: no return statement in function returning non-void [-Wreturn-type]
   21 |         }
      |          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int manin()
{
  string s,t;
  cin>>s>>t;
  ll a,b,i,j;
  a=s.length();
  b=t.length();
  
  for(i=0;i<a-b;i++)
  {
    for(j=0;j<b;j++)
       if(s[j+i]==t[j]);
        c++;
        else
        {
          l=max(c,l);
          break;
        }
    
 }
    
  cout<<b-l;
  }

Compiler output:
a.cc: In function 'int manin()':
a.cc:16:9: error: 'c' was not declared in this scope
   16 |         c++;
      |         ^
a.cc:17:9: error: 'else' without a previous 'if'
   17 |         else
      |         ^~~~
a.cc:19:11: error: 'l' was not declared in this scope
   19 |           l=max(c,l);
      |           ^
a.cc:25:11: error: 'l' was not declared in this scope
   25 |   cout<<b-l;
      |           ^
a.cc:26:3: warning: no return statement in function returning non-void [-Wreturn-type]
   26 |   }
      |   ^
Language: Java

import java.util.Scanner;

/**
 *
 * @author joeco
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        Scanner in = new Scanner(System.in);
        String s  = in.next();
        String t  = in.next();
        
        
        int res = t.length()-overlaps(s, t);
        System.out.println(res);
        
    }
    
    public static int overlaps(String s, String t) {
        int res = 0;
        for(int i = 0; i < t.length(); i++) {
            if(t.charAt(i)==(s.charAt(i))) res++;
        }
        
        int res2 = 0;
        if(t.length() <= s.length()-1) res2=overlaps(s.substring(1), t);
        
        return Math.max(res, res2);
    }
    

Compiler output:
Main.java:34: error: reached end of file while parsing
    }
     ^
1 error
Language: Java

import java.util.Scanner;

/**
 *
 * @author joeco
 */
public class virPar {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        Scanner in = new Scanner(System.in);
        String s  = in.next();
        String t  = in.next();
        
        
        int res = t.length()-overlaps(s, t);
        System.out.println(res);
        
    }
    
    public static int overlaps(String s, String t) {
        int res = 0;
        for(int i = 0; i < t.length(); i++) {
            if(t.charAt(i)==(s.charAt(i))) res++;
        }
        
        int res2 = 999999;
        if(t.length() >= s.length()-1) res2=overlaps(s.substring(1), t);
        
        return (res<res2) ? res : res2;
    }
    
    
    
}

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

#include<bits/stdc++.h>
using namespace std;
#define ll int64_t
#define ul unsigned long long int
#define vi vector<int>
#define vl vector<int64_t>
#define all(x) x.begin(),x.end()
#define pb push_back
#define fo(x,a,b) for(int x=a; x<b; x++)
#define rfo(x,a,b) for(int x=a; x>=b; x--)
#define fi first
#define sec second
#define mp make_pair
int sgn(int x) { return x>0 ? 1 : ( x<0 ? -1 : 0); }
typedef pair<int,int> pairs;
double pi = 3.14159265358979323846;
ll mod = 1000000007;

void solve()
{
    ll ans=0;
    string s,t;
    cin>>s>>t;
    ans=t.size();
    for(int i=0;i<=(s.size()-t.size());i++)
    {
        ll temp=0;
        for(int j=i, k=0;k<t.size();j++,k++)
        {
            temp+=(s[j]==t[k]);
        }
        ans=min(ans,t.size() - temp);
    }
    cout<<ans;
    cout<<"\n";
    return;
}
int main()
{
#ifdef _DEBUG
    freopen("input.txt","r",stdin);
  freopen("output.txt","w",stdout);
#endif
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    ll t;
    //cin>>t;
    //while(t--)
    {
        solve();
    }
    return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:32:16: error: no matching function for call to 'min(int64_t&, long unsigned int)'
   32 |         ans=min(ans,t.size() - temp);
      |             ~~~^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:32:16: note:   deduced conflicting types for parameter 'const _Tp' ('long int' and 'long unsigned int')
   32 |         ans=min(ans,t.size() - temp);
      |             ~~~^~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:32:16: note:   mismatched types 'std::initializer_list<_Tp>' and 'long int'
   32 |         ans=min(ans,t.size() - temp);
      |             ~~~^~~~~~~~~~~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll int64_t
#define ul unsigned long long int
#define vi vector<int>
#define vl vector<int64_t>
#define all(x) x.begin(),x.end()
#define pb push_back
#define fo(x,a,b) for(int x=a; x<b; x++)
#define rfo(x,a,b) for(int x=a; x>=b; x--)
#define fi first
#define sec second
#define mp make_pair
int sgn(int x) { return x>0 ? 1 : ( x<0 ? -1 : 0); }
typedef pair<int,int> pairs;
double pi = 3.14159265358979323846;
ll mod = 1000000007;

void solve()
{
    ll ans=0;
    string s,t;
    cin>>s>>t;
    ans=t.size();
    for(int i=0;i<=s.size()-t.size();i++)
    {
        ll temp=0;
        for(int j=i, k=0;k<t.size();j++,k++)
        {
            temp+=(s[j]==t[k]);
        }
        ans=min(ans,t.size() - temp);
    }
    cout<<ans;
    cout<<"\n";
    return;
}
int main()
{
#ifdef _DEBUG
    freopen("input.txt","r",stdin);
  freopen("output.txt","w",stdout);
#endif
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    ll t;
    //cin>>t;
    //while(t--)
    {
        solve();
    }
    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:32:16: error: no matching function for call to 'min(int64_t&, long unsigned int)'
   32 |         ans=min(ans,t.size() - temp);
      |             ~~~^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:32:16: note:   deduced conflicting types for parameter 'const _Tp' ('long int' and 'long unsigned int')
   32 |         ans=min(ans,t.size() - temp);
      |             ~~~^~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:32:16: note:   mismatched types 'std::initializer_list<_Tp>' and 'long int'
   32 |         ans=min(ans,t.size() - temp);
      |             ~~~^~~~~~~~~~~~~~~~~~~~~
Language: C++

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

void solve()
{
    
    string S;
    string T;
    cin >> S >> T;

    int ls = S.length();
    int lt = T.length();

    int k = 1e3;
    int changes;
    for(int i=0; i<ls; i++)
    {
        changes = 0;
        for(int j=0; j< lt; j++)
        {
          if( i +j >= S.length())
            {
                flag = 1;
                break;
            }
            if(T[j] != S[i+j])
            {
                changes++;
            }
        }
      	if(flag == 1){
            break;
        }
        k = min(k,changes);
    }

    cout << k << endl;
}

int main()
{
    solve();
    return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:23:17: error: 'flag' was not declared in this scope
   23 |                 flag = 1;
      |                 ^~~~
a.cc:31:12: error: 'flag' was not declared in this scope
   31 |         if(flag == 1){
      |            ^~~~
Language: C++

int main()
{
  string s, t;
  cin >> s >> t;
  int ans = 1001001001;
  for (int i = 0; i < s.size(); i++)
  {
    if (i + t.size() > s.size())
      break;
    int cnt = 0;
    for (int j = 0; j < t.size(); j++)
    {
      if (s[i + j] != t[j])
        cnt++;
    }
    ans = min(ans, cnt);
  }
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'string' was not declared in this scope
    3 |   string s, t;
      |   ^~~~~~
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> s >> t;
      |   ^~~
a.cc:4:10: error: 's' was not declared in this scope
    4 |   cin >> s >> t;
      |          ^
a.cc:4:15: error: 't' was not declared in this scope
    4 |   cin >> s >> t;
      |               ^
a.cc:16:11: error: 'min' was not declared in this scope; did you mean 'main'?
   16 |     ans = min(ans, cnt);
      |           ^~~
      |           main
a.cc:18:3: error: 'cout' was not declared in this scope
   18 |   cout << ans << endl;
      |   ^~~~
a.cc:18:18: error: 'endl' was not declared in this scope
   18 |   cout << ans << endl;
      |                  ^~~~
Language: C++

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

#define ll long long int
#define ff first
#define ss second
#define pb push_back
#define mp make_pair
#define mod 1000000007
#define inf  1e18
#define mk(arr,n,type) type *arr=new type[n];
#define w(x) int x;cin>>x;while(x--)
int main()
{
  string a, b; cin >> a >> b;
  int cnt = 0, ma = 0, i = 0;
  while (i < a.size())
  {
    cnt = 0;
    for (int j = 0; j < b.size(); ++j)
    {
      if (a[i + j] == b[j])
        ++cnt;
    }
    if (cnt > ma)
      ma = cnt;
  }
  cout << abs(ma - b.size());
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:14: error: call of overloaded 'abs(std::__cxx11::basic_string<char>::size_type)' is ambiguous
   28 |   cout << abs(ma - b.size());
      |           ~~~^~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42,
                 from a.cc:1:
/usr/include/stdlib.h:980:12: note: candidate: 'int abs(int)'
  980 | extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
      |            ^~~
In file included from /usr/include/c++/14/cstdlib:81:
/usr/include/c++/14/bits/std_abs.h:137:3: note: candidate: 'constexpr __float128 std::abs(__float128)'
  137 |   abs(__float128 __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:85:3: note: candidate: 'constexpr __int128 std::abs(__int128)'
   85 |   abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:79:3: note: candidate: 'constexpr long double std::abs(long double)'
   79 |   abs(long double __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:75:3: note: candidate: 'constexpr float std::abs(float)'
   75 |   abs(float __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:71:3: note: candidate: 'constexpr double std::abs(double)'
   71 |   abs(double __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:61:3: note: candidate: 'long long int std::abs(long long int)'
   61 |   abs(long long __x) { return __builtin_llabs (__x); }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:56:3: note: candidate: 'long int std::abs(long int)'
   56 |   abs(long __i) { return __builtin_labs(__i); }
      |   ^~~
Language: C++

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

#define ll long long int
#define ff first
#define ss second
#define pb push_back
#define mp make_pair
#define mod 1000000007
#define inf  1e18
#define mk(arr,n,type) type *arr=new type[n];
#define w(x) int x;cin>>x;while(x--)
int main()
{
  string a, b; cin >> a >> b;
  int cnt = 0, ma = 0;
  while (i < a.size())
  {
    cnt = 0;
    for (int j = 0; j < b.size(); ++j)
    {
      if (a[i + j] == b[j])
        ++cnt;
    }
    if (cnt > ma)
      ma = cnt;
  }
  cout << abs(ma - b.size());
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:10: error: 'i' was not declared in this scope
   17 |   while (i < a.size())
      |          ^
a.cc:28:14: error: call of overloaded 'abs(std::__cxx11::basic_string<char>::size_type)' is ambiguous
   28 |   cout << abs(ma - b.size());
      |           ~~~^~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42,
                 from a.cc:1:
/usr/include/stdlib.h:980:12: note: candidate: 'int abs(int)'
  980 | extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
      |            ^~~
In file included from /usr/include/c++/14/cstdlib:81:
/usr/include/c++/14/bits/std_abs.h:137:3: note: candidate: 'constexpr __float128 std::abs(__float128)'
  137 |   abs(__float128 __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:85:3: note: candidate: 'constexpr __int128 std::abs(__int128)'
   85 |   abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:79:3: note: candidate: 'constexpr long double std::abs(long double)'
   79 |   abs(long double __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:75:3: note: candidate: 'constexpr float std::abs(float)'
   75 |   abs(float __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:71:3: note: candidate: 'constexpr double std::abs(double)'
   71 |   abs(double __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:61:3: note: candidate: 'long long int std::abs(long long int)'
   61 |   abs(long long __x) { return __builtin_llabs (__x); }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:56:3: note: candidate: 'long int std::abs(long int)'
   56 |   abs(long __i) { return __builtin_labs(__i); }
      |   ^~~
Language: C++

#include<cstdio>
#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
using namespace std;
#define IOS ios::sync_with_stdio(false)
void solve() {
	string s, t;
	cin >> s >> t;
	int ns = s.size();
	int nt = t.size();
	int ans = 0, num = 0;
	for (int i = 0; i < ns - m + 1; ++i) {
		num = 0;
		for (int j = 0; j < nt; ++j) {
			if (s[i + j] == t[j]) {
				num++;
			}
		}
		ans = max(ans, num);
	}
	cout << nt - ans << endl;
}
int main() {
	solve(); 
	return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:14:34: error: 'm' was not declared in this scope
   14 |         for (int i = 0; i < ns - m + 1; ++i) {
      |                                  ^
Language: C++

            if(i+j>SZ(s)-1) break;
            cnt += (t[j]==s[i+j]);
        }
        ans = max(cnt, ans);
    }
    cout << SZ(t) - ans << endl;
}
int main()
{ 
    int t;
    //cin >> t;
    t = 1;
    while (t--) {
        solve();
    }
    return 0;
}


Compiler output:
a.cc:1:13: error: expected unqualified-id before 'if'
    1 |             if(i+j>SZ(s)-1) break;
      |             ^~
a.cc:2:13: error: 'cnt' does not name a type; did you mean 'int'?
    2 |             cnt += (t[j]==s[i+j]);
      |             ^~~
      |             int
a.cc:3:9: error: expected declaration before '}' token
    3 |         }
      |         ^
a.cc:4:9: error: 'ans' does not name a type
    4 |         ans = max(cnt, ans);
      |         ^~~
a.cc:5:5: error: expected declaration before '}' token
    5 |     }
      |     ^
a.cc:6:5: error: 'cout' does not name a type
    6 |     cout << SZ(t) - ans << endl;
      |     ^~~~
a.cc:7:1: error: expected declaration before '}' token
    7 | }
      | ^
a.cc: In function 'int main()':
a.cc:14:9: error: 'solve' was not declared in this scope
   14 |         solve();
      |         ^~~~~
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define rep(i, N) for(ll i = 0; i < (ll)N; i++)
typedef long long ll;
#define MOD 1000000007

int main() {
    int n, m, ans = MOD, flag = 0;
    char s[1010],t[1010];
    scanf("%s%s", s,t);
    int r = strlen(s) - (int)strlen(t) +1;
    rep(i,r){
        int tmp = 0;
        rep(j,(int)strlen(t)){
            if(s[i+j] != t[j]) tmp++;
        }
        ans = min(ans, tmp);
    }

    printf("%d\n",ans);
}


Compiler output:
main.c: In function 'main':
main.c:18:15: error: implicit declaration of function 'min'; did you mean 'main'? [-Wimplicit-function-declaration]
   18 |         ans = min(ans, tmp);
      |               ^~~
      |               main
Language: C++

#pragma GCC optimize("Ofast")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")

#include <bits/stdc++.h>
/*#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>*/
 
#define pll              pair <long long,long long>
#define pb               push_back
#define ll               long long
#define ff               first
#define ss               second
#define D(x)             cerr<<#x " = "<<(x)<<endl
#define vll              vector <ll>
#define IOS              ios_base::sync_with_stdio(0); cin.tie(NULL);
#define endl             '\n'   
using namespace std;
int main()
{
    IOS
 	// freopen("input.txt","r",stdin);
 	// freopen("output.txt","w",stdout);
 	// freopen("error.txt","w",stderr);
    string s,t;
    cin>>s>>t;
    ll n=s.size();
    int ans=t.size();
    for(int i=0;i<n;i++)
    {
    	int cur=0;
    	if(n-1-i+1>=t.size())
    	{
    		for(int j=0;j<t.size();j++){
    			if(t[j]!=s[i+j])
    			{
    				++cur;
    			}
    		}
    		ans=min(ans,cur);
    	}
    }
    cout<<ans<<endl;
    return 0;
}

Compiler output:
In file included from /usr/include/c++/14/string:43,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:6:
/usr/include/c++/14/bits/allocator.h: In destructor 'std::__cxx11::basic_string<char>::_Alloc_hider::~_Alloc_hider()':
/usr/include/c++/14/bits/allocator.h:182:7: error: inlining failed in call to 'always_inline' 'std::allocator< <template-parameter-1-1> >::~allocator() noexcept [with _Tp = char]': target specific option mismatch
  182 |       ~allocator() _GLIBCXX_NOTHROW { }
      |       ^
In file included from /usr/include/c++/14/string:54:
/usr/include/c++/14/bits/basic_string.h:186:14: note: called from here
  186 |       struct _Alloc_hider : allocator_type // TODO check __is_final
      |              ^~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
    string S,T;
    cin >> S >> T;
    int p = S.size(),q = T.size();
    vector<int> a(p-q,0);
    for(int i = 0;i < (p-q);i++){
        for(int j = 0;j < q;j++){
            if(S[j] != T[j])a.at(i)++;
        }
    }
    cout << *min_element(a.begin(),a,end()) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:41: error: no matching function for call to 'end()'
   15 |     cout << *min_element(a.begin(),a,end()) << endl;
      |                                      ~~~^~
In file included from /usr/include/c++/14/bits/algorithmfwd.h:39,
                 from /usr/include/c++/14/bits/stl_algo.h:59,
                 from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/initializer_list:99:5: note: candidate: 'template<class _Tp> constexpr const _Tp* std::end(initializer_list<_Tp>)'
   99 |     end(initializer_list<_Tp> __ils) noexcept
      |     ^~~
/usr/include/c++/14/initializer_list:99:5: note:   candidate expects 1 argument, 0 provided
In file included from /usr/include/c++/14/string:53,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/range_access.h:74:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.end()) std::end(_Container&)'
   74 |     end(_Container& __cont) -> decltype(__cont.end())
      |     ^~~
/usr/include/c++/14/bits/range_access.h:74:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:85:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.end()) std::end(const _Container&)'
   85 |     end(const _Container& __cont) -> decltype(__cont.end())
      |     ^~~
/usr/include/c++/14/bits/range_access.h:85:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:106:5: note: candidate: 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::end(_Tp (&)[_Nm])'
  106 |     end(_Tp (&__arr)[_Nm]) noexcept
      |     ^~~
/usr/include/c++/14/bits/range_access.h:106:5: note:   candidate expects 1 argument, 0 provided
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166:
/usr/include/c++/14/valarray:1249:5: note: candidate: 'template<class _Tp> _Tp* std::end(valarray<_Tp>&)'
 1249 |     end(valarray<_Tp>& __va) noexcept
      |     ^~~
/usr/include/c++/14/valarray:1249:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/valarray:1265:5: note: candidate: 'template<class _Tp> const _Tp* std::end(const valarray<_Tp>&)'
 1265 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~
/usr/include/c++/14/valarray:1265:5: note:   candidate expects 1 argument, 0 provided
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(int)(n);i++)
using namespace std;
typedef long long ll;
int main(void){
    string t;
    string s;
    cin>>s>>t;
    ll a=0;
    ll m=t.size();
    rep(i,s.size()-t.size()){
        a=0;
        rep(j,t.size()){
            if(s[i+j]==t[j]){
                
            }
            else{
                a++;
            }
        }
        m=min(m,a)
    }
    cout<<m<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:19: error: expected ';' before '}' token
   21 |         m=min(m,a)
      |                   ^
      |                   ;
   22 |     }
      |     ~
Language: C

#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
int main(void)
{
	char s[1001],t[1001];
	int i,j,cnt,mn,len,ln,p;
	scanf("%s",s);
	scanf("%s",t);
	len=strlen(s);
	ln=strlen(t);
	cnt=0;	mn=1001;
	for(i=0;i<len;i++){
		p=i;
		for(j=0;j<ln;j++){
			if(s[p]!=t[j])	cnt++;
			p++;
		}
		if(mn>=cnt)	mn=cnt;
		cnt=0;
	}
	printf("%d\n",mn);
	return 0;
}


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

s=input()
t=input()
m=10000
ct=0
for i in range(len(s)-len(t)+1):
	for j in range(len(t)):
		if s[i:i+len(t)][j]!=t[j]:
			ct+=1
	m=min(ct,m)
	ct=0
print(m)


Compiler output:
a.cc:1:1: error: 's' does not name a type
    1 | s=input()
      | ^
Language: C

#include<stdio.h>
#include<string.h>
int main(void)
{
	char s[1001],t[1001];
	int min,i,j,len1,len2,cnt,mn;
	scanf("%s %s",t,s);
	min=10000;
	len1=strlen(s);
	len2=strlen(t);
	for(i=0;len1-len2+1;i++){
	for(j=0;j<len2;j++){
		cnt=0;
		if(s[i+j]!=t[j]){
			cnt++;
		}
		mn=min(cnt,min);
	}
	printf("%d\n",mn);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:20: error: called object 'min' is not a function or function pointer
   17 |                 mn=min(cnt,min);
      |                    ^~~
main.c:6:13: note: declared here
    6 |         int min,i,j,len1,len2,cnt,mn;
      |             ^~~
Language: C

#include<stdio.h>
#include<string.h>
int main(void)
{
	char s[1001],t[1001];
	int min,i,j,len1,len2,cnt,mn;
	scanf("%s",s);
	scanf("%s",t);
	len1=strlen(s);
	len2=strlen(t);
	mn=10000;
	for(i=0;i<len1-len2+1;i++){
		cnt=0;
		for(j=0;j<len2;j++){
			if(s[i+j]!=t[j]){
				cnt++;
				}
		}
		mn=min(cnt,mn);
	}
	printf("%d\n",mn);
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:19:20: error: called object 'min' is not a function or function pointer
   19 |                 mn=min(cnt,mn);
      |                    ^~~
main.c:6:13: note: declared here
    6 |         int min,i,j,len1,len2,cnt,mn;
      |             ^~~
Language: C

#include<stdio.h>
#include<string.h>
int main(void)
{
	char s[1001],t[1001];
	int min,i,j,len1,len2,cnt,mn;
	scanf("%s %s",t,s);
	min=10000;
	cnt=0;
	len1=strlen(s);
	len2=strlen(t);
	for(i=0;len1-len2+1;i++){
	for(j=0;j<len2;j++){
		if(s[i+j]!=t[j]){
			cnt++;
		}
		mn=min(cnt,min);
	}
	printf("%d\n",mn);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:20: error: called object 'min' is not a function or function pointer
   17 |                 mn=min(cnt,min);
      |                    ^~~
main.c:6:13: note: declared here
    6 |         int min,i,j,len1,len2,cnt,mn;
      |             ^~~
Language: C

#include<stdio.h>
#include<string.h>
int main(void)
{
	char s[1001],t[1001];
	int min,i,j,len1,len2,cnt,mn;
	min=1000000;
	scanf("%s %s",s,t);
	len1=strlen(s);
	len2=strlen(t);
	for(i=0;i<len1-len2+1;i++){
		cnt=0;
		for(j=0;j<len2;j++){
			if(s[i+j]!=t[j]){
				cnt++;
				}
		}
		mn=min(cnt,mn);
	}
	printf("%d\n",mn);
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:18:20: error: called object 'min' is not a function or function pointer
   18 |                 mn=min(cnt,mn);
      |                    ^~~
main.c:6:13: note: declared here
    6 |         int min,i,j,len1,len2,cnt,mn;
      |             ^~~
Language: C

#include<stdio.h>
#include<string.h>
int main(void)
{
	char s[1001],t[1001];
	int min,i,j,len1,len2,cnt,mn;
	min=1000000;
	scanf("%s %s",s,t);
	len1=strlen(s);
	len2=strlen(t);
	for(i=0;i<len1-len2+1;i++){
		cnt=0;
		for(j=0;j<len2;j++){
			if(s[i+j]!=t[j]){
				cnt++;
				}	
				mn=min(cnt,mn);
			}
		}
	}
	printf("%d\n",mn);
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:17:36: error: called object 'min' is not a function or function pointer
   17 |                                 mn=min(cnt,mn);
      |                                    ^~~
main.c:6:13: note: declared here
    6 |         int min,i,j,len1,len2,cnt,mn;
      |             ^~~
main.c: At top level:
main.c:21:16: error: expected declaration specifiers or '...' before string constant
   21 |         printf("%d\n",mn);
      |                ^~~~~~
main.c:21:23: error: unknown type name 'mn'
   21 |         printf("%d\n",mn);
      |                       ^~
main.c:22:9: error: expected identifier or '(' before 'return'
   22 |         return 0;
      |         ^~~~~~
main.c:23:1: error: expected identifier or '(' before '}' token
   23 | }
      | ^
Language: C

#include<stdio.h>
#include<string.h>
int main(void)
{
	char s[1001],t[1001];
	int min,i,j,len1,len2,cnt,mn;
	min=1000000;
	cnt=0;
	scanf("%s %s",s,t);
	len1=strlen(s);
	len2=strlen(t);
	for(i=0;i<len1-len2+1;i++){
		for(j=0;j<len2;j++){
			if(s[i+j]!=t[j]){
				cnt++;
				}	
				mn=min(cnt,mn);
			}
		}
	}
	printf("%d\n",mn);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:36: error: called object 'min' is not a function or function pointer
   17 |                                 mn=min(cnt,mn);
      |                                    ^~~
main.c:6:13: note: declared here
    6 |         int min,i,j,len1,len2,cnt,mn;
      |             ^~~
main.c: At top level:
main.c:21:16: error: expected declaration specifiers or '...' before string constant
   21 |         printf("%d\n",mn);
      |                ^~~~~~
main.c:21:23: error: unknown type name 'mn'
   21 |         printf("%d\n",mn);
      |                       ^~
main.c:22:9: error: expected identifier or '(' before 'return'
   22 |         return 0;
      |         ^~~~~~
main.c:23:1: error: expected identifier or '(' before '}' token
   23 | }
      | ^
Language: C

#include<stdio.h>
#include<string.h>
int main(void)
{
	char s[1001],t[1001];
	int min,i,j,len1,len2,cnt;
	scanf("%s %s",t,s);
	min=10000;
	cnt=0;
	len1=strlen(s);
	len2=strlen(t);
	for(i=0;len1-len2+1;i++){
	for(j=0;j<len2;j++){
		if(s[i+j]!=t[j]){
			cnt++;
			min=t[j];
		}
		mn=min(cnt,min);
	}
	}
	printf("%d\n",cnt);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:17: error: 'mn' undeclared (first use in this function); did you mean 'min'?
   18 |                 mn=min(cnt,min);
      |                 ^~
      |                 min
main.c:18:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:20: error: called object 'min' is not a function or function pointer
   18 |                 mn=min(cnt,min);
      |                    ^~~
main.c:6:13: note: declared here
    6 |         int min,i,j,len1,len2,cnt;
      |             ^~~
Language: C

#include<stdio.h>
#include<string.h>
int main(void)
{
	char s[1001],t[1001];
	int min,i,j,len1,len2,cnt,mn;
	min=1000000;
	cnt=0;
	scanf("%s %s",s,t);
	len1=strlen(s);
	len2=strlen(t);
	for(i=0;i<len1-len2+1;i++){
		for(j=0;j<len2;j++){
			if(s[i+j]!=t[j]){
				cnt++;
				}	
				mn=min(cnt,mn);
			}
		}
	}
	printf("%d\n",cnt);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:36: error: called object 'min' is not a function or function pointer
   17 |                                 mn=min(cnt,mn);
      |                                    ^~~
main.c:6:13: note: declared here
    6 |         int min,i,j,len1,len2,cnt,mn;
      |             ^~~
main.c: At top level:
main.c:21:16: error: expected declaration specifiers or '...' before string constant
   21 |         printf("%d\n",cnt);
      |                ^~~~~~
main.c:21:23: error: unknown type name 'cnt'; did you mean 'int'?
   21 |         printf("%d\n",cnt);
      |                       ^~~
      |                       int
main.c:22:9: error: expected identifier or '(' before 'return'
   22 |         return 0;
      |         ^~~~~~
main.c:23:1: error: expected identifier or '(' before '}' token
   23 | }
      | ^
Language: C

#include<stdio.h>
#include<string.h>
int main(void)
{
	char s[1001],t[1001];
	int min,i,j,len1,len2,cnt,mn;
	min=1000000;
	cnt=0;
	scanf("%s %s",s,t);
	len1=strlen(s);
	len2=strlen(t);
	for(i=0;i<len1-len2+1;i++){
		for(j=0;j<len2;j++){
			if(s[i+j]!=t[j]){
				cnt++;
				}	
				mn=min(cnt,mn)
			}
		}
	}
	printf("%d\n",cnt);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:36: error: called object 'min' is not a function or function pointer
   17 |                                 mn=min(cnt,mn)
      |                                    ^~~
main.c:6:13: note: declared here
    6 |         int min,i,j,len1,len2,cnt,mn;
      |             ^~~
main.c:17:47: error: expected ';' before '}' token
   17 |                                 mn=min(cnt,mn)
      |                                               ^
      |                                               ;
   18 |                         }
      |                         ~                      
main.c: At top level:
main.c:21:16: error: expected declaration specifiers or '...' before string constant
   21 |         printf("%d\n",cnt);
      |                ^~~~~~
main.c:21:23: error: unknown type name 'cnt'; did you mean 'int'?
   21 |         printf("%d\n",cnt);
      |                       ^~~
      |                       int
main.c:22:9: error: expected identifier or '(' before 'return'
   22 |         return 0;
      |         ^~~~~~
main.c:23:1: error: expected identifier or '(' before '}' token
   23 | }
      | ^
Language: C

#include<stdio.h>
#include<string.h>
int main(void)
{
	char s[1001],t[1001];
	int min,i,j,len1,len2,cnt;
	scanf("%s %s",t,s);
	min=10000;
	cnt=0;
	len1=strlen(s);
	len2=strlen(t);
	for(i=0;len1-len2+1;i++){
	for(j=0;j<len2;j++){
		if(s[i+j]!=t[j]){
			cnt++;
			min=t[j];
		}
		mn=min(cnt,min)
	}
	}
	printf("%d\n",cnt);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:17: error: 'mn' undeclared (first use in this function); did you mean 'min'?
   18 |                 mn=min(cnt,min)
      |                 ^~
      |                 min
main.c:18:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:20: error: called object 'min' is not a function or function pointer
   18 |                 mn=min(cnt,min)
      |                    ^~~
main.c:6:13: note: declared here
    6 |         int min,i,j,len1,len2,cnt;
      |             ^~~
main.c:18:32: error: expected ';' before '}' token
   18 |                 mn=min(cnt,min)
      |                                ^
      |                                ;
   19 |         }
      |         ~