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

import java.io.BufferedReader;
import java.io.InputStreamReader;

https://atcoder.jp/contests/abc172/tasks/abc172_b

class Main {

    static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    static String S, T;
    static int result = 0;

    public static void main(String[] args) throws Exception {
        S = br.readLine();
        T = br.readLine();
        
        for(int i = 0; i < S.length(); i++){
           if(S.charAt(i) != T.charAt(i)){
                result++;
           }
        }
        System.out.println(result);
    }

}

Compiler output:
Main.java:4: error: class, interface, enum, or record expected
https://atcoder.jp/contests/abc172/tasks/abc172_b
^
1 error
Language: C++

/*Bismillahir Rahmanir Rahim*/

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

typedef long long ll;
typedef vector<int> vi;
typedef vector <long long> vll;
typedef pair<int, int> pii;
///*-*-*-*-*-*-*-*-*-*-*-*-*-*-Macro Start-*-*-*-*-*-*-*--*-*-*-*-*/

#define Faster_IO              ios_base::sync_with_stdio(false); cin.tie(NULL);
#define F                      first
#define S                      second
#define pb                     push_back
#define MP                     make_pair
#define sf                     scanf
#define pf                     printf
#define PI                     (2*acos(0))
#define to_radian(degree)      ((pi/180)*degree)
#define to_degree(radian)      ((180/pi)*radian)
#define SQ(a)                  (a)*(a)
#define SORT(x)                sort(x.begin(),x.end())
#define rSORT(x)               sort(x.rbegin(),x.rend())
#define SetPrint(a,x)          cout<<fixed<<setprecision(x)<<a<<endl
#define show(vec)              for (int i=0; i<vec.size(); i++)cout << vec[i] << " ";
#define lines                  cout <<"\n" <<"---------------" << "\n";
#define YES                    printf("YES\n")
#define NO                     printf("NO\n")
#define Yes                    printf("Yes\n")
#define No                     printf("No\n")
#define testcase(n)            int n; cin >> n; while(n--)
#define lcm(a,b)               ((a / __gcd(a,b) ) * b)
#define gcd(a,b)               __gcd(a,b)
#define all(vec)               vec.begin(), vec.end()
#define SUM(vec)               accumulate(vec.begin(), vec.end(), 0)
#define gcin(str)              getline(cin, str)
///*-*-*-*-*-*-*-*-*-*-*-*-*-*-Macro END-*-*-*-*-*-*-*--*-*-*-*-*/

///*-*-*-*-*-*-*-*-*-*-*-*-*-*-Template Start-*-*-*-*-*-*--*-*-*-*-*/

//template <class T> T isPrime(T n){if(n<=1)return 0;for(long long i=2;i*i<=n; i++)if(n%i==0)return 0;return 1;}
//template <class T> T bigmod(T X, T n, T M) {if (n==0) return 1;if (n%2) return ((X%M) * bigmod(X,n-1,M)) %M;else {long long int d = bigmod(X,n/2, M);return ((d%M) * (d%M))%M;}}

///*-*-*-*-*-*-*-*-*-*-*-*-*-*-Template END-*-*-*-*-*-*-*--*-*-*-*-*/


int main()
{
    Faster_IO
    #ifndef ONLINE_JUDGE
    freopen("Input.txt", "r", stdin);
    freopen("Output.txt", "w", stdout);
    #endif

    sting s, t;
    int cnt=0; 
    cin >> s >> t;

    for(int i=0; i<s.size();i++)
        if(s[i]!=t[i])
            cnt++;
    cout << cnt << "\n";    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:56:5: error: 'sting' was not declared in this scope
   56 |     sting s, t;
      |     ^~~~~
a.cc:58:12: error: 's' was not declared in this scope
   58 |     cin >> s >> t;
      |            ^
a.cc:58:17: error: 't' was not declared in this scope; did you mean 'tm'?
   58 |     cin >> s >> t;
      |                 ^
      |                 tm
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'atsize'; did you mean 'size'?
   10 |   for( int i=0 ; i<S.atsize() ; i++){
      |                      ^~~~~~
      |                      size
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  string S , T ;
  cin >> S >> T ;
  
  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:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C

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

int main () {
    char s[20001];
    gets(s);
    int n=strlen(s), ans=0;
	char t[n];
	for(int i=0; i< n; i++){
		scanf("%c", &t[i]);
	if( s[i] != t[i] )
        ans++;
    printf("%d", ans);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    6 |     gets(s);
      |     ^~~~
      |     fgets
main.c:15:1: error: expected declaration or statement at end of input
   15 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define F first
#define S second
void solve(){
    string a,b;
    cin>>a>>b;
    for(int i=0;i<a.length();i++){
        if(a[i]!=b[i]){
            ans++;
        }
    }
    cout<<ans<<"\n";
}
int main() {
	int t=1;
	//cin>>t;
	while(t--){
	    solve();
	}
	return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:12:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |             ans++;
      |             ^~~
      |             abs
a.cc:15:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |     cout<<ans<<"\n";
      |           ^~~
      |           abs
Language: C

#include<stdio.h>
 
int main(){
  char S[200000], T[200000];
  scanf("%s%s", &S, &T);
 
  int i, count=0;
  for(i=0; s[i]!='\0' ; i++){
      if(S[i]!=T[i])
        count++;
  }
 
  printf("%d\n", count);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:12: error: 's' undeclared (first use in this function)
    8 |   for(i=0; s[i]!='\0' ; i++){
      |            ^
main.c:8:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
 
int main(){
  char S[], T[];
  scanf("%s%s", &S, &T);
 
  int i, count=0;
  for(i=0; s[i]!=0 ; i++){
      if(s[i]!=t[i])
        count++;
  }
 
  printf("%d\n", count);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:8: error: array size missing in 'S'
    4 |   char S[], T[];
      |        ^
main.c:4:13: error: array size missing in 'T'
    4 |   char S[], T[];
      |             ^
main.c:8:12: error: 's' undeclared (first use in this function)
    8 |   for(i=0; s[i]!=0 ; i++){
      |            ^
main.c:8:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:16: error: 't' undeclared (first use in this function)
    9 |       if(s[i]!=t[i])
      |                ^
Language: C

#include<stdio.h>
#include<string.h>
int main(){
  int count=0;
  char s[],t[];
  scanf("%s %s",&s,&t);
  for(int i=0;i<strlen(s)+1;i++){
    if(s[i]!=t[i]){
      count=count+1;
      }
    }
  printf("%d",count);
  }


Compiler output:
main.c: In function 'main':
main.c:5:8: error: array size missing in 's'
    5 |   char s[],t[];
      |        ^
main.c:5:12: error: array size missing in 't'
    5 |   char s[],t[];
      |            ^
Language: C

#include<stdio.h>

#define N 200010

int main(){

//long string memory err?
 char a[N];
 char b[N];
  int total=0;
  
scnaf("%s",a);
scnaf("%s",b);  
  
for(int i=0; i<strlen(a); i++) if( a[i]=!b[i] ) total++;
  
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:1: error: implicit declaration of function 'scnaf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   12 | scnaf("%s",a);
      | ^~~~~
      | scanf
main.c:15:16: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
   15 | for(int i=0; i<strlen(a); i++) if( a[i]=!b[i] ) total++;
      |                ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strlen'
    1 | #include<stdio.h>
  +++ |+#include <string.h>
    2 | 
main.c:15:16: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
   15 | for(int i=0; i<strlen(a); i++) if( a[i]=!b[i] ) total++;
      |                ^~~~~~
main.c:15:16: note: include '<string.h>' or provide a declaration of 'strlen'
Language: C++

/*input
10
5 3
5 7
8 9
1 9
9 10
8 4
7 4
6 10
7 2
*/
#include <iostream>
#include <sstream>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <cctype>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <algorithm>
#include <functional>
#include <iomanip>
 
using namespace std; 
 
int GCD(int x,int y){return y?GCD(y,x%y):x;}
#define DEBUG(x) cout << '>' << #x << ':' << x << endl;
#define rep(i,n) for(int i=0;i<(n);i++)
#define repl(i,a,b) for(int i=(a);i<(b);i++)
#define repm(i,a,b) for(int i=(a);i>(b);i--)
#define rept(v) for(auto it=v.begin();it<v.end();it++)
#define all(v) v.begin(),v.end()
const int INF = 1<<30;
typedef long long ll;
typedef pair<int,int> pii;
 
 
int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	string a,b;
	cin >> a >> b;
	int ans=0;
	rep(i, a.size) if(a[i]!=b[i]) ans++;
	cout << ans;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:51:18: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   51 |         rep(i, a.size) if(a[i]!=b[i]) ans++;
      |                  ^
a.cc:34:33: note: in definition of macro 'rep'
   34 | #define rep(i,n) for(int i=0;i<(n);i++)
      |                                 ^
Language: C++

#include <iostream>
#include <string>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'string' was not declared in this scope
    6 |     string a,b;
      |     ^~~~~~
a.cc:6:5: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |     cin>>a>>b;
      |     ^~~
      |     std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:10: error: 'a' was not declared in this scope
    7 |     cin>>a>>b;
      |          ^
a.cc:7:13: error: 'b' was not declared in this scope
    7 |     cin>>a>>b;
      |             ^
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout<<ans<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     cout<<ans<<endl;
      |                ^~~~
      |                std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
#include <string>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'string' was not declared in this scope
    6 |         string a,b;
      |         ^~~~~~
a.cc:6:9: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin>>a>>b;
      |         ^~~
      |         std::cin
/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: 'a' was not declared in this scope
    7 |         cin>>a>>b;
      |              ^
a.cc:7:17: error: 'b' was not declared in this scope
    7 |         cin>>a>>b;
      |                 ^
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     cout<<ans<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |     cout<<ans<<endl;
      |                ^~~~
      |                std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <algorithm>
#include <cctype>
#include <iostream>
#include <string>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'string' was not declared in this scope
    8 |         string a,b;
      |         ^~~~~~
a.cc:8:9: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:3:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:9:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |         cin>>a>>b;
      |         ^~~
      |         std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:14: error: 'a' was not declared in this scope
    9 |         cin>>a>>b;
      |              ^
a.cc:9:17: error: 'b' was not declared in this scope
    9 |         cin>>a>>b;
      |                 ^
a.cc:14:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |     cout<<ans<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |     cout<<ans<<endl;
      |                ^~~~
      |                std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <algorithm>
#include <cctype>
#include <iostream>
#include <string>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'string' was not declared in this scope
    8 |         string a,b;
      |         ^~~~~~
a.cc:8:9: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:3:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:10:19: error: 'a' was not declared in this scope
   10 |     for(int i=0;i<a.size();i++){
      |                   ^
a.cc:11:18: error: 'b' was not declared in this scope
   11 |         if(a[i]!=b[i]) ans++;
      |                  ^
a.cc:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     cout<<ans<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |     cout<<ans<<endl;
      |                ^~~~
      |                std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

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

int main() {
  char S[];
  char T[];
  scanf("%s %s", &S, &T);
  int counter = 0;
  for(int i = 0; i < strlen(S); i++){
    if(S[i] == T[i]){
      counter++;
    }
  }
  printf("%d", counter);
}

Compiler output:
main.c: In function 'main':
main.c:5:8: error: array size missing in 'S'
    5 |   char S[];
      |        ^
main.c:6:8: error: array size missing in 'T'
    6 |   char T[];
      |        ^
Language: Java

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String[] inputA = line.split("");
        line = sc.nextLine();
        String[] inputB = line.split("");
      
      int count =0;
      for(int i=0;i<inputA.length;i++){
        if(!inputA[i].equals(inputB[i])){
          count++;
        }
      }
       System.out.println(String.valueOf(count));
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.util.*;


public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String[] inputA = line.split("");
        line = sc.nextLine();
        String[] inputB = line.split("");
      
      int count =0;
      for(int i=0;i<inputA.length;i++){
        if(!inputA[i].equals(inputB[i])){
          count++;
        }
      }
       System.out.println(+String.valueOf(count));
    }
}

Compiler output:
Main.java:18: error: bad operand type String for unary operator '+'
       System.out.println(+String.valueOf(count));
                          ^
1 error
Language: C

#include<stdio.h>

int main(void)
{
  char s[256],t[256];
  int i,count=0;
  
  fgets(a,sizeof(a),stdin);
  fgets(b,sizeof(b),stdin);
  
  for(i=0;a[i]!=0;i++)
  {
    if(a[i]!=b[i])
    {
      count++;
    }
  }
  
  printf("%d",count);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: 'a' undeclared (first use in this function)
    8 |   fgets(a,sizeof(a),stdin);
      |         ^
main.c:8:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:9: error: 'b' undeclared (first use in this function)
    9 |   fgets(b,sizeof(b),stdin);
      |         ^
Language: C++

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

#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--)
#define ALL(x) (x).begin(),(x).end()
#define SIZE(x) ((ll)(x).size())
#define MAX(x) *max_element(ALL(x))
#define MIN(x) *min_element(ALL(x))
#define INF 1000000000000
#define MOD 1000000007
#define MAXR 100000
#define _GLIBCXX_DEBUG

int threemax(int a, int b, int c) {
	if (a >= b && a >= c) {
		return a;
	}
	else if (b >= a && b >= c) {
		return b;
	}
	else {
		return c;
	}
}

int threemin(int a, int b, int c) {
	if (a <= b && a <= c) {
		return a;
	}
	else if (b <= a && b <= c) {
		return b;
	}
	else {
		return c;
	}
}

void chmaxl(ll &a,ll b){
	if(a<b){
		a=b;
	}
	return;
}

void chminl(ll &a,ll b){
	if(a>b){
		a=b;
	}
	return;
}

void chmaxi(int &a,int b){
	if(a<b){
		a=b;
	}
	return;
}

void chmini(int &a,int b){
	if(a>b){
		a = b;
	}
	return;
}



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

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

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

int main(){
  
  string S, T;
  cin >> S >> T;
  int cnt=0, i;
  
  for(i=0;i<S.size(),i++){
    if(S[i]!=T[i]) cnt++;
  }
  cout << cnt << endl; 
  return 0;
}


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

#pragma GCC optimize("Ofast")
#include<stdio.h>
int main(void)
{
  char buf[400002];
  int i = -1;
  while(true) if(EOF == (buf[++i] = getchar_unlocked())) break;
  int ans = 0;
  i >>= 1;
  char* x = buf + i;
  while(--i) ans += buf[i] != x[i];
  printf("%d", ans);
}


Compiler output:
main.c: In function 'main':
main.c:7:9: error: 'true' undeclared (first use in this function)
    7 |   while(true) if(EOF == (buf[++i] = getchar_unlocked())) break;
      |         ^~~~
main.c:3:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    2 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    3 | int main(void)
main.c:7:9: note: each undeclared identifier is reported only once for each function it appears in
    7 |   while(true) if(EOF == (buf[++i] = getchar_unlocked())) break;
      |         ^~~~
Language: C

#include <stdio.h>
#include <string.h> 
 
 
int main(void){
 
  int count=0;
  char s[200000];
  char t[200000];
  
 
 fgets("%s",s);
 
  fgets("%s",t);
  
  for(int i=0;i<strlen(s);i++){
  	if(s[i]!=t[i]){
    count++;
    }  
  }
  
  
  printf("%d",count);
    return 0;
 
}

Compiler output:
main.c: In function 'main':
main.c:12:13: error: passing argument 2 of 'fgets' makes integer from pointer without a cast [-Wint-conversion]
   12 |  fgets("%s",s);
      |             ^
      |             |
      |             char *
In file included from main.c:1:
/usr/include/stdio.h:654:47: note: expected 'int' but argument is of type 'char *'
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |                                           ~~~~^~~
main.c:12:2: error: too few arguments to function 'fgets'
   12 |  fgets("%s",s);
      |  ^~~~~
/usr/include/stdio.h:654:14: note: declared here
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |              ^~~~~
main.c:14:14: error: passing argument 2 of 'fgets' makes integer from pointer without a cast [-Wint-conversion]
   14 |   fgets("%s",t);
      |              ^
      |              |
      |              char *
/usr/include/stdio.h:654:47: note: expected 'int' but argument is of type 'char *'
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |                                           ~~~~^~~
main.c:14:3: error: too few arguments to function 'fgets'
   14 |   fgets("%s",t);
      |   ^~~~~
/usr/include/stdio.h:654:14: note: declared here
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |              ^~~~~
Language: C

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


int main(void){

  int count=0;
  char s[200000];
  char t[200000];
  
 printf("InputS: ");
  scanf("%s",s);
 printf("InputT: ");
  scanf("%s",t);
  
  for(int i=0;i<stlen(s);i++){
  	if(s[i]==t[i]){
    count++;
    }  
  }
  
  
  printf("%d",count);
    return 0;

}

Compiler output:
main.c: In function 'main':
main.c:16:17: error: implicit declaration of function 'stlen'; did you mean 'strlen'? [-Wimplicit-function-declaration]
   16 |   for(int i=0;i<stlen(s);i++){
      |                 ^~~~~
      |                 strlen
Language: C++

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


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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'str' was not declared in this scope; did you mean 'std'?
   10 |     str s,t;
      |     ^~~
      |     std
a.cc:11:10: error: 's' was not declared in this scope
   11 |     cin>>s>>t;
      |          ^
a.cc:11:13: error: 't' was not declared in this scope; did you mean 'tm'?
   11 |     cin>>s>>t;
      |             ^
      |             tm
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'count'
    7 |   for(int i=0; i<a.count(); i++){
      |                    ^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   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
      |                  ^~~
Language: C++

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

#define ll long long

int main()
{
    string S,T;
    cin>>S>>T;
    ll cnt=0;
    for(ll i=0;i<(ll)S.size();i++)
    {
        if(S[i] != T[i])cnt++;
    }
    cout<<cnt<<endl;
}

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

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

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

	int c = 0;

	for(int i = 0;i<S.length();i++)
	{
		if(S[i] != T[i])
			c++;
	}	

	cout<<c<<endl;
}

int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);



	solve();

	return 0;
} 

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:3: error: class, interface, enum, or record expected
#define ll long long
        ^
Main.java:4: error: illegal character: '#'
#define pb push_back
^
Main.java:9: error: class, interface, enum, or record expected
	cin>>S;
	^
Main.java:10: error: class, interface, enum, or record expected
	cin>>T;
	^
Main.java:12: error: unnamed classes are a preview feature and are disabled by default.
	int c = 0;
	^
  (use --enable-preview to enable unnamed classes)
Main.java:14: error: class, interface, enum, or record expected
	for(int i = 0;i<S.length();i++)
	^
Main.java:14: error: class, interface, enum, or record expected
	for(int i = 0;i<S.length();i++)
	              ^
Main.java:14: error: class, interface, enum, or record expected
	for(int i = 0;i<S.length();i++)
	                           ^
Main.java:18: error: class, interface, enum, or record expected
	}	
	^
Main.java:21: error: class, interface, enum, or record expected
}
^
Main.java:26: error: class, interface, enum, or record expected
	cin.tie(NULL);
	^
Main.java:30: error: class, interface, enum, or record expected
	solve();
	^
Main.java:32: error: class, interface, enum, or record expected
	return 0;
	^
Main.java:33: error: class, interface, enum, or record expected
} 
^
17 errors
Language: C++

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

#define ll long long
#define endl "\n"
#define M 1000000007

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: expected initializer before 'cin'
   13 |     cin>>s>>t;
      |     ^~~
a.cc:17:20: error: 't' was not declared in this scope
   17 |         if(s[i] != t[i])
      |                    ^
Language: C

#include <stdio.h>
#include <string.h>
int main()
{
	int cnt = 0;
	char s[200000], t[200000];
	scanf("%s", s);
	scanf("%s", t);
	for(int i = 0; i < strlen[s]; i++){
		if(s[i] != t[i]){
			cnt++;
		}
	}

	printf("%d", cnt);
}


Compiler output:
main.c: In function 'main':
main.c:9:34: error: array subscript is not an integer
    9 |         for(int i = 0; i < strlen[s]; i++){
      |                                  ^
Language: C

#include<stdio.h>

int main(void){
  char a[200000],b[200000];
  int cor=0;
  if(scanf("%s",a)==1){};
  if(scanf("%s",b)==1){};
  for(int i=0; a[i]!='\0'; i++){
    if(a[i]!=b[i]){
      cor++;
    }
  }
  printf("%d",cor);
  }
  return 0;
}


Compiler output:
main.c:15:3: error: expected identifier or '(' before 'return'
   15 |   return 0;
      |   ^~~~~~
main.c:16:1: error: expected identifier or '(' before '}' token
   16 | }
      | ^
Language: C

#include<stdio.h>

int main(){
  char a[200000],b[200000];
  int cor
  scanf("%s %s",&a,&b);
  for(int i=0; a[i]!=\0; i++){
    if(a[i]!=b[i]){
      cor++;
    }
  }
  printf("%d",cor-1);
  return 0;
}



Compiler output:
main.c: In function 'main':
main.c:6:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    6 |   scanf("%s %s",&a,&b);
      |   ^~~~~
main.c:7:22: error: stray '\' in program
    7 |   for(int i=0; a[i]!=\0; i++){
      |                      ^
main.c:9:7: error: 'cor' undeclared (first use in this function)
    9 |       cor++;
      |       ^~~
main.c:9:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<iostream>
using namespace std;
int main(){
  string S,T;
  cin>>S;
  cin>>T;
  int count=0;
  for(int i=0;i<S.size();i++){
    if(S.at(i)==T.at(i){
      continue;
    }
    else{
      count++;
    }
  }
  cout<<count<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: expected ')' before '{' token
    9 |     if(S.at(i)==T.at(i){
      |       ~                ^
      |                        )
a.cc:15:3: error: expected primary-expression before '}' token
   15 |   }
      |   ^
Language: C++

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

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

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

#include<iostream>
#include<string>
int main(){
string s,t;
  cin>>s;
  cin>>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: In function 'int main()':
a.cc:4:1: error: 'string' was not declared in this scope
    4 | string s,t;
      | ^~~~~~
a.cc:4:1: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>s;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:8: error: 's' was not declared in this scope
    5 |   cin>>s;
      |        ^
a.cc:6:8: error: 't' was not declared in this scope; did you mean 'tm'?
    6 |   cin>>t;
      |        ^
      |        tm
a.cc:11:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |   cout<<ans<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |   cout<<ans<<endl;
      |              ^~~~
      |              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: conflicting declaration 'int s'
    5 |         int s=0,i;
      |             ^
a.cc:4:16: note: previous declaration as 'std::string s'
    4 |         string s,t;
      |                ^
a.cc:8:33: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
    8 |                 if(s[i]!=t[i]) s++;
      |                                ~^~
Language: C++

#include<bits/stdc++.h>
int main(){
  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;
}

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:3:3: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> s >> t;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
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; did you mean 'tm'?
    4 |   cin >> s >> t;
      |               ^
      |               tm
a.cc:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   cout << ans << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   cout << ans << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'len'
    7 |   for(int i=0;i<s.len();i++){
      |                   ^~~
Language: C++

#include<bits/stdc++.h>
int main(){
  char s[1000000],t[1000000];
  cin >> s >> t;
  int ans=0;
  for(int i=0;i<s.len();i++){
    if(s[i]!=t[i]) ans++;
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> s >> t;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:19: error: request for member 'len' in 's', which is of non-class type 'char [1000000]'
    6 |   for(int i=0;i<s.len();i++){
      |                   ^~~
a.cc:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   cout << ans << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   cout << ans << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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:3:3: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> s >> t;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
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; did you mean 'tm'?
    4 |   cin >> s >> t;
      |               ^
      |               tm
a.cc:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   cout << ans << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   cout << ans << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

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

Compiler output:
Main.java:9: error: cannot find symbol
      if(S.get(i)!=T.get(i)){
          ^
  symbol:   method get(int)
  location: variable S of type String
Main.java:9: error: cannot find symbol
      if(S.get(i)!=T.get(i)){
                    ^
  symbol:   method get(int)
  location: variable T of type String
2 errors
Language: C

#include<stdio.h>
int main(void){
  char S[200000],T[200000];
  int i,count=0;
  scanf_s("%s",S);
  scanf_s("%s",T);
  for(i=0;S[i]!='\0';i++){
    if(S[i]!=T[i]){
      count++;
    }
  }
  printf("%d",count);
  return 0;

}

Compiler output:
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |   scanf_s("%s",S);
      |   ^~~~~~~
      |   scanf
Language: C++

 char txt1[100],txt2[100];
   cin >> txt1;
   cin >> txt2;
   int count=0;
   int n=strlen(txt1);
   for(int i=0;i<n;i++){
       if (txt1[i]!=txt2[i]){
           count++;
       }
   }
   cout<<count;

Compiler output:
a.cc:2:4: error: 'cin' does not name a type
    2 |    cin >> txt1;
      |    ^~~
a.cc:3:4: error: 'cin' does not name a type
    3 |    cin >> txt2;
      |    ^~~
a.cc:5:10: error: 'strlen' was not declared in this scope
    5 |    int n=strlen(txt1);
      |          ^~~~~~
a.cc:1:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
  +++ |+#include <cstring>
    1 |  char txt1[100],txt2[100];
a.cc:6:4: error: expected unqualified-id before 'for'
    6 |    for(int i=0;i<n;i++){
      |    ^~~
a.cc:6:16: error: 'i' does not name a type
    6 |    for(int i=0;i<n;i++){
      |                ^
a.cc:6:20: error: 'i' does not name a type
    6 |    for(int i=0;i<n;i++){
      |                    ^
a.cc:11:4: error: 'cout' does not name a type
   11 |    cout<<count;
      |    ^~~~
Language: Java

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


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

import java.util.*;
public class Main{
	public static void main(String args[]){
    	String s = sc.nextLine();
      String s1 = sc.nextLine();
      String res = "";
      for(int i=0;i<s.length();i++){
      	if(s.charAt(i)!=s1.charAt(i)){
          res+=s.charAt(i);
        }
        else{
       		res+=s.charAt(i); 
        }
      }
      System.out.println(res);
      
    }
}

Compiler output:
Main.java:4: error: cannot find symbol
    	String s = sc.nextLine();
    	           ^
  symbol:   variable sc
  location: class Main
Main.java:5: error: cannot find symbol
      String s1 = sc.nextLine();
                  ^
  symbol:   variable sc
  location: class Main
2 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: conflicting declaration 'std::string s'
    5 | string s,t;
      |        ^
a.cc:4:17: note: previous declaration as 'long long int s'
    4 | long long int n,s,i,cnt=0;
      |                 ^
a.cc:7:13: error: request for member 'size' in 's', which is of non-class type 'long long int'
    7 | for(i=0;i<s.size();++i)
      |             ^~~~
a.cc:8:5: error: invalid types 'long long int[long long int]' for array subscript
    8 | if(s[i]!=t[i])++cnt;
      |     ^
Language: C++

#include <iostream>
#include <string>

int main() {
  std::string a;
  std::string b;
  
  std::cin >> a >> b;
  
  for(int i = 0; i < b.length; i++) {
    if(b[i] != a[i]) {
      a[i] = b[i];
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: 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 '()' ?)
   10 |   for(int i = 0; i < b.length; i++) {
      |                      ~~^~~~~~
      |                              ()