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

#include <iostream>
#include<string>
using namespace std;
#define endl "\n"
#define pb push_back
#define mp make_pair
typedef vector<int> vi;
typedef long long ll;
#define MOD 1000000007;

int main() 
{ 
    #ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
    #endif
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    string s,t;
    cin >> s >> t;
    int ans = 0;
    for(int i = 0; i < s.length(); i++){
    	if(s[i]!=t[i]){
    		ans++;
    	}
    }
    cout << ans << endl;
    
    
    
    return 0;
}

Compiler output:
a.cc:7:9: error: 'vector' does not name a type
    7 | typedef vector<int> vi;
      |         ^~~~~~
Language: C++

#include <iostream>
using namespace std;

string a, b;

int main(void)
{
	cin >> a >> b;
  
  	int ans = 0;
  	for (i = 0; i < a.size(); i++)
      	if (a[i] != b[i])
          	++ans;
  
  	cout << ans;
  	return 0;
}

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

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

int main()
{
    string s,t; cin >> s >> t;
    int cnt=0;
    for(int i=0;i<s.szie();i++)
    {
        if(s[i]!=t[i])
        {
            cnt++;
        }
    }
    cout << cnt;
    /*int cnt[30]={0},c[30]={0};
    for(int i=0;i<s.size();i++)
    {
        cnt[s[i]-'a']++;
        c[t[i]-'a']++;
    }
    for(int i=0;i<30;i++)
    {
        if(c[i]!=cnt[i])
    }*/
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'szie'; did you mean 'size'?
    8 |     for(int i=0;i<s.szie();i++)
      |                     ^~~~
      |                     size
Language: Java

import java.util.*;
public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		String S = next();
		String T = next();
		int ans = 0;
		for(int i =0 ;i<S.length ;i++){
			if(S.charAt(i) != T.charAt(i)){
				ans++;
			}
		}
		System.out.println(ans);
	}
}

Compiler output:
Main.java:5: error: cannot find symbol
		String S = next();
		           ^
  symbol:   method next()
  location: class Main
Main.java:6: error: cannot find symbol
		String T = next();
		           ^
  symbol:   method next()
  location: class Main
Main.java:8: error: cannot find symbol
		for(int i =0 ;i<S.length ;i++){
		                 ^
  symbol:   variable length
  location: variable S of type String
3 errors
Language: C

#include <bits/stdc++.h>


using namespace std;

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

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

#include <bits/stdc++.h>
typedef long long ll;
typedef long double ld;

using namespace std;

//Binary exponent
ll Bin_pow(ll a,ll b)
{
    ll res=1;
    while(b>0)
    {
        if(b&1)
        {
            res=res*a;
        }
        a=a*a;
        b>>=1;
    }
    return res;
}

//GCD
ll gcd(ll a,ll b)
{
    if(b==0)
        return a;
    else
        return gcd(b,a%b);
}

//LCM
ll lcm(ll a,ll b)
{
	return (a*b)/gcd(a,b);
}

int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	cout.tie(NULL);
	
	string s;
	string t;
	
	cin>>s>>t;
	ll count=0;
	
	for(ll i=0;i<s.length();i++)
	{
	    if(s[i]!==t[i])
	        count++;
	}
	
	cout<<count<<"\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:52:22: error: expected primary-expression before '=' token
   52 |             if(s[i]!==t[i])
      |                      ^
Language: C++

#include <Bits/stdc++.h>
using namespace std;
int main(){
	string a,b;
	long long cnt = 0;
	cin >> a >> b;
	for(int i = 0; i < a.size(); i++){
		if(a[i] != b[i]){
			cnt++;
		}
	}
	cout << cnt;
}

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

#include <iostream>
using namespace std;

int main() {
    int cnt = 0;
    string s1, s2;
    cin >> s1 >> s2;
    for (int i = 0 ; i < s1.length ; i++) if (s1[i] != s2[i]) cnt++;
    cout << cnt;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:29: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    8 |     for (int i = 0 ; i < s1.length ; i++) if (s1[i] != s2[i]) cnt++;
      |                          ~~~^~~~~~
      |                                   ()
Language: C++

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

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int t = 1; 
    for(int T = 0; T < t ; T++){
        ll ans = 0;
        string s;
        cin >> s >> t;
        for(ll i = 0; i < s.size(); i++){
            if(s[i] != t[i])
                ans++;
        }
        std::cout << ans << std::endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:25: error: invalid types 'int[long long int]' for array subscript
   15 |             if(s[i] != t[i])
      |                         ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
string s,t;
  int cnt=0;
  cin>>s;
  cin>>t;
  for(int i=1;i<s.size();i++)
  {
    if(s[i]!=t[i])
    {
cnt++:}
  }
  cout<<cnt;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:6: error: expected ';' before ':' token
   13 | cnt++:}
      |      ^
      |      ;
Language: C++

#include <iostream>
#include <string>
string s,t;
int ans=0;
int main()
{
	cin>>s>>t;
  	for(int i=0;i<s.size();++i)if(s[i]!=t[i]) ans;
  	cout<<ans;
  	return 0;
}

Compiler output:
a.cc:3:1: error: 'string' does not name a type; did you mean 'stdin'?
    3 | string s,t;
      | ^~~~~~
      | stdin
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin>>s>>t;
      |         ^~~
      |         std::cin
In file included 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:7:14: error: 's' was not declared in this scope
    7 |         cin>>s>>t;
      |              ^
a.cc:7:17: error: 't' was not declared in this scope; did you mean 'tm'?
    7 |         cin>>s>>t;
      |                 ^
      |                 tm
a.cc:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         cout<<ans;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>
#include <iomanip> 
#include <cstdlib>
#include <cmath>
#include<map>
#include<string.h>
#include <algorithm>
#include <bits/stdc++.h> 
#include<vector>

using namespace std;
#define rep(i,a,b) for(int i=a;i<b;i++)
#define repb(i,a,b) for(int i=a;i>=b;i--)
#define replb(i,a,b) for(ll i=a;i>=b;i--)
#define repl(i,a,b) for(ll i=a;i<b;i++)
#define repit(arr)  for(auto it=arr.begin();it!=arr.end();it++)  
#define vi vector<int>
#define vb vector<bool>
#define vs vector<string>
#define vl vector<long long int>
#define Vi vector<vector<int>>
#define seti set <int>
#define setl set <ll>
#define dseti set <int, greater <int> >
#define dsetl set <ll, greater <ll> >
#define mseti multiset <int>
#define msetl multiset <ll>
#define dmseti multiset <int, greater <int> >
#define dmsetl multiset <ll, greater <ll> >
#define sortA(arr)   sort(arr.begin(),arr.end())
#define ssort(arr) stable_sort(arr.begin(),arr.end())
#define search(arr,c)  binary_search(arr.begin(),arr.end(),c)
#define pb   push_back
#define ll long long
#define cl_bf cin.ignore(numeric_limits<streamsize>::max(), '\n');
#define castl static_cast<ll>
int gcd(int a,int b){
    if (a < b) swap(a, b);
    if (b == 0) return a;
    else return gcd(b, a % b);
}
int main(){
    ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
    int t=0,n;
    string s1,s2;cin>>s1>>s2;
    int n=s1.size();
    rep(i,0,n){
        if(s1[i]!=s2[i])t++;
    }
    cout<<t;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:46:9: error: redeclaration of 'int n'
   46 |     int n=s1.size();
      |         ^
a.cc:44:13: note: 'int n' previously declared here
   44 |     int t=0,n;
      |             ^
Language: Java

import java.io.*;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.*;


public class Solution {
	public static class FastReader {
			BufferedReader br;
			StringTokenizer root;
			
	 
			public FastReader() {
				br = new BufferedReader(new InputStreamReader(System.in));
			}
	 
			String next() {
				while (root == null || !root.hasMoreTokens()) {
					try {
						root = new StringTokenizer(br.readLine());
					} catch (Exception addd) {
						addd.printStackTrace();
					}
				}
				return root.nextToken();
			}
	 
			int nextInt() {
				return Integer.parseInt(next());
			}
	 
			double nextDouble() {
				return Double.parseDouble(next());
			}
	 
			long nextLong() {
				return Long.parseLong(next());
			}
	 
			String nextLine() {
				String str = "";
				try {
					str = br.readLine();
				} catch (Exception addd) {
					addd.printStackTrace();
				}
				return str;
			}
		}
	 
	public static PrintWriter out = new PrintWriter (new BufferedOutputStream(System.out));
	public static FastReader sc = new FastReader();
 
	static long mod = (int) (1000000000),MAX=(int)(1e5+10);
	
	public static void main(String[] args) throws IOException{
	    
char[] s = sc.next().toCharArray();
char[] t = sc.next().toCharArray();
int ans = 0;
for(int i=0;i<s.length;++i) if(s[i] != t[i]) ++ans;
out.print(ans);
		
        
        out.close();
    }
	
}





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

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define f(i,n)  for(ll i=0;i<n;i++)
#define fb(i,n) for(ll i=n-1;i>=0;i--)
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
typedef pair<int,int> pii;
int main()
{
	IOS;
	//int t; cin>>t;
	//ll M=pow(10,9)+7;
	int t=1;
	while(t)
	{
		string s,t; cin>>s>>t;
		int count=0;
		f(i,s.length())
		{
			if(s[i]!=t[i]) count++;
		}
		cout<<count;
		t--;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:18: error: no 'operator--(int)' declared for postfix '--' [-fpermissive]
   23 |                 t--;
      |                 ~^~
Language: C++

#include <iostream>
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define lli long long int
using namespace std;
#define S second
#define F first
#define pb push_back 
#define M1 1000000007
#define M2 998244353
#define plli pair<lli,lli>
#define setit set<lli>::iterator seti
#define mapit map<lli,lli> ::iterator mapi
#define MP make_pair
#define MT make_tuple
#define PI 3.14159265358979323846
// map      iterator->first  iterator.first
// map      mp[key]=value
// set      *s.begin()
// vector   v[j]=value
// pair     p.first p.second
// vector of pairs v[j].first v[j].second
// tuple    get<index>(tuple_name)
// vector of tuples get<index>(v[j])  sort(v.begin(),v.end())
//priority queue .top() .pop() .push()
// __gcd(x,y)
#define mini(x,y) (y + ((x - y) & ((x - y) >>(sizeof(int) * CHAR_BIT - 1))))
#define maxi(x,y) (x - ((x - y) & ((x - y) >> (sizeof(int) * CHAR_BIT - 1))))
#define fr(j,a,b) for(j=a;j<b;j++)

int power(int x, unsigned int y, int p)  
{    int res = 1;    
     x = x % p;
     if (x == 0) return 0;
     while (y > 0)  
     {  if (y & 1)  
        res = (res*x) % p;  
        y = y>>1;
        x = (x*x) % p;  
     }  
    return res;  
}

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    lli t,i,j,n,x;
    x=0;
    string s,t;
        cin>>s>>t;
        n=s.length();
        for(i=0;i<n;i++){
            if(s[i]!=t[i]){
                x++;
            }
        }
    cout<<x;
    
}



Compiler output:
a.cc: In function 'int main()':
a.cc:52:14: error: conflicting declaration 'std::string t'
   52 |     string s,t;
      |              ^
a.cc:50:9: note: previous declaration as 'long long int t'
   50 |     lli t,i,j,n,x;
      |         ^
a.cc:56:23: error: invalid types 'long long int[long long int]' for array subscript
   56 |             if(s[i]!=t[i]){
      |                       ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s,t;
  cin>>s>>t;
  ll ans=0;
  for(int i=0;i<s.length();++i){
    if(s[i]!=t[i]){
      ++ans;
    }
  }
  cout<<ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'll' was not declared in this scope
    6 |   ll ans=0;
      |   ^~
a.cc:9:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |       ++ans;
      |         ^~~
      |         abs
a.cc:12:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |   cout<<ans;
      |         ^~~
      |         abs
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
int main(){
  string s,t;cin>>s>>t;
  int cnt = 0;
  for(int i=0;i<n;i++){
    if(s[i]!=t[i])cnt++;
  }
  cout<<cnt<<endl;
  return 0;
}

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

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

int main(){

	#ifndef ONLINE_JUDGE
	freopen("input.txt","r",stdin);
	freopen("output.txt","w",stdout);
	#endif

	ios::sync_with_stdio(false),cin.tie(0);
	string s,t;
	cin >> s >> t;
	int sum = 0;
	for(int i=0;i<(int) t.size()){
		if(t[i]!=s[i]) sum++;
	}
	cout << sum << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:37: error: expected ';' before ')' token
   15 |         for(int i=0;i<(int) t.size()){
      |                                     ^
      |                                     ;
Language: C++

#include <iostream>
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define lli long long int
using namespace std;
#define S second
#define F first
#define pb push_back 
#define M1 1000000007
#define M2 998244353
#define plli pair<lli,lli>
#define setit set<lli>::iterator seti
#define mapit map<lli,lli> ::iterator mapi
#define MP make_pair
#define MT make_tuple
#define PI 3.14159265358979323846
// map      iterator->first  iterator.first
// map      mp[key]=value
// set      *s.begin()
// vector   v[j]=value
// pair     p.first p.second
// vector of pairs v[j].first v[j].second
// tuple    get<index>(tuple_name)
// vector of tuples get<index>(v[j])  sort(v.begin(),v.end())
//priority queue .top() .pop() .push()
// __gcd(x,y)
#define mini(x,y) (y + ((x - y) & ((x - y) >>(sizeof(int) * CHAR_BIT - 1))))
#define maxi(x,y) (x - ((x - y) & ((x - y) >> (sizeof(int) * CHAR_BIT - 1))))
#define fr(j,a,b) for(j=a;j<b;j++)

int power(int x, unsigned int y, int p)  
{    int res = 1;    
     x = x % p;
     if (x == 0) return 0;
     while (y > 0)  
     {  if (y & 1)  
        res = (res*x) % p;  
        y = y>>1;
        x = (x*x) % p;  
     }  
    return res;  
}

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    lli t,i,j,n,x;
    x=0;
    string s,t;
        cin>>s>>t;
        n=s.length();
        for(i=0;i<n;i++){
            if(s[j]!=t[j]){
                x++;
            }
        }
    cout<<x;
    
}



Compiler output:
a.cc: In function 'int main()':
a.cc:52:14: error: conflicting declaration 'std::string t'
   52 |     string s,t;
      |              ^
a.cc:50:9: note: previous declaration as 'long long int t'
   50 |     lli t,i,j,n,x;
      |         ^
a.cc:56:23: error: invalid types 'long long int[long long int]' for array subscript
   56 |             if(s[j]!=t[j]){
      |                       ^
Language: C++

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

int main(){
  string S,H;
  cin >> S >> H;
  int count=0;
  for(int i=0;i<S.size();i++){
    if(S.at(i)!=T.at(i)){
      count++;
    }
  }
  cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'T' was not declared in this scope
    9 |     if(S.at(i)!=T.at(i)){
      |                 ^
Language: Java

#include <bits/stdc++.h>

#define ll long long
using namespace std;

int main() {
    string s, t;
    cin>>s>>t;
    ll ans = 0;
    for (int i = 0; i <= s.length(); ++i) {
        if  (s[i] != t[i]){
            ans++;
        }
    }
    cout<<ans;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:3: error: illegal character: '#'
#define ll long long
^
Main.java:8: error: not a statement
    cin>>s>>t;
          ^
Main.java:15: error: not a statement
    cout<<ans;
        ^
Main.java:6: error: unnamed classes are a preview feature and are disabled by default.
int main() {
^
  (use --enable-preview to enable unnamed classes)
6 errors
Language: C++

#include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define f(i,n) for(i=0;i<n;i++)
#define f(i,a,b) for(i=a;i<=b;i++)

using namespace std;

int main() {
   ll i,j,k;
   string s,t;
   j=s.size();
   cin>>s>>t;
   
   f(i,j)
   {
       if(s[i]!=t[i])k++;
   }
   cout<<k;
}

Compiler output:
a.cc:5:9: warning: "f" redefined
    5 | #define f(i,a,b) for(i=a;i<=b;i++)
      |         ^
a.cc:4:9: note: this is the location of the previous definition
    4 | #define f(i,n) for(i=0;i<n;i++)
      |         ^
a.cc:15:9: error: macro "f" requires 3 arguments, but only 2 given
   15 |    f(i,j)
      |         ^
a.cc:5:9: note: macro "f" defined here
    5 | #define f(i,a,b) for(i=a;i<=b;i++)
      |         ^
a.cc: In function 'int main()':
a.cc:15:4: error: 'f' was not declared in this scope
   15 |    f(i,j)
      |    ^
Language: C++

#include <bits/stdc++.h>
#define lli long long int
#define timesave ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
using namespace std;


void solve(int t_case)
{
    string s1, s2;
    cin >> s1 >> s2;

    int l = s1.size();

    int ans = 0;

    for(int i = 0; i < l; i++){
        if(s1[i] != s2[i]) cnt++;
    }

    cout << cnt << "\n";
}
 
int main()
{
    //freopen("input.txt", "r", stdin);
    //freopen("output.txt", "w", stdout);
    //timesave;

    int tc = 1, t_case = 1;
    //cin >> tc;
    while(tc--) solve(t_case++);
 
    return 0;
}

Compiler output:
a.cc: In function 'void solve(int)':
a.cc:17:28: error: 'cnt' was not declared in this scope; did you mean 'int'?
   17 |         if(s1[i] != s2[i]) cnt++;
      |                            ^~~
      |                            int
a.cc:20:13: error: 'cnt' was not declared in this scope; did you mean 'int'?
   20 |     cout << cnt << "\n";
      |             ^~~
      |             int
Language: C++

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

int main() {
  string s, t;
  cin >> s >> t;
  int c = 0;
  for( int i = 0; i < s.size(); i++) {
    if(s.at(i) != t.at(i)) {
      s.at(i) = t.at(i);
      c++;
  }
  cout << c << endl;
}

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

#include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
using namespace std;
 
#define ff              first
#define ss              second
#define ll 				long long
#define int             long long int
#define pb              push_back
#define pii             pair<int,int>
#define vi              vector<int>
#define mii             map<int,int>
#define pqb             priority_queue<int>
#define pqs             priority_queue<int,vi,greater<int> >
#define setbits(x)      __builtin_popcountll(x)
#define zrobits(x)      __builtin_ctzll(x)
#define mod             1000000007
#define modp            998244353
#define inf             1e18
#define ps(x,y)         fixed<<setprecision(y)<<x
#define w(x)            int x; cin>>x; while(x--)
#define FIO           	ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define endl 			'\n'
 
typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> pbds;
 
// void aks()
// {
// #ifndef ONLINE_JUDGE
//     freopen("input.txt", "r", stdin);
//     freopen("output.txt", "w", stdout);
// #endif
// }


void solve()
{
    string s, t;
    cin >> s >> t;
    int n = s.lenth();
    int cc= 0;
    for(int i = 0; i < n; i++)
    {
        if(s[i] != t[i])
        cc++;
    }
    cout << cc;
}
 
int32_t main()
{
	FIO
    //aks();
    // w(t)
    {
    	solve();
    }
    return 0;
}
	

	

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

#include<bits/stdc++.h>
using namespace std;
#define fastIO ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define int long long int
#define fi first
#define se second
#define pub push_back
#define pi pair<int,int>
#define all(v) (v).begin(), (v).end()
#define rep(i, l, r) for(int i=(int)(l);i<(int)(r);i++)
#define repd(i, l, r) for (int i=(int)(l);i>=(int)(r);i--)
#define clrg(i, l, r) for(int i=(int)(l);i<(int)(r);i++)vis[i]=0,v[i].clear();
int power(int x, unsigned int y){int res = 1;while (y > 0){ if (y & 1){res = res*x;} y = y>>1;x = x*x;}return res;}
int powermod(int x, unsigned int y, int p){int res = 1;x = x % p;while (y > 0){if (y & 1){res = (res*x) % p;}y = y>>1; x = (x*x) % p;}return res;}
#define print2d(mat,n,m){for(int i=0;i<(int)(n);i++){for(int j=0;j<(m);j++){cout<<mat[i][j]<<" ";}cout<< endl;}}
#define clr(a,x) memset(a,x,sizeof(a))
#define rr(v) for(auto &val:v)
#define print(v) for (const auto itr : v){cout<<itr<<' ';}cout<<"\n";
#define ln length()
#define sz size()
#define mod 1000000007
#define elif else if
int32_t main(){
   string s,t;
   cin>>s>>t;
   int c=0;
   rep(i,0,s.ln){
	   is(s[i]!=t[i])c++;
   }
   cout<<c<<"\n";
   return 0;
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:28:12: error: 'is' was not declared in this scope; did you mean 'i'?
   28 |            is(s[i]!=t[i])c++;
      |            ^~
      |            i
Language: C++


// --------------------<optimizations>--------------------
#pragma GCC optimize("O3")

//(UNCOMMENT WHEN HAVING LOTS OF RECURSIONS)
#pragma comment(linker, "/stack:200000000")
//(UNCOMMENT WHEN TRYING TO BRUTEFORCE WITH A LOT OF LOOPS)
#pragma GCC optimize("unroll-loops")
// -------------------</optimizations>--------------------
#include <iostream>
#include <bitset>
#include <algorithm>        // sort()
#include <vector>           // for vectors
#include <map>              // for ordered map
#include <unordered_map>
#include <list>             // for list
#include <iomanip>          // for setprecision()
#include <cmath>            // for pow(), sqrt(), log(), log10(), ....
#include <cstring>          // for memset()
#include <unordered_set>    // for unordered_set
#include <climits>          // for INT_MAX & INT_MIN
#include <set>              // for ordered set

#define C ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
using namespace std;
typedef long long ll;
#define INF INT_MAX
#define NINF INT_MIN
#define MOD 1000000007
const double pi=acos(-1); // value of pi


bool isVowel(char ch) {
    if(ch=='a' || ch=='e' || ch=='i' || ch=='o' || ch=='u') {
        return 1;
    }
    return 0;
}

bool compare(pair<ll, ll> a, pair<ll, ll> b) {
    return a.second<b.second;
}


bool isPrime(ll n) {
    for(ll i=3; i*i<=n; i+=2) {
        if(n%i==0) {
            return false;
        }
    }
    return true;
}

map<ll, list<ll>> m;
// map<ll, ll> m;

int main() {
    C
//     freopen("input.txt","r",stdin);
// 	freopen("output.txt","w",stdout);
    int t=1;
    // cin >> t;
    while(t--) {
        ll ans=0;
        string a, b;
        cin >> a >> b;
        ll n=a.lenght();
        for(ll i=0; i<n; i++) {
            if(a[i]!=b[i]) {
                ans++;
            }
        }
        cout << ans << endl;
    }
}


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

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

//マクロ
//forループ関係
//引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか
//Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる
#define REP(i,n) for(ll i=0;i<(ll)(n);i++)
#define REPD(i,n) for(ll i=n-1;i>=0;i--)
#define FOR(i,a,b) for(ll i=a;i<=(ll)(b);i++)
#define FORD(i,a,b) for(ll i=a;i>=(ll)(b);i--)
//xにはvectorなどのコンテナ
#define ALL(x) (x).begin(),(x).end() //sortなどの引数を省略したい
#define SIZE(x) ((ll)(x).size()) //sizeをsize_tからllに直しておく
#define MAX(x) *max_element(ALL(x)) //最大値を求める
#define MIN(x) *min_element(ALL(x)) //最小値を求める
//定数
#define INF 1000000000000 //10^12:極めて大きい値,∞
#define MOD 1000000007 //10^9+7:合同式の法
#define MAXR 100000 //10^5:配列の最大のrange(素数列挙などで使用)
#define PI 3.14159265359 //πの値
//略記
#define PB push_back //vectorヘの挿入
#define MP make_pair //pairのコンストラクタ
#define F first //pairの一つ目の要素
#define S second //pairの二つ目の要素

 
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
  string x,y;
  cin >> x >> y;
  ll ans = 0;
  REP(x.size()){
    if(x[i]==y[i]) ans++;
  }
  cout << ans;
}


Compiler output:
a.cc:37:15: error: macro "REP" requires 2 arguments, but only 1 given
   37 |   REP(x.size()){
      |               ^
a.cc:10:9: note: macro "REP" defined here
   10 | #define REP(i,n) for(ll i=0;i<(ll)(n);i++)
      |         ^~~
a.cc: In function 'int main()':
a.cc:37:3: error: 'REP' was not declared in this scope
   37 |   REP(x.size()){
      |   ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
typedef long long int ll;
typedef vector<int> vi;
typedef vector<ll> vll;
 
#define  ff     first
#define  ss     second
#define  pb     push_back
#define  all(x) (x).begin(), (x).end()
#define  rep(i,a,b) for(int i=a ; i<b ; ++i)
#define  deb(x) cout << #x << " - " << x << "\n";
#define  IOS    ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
#define  D2(x)  cout << "[" << #x << ": "; for(auto it:x) cout << it << " "; cout << "]\n"; 
#define  D2p(x)	cout << #x << " ~ [ "; for(auto n: x) cout << n.first << "-" << n.second << " / "; cout << "]" << "\n";
#define  ps(x,y) fixed<<setprecision(y)<<x
 
#define PI 3.141592653589793238462643383279502884L
const ll MOD = 1e9 + 7;
const ll INF = 1000000000;
const ll MAX_N = 1e5 + 2;

int main() {
    IOS;
    string s,t; cin >> s >> t;
    int cnt = 0;
    rep(i,0,s.size()){

Compiler output:
a.cc: In function 'int main()':
a.cc:28:23: error: expected '}' at end of input
   28 |     rep(i,0,s.size()){
      |                      ~^
a.cc:28:23: error: expected '}' at end of input
a.cc:24:12: note: to match this '{'
   24 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
string S,T
  cin >> S >> T;
  int count = 0;
  for(int a = 0;a < S.length();a++){
   if(S[a] != T[a])count++; 
    
  }
  cout << count << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> S >> T;
      |   ^~~
a.cc:9:15: error: 'T' was not declared in this scope
    9 |    if(S[a] != T[a])count++;
      |               ^
Language: C++

#include <bits/stdc++.h>
#define repl(i, l, r) for (ll i = l; i < r; i++)
#define rep(i, n) repl(i, 0, n)
using namespace std;
using ll = long long;
using ld = long double;
using P = pair<int, int>;

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


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

#include<bits/stdc++.h>
#define ll long long 
#define mp make_pair 
#define f(i,n) for(int i=0;i<n;i++) 
#define F first 
#define S second 
#define pb push_back 

using namespace std;

void test(){
	string s1,s2;
	cin>>s1>>s2;
	int ans = 0;
	f(i,s1.length())if(s1[i]!=s2[i])ams++;
	cout<<ans<<"\n";
}

int main(){
	int tests=1;
//	cin>>tests;
	while(tests--){
		test();
	}
}

Compiler output:
a.cc: In function 'void test()':
a.cc:15:41: error: 'ams' was not declared in this scope; did you mean 'ans'?
   15 |         f(i,s1.length())if(s1[i]!=s2[i])ams++;
      |                                         ^~~
      |                                         ans
Language: C++

//BadWaper gg
#include<iostream>
#include<cstdio>
#include<cstring>
#include<cmath>
#include<algorithm>
#include<queue>
#include<vector>
#include<deque>
#include<bitset>
#include<map>
#include<set>
#define inf 1e9
#define eps 1e-6
#define mp make_pair
#define N 10010
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
inline ll read()
{
	char ch=getchar();
	ll s=0,w=1;
	while(ch<'0'||ch>'9'){if(ch=='-')w=-1;ch=getchar();}
	while(ch>='0'&&ch<='9'){s=s*10+ch-'0';ch=getchar();}
	return s*w;
}
char s[N],t[N];
int main()
{
	//freopen(".in","r",stdin);
	//freopen(".out","w",stdout);
	scanf("%s",s+1);scanf("%s",t+1);int len=stlren(s+1);
	int ans=0;
	for(register int i=1;i<=len;i++)if(s[i]!=t[i])ans++;
	cout<<ans<<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:49: error: 'stlren' was not declared in this scope; did you mean 'strlen'?
   33 |         scanf("%s",s+1);scanf("%s",t+1);int len=stlren(s+1);
      |                                                 ^~~~~~
      |                                                 strlen
a.cc:35:26: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   35 |         for(register int i=1;i<=len;i++)if(s[i]!=t[i])ans++;
      |                          ^
Language: C++

//Don't give up too easy bhai
#pragma GCC optimize("-O3")
 
#include<bits/stdc++.h>
using namespace std;

#define int long long int
#define double long double
#define inf 1e18

typedef pair<int,int> pii;
 
#define forall(i,a,n) for(int i=a;i<n;i++)
#define pb push_back
#define fs first
#define sec second
#define lb lower_bound
#define ub upper_bound
#define all(v) v.begin(),v.end()
#define minv(a) *min_element(all(a))
#define maxv(a) *max_element(all(a))
#define vi vector<int>
#define vd vector<double>
#define fast ios_base::sync_with_stdio(false);cin.tie(NULL)
#define mod 1000000007
#define br cout<<"\n"
#define whatis(x) cerr << "var "<<#x << " ==> " << x<<"\n"
#define inputv(a) forall(i,0,a.size()) cin>>a[i]
#define outputv(a) for(auto i:a) cout<<i<<" ";br;
#define T int __t;cin>>__t;while(__t--)

void solve()
{
    
}

signed main()
{
    fast;

    string a,b;cin>>a>>b;

    int x = 0;

    for(int i=0;i<a.size();i++)
    {
        if(a[i]!=b[i]) x++;
    }
    cout<<ans;


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:49:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   49 |     cout<<ans;
      |           ^~~
      |           abs
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
const double pi=3.14159265358979323846;
int ctoi(const char c) {
    if ('0' <= c && c <= '9') return (c - '0');
    return -1;
}
vector<int> input(int n) {
    vector<int> vec(n);
    for (int i = 0; i < n; i++) {
        cin >> vec.at(i);
    }
    return vec;
}
void output(vector<int> vec) {
    for (int i = 0; i < vec.size(); i++) {
        cout << vec[i] << " ";
    }
    return;
}
vector<vector<int>> input(int n, int m) {
    vector<vector<int>> table(n, vector<int>(m));
    for (int i = 0; i < n; i++) {
        for (int j = 0; j < m; j++) {
            cin >> table. at(i).at(j);
        }
    }
    return table;
}
void output(vector<vector<int>> table) {
    for (int i = 0; i < table.size(); i++) {
        for (int j = 0; j < table.at(0).size(); j++) {
            cout << table.at(i).at(j) << " ";
        }
        cout << endl;
    }
}
long long perm(int n, int r) {
    if (n < r) {
        cout << "error" << endl;
        return 0;
    }
    long long perm = 1;
    for (int i = n; i > n - r; i--) {
        perm *= i;
    }
    return perm;
}
long long comb(int n, int r) {
    if (n < r) {
        cout << "error" << endl;
        return 0;
    }
    long long comb = perm(n,r);
    for (int i = r; i > 0; i--) {
        comb /= i;
    }
    return comb;
}
long long homo(int n, int r) {
    return comb(n + r - 1, n - 1);
}
long long fact(int n) {
    long long fact = 1;
    for (int i = n; i > 0; i--) {
        fact *= i;
    }
    return fact;
}
int gcd(int a, int b){
    if (a % b == 0){
        return(b);
    }else{
        return(gcd(b, a % b));
    }
}
int lcm(int a, int b) {
    return a * b / gcd(a, b);
}
bool isprime(int n){
    if (n < 2) return false;
    else if (n == 2) return true;
    else if (n % 2 == 0) return false;

    for (int i = 3; i <= sqrt(n); i += 2){
        if (n % i == 0){
            return false;
        }
    }
    return true;
}
void sayYes(bool f) {
    if (f) {
        cout << "Yes" << endl;
    }
    else {
        cout << "No" << endl;
    }
}
void sayYES(bool f) {
    if (f) {
        cout << "YES" << endl;
    }
    else {
        cout << "NO" << endl;
    }
}

int main() {
  int s,t;
  cin >> s >> t;
  int cnt=0;
  rep(i,s.size()){
    if(s[i]!=t[i]){
      cnt++;
    }
  }
  cout << cnt << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:115:11: error: request for member 'size' in 's', which is of non-class type 'int'
  115 |   rep(i,s.size()){
      |           ^~~~
a.cc:3:45: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                             ^
a.cc:116:9: error: invalid types 'int[int]' for array subscript
  116 |     if(s[i]!=t[i]){
      |         ^
a.cc:116:15: error: invalid types 'int[int]' for array subscript
  116 |     if(s[i]!=t[i]){
      |               ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N=1e5+5,M=1e6+5,inf=0x3f3f3f3f,mod=1e9+7;
#define mst(a) memset(a,0,sizeof a)
#define lx x<<1
#define rx x<<1|1
#define reg register
#define PII pair<int,int>
#define fi first 
#define se second
int main()	{
	string a,b;
	cin>>a>>b;
	int ans=0;
	for(int i=0;i<a.siz();i++)
		if(a[i]!=b[i]) ans++;
	cout<<ans<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:25: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'siz'; did you mean 'size'?
   16 |         for(int i=0;i<a.siz();i++)
      |                         ^~~
      |                         size
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0; i < (n); i++)
#define REP1(i, n) for(int i = 1; i <= (n); i++)
#define REPD(i,a,b) for (int i=(a);i<=(b);i++)
#define ALL(v) (v).begin(), (v).end()
using namespace std;
typedef long long ll;
typedef vector<string> vs;
typedef vector<bool> vb;
typedef vector<vb> vvb;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef set<int> si;
typedef vector<si> vsi;
typedef vector<ll> vll;
typedef vector<vll> vvll;
typedef pair<int, int> pi;
typedef queue<int> qi;
typedef queue<pi> qpi;
typedef pair<ll, ll> pll;
typedef queue<pll> qpll;
typedef vector<pi> vpi;
typedef vector<pll> vpll;
const int mod = 1000000007;
const int INF = 1001001001;
// 小数点　<< fixed << setprecision(0) <<
// sort降順　sort(ALL(),greater<int>());
// 円周率　M_PI
// 文字判定　isupper islower
// 文字変換　
// 順列　do {} while(next_permutation(ALL(X)));
// 最大値　LLONG_MAX
// a内でx以上　auto iter = lower_bound(ALL(a), x);
// a内でxより大きい　auto iter = upper_bound(ALL(a), x);
int dx[8] = {1, 0, -1, 0, 1, 1, -1, -1};
int dy[8] = {0, 1, 0, -1, 1, -1, 1, -1};
struct edge {
    int from; //出発点
    int to;   //到達点
    int cost; //移動コスト
};
typedef struct edge se;
typedef vector<edge> ve;
unsigned Euclidean_gcd(unsigned a, unsigned b) {
  if(a < b) return Euclidean_gcd(b, a);
  unsigned r;
  while ((r=a%b)) {
    a = b;
    b = r;
  }
  return b;
}

vpll PrimeFactorization(ll n) {
  vpll res;
  for (ll i=2; i*i<=n; i++) {
    if(n%i!=0) continue;
    ll ex=0;
    while(n%i==0) {
      ex++;
      n/=i;
    }
    res.push_back(pll(i,ex));
  }
  if(n!=1) res.push_back(pll(n,1));
  return res;
}

int main() {
  char s(200001),t(200001);
  cin >> s >> t;
  int n=strlen(s);
  int ans=0;
  REP(i,n) {
    if(s[i]!=t[i]) ans++;
  }
  cout<<ans<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:70:10: warning: overflow in conversion from 'int' to 'char' changes value from '200001' to '65' [-Woverflow]
   70 |   char s(200001),t(200001);
      |          ^~~~~~
a.cc:70:20: warning: overflow in conversion from 'int' to 'char' changes value from '200001' to '65' [-Woverflow]
   70 |   char s(200001),t(200001);
      |                    ^~~~~~
a.cc:72:16: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   72 |   int n=strlen(s);
      |                ^
      |                |
      |                char
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
a.cc:75:9: error: invalid types 'char[int]' for array subscript
   75 |     if(s[i]!=t[i]) ans++;
      |         ^
a.cc:75:15: error: invalid types 'char[int]' for array subscript
   75 |     if(s[i]!=t[i]) ans++;
      |               ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using Graph = vector<vector<int>>;
const ll mod=1000000007;
const int MAX_N = 1000;         // n の最大値
 
// nCk を取得
double nCk(int n, int k) {
double res=1.0;
for(int i=0; i<n; i++){
res*=0.5;}
for(int i=0; i<k; i++){
res*=(double)(n-i);
res/=(double)(k-i);
}
return res;}
 
int main() {
string s,t;
cin>>s>>t;
ll ca=0;
for(ll i=0; i<s.size(); i++){
if(s.at(i)!=t.at(i))
ca++}
cout<<ca <<endl;}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:5: error: expected ';' before '}' token
   25 | ca++}
      |     ^
      |     ;
Language: C++

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

  #define vi vector<int>
  #define all(v) v.begin(),v.end()
  #define ll long long int
  #define IOS ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
  #define D1(x) {cerr<<" [" <<#x<<": "<<x<<"]";cout << endl;}
  #define D2(x) {cerr<<" [" <<#x<<": ";for(auto it:x)cerr<<it<< " ";cerr<<"] ";cout << endl;}

  const ll MOD=1e9+7;

  void solve(){
     string s,t;
     cin >> s;
     cin >> t;
     int cnt=0;
     int n =s.size();
     for(int i=0;i<n;i++){
      if(s[i]!=t[i])cnt++;
     }
     cout << cnt;a
  }


  int main(){
    IOS
       solve();
       cerr <<endl <<"[ Time : " << (float)clock() / CLOCKS_PER_SEC << " secs ]" << endl;
  }
// integer overflow
// remember to clear visited array
// take input as vector<string> while using grid
// don't assign after modifying

Compiler output:
a.cc: In function 'void solve()':
a.cc:22:18: error: 'a' was not declared in this scope
   22 |      cout << cnt;a
      |                  ^
Language: C++

	strikng s,tp;
#include <algorithm>
#include <iostream>
#include <vector>
#include <queue>
#include <set>
#include <map>
#include <list>
#include <cmath>
#include <stack>
#include <string>
#include <cstring>
#include <numeric>
#include <iomanip>
#include <fstream>
using namespace std;
double pie=3.14159265358979;
long long mod=998244353;
//
int main(){
	string s,t;
	cin>>s>>t;
	int ans=0;
	for(int i=0;i<s.size();i++){
		if(s[i]!=t[i]){
			ans++;
		}
	}
	cout<<ans<<endl;
	return 0;
}


Compiler output:
a.cc:1:9: error: 'strikng' does not name a type; did you mean 'stdin'?
    1 |         strikng s,tp;
      |         ^~~~~~~
      |         stdin
Language: C++

#include <bits/stdc++.h>
using ll = long long;
using namespace std;
#define rep(i,n) for(int i=0, i##_len=(int)(n); i<i##_len; i++)
#define reps(i,n) for(int i=1 , i##_len=(int)(n);i<=i##_len;i++)
#define rrep(i,n) for(int i=((int)(n)-1);i>=0;i--)
#define rreps(i,n) for(int i=((int)(n));i>0;i--)
#define repi(i,x) for(auto i=(x).begin(),i##_fin=(x).end();i!=i##_fin;i++)
#define all(x) (x).begin(), (x).end()
#define F first
#define S second
#define mp make_pair
#define pb push_back
#define solve(a) ((a)?"Yes":"No")
typedef vector<int> Vi;
typedef vector<Vi> VVi;
typedef pair<int , int> Pi;
typedef vector<Pi> VPi;
typedef vector<long long> V;
typedef vector<V> VV;
typedef pair<long long , long long> P;
typedef vector<P> VP;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1;} return 0;}
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1;} return 0;}
const long long INFLL = 1LL<<60;
const int INF = 1<<30;
const double PI=acos(-1);
int main(){
	string s,t;
	int ans=0;
	cin >>s>>t;
	rep(i,s.size())){
		if(s[i]!=t[i])ans++;
	}
	cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:24: error: expected primary-expression before ')' token
   32 |         rep(i,s.size())){
      |                        ^
Language: C++

//Problem: ABC 172 B
//Progress: Working
#include <iostream>
#include <cstring>
typedef long long int ll;
using namespace std;

int main(){
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	string s, t;
	cin >> s >> t;
	int ans = 0;
	for(int i=0; i<s.length(); i++){
		if(s[i] != t[i])
			ans++;
	}
	cout << ansl
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:17: error: 'ansl' was not declared in this scope; did you mean 'ans'?
   19 |         cout << ansl
      |                 ^~~~
      |                 ans
Language: C

#include <stdio.h>

int main(void)
{
    int n=0,m=0,max=0,book=0;
    long k=0,time=0,A[200010]={},B[200010]={};
    scanf("%d %d %ld",&n,&m,&k);
    for(int i=1;i<=n;i++){
        scanf("%ld",&A[i]);
        A[i]+=A[i-1];
    }
    for(int i=1;i<=m;i++){
        scanf("%ld",&B[i]);
        B[i]+=B[i-1];
        if(k<B[i]) jmax=i;
    }

    for(int i=n;i>=0;i--){
        if(k>A[i]){
            for(int j=m;j>=0;j--){
                time=A[i]+B[j]
                if(k>=time){
                    book=i+j;
                    if(max<book) max=book;
                    break;
                }
            }
        }
    }
    printf("%d",max);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:15:20: error: 'jmax' undeclared (first use in this function); did you mean 'max'?
   15 |         if(k<B[i]) jmax=i;
      |                    ^~~~
      |                    max
main.c:15:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:21:31: error: expected ';' before 'if'
   21 |                 time=A[i]+B[j]
      |                               ^
      |                               ;
   22 |                 if(k>=time){
      |                 ~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
int main(){
  ll a;
  cin>>a;
  ll b;
  cin>>b;
  ll c;
  cin>>c;
  vector<ll>vec(a);
  vector<ll>veco(b);
  for(ll i=0;i<a;i++){
    if(i==0){
      cin>>vec.at(i);
    }
    else{
      ll d;
      cin>>d;
      vec.at(i)=d+vec.at(i-1);
    }
  }
  for(ll i=0;i<b;i++){
    if(i==0){
      cin>>veco.at(i);
    }
    else{
      ll e;
      cin>>e;
      veco.at(i)=e+veco.at(i-1);
    }
  }
  ll f=0;
  for(ll i=0;i<a&&vec.at(i)<=c;i++){
    ll g=c-vec.at(i);
    ll x=b-1;
    if(f>i+1||f-2-i>=b-1){
      if(veco.at(f-2-i)>g){
        continue;
      }
    }
      
    for(ll j=x;j>=0;j--){
      if(veco.at(j)<=g){
        f=max(i+j+2,f);
        x=j;
        break;
      }
      if(j==0){
        f=max(f,i+1);
      }
    }
  }
  if(f<b){
    for(ll i=b-1;i>=0;i--){
      if(veco.at(i)<=c){
        f=max(f,i+1);
        break;
    }
  }
  cout<<f<<endl;
      
    
    
  return 0;
}


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

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
int main(){
  ll a;
  cin>>a;
  ll b;
  cin>>b;
  ll c;
  cin>>c;
  vector<ll>vec(a);
  vector<ll>veco(b);
  for(ll i=0;i<a;i++){
    if(i==0){
      cin>>vec.at(i);
    }
    else{
      ll d;
      cin>>d;
      vec.at(i)=d+vec.at(i-1);
    }
  }
  for(ll i=0;i<b;i++){
    if(i==0){
      cin>>veco.at(i);
    }
    else{
      ll e;
      cin>>e;
      veco.at(i)=e+veco.at(i-1);
    }
  }
  ll f=0;
  for(ll i=0;i<a&&vec.at(i)<=c;i++){
    ll g=c-vec.at(i);
    ll x=b-1;
    ll y;
    for(ll j=x;j>=0;j--){
      if(veco.at(j)<=g){
        f=max(i+j+2,f);
        x=j;
        if(i==0){
          y=j;
        }
        break;
      }
      if(j==0){
        f=max(f,i+1);
      }
    }
  }
  if(f<=b+1){
    if(veco.at(b-1)<=c){
      f=b;
    }
    for(ll i=y;i<b-1;i++){
    if(veco.at(i)<=c&&veco.at(i+1)>c){
      f=max(f,i+1);
      break;
    }
  }
  }
  cout<<f<<endl;
      
    
    
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:56:14: error: 'y' was not declared in this scope
   56 |     for(ll i=y;i<b-1;i++){
      |              ^