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

  #include<bits/stdc++.h>

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:
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string s,t;
      |   ^~~~~~
a.cc:5: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: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 /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:6:8: error: 's' was not declared in this scope
    6 |   cin>>s>>t;
      |        ^
a.cc:6:11: error: 't' was not declared in this scope; did you mean 'tm'?
    6 |   cin>>s>>t;
      |           ^
      |           tm
a.cc:11:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |   cout<<c<<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:12: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |   cout<<c<<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 cnt=0;
  int x = S.size()
  for (int i=0; i<x; i++){
    if (s.at(i) != T.at(i)){
      cnt++;
    }
  }
  cout << cnt << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'for'
    9 |   for (int i=0; i<x; i++){
      |   ^~~
a.cc:9:17: error: 'i' was not declared in this scope
    9 |   for (int i=0; i<x; i++){
      |                 ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'i' was not declared in this scope
    7 |         for(i=0;i<=n;i++){
      |             ^
a.cc:8:35: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
    8 |                 if(s[i]!=t[i]) num++;
      |                                ~~~^~
Language: C++

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

int main() {
  string S,T;
  int n, ans;
  cin >> S >> T;
  n=S.size();
  vector<int> vec(n);
  for (int i = 0; i < n; i++) {
    if (S.at(i)==T.at(i)) {
      vec.at(i)=1;
    }
    else {
      vec.at(i)=0;
    }
  }
  ans=0;
  for (int j = 0; j < n; j++) {
    ans = ans + p.at(j);
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:17: error: 'p' was not declared in this scope
   20 |     ans = ans + p.at(j);
      |                 ^
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:9:24: error: expected ')' before '{' token
    9 |     if(s.at(i)!=t.at(i){
      |       ~                ^
      |                        )
a.cc:12:4: error: expected primary-expression before '}' token
   12 |    }
      |    ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'countinue' was not declared in this scope
   13 |         countinue;
      |         ^~~~~~~~~
Language: C

#include <stdio.h>
#include <stdlib.h>
int main(){
char s,t;
int i=0;
int count=0;
while(i<200000){
scanf("%c",&s[i]);
if(s[i]=="")break;
i++;}
while(i<200000){
scanf("%c",&t[i]);
if(t[i]=="")break;
i++;}
for(int l=0;l<i;l++){
if(s[l] != t[l]) count++;
}
if(i<count) printf("%d",i);
else printf("%d",count);
}

Compiler output:
main.c: In function 'main':
main.c:8:14: error: subscripted value is neither array nor pointer nor vector
    8 | scanf("%c",&s[i]);
      |              ^
main.c:9:5: error: subscripted value is neither array nor pointer nor vector
    9 | if(s[i]=="")break;
      |     ^
main.c:12:14: error: subscripted value is neither array nor pointer nor vector
   12 | scanf("%c",&t[i]);
      |              ^
main.c:13:5: error: subscripted value is neither array nor pointer nor vector
   13 | if(t[i]=="")break;
      |     ^
main.c:16:5: error: subscripted value is neither array nor pointer nor vector
   16 | if(s[l] != t[l]) count++;
      |     ^
main.c:16:13: error: subscripted value is neither array nor pointer nor vector
   16 | if(s[l] != t[l]) count++;
      |             ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
const int mAx=2e+5;
int main()
{
    char s1[mAx],s2[mAx];
    int cnt=0;

    cin>>s1;
    cin>>s2;

    long long l=strlen(s1);
    for(long longa i=0;i<l;i++){
        if(s1[i] != s2[i])cnt++;
    }
    cout<<cnt<<"\n" ;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:19: error: expected ';' before 'i'
   13 |     for(long longa i=0;i<l;i++){
      |                   ^~
      |                   ;
a.cc:13:20: error: 'i' was not declared in this scope
   13 |     for(long longa i=0;i<l;i++){
      |                    ^
a.cc:13:27: error: expected ')' before ';' token
   13 |     for(long longa i=0;i<l;i++){
      |        ~                  ^
      |                           )
a.cc:13:28: error: 'i' was not declared in this scope
   13 |     for(long longa i=0;i<l;i++){
      |                            ^
Language: C++

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

int main() {
  string S,T;
  int n, ans;
  cin >> S >> T;
  n=S.size();
  vector<int> vec(n);
  for (int i = 0; i < n; i++) {
    if (S.at(i)==T.at(i)) {
      vec.at(i)=1;
    }
    else {
      vec.at(i)=0;
    }
  }
  ans=0
  for (int i = 0; i < n; i++) {
    ans = ans + p.at(i);
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:8: error: expected ';' before 'for'
   18 |   ans=0
      |        ^
      |        ;
   19 |   for (int i = 0; i < n; i++) {
      |   ~~~   
a.cc:19:19: error: 'i' was not declared in this scope
   19 |   for (int i = 0; i < n; i++) {
      |                   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int n,ans;
char a[1000000],b[1000000];
int main(){
	gets(a);
	gets(b);
	int len=strlen(a);
	for(int i=0;i<len;i++){
		if(a[i]!=b[i]){
			ans++;
		}
	}
	cout<<ans;
}

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

#include<iostream>
using namespace std;
int main()
{
  String s,t;
  int count=0,i;
  cin>>s;
  cin>>t;
  for(i=0;i!='\0';i++)
  {
    if(s[i]!=t[i])
    {
      count++;
    }
  }
  cout<<count;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'String' was not declared in this scope
    5 |   String s,t;
      |   ^~~~~~
a.cc:7:8: error: 's' was not declared in this scope
    7 |   cin>>s;
      |        ^
a.cc:8:8: error: 't' was not declared in this scope
    8 |   cin>>t;
      |        ^
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[i] != T[i]){
      count++;
    }else{
      continue;
    }
  }
  cout << count << endl;
}

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:10: error: expected primary-expression before 'S'
    4 |   string S, T;
      |          ^
a.cc:4:10: error: expected '}' before 'S'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin >> S >> T;
      |   ^~~
a.cc:7:3: error: expected unqualified-id before 'for'
    7 |   for(int i = 0; i < S.size(); i++){
      |   ^~~
a.cc:7:18: error: 'i' does not name a type
    7 |   for(int i = 0; i < S.size(); i++){
      |                  ^
a.cc:7:32: error: 'i' does not name a type
    7 |   for(int i = 0; i < S.size(); i++){
      |                                ^
a.cc:14:3: error: 'cout' does not name a type
   14 |   cout << count << endl;
      |   ^~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include<iostream>
const int maxn = 1e6+7;
char a[maxn],b[maxn];
int main()
{
  using namespace std;
  cin>>a>>b;
  int ans=0;
  for(int i=0;i<strlen(a);i++)
  {
    if(a[i]!=b[i])
      ans++;
  }
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'strlen' was not declared in this scope
    9 |   for(int i=0;i<strlen(a);i++)
      |                 ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<iostream>
  +++ |+#include <cstring>
    2 | const int maxn = 1e6+7;
Language: C++

    #include<bits/stdc++.h>
#define mdw 1000000007
#define mdd 998244353
#define m18 1e18+1
#define ll long long 
#define forr(i,a,n) for(int i=a;i<n;i++)
#define forrll(i,a,n) for(long long i=a;i<n;i++)
#define forrlle(i,a,n) for(long long i=a;i<=n;i++)
#define forrllr(i,n,a) for(long long i=n-1;i>=a;i--)


int main()
{
   
    ios::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    
    ll t,q;
    // cin>>t;
      t=1;
    
    while(t--){

      string s,t1;
        cin>>s>>t1;
        ll c=0;
        forrll(i,0,s.size()){if(s[i]!=t1[i])c++;}
        cout<<c<<endll;
        
   }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: 'ios' has not been declared
   15 |     ios::sync_with_stdio(false);
      |     ^~~
a.cc:16:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   16 |     cin.tie(NULL);
      |     ^~~
      |     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:17:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |     cout.tie(NULL);
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:25:7: error: 'string' was not declared in this scope
   25 |       string s,t1;
      |       ^~~~~~
a.cc:25:7: 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:
/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:26:14: error: 's' was not declared in this scope
   26 |         cin>>s>>t1;
      |              ^
a.cc:26:17: error: 't1' was not declared in this scope; did you mean 't'?
   26 |         cin>>s>>t1;
      |                 ^~
      |                 t
a.cc:29:18: error: 'endll' was not declared in this scope
   29 |         cout<<c<<endll;
      |                  ^~~~~
Language: C++

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

#define _LL long long

int main()
{
    string s, t;
    cin >> s;
    cin >> t;

    int ans = 0;
    for( int i = 0; i < s.length(); ++)
    {
        if( s[i] != t[i] ) ans++;
    }

    cout << ans;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:39: error: expected primary-expression before ')' token
   14 |     for( int i = 0; i < s.length(); ++)
      |                                       ^
Language: C++

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


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

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

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

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

#include<bits/stdc++.h>

using namespace std;
 
/// ----------------------------- (Debug) ------------------------------
#define sim template < class c
#define ris return * this
#define dor > debug & operator <<
#define eni(x) sim > typename enable_if<sizeof dud<c>(0) x 1, debug&>::type operator<<(c i) {
sim > struct rge { c b, e; }; sim > rge<c> range(c i, c j) { return rge<c>{i, j}; }
sim > auto dud(c* x) -> decltype(cerr << *x, 0); sim > char dud(...);
struct debug {
#ifndef ONLINE_JUDGE
eni(!=) cerr << boolalpha << i; ris; }
eni(==) ris << range(begin(i), end(i));}
sim, class b dor(pair < b, c > d) {ris << "(" << d.first << ", " << d.second << ")";}
sim dor(rge<c> d) {*this << "["; for (auto it = d.b; it != d.e; ++it) *this << ", " + 2 * (it == d.b) << *it; ris << "]";}
#else
sim dor(const c&) { ris; }
#endif
};
vector<char*> tokenizer(const char* args) {
	char *token = new char[111]; strcpy(token, args); token = strtok(token, ", ");
	vector<char*> v({token});
	while(token = strtok(NULL,", ")) v.push_back(token);
	return reverse(v.begin(), v.end()), v;
}
void debugg(vector<char*> args) { cerr << "\b\b "; }
template <typename Head, typename... Tail>
void debugg(vector<char*> args, Head H, Tail... T) {
	debug() << " [" << args.back() << ": " << H << "] ";
	args.pop_back(); debugg(args, T...);
}
#define harg(...) #__VA_ARGS__
#ifndef ONLINE_JUDGE
#define dbg(...) { debugg(tokenizer(harg(__VA_ARGS__, \b\t-->Line)), __VA_ARGS__, __LINE__); cerr << endl;}
#else
#define dbg(...) { }
#endif
/// -----------------------------------------------------------------------
 
typedef long long ll;
typedef vector<int> vi;
typedef pair<int,int> pi;
typedef vector<pi> vpi; 
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0)    
#define F first
#define S second
#define PB push_back
#define EB emplace_back
#define MP make_pair
#define print(x) cout << x << "\n";
#define REP(i,a,b) for(i=a;i<=b;i++)
#define RAP(i,a,b) for(i=a;i>=b;i--)
#define spa <<" "<<
#define all(x) (x).begin(), (x).end()
#define sz(x) (int)x.size()
ll mod=998244353;
const int MX=0x3f3f3f3f;

int main(){
	IOS;
	int i;
	string s,t;
	cin>>s>>t;
	int ans=0;
	REP(i,0,sz(s)-1){
		if(s[i]!=t[i]) ans++;
	}
	cout<<ans
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:70:18: error: expected ';' before 'return'
   70 |         cout<<ans
      |                  ^
      |                  ;
   71 |         return 0;
      |         ~~~~~~
Language: C

#include<bits/stdc++.h>
using namespace std;
#define MOD 1000000007
#define PI 3.14159265
#define seive_len 1000001

bool seive[seive_len];
int primeSeive[seive_len];

typedef long long int lli;

lli gcd(lli a, lli b) {
  if(b == 0)
    return a;
  return gcd(b, a%b);
}

lli lcm(lli a, lli b) {
  lli gcd_ = gcd(a, b);
  lli lcm_ = (a*b)/gcd_;
  return lcm_;
}

lli fastPower(lli a, lli b) {
  lli res=1;
  while(b > 0) {
    if(b&1)
      res *= a;
    a *= a;
    b >>= 1;
  }
  return res;
}

lli fastPowerM(lli a, lli b, lli mod) {
  a %= mod;
  lli res = 1;
  while(b) {
    if(b%2 == 1)
      res = (res*a)%mod;
    a = (a*a)%mod;
    b >>= 1;
  }
  return res;
}

void multiply(lli a[][2], lli b[][2], int mod) {
  int res[2][2];
  memset(res, 0, sizeof(res));
  for(int i=0;i<2;i++) {
    for(int j=0;j<2;j++) {
      for(int k=0;k<2;k++) {
        res[i][j] += a[i][k]*b[k][j]%mod;
      }
    }
  }
  for(int i=0;i<2;i++)
    for(int j=0;j<2;j++)
      a[i][j] = res[i][j];
}

void matrixExpo(lli a[][2], lli n, int mod) {
  if(n == 0 || n == 1)
    return;
  lli b[][2] = {{1,1}, {1,0}};
  matrixExpo(a, n/2, mod);
  multiply(a, a, mod);
  if(n%2)
    multiply(a, b, mod);
}

void makeSeive() {
  for(int i=2;i*i<=seive_len;i++) {
    if(seive[i]) {
      for(int j=i*i;j<=seive_len;j+=i)
        seive[j] = false;
    }
  }
}

void makePrimeSeive() {
  for(int i=1;i<seive_len;i++)
    primeSeive[i] = i;
  for(int i=4;i<seive_len;i+=2)
    primeSeive[i] = 2;
  for(int i=3;i*i<seive_len;i++) {
    if(primeSeive[i] == i) {
      for(int j=i*i;j<seive_len;j+=i) {
        if(primeSeive[j] = j)
          primeSeive[j] = i;
      }
    }
  }
}

bool isPrime(lli n) {
  for(int i=2;i<=sqrt(n);i++) {
    if(n%i == 0)
      return false;
  }
  return true;
}

void getInput(vector<lli>& a, int n) {
  lli x;
  for(int i=0;i<n;i++) {
    cin >> x;
    a.push_back(x);
  }
}

void testCase() {
  lli i, n;
  string s, t;
  lli res = 0;
  cin >> s >> t;
  for(i=0;s[i];i++)
    if(s[i] != t[i])
      res++;
  cout << res;
}

int main() {
	int t=1;
	// cin >> t;
  // makePrimeSeive();
	while(t--) {
		testCase();
    cout << '\n';
	}
	return 0;
}


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

#include<bits/stdc++.h>
int main()
{
  String s,t;
  int count=0,i;
  cin>>s;
  cin>>t;
  for(i=0;i!='\0';i++)
  {
    if(s[i]!=t[i])
    {
      count++;
    }
  }
  cout<<count;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'String' was not declared in this scope
    4 |   String s,t;
      |   ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>s;
      |   ^~~
      |   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:8: error: 's' was not declared in this scope
    6 |   cin>>s;
      |        ^
a.cc:7:8: error: 't' was not declared in this scope
    7 |   cin>>t;
      |        ^
a.cc:15:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |   cout<<count;
      |   ^~~~
      |   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 <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)


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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: expected ',' or ';' before 'if'
   12 |   if(S==T){
      |   ^~
a.cc:15:3: error: 'else' without a previous 'if'
   15 |   else{
      |   ^~~~
a.cc:18:12: error: request for member 'at' in 'S', which is of non-class type 'int'
   18 |       if(S.at(i) != T.at(i)){
      |            ^~
a.cc:18:23: error: request for member 'at' in 'T', which is of non-class type 'int'
   18 |       if(S.at(i) != T.at(i)){
      |                       ^~
Language: C

#include<stdio.h>
#include<string.h>
#include<math.h>
int main(){
  char S[2*pow(10,5)],T[2*pow(10,5)];
  
  scanf("%s",S);
  scanf("%s",T);
  
  int cnt=0;
  
  for(int i=0;i<strlen(S);i++){
   if(S[i]!=T[i])
     cnt++;
  }
  
  printf("%d",cnt);
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:8: error: size of array 'S' has non-integer type
    5 |   char S[2*pow(10,5)],T[2*pow(10,5)];
      |        ^
main.c:5:23: error: size of array 'T' has non-integer type
    5 |   char S[2*pow(10,5)],T[2*pow(10,5)];
      |                       ^
Language: C++

#include<bits/stdc++.h>

using namespace std;
 
/// ----------------------------- (Debug) ------------------------------
#define sim template < class c
#define ris return * this
#define dor > debug & operator <<
#define eni(x) sim > typename enable_if<sizeof dud<c>(0) x 1, debug&>::type operator<<(c i) {
sim > struct rge { c b, e; }; sim > rge<c> range(c i, c j) { return rge<c>{i, j}; }
sim > auto dud(c* x) -> decltype(cerr << *x, 0); sim > char dud(...);
struct debug {
#ifndef ONLINE_JUDGE
eni(!=) cerr << boolalpha << i; ris; }
eni(==) ris << range(begin(i), end(i));}
sim, class b dor(pair < b, c > d) {ris << "(" << d.first << ", " << d.second << ")";}
sim dor(rge<c> d) {*this << "["; for (auto it = d.b; it != d.e; ++it) *this << ", " + 2 * (it == d.b) << *it; ris << "]";}
#else
sim dor(const c&) { ris; }
#endif
};
vector<char*> tokenizer(const char* args) {
	char *token = new char[111]; strcpy(token, args); token = strtok(token, ", ");
	vector<char*> v({token});
	while(token = strtok(NULL,", ")) v.push_back(token);
	return reverse(v.begin(), v.end()), v;
}
void debugg(vector<char*> args) { cerr << "\b\b "; }
template <typename Head, typename... Tail>
void debugg(vector<char*> args, Head H, Tail... T) {
	debug() << " [" << args.back() << ": " << H << "] ";
	args.pop_back(); debugg(args, T...);
}
#define harg(...) #__VA_ARGS__
#ifndef ONLINE_JUDGE
#define dbg(...) { debugg(tokenizer(harg(__VA_ARGS__, \b\t-->Line)), __VA_ARGS__, __LINE__); cerr << endl;}
#else
#define dbg(...) { }
#endif
/// -----------------------------------------------------------------------
 
typedef long long ll;
typedef vector<int> vi;
typedef pair<int,int> pi;
typedef vector<pi> vpi; 
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0)    
#define F first
#define S second
#define PB push_back
#define EB emplace_back
#define MP make_pair
#define print(x) cout << x << "\n";
#define REP(i,a,b) for(i=a;i<=b;i++)
#define RAP(i,a,b) for(i=a;i>=b;i--)
#define spa <<" "<<
#define all(x) (x).begin(), (x).end()
#define sz(x) (int)x.size()
ll mod=998244353;
const int MX=0x3f3f3f3f;

int main(){
	IOS;
	int i;
	string s,t;
	cin>>s>>t;
	int ans=0
	REP(i,0,sz(s)-1){
		if(s[i]!=t[i]) ans++;
	}
	cout<<ans
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:53:20: error: expected ',' or ';' before 'for'
   53 | #define REP(i,a,b) for(i=a;i<=b;i++)
      |                    ^~~
a.cc:67:9: note: in expansion of macro 'REP'
   67 |         REP(i,0,sz(s)-1){
      |         ^~~
a.cc:53:36: error: expected ';' before ')' token
   53 | #define REP(i,a,b) for(i=a;i<=b;i++)
      |                                    ^
a.cc:67:9: note: in expansion of macro 'REP'
   67 |         REP(i,0,sz(s)-1){
      |         ^~~
a.cc:70:18: error: expected ';' before 'return'
   70 |         cout<<ans
      |                  ^
      |                  ;
   71 |         return 0;
      |         ~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    4 |   char S[100].T[100];
      |              ^
main.c:4:14: error: expected expression before '.' token
main.c:5:14: error: 'S' undeclared (first use in this function)
    5 |   scanf("%s",S);
      |              ^
main.c:5:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:14: error: 'T' undeclared (first use in this function)
    6 |   scanf("%s",T);
      |              ^
Language: C++

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

    cout << a.size()-count<< endl;



Compiler output:
a.cc: In function 'int main()':
a.cc:12:35: error: expected '}' at end of input
   12 |     cout << a.size()-count<< endl;
      |                                   ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include<bi>ts/stdc++.h>
int main()
{
  String s,t;
  int count=0,i;
  cin>>s;
  cin>>t;
  for(i=0;i!='\0';i++)
  {
    if(s[i]!=t[i])
    {
      count++;
    }
  }
  cout<<count;
  return 0;
}

Compiler output:
a.cc:1:15: warning: extra tokens at end of #include directive
    1 | #include<bi>ts/stdc++.h>
      |               ^
a.cc:1:9: fatal error: bi>t: No such file or directory
    1 | #include<bi>ts/stdc++.h>
      |         ^~~~~~
compilation terminated.
Language: Java

import java.io.BufferedReader; 
import java.io.IOException; 
import java.io.InputStreamReader; 
import java.util.Scanner; 
import java.util.StringTokenizer; 
import java.util.*;
  
public class atb2b
{ 
    //By shwetank_verma
    static class FastReader 
    { 
        BufferedReader br; 
        StringTokenizer st; 
  
        public FastReader() 
        { 
            br = new BufferedReader(new
                     InputStreamReader(System.in)); 
        } 
  
        String next() 
        { 
            while (st == null || !st.hasMoreElements()) 
            { 
                try
                { 
                    st = new StringTokenizer(br.readLine()); 
                } 
                catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } 
            } 
            return st.nextToken(); 
        } 
  
        int nextInt() 
        { 
            return Integer.parseInt(next()); 
        } 
  
        long nextLong() 
        { 
            return Long.parseLong(next()); 
        } 
  
        double nextDouble() 
        { 
            return Double.parseDouble(next()); 
        } 
  
        String nextLine() 
        { 
            String str = ""; 
            try
            { 
                str = br.readLine(); 
            } 
            catch (IOException e) 
            { 
                e.printStackTrace(); 
            } 
            return str; 
        } 
    } 
    static int mod=1000000007;
    static boolean primes[]=new boolean[1000007];
    
    static boolean seive(int n){
        Arrays.fill(primes,true);
        primes[0]=primes[1]=false;
        for(int i=2;i*i<=n;i++){
            if(primes[i]==true){
                for(int p=i*i;p<=n;p+=i){
                    primes[p]=false;
                }
            }
        }
        if(n<1000007){
            return primes[n];
        }
        return false;
        
    }
    static int gcd(int a,int b){
        if(b==0)
        return a;
        return gcd(b,a%b);
    }
    static long GCD(long a,long b){
        if(b==0)
        return a;
        return GCD(b,a%b);
    }
    
  
    public static void main(String[] args) 
    { 
        FastReader sc=new FastReader(); 
        try{
           
                String s1=sc.next();
                String s2=sc.next();
                char ch1[]=s1.toCharArray();
                char ch2[]=s2.toCharArray();
                int cnt=0;
                for(int i=0;i<s1.length();i++) {
                    int val=Math.abs(ch1[i]-ch2[i]);
                    if(val!=0)
                    	cnt++;
                }
               System.out.println(cnt);
            
        }catch(Exception e){
            return;
        }
    } 
}



Compiler output:
Main.java:8: error: class atb2b is public, should be declared in a file named atb2b.java
public class atb2b
       ^
1 error
Language: C

#include <stdio.h>
int main(void){
  int i,c=0;
  char a,b;
  scanf("%s",&a);
  scanf("%s",&b);
  
  for(i=0;a[i]=='\0';i++){
    if(a[i] != b[i])c++;
  }
  print("%d",c);
}

Compiler output:
main.c: In function 'main':
main.c:8:12: error: subscripted value is neither array nor pointer nor vector
    8 |   for(i=0;a[i]=='\0';i++){
      |            ^
main.c:9:9: error: subscripted value is neither array nor pointer nor vector
    9 |     if(a[i] != b[i])c++;
      |         ^
main.c:9:17: error: subscripted value is neither array nor pointer nor vector
    9 |     if(a[i] != b[i])c++;
      |                 ^
main.c:11:3: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   11 |   print("%d",c);
      |   ^~~~~
      |   printf
Language: Java

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: 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 '()' ?)
   10 |   rep(i,s.size){
      |         ~~^~~~
a.cc:3:33: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int i=0; i<n; i++)
      |                                 ^
Language: C++

/**
**	author : Raghav
**	codechef:raghav_456
**	codeforces:raghavramola7
**/
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#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 int             long long int
#define pb              push_back
#define mp              make_pair
#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 inf             1e18
#define ps(x,y)         fixed<<setprecision(y)<<x
#define mk(arr,n,type)  type *arr=new type[n];
#define w(x)            int x; cin>>x; while(x--)
mt19937                 rng(chrono::steady_clock::now().time_since_epoch().count());

typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> pbds;


void Raghav()
{
	ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#ifndef ONLINE_JUDGE
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif
}
//int x = 1e6;
int a[1000000];
bool isPrime(int n)
{
	for (int i = 2; i <= sqrt(n) + 1; i++)
	{
		if (n % i == 0 && i != n)
		{
			return false;
		}
	}
	return true;
}
int32_t main()
{
	Raghav();
	string s1,s2;
	cin>>s1;
	cin>>s2;
	int ans=0;
	for(int i=0;i<s1.length;i++)
	{
		if(s1[i]!=s2[i])
			ans++;
	}
	cout<<ans;
	return 0;
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:63:26: 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 '()' ?)
   63 |         for(int i=0;i<s1.length;i++)
      |                       ~~~^~~~~~
      |                                ()
Language: Java

import java.util.*;
import java.io.*;
import java.lang.*;
 
public class Test {

  static class FastReader {

    BufferedReader br; 
    StringTokenizer st; 

    public FastReader() { 
      br = new BufferedReader(new InputStreamReader(System.in)); 
    } 

    String next() { 
      while (st == null || !st.hasMoreElements()) { 
        try { 
          st = new StringTokenizer(br.readLine()); 
        } catch (IOException e) { 
          e.printStackTrace(); 
        } 
      } 
      return st.nextToken(); 
    } 

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

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

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

    String nextLine() { 
      String str = ""; 
      try { 
        str = br.readLine(); 
      } catch (IOException e) { 
        e.printStackTrace(); 
      } 
      return str; 
    } 
  }
 
  public static void main(String args[]) throws IOException {
    
    // try {
    //   FileOutputStream output = new FileOutputStream("temp.out");
    //   PrintStream out = new PrintStream(output);
    //   //Diverting the output stream into file "temp.out".Comment the below line to use console
    //   System.setOut(out);
  
    //   InputStream input = new FileInputStream("temp.in");
    //   //Diverting the input stream into file "temp.in".Comment the below line to use console
    //   System.setIn(input);
  
    // } catch (FileNotFoundException e) {
    //   e.printStackTrace();
    // }
  
    FastReader sc = new FastReader();
    PrintWriter wr = new PrintWriter(System.out);
 
    // int t = 1;
    // t = sc.nextInt();    //Comment this line if there is single test case
    
    // while((t--) != 0) {


      
    // }

    String s = sc.nextLine();
    String t = sc.nextLine();

    int count = 0;

    for(int i = 0; i < s.length(); i++) {
      
      if(s.charAt(i) != t.charAt(i))
        count++;
    }

    wr.println(count);




    // while((t--) != 0) {
      
    //   int n = sc.nextInt();
      
    //   int result = (int)(Math.log(n) / Math.log(2));
      
    //   wr.println(result+1);
      
    // }
    // How to calculate log base 2 in java
    wr.flush();
    wr.close();
  }
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'ln' was not declared in this scope; did you mean 'len'?
    7 |   for(int i=0;i<ln;i++)
      |                 ^~
      |                 len
Language: C

#include <bits/stdc++.h> //g++-9で実行（gcc version 9.3.0），g++だとデフォルトのclang

using namespace std;

//#define int long long                         //intでオーバフローした時の切り替え用
#define OUT(x) std::cout << x << std::endl
#define DEBUG(x) cerr << #x << ": " << x << endl //エラー出力として変数名と変数の中身表示
#define DEBUG_VEC(v)                   \
    cerr << #v << ":";                 \
    for (int i = 0; i < v.size(); i++) \
        cerr << " " << v[i];           \
    cerr << endl;
#define DEBUG_MAT(v)                          \
    cerr << #v << endl;                       \
    for (int i = 0; i < v.size(); i++)        \
    {                                         \
        for (int j = 0; j < v[i].size(); j++) \
        {                                     \
            cerr << v[i][j] << " ";           \
        }                                     \
        cerr << endl;                         \
    }
#define Sp(p) cout << setprecision(25) << fixed << p << endl; //小数点以下を25桁で表示
#define all(obj) (obj).begin(), (obj).end()
#define pb push_back

//usingエイリアス（別名という意味，型定義のこと）
using ll = long long;
//template <class T> using Vec = std::vector<T>;//エイリアステンプレート

const ll MOD = (ll)1e9 + 7;
//const ll MOD = 998244353;あ
const ll INF = (ll)1e18 + 1;
const double EPS = 1e-9;
const long double pi = 3.1415926535897932384626433832795028841971L;

//マクロでintをlong longと定義したときはsinged
int main()
{
    cin.tie(0);                  //cinとcoutの同期を切る（高速化)
    ios::sync_with_stdio(false); //iostreamとstdioの同期を切る（高速化)

    string s,t;
    cin >> s >>t ;
    int num=0;
    for (int i=0;i<s.length();i++) if(s[i] != t[i]) {num++;};
    OUT(num);
    return 0;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h> //g++-9で実行（gcc version 9.3.0），g++だとデフォルトのclang
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'String' was not declared in this scope
    6 |   String s,t;
      |   ^~~~~~
a.cc:7:10: error: 's' was not declared in this scope
    7 |   cin >> s >> t;
      |          ^
a.cc:7:15: error: 't' was not declared in this scope; did you mean 'tm'?
    7 |   cin >> s >> t;
      |               ^
      |               tm
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: redeclaration of 'int ans'
    8 |   int x=a.size(),ans=0;
      |                  ^~~
a.cc:6:7: note: 'int ans' previously declared here
    6 |   int ans=0;
      |       ^~~
Language: Java



import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;

public class Minimise {
    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

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

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

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

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }

    public static void main(String[] args) {
        FastReader in = new FastReader();
        String s = in.nextLine();
        String t = in.nextLine();
        int count = 0;
        for (int i=0;i<s.length();i++){
            if(s.charAt(i)!=t.charAt(i))
                count++;
        }
        System.out.println(count);
    }
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'string' was not declared in this scope
    4 |         string s,t;
      |         ^~~~~~
a.cc:4:9: 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:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         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:5:14: error: 's' was not declared in this scope
    5 |         cin>>s>>t;
      |              ^
a.cc:5:17: error: 't' was not declared in this scope; did you mean 'tm'?
    5 |         cin>>s>>t;
      |                 ^
      |                 tm
a.cc:15:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |         cout<<b<<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:15:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |         cout<<b<<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;
  int ct=0,i,j;
  n=s.length();
  for(i=0;i<n;i++){
    if(s[i]!=t[i])
      ct++;
  }
  cout<<ct<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'n' was not declared in this scope
    6 |   n=s.length();
      |   ^
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[i] != T[i]){
      count++;
    }else{
      continue;
    }
  }
}

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:10: error: expected primary-expression before 'S'
    4 |   string S, T;
      |          ^
a.cc:4:10: error: expected '}' before 'S'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin >> S >> T;
      |   ^~~
a.cc:7:3: error: expected unqualified-id before 'for'
    7 |   for(int i = 0; i < S.size(); i++){
      |   ^~~
a.cc:7:18: error: 'i' does not name a type
    7 |   for(int i = 0; i < S.size(); i++){
      |                  ^
a.cc:7:32: error: 'i' does not name a type
    7 |   for(int i = 0; i < S.size(); i++){
      |                                ^
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C

#include <stdio.h>

#define MAX 200001

int main()
{
  char s[MAX];
  char t[MAX];
  int count=0, k;
  
  scanf("%s",s);
  scanf("%s",t);
  k=strlen(s)-1;
  
  while(k>0){
    if(s[k]!=t[k])
      count++;
    k--;
  }
  
  printf("%d\n",sum);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:5: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
   13 |   k=strlen(s)-1;
      |     ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strlen'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | 
main.c:13:5: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
   13 |   k=strlen(s)-1;
      |     ^~~~~~
main.c:13:5: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:21:17: error: 'sum' undeclared (first use in this function)
   21 |   printf("%d\n",sum);
      |                 ^~~
main.c:21:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:5: error: implicit declaration of function 'len' [-Wimplicit-function-declaration]
    8 | l = len(s);
      |     ^~~
main.c:10:14: warning: comparison between pointer and integer
   10 | for(int i=0;i<len;i++){
      |              ^
main.c:11:5: error: subscripted value is neither array nor pointer nor vector
   11 | if(s[i]!=t[i])count++;
      |     ^
main.c:11:11: error: subscripted value is neither array nor pointer nor vector
   11 | if(s[i]!=t[i])count++;
      |           ^
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.length(); i++)
    {
        if(s[i] != t[i])
            count++;
    }
    cout<<
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:1: error: expected primary-expression before '}' token
   16 | }
      | ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:27: error: request for member 'length' in 's', which is of non-class type 'long long int'
   10 |     for(int i = 0; i  < s.length(); i++)    {
      |                           ^~~~~~
a.cc:11:13: error: invalid types 'long long int[int]' for array subscript
   11 |         if(s[i] != t[i])    {
      |             ^
a.cc:11:21: error: invalid types 'long long int[int]' for array subscript
   11 |         if(s[i] != t[i])    {
      |                     ^
Language: C++

#include <cstdio>

using namespace std;

const int NMAX=2e5+1;

char s[NMAX],t[NMAX];

int main()
{
	scanf("%s%s",s,t);
    int n=strlen(s);
    int cnt=0;
    for(int i=0;i<n;i++)
    {
    	if(s[i]!=t[i])
        	cnt++;
    }
    printf("%d\n",cnt);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: 'strlen' was not declared in this scope
   12 |     int n=strlen(s);
      |           ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <cstdio>
  +++ |+#include <cstring>
    2 |