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

include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
    string s,k;
    cin>>s>>k;
    int c=0;
    for(int i=0; i<s.size(); i++){
        if(s[i]!=k[i])c++;
    }
    cout<<c<<endl;

}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'string' was not declared in this scope
    6 |     string s,k;
      |     ^~~~~~
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin>>s>>k;
      |     ^~~
a.cc:7:10: error: 's' was not declared in this scope
    7 |     cin>>s>>k;
      |          ^
a.cc:7:13: error: 'k' was not declared in this scope
    7 |     cin>>s>>k;
      |             ^
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout<<c<<endl;
      |     ^~~~
a.cc:12:14: error: 'endl' was not declared in this scope
   12 |     cout<<c<<endl;
      |              ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
    string s,t; cin >> s >> t;
    int n=int(len(s));
    int ans=0;
    for(int i=0; i<n; i++) if(s[i]!=t[i]) ans++;
    cout << ans << "\n";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 'len' was not declared in this scope
    5 |     int n=int(len(s));
      |               ^~~
Language: C++

#include <iostream>
#include <string>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin >> s >> t;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

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

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

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

int main()
{
	string S, T;
	cin >> S >> T;

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

	cout << cnt;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:31: 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 '()' ?)
   12 |         for (int i = 0; i < S.length; ++i)
      |                             ~~^~~~~~
      |                                     ()
Language: C++

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

int main(int argc, char const *argv[])
{
  	int a = 0;
	string s, string t;
  	cin >> s >> t;
  	for(int i = 0; i < s.length(); i++)
    {
		a += (s[i] != t[i]);
    }
  
  	cout << a;
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:8:26: error: expected initializer before 't'
    8 |         string s, string t;
      |                          ^
a.cc:9:21: error: 't' was not declared in this scope
    9 |         cin >> s >> t;
      |                     ^
Language: C

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

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

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


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>

using namespace std;

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 ;

    return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string A;
  string B;
  long long count=0;
  long long N=A.size();
  for(long long i=0,i<N,i++){
    if(A.at(i)==B.at(i)){
      count++;
    }
  }
  cout << count;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected ';' before '<' token
    9 |   for(long long i=0,i<N,i++){
      |                      ^
      |                      ;
a.cc:9:22: error: expected primary-expression before '<' token
a.cc:9:28: error: expected ';' before ')' token
    9 |   for(long long i=0,i<N,i++){
      |                            ^
      |                            ;
Language: C++

#include <iostream>
#include<string>

using namespace std;

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

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:27: error: expected ';' before ')' token
   10 |     for(int i=0;i<S.size());i++){
      |                           ^
      |                           ;
a.cc:10:29: error: 'i' was not declared in this scope
   10 |     for(int i=0;i<S.size());i++){
      |                             ^
Language: C++

#include<iostream>
#include <cstring>
using namespace std;
int main() {
    int a = 0, b = 0;
    char S[200000] , T[200000];
    cin >> S; cin >> T;
    for (int i = 0; i <= strlen(S); i++){
        if (S[i] == T[i]) b++;
        else a++;
    if (0 == a && 0==b ) cout << b;
    else  cout << a;
    return 0;
}

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

#include <iostream>
#include <string>
#include <vector>
#include<algorithm>
#include<math.h>
#include<stdio.h>


int main()
{
	std::string n, k;
	std::cin >> n >> k;
	int kosuu;
	for (int i = 0; i < n.length; i++) {
		if (n[i] != k[i])
		{
			kosuu++;
		}
	}std::cout << kosuu << std::endl;
	
	
}

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

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


Compiler output:
main.c: In function 'main':
main.c:7:17: error: expected ';' before 'i'
    7 |   scanf("%s",&t)
      |                 ^
      |                 ;
    8 |   i=0;
      |   ~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:7:13: error: invalid operands to binary & (have 'char *' and 'int')
    7 |   scanf("%s"&s[i])
      |         ~~~~^~~~~
      |         |     |
      |         |     char
      |         char *
main.c:7:19: error: expected ';' before '}' token
    7 |   scanf("%s"&s[i])
      |                   ^
      |                   ;
    8 |   }
      |   ~                
main.c:11:15: error: expected ')' before 't'
   11 |     scanf("%s"t[i]);
      |          ~    ^
      |               )
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:7:13: error: invalid operands to binary & (have 'char *' and 'int')
    7 |   scanf("%s"&s[i]);
      |         ~~~~^~~~~
      |         |     |
      |         |     char
      |         char *
main.c:11:15: error: invalid operands to binary & (have 'char *' and 'int')
   11 |     scanf("%s"&t[i]);
      |           ~~~~^~~~~
      |           |     |
      |           |     char
      |           char *
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:13: error: subscripted value is neither array nor pointer nor vector
    7 |   if(s[0]!=k[0]){
      |             ^
Language: C++

#include<iostream>
using namespace std;
int main() {
    int x = 0, z = 0;
    char S[19999];
    char T[19999];
    cin >> S;
    cin >> T;
    for (int i = 0; i <= strlen(S); i++) {
        if (S[i] == T[i])
        {
            z++;
        }
        else
        {
            x++;
        }
    }
    if (0 == z)
    {cout << z<< endl;
}
    else { cout << x; }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: 'strlen' was not declared in this scope
    9 |     for (int i = 0; i <= strlen(S); 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 | using namespace std;
Language: C++

#include<iostream>
using namespace std;
int main() {
    int x = 0, z = 0;
    char S[200000];
    char T[200000];
    cin >> S;
    cin >> T;
    for (int i = 0; i <= strlen(S); i++) {
        if (S[i] == T[i])
        {
            z++;
        }
        else
        {
            x++;
        }
    }
    if (0 == z)
    {cout << z<< endl;
    }
    else { cout << x; }

    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: 'strlen' was not declared in this scope
    9 |     for (int i = 0; i <= strlen(S); 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 | using namespace std;
Language: Java

import java.util.Scanner;
public class main {

    public static void main(String[] args)
    {
        Scanner read = new Scanner(System.in);
        String s1 =read.next() , s2=read.next();
        int count=0;
        for (int i=0 ; i<s1.length() ; i++)
        {
            if (s1.charAt(i) == s2.charAt(i))
            {
                continue;
            }
            else {
                 count++;
             }
        }
        System.out.println(count);
    }
}

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

import java.util.Scanner;
public class Ahmed {

    public static void main(String[] args)
    {
        Scanner read = new Scanner(System.in);
        String s1 =read.next() , s2=read.next();
        int count=0;
        for (int i=0 ; i<s1.length() ; i++)
        {
            if (s1.charAt(i) == s2.charAt(i))
            {
                continue;
            }
            else {
                 count++;
             }
        }
        System.out.println(count);
    }
}

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

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
      	
        //sec--1
        String S = sc.nextLine();
        String T = sc.nextLine();
        S.length <= 2*100000;
        T.length <= 2*100000;
        S.length = T.length;
        int cnt = 0;
      
        //sec--2
        for(int i=0; i<S.length; i++) {
          if(S[i].equals(T[i]){
            break;
          } else {
            S[i] == T[i];
            cnt++;
          }
        }
      	
        System.out.println(cnt);
   }
}

Compiler output:
Main.java:10: error: not a statement
        S.length <= 2*100000;
                 ^
Main.java:11: error: not a statement
        T.length <= 2*100000;
                 ^
Main.java:17: error: ')' expected
          if(S[i].equals(T[i]){
                              ^
Main.java:20: error: not a statement
            S[i] == T[i];
                 ^
4 errors
Language: C++

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

int main()
{
    ios::sync_with_stdio(0);
    cin.tie(0); cout.tie(0);
    string s, t; cin >> s >> t;
    vector<int > v;
    for (int i = 0; i < s.size(); i++) if (s[i] != t[i]) v.push_back(i));
    int ans = v.size();
    cout << ans << '\n';
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:72: error: expected ';' before ')' token
   10 |     for (int i = 0; i < s.size(); i++) if (s[i] != t[i]) v.push_back(i));
      |                                                                        ^
      |                                                                        ;
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.size() ;i++)
   {
       if(a[i] != b[i]) ans++ ;
   }

      cout << ans ;

    return 0;
}


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'cin'
    7 |   cin >> s >> t;
      |   ^~~
a.cc:11:23: error: 't' was not declared in this scope
   11 |         if(s.at(i) != t.at(i)) diff++;
      |                       ^
Language: C

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

int main(){
	char x[200000], y[200000];
	scanf("%s %s",&x,&y);
	int len
	len=strlen(x);
	int z=0;
	for(int i=0; i<len; i++){
		if(x[i]!=y[i]) z++;
	}
	printf("%d",z);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'len'
    8 |         len=strlen(x);
      |         ^~~
main.c:8:9: error: 'len' undeclared (first use in this function)
main.c:8:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<bits/stdc++.h>

using namespace std;

#define pb emplace_back
#define fi first
#define se second
#define all(x) (x).begin(), (x).end()
#define ll long long
#define pii pair<int, int>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:17:17: error: 't' was not declared in this scope; did you mean 'yt'?
   17 |     cin >> s >> t;
      |                 ^
      |                 yt
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: expected ']' before ')' token
   11 |     if(s[i]!=t[i)
      |                 ^
      |                 ]
a.cc:12:6: error: 'm' was not declared in this scope
   12 |      m++;
      |      ^
a.cc:14:11: error: 'm' was not declared in this scope
   14 |     cout<<m;
      |           ^
Language: C++

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

Compiler output:
a.cc: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>
using namespace std;
using ll = long long;

int main() {
	ios::sync_with_stdio(false);
	cin.tie(0);

  	int ans = 0;
	string s, t;
	cin >> s >> t;
	vector<int> v1((int)s.length(), 0), v2((int)t.length(), 0);
	for(char c : s) {
    	v1[c - 'a']++;
    }
	for(char c : t) {
    	v2[c - 'a']++;
    }
	for(int i = 0; i < 25; i++) {
		if(v1[i] < v2[i]) {
        	ans++'
        }
    }

	cout << ans;
	return 0;
}

Compiler output:
a.cc:21:22: warning: missing terminating ' character
   21 |                 ans++'
      |                      ^
a.cc:21:22: error: missing terminating ' character
a.cc: In function 'int main()':
a.cc:21:22: error: expected ';' before '}' token
   21 |                 ans++'
      |                      ^
      |                      ;
   22 |         }
      |         ~
Language: C++

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

Compiler output:
a.cc: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>
using namespace std;
int main(){
char s[100006],t[100006];
cin>>s>>t;
int l,c=0,i;
l=strlen(s);
for(i=0;i<l;i++)
{
if(s[i]!=t[i]
c++;
}
cout<<c<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: expected ';' before 'c'
   10 | if(s[i]!=t[i]
      |              ^
      |              ;
   11 | c++;
      | ~             
a.cc:12:1: error: expected primary-expression before '}' token
   12 | }
      | ^
a.cc:11:5: error: expected ')' before '}' token
   11 | c++;
      |     ^
      |     )
   12 | }
      | ~    
a.cc:10:3: note: to match this '('
   10 | if(s[i]!=t[i]
      |   ^
a.cc:12:1: error: expected primary-expression before '}' token
   12 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected ')' before '!' token
    9 |     if(S[i] ! = T[i]) ++ans;
      |       ~    ^~
      |            )
Language: C++

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

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

#include <bits/stdc++.h>
#include <math.h>
#define lli long long int

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'n' was not declared in this scope
   10 |         n=s.size();
      |         ^
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:7:11: note: to match this '{'
    7 | int main(){
      |           ^
Language: C++

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

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

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

#include<stdio.h>

int main(){
  int count=0;
  int c;
  char buf[200000];
  gets(buf);
  while(c = getchar())
  {
  	if (c != *buf) count++;
    buf++;
  }
}

Compiler output:
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    7 |   gets(buf);
      |   ^~~~
      |   fgets
main.c:11:8: error: lvalue required as increment operand
   11 |     buf++;
      |        ^~
Language: C++

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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:9: error: 'string' was not declared in this scope
    7 |         string a, b;
      |         ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #inlcude<bits/stdc++.h>
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin >> a >> b;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlcude<bits/stdc++.h>
a.cc:8:16: error: 'a' was not declared in this scope
    8 |         cin >> a >> b;
      |                ^
a.cc:8:21: error: 'b' was not declared in this scope
    8 |         cin >> a >> b;
      |                     ^
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout << count << endl;
      |         ^~~~
a.cc:15:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:26: error: 'endl' was not declared in this scope
   15 |         cout << count << endl;
      |                          ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inlcude<bits/stdc++.h>
Language: C++

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:37: error: expected primary-expression before '}' token
    7 |   for(int i=0;i<(int)s.length();i++)}{
      |                                     ^
a.cc: At global scope:
a.cc:7:38: error: expected unqualified-id before '{' token
    7 |   for(int i=0;i<(int)s.length();i++)}{
      |                                      ^
a.cc:10:1: error: 'cout' does not name a type
   10 | cout<<cnt;
      | ^~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

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

int main(){
  string S,T;
  cin >> S >> T;
  int count;
  for(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:8:7: error: 'i' was not declared in this scope
    8 |   for(i=0; i<S.size(); i++){
      |       ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: 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 '()' ?)
    6 |   for(int i=0;i<s.size;i++){
      |                 ~~^~~~
      |                       ()
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  string s,t;
  int count=s.size();
  int n=s.size()+1
  for(int i=0;i<n;i++){
    if(s.at(i)==t.at(i)){
      count = count-1;
    }
  }
  cout << count << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
int main(){
  string s,t;
  int count=s.size();
  for(int i=0;i<n;i++){
    if(s.at(i)==t.at(i)){
      count = count-1;
    }
  }
  cout << count << endl;
}

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

#include <iostream>
using namespace std;
int main(){
  string S,T;
  cin>>S;
  cin>>T;
  int count=0;
  n=S.length();
  for(int i=0;i<n;i++){
    if(S[i]!=T[i])
    {
      int temp=S[i];
      S[i]=T[i];
      T[i]=temp;
      count++;
    }
  }
  cout<<count;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'n' was not declared in this scope
    8 |   n=S.length();
      |   ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
    7 |   int x=strlen(s);
      |                ^
      |                |
      |                std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
    7 |   int x=strlen(s);
      |                ^
      |                |
      |                std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
a.cc:9:10: error: 'i' was not declared in this scope
    9 |     if(s[i]!=t[i])
      |          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int i=0,c=0,x=0;
char ch[200],d[200];
  while(cin>>ch[i])
    c++;
}for(i=0;i<=c;i++){
  cin>>d[i];
  if(d[i]!=ch[i])
    x++;
}cout<<x;
return 0;
}

Compiler output:
a.cc:8:2: error: expected unqualified-id before 'for'
    8 | }for(i=0;i<=c;i++){
      |  ^~~
a.cc:8:10: error: 'i' does not name a type
    8 | }for(i=0;i<=c;i++){
      |          ^
a.cc:8:15: error: 'i' does not name a type
    8 | }for(i=0;i<=c;i++){
      |               ^
a.cc:12:2: error: 'cout' does not name a type
   12 | }cout<<x;
      |  ^~~~
a.cc:13:1: error: expected unqualified-id before 'return'
   13 | return 0;
      | ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int i=0,c=0,x=0;
char c[200],d[200];
  while(cin>>c[i])
    c++;
}for(i=0;i<=c;i++){
  cin>>d[i];
  if(d[i]!=c[i])
    x++;
}cout<<x;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: conflicting declaration 'char c [200]'
    5 | char c[200],d[200];
      |      ^
a.cc:4:11: note: previous declaration as 'int c'
    4 |   int i=0,c=0,x=0;
      |           ^
a.cc:6:15: error: invalid types 'int[int]' for array subscript
    6 |   while(cin>>c[i])
      |               ^
a.cc: At global scope:
a.cc:8:2: error: expected unqualified-id before 'for'
    8 | }for(i=0;i<=c;i++){
      |  ^~~
a.cc:8:10: error: 'i' does not name a type
    8 | }for(i=0;i<=c;i++){
      |          ^
a.cc:8:15: error: 'i' does not name a type
    8 | }for(i=0;i<=c;i++){
      |               ^
a.cc:12:2: error: 'cout' does not name a type
   12 | }cout<<x;
      |  ^~~~
a.cc:13:1: error: expected unqualified-id before 'return'
   13 | return 0;
      | ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
    8 |   x=strlen(s);
      |            ^
      |            |
      |            std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int i=0,c=0,x;
string s,t;
  gets(s);
  gets(t);
  x=strlen(s);
  while(x--){
    if(s[i]!=t[i])
      c++;
 i++;
  }cout<<c;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'gets' was not declared in this scope; did you mean 'getw'?
    6 |   gets(s);
      |   ^~~~
      |   getw
a.cc:8:12: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
    8 |   x=strlen(s);
      |            ^
      |            |
      |            std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:15:21: error: expected '}' at end of input
   15 |         cout << ans;
      |                     ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  string s,t;
  int count=0;
  int n=s.size()
  for(int i=0;i<n;i++){
    if(s.at(i)!=s.at(i)){
      count = count+1;
    }
  }
  cout << count << endl;
}

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

#inclde <bits/stdc++.h>
using namespace std;
int main(){
  string s,t;
  int count=0;
  int n=s.size()
  for(int i=0;i<n;i++){
    if(s.at(i)!=s.at(i)){
      count = count+1;
    }
  }
  cout << count << endl;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclde; did you mean #include?
    1 | #inclde <bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string s,t;
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #inclde <bits/stdc++.h>
a.cc:6:9: error: 's' was not declared in this scope
    6 |   int n=s.size()
      |         ^
a.cc:7:15: error: 'i' was not declared in this scope
    7 |   for(int i=0;i<n;i++){
      |               ^
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout << count << endl;
      |   ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclde <bits/stdc++.h>
a.cc:12:20: error: 'endl' was not declared in this scope
   12 |   cout << count << endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inclde <bits/stdc++.h>
Language: C++

#include <iostream>                                                                          
using namespace std;                                                                         
                                                                                             
int mirror_change(char* S,char* T);                                                          
                                                                                             
int main(){                                                                                  
    char S[200000], T[200000] ;                                                              
                                                                                             
    cin >> S >> T;                                                                           
    cout << mirror_change(S,T);                                                              
                                                                                             
}                                                                                            
                                                                                             
int mirror_change(char* S, char* T){                                                         
    int count = 0;                                                                           
                                                                      int count = 0  count   
    for(int i=0;i<20000;i++){                                                                
        if (S[i] != T[i])count++;                                                            
    }                                                                                        
        return count;                                                                        
} 

Compiler output:
a.cc: In function 'int mirror_change(char*, char*)':
a.cc:16:75: error: redeclaration of 'int count'
   16 |                                                                       int count = 0  count
      |                                                                           ^~~~~
a.cc:15:9: note: 'int count' previously declared here
   15 |     int count = 0;
      |         ^~~~~
a.cc:17:17: error: 'i' was not declared in this scope
   17 |     for(int i=0;i<20000;i++){
      |                 ^
Language: C

#include<stdio.h>

#define MAX 200000

int main()
{
	int i = 0, n;
  	char S[MAX], T[MAX];
  
  	scanf("%s", S);
  	scanf("%s", T);
	while(T[i] !='\0'){
    	if(T[i] != S[i]
           n++;
       	i++;  
    }

    printf("%d", n);
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:24: error: expected ')' before 'n'
   13 |         if(T[i] != S[i]
      |           ~            ^
      |                        )
   14 |            n++;
      |            ~            
main.c:16:5: error: expected expression before '}' token
   16 |     }
      |     ^
Language: C

#include<stdio.h>

#define MAX 200000

int main()
{
	int i = 0, n;
  	char S[MAX], T[MAX];
  
  	scanf("%s", S);
  	scanf("%s", T);
	while(T[i] !='\0'){
    	if(T[i] != S[i];
           n++;
       	i++;  
    }

    printf("%d", &n)
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:24: error: expected ')' before ';' token
   13 |         if(T[i] != S[i];
      |           ~            ^
      |                        )
main.c:16:5: error: expected expression before '}' token
   16 |     }
      |     ^
main.c:18:21: error: expected ';' before 'return'
   18 |     printf("%d", &n)
      |                     ^
      |                     ;
   19 |         return 0;
      |         ~~~~~~
Language: C

#include<stdio.h>

#define MAX 2e10

int main()
{
	int i = 0, n;
  	char S[MAX], T[MAX];
  
  	scanf("%s", S);
  	scanf("%s", T);
	while(T[i] !='\0'){
    	if(T[i] != S[i];
           n++;
       	i++;  
    }

    printf("%d", &n)
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:14: error: size of array 'S' has non-integer type
    8 |         char S[MAX], T[MAX];
      |              ^
main.c:8:22: error: size of array 'T' has non-integer type
    8 |         char S[MAX], T[MAX];
      |                      ^
main.c:13:24: error: expected ')' before ';' token
   13 |         if(T[i] != S[i];
      |           ~            ^
      |                        )
main.c:16:5: error: expected expression before '}' token
   16 |     }
      |     ^
main.c:18:21: error: expected ';' before 'return'
   18 |     printf("%d", &n)
      |                     ^
      |                     ;
   19 |         return 0;
      |         ~~~~~~
Language: C

#include<stdio.h>

#define MAX 200000

int main()
{
	int i = 0, n;
  	char S[MAX], T[MAX];
  
  	scanf("%s", &S);
  	scanf("%s", &T);
	while(T[i] !='\0'){
    	if(T[i] != S[i];
           n++;
       	i++;  
    }

    printf("%d", &n)
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:24: error: expected ')' before ';' token
   13 |         if(T[i] != S[i];
      |           ~            ^
      |                        )
main.c:16:5: error: expected expression before '}' token
   16 |     }
      |     ^
main.c:18:21: error: expected ';' before 'return'
   18 |     printf("%d", &n)
      |                     ^
      |                     ;
   19 |         return 0;
      |         ~~~~~~
Language: C

#include<stdio.h>

#define MAX 2e10

int main()
{
	int i = 0, n;
  	char S[MAX], T[MAX];
  
  	scanf("%s", &S);
  	scanf("%s", &T);
	while(T[i] !='\0'){
    	if(T[i] != S[i];
           n++;
       	i++;  
    }

    printf("%d", &n)
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:14: error: size of array 'S' has non-integer type
    8 |         char S[MAX], T[MAX];
      |              ^
main.c:8:22: error: size of array 'T' has non-integer type
    8 |         char S[MAX], T[MAX];
      |                      ^
main.c:13:24: error: expected ')' before ';' token
   13 |         if(T[i] != S[i];
      |           ~            ^
      |                        )
main.c:16:5: error: expected expression before '}' token
   16 |     }
      |     ^
main.c:18:21: error: expected ';' before 'return'
   18 |     printf("%d", &n)
      |                     ^
      |                     ;
   19 |         return 0;
      |         ~~~~~~
Language: C++

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

int main() {
    string s, t;
    cin >> s >> t;
    int size = s.size();
    int tot = 0;
    for (int i = 0; i <= size - 1; i++) {
        if (s[i] != t[i]) {
            tot++;
        }
    }
    cout << tot << '\n';
    return
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: request for member 'size' in 's', which is of non-class type 'int'
    6 |   int n=s.size(),ans=0;
      |           ^~~~
a.cc:8:9: error: invalid types 'int[int]' for array subscript
    8 |     if(s[i]!=t[i]) ++ans;
      |         ^
a.cc:8:15: error: invalid types 'int[int]' for array subscript
    8 |     if(s[i]!=t[i]) ++ans;
      |               ^
a.cc:8:22: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |     if(s[i]!=t[i]) ++ans;
      |                      ^~~
      |                      abs
a.cc:9:14: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |       }cout<<ans<<endl;
      |              ^~~
      |              abs
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc:5:1: error: extended character 　 is not valid in an identifier
    5 | 　string S, T;
      | ^
a.cc:6:1: error: extended character 　 is not valid in an identifier
    6 | 　 cin >> S >> T;
      | ^
a.cc:7:1: error: extended character 　 is not valid in an identifier
    7 | 　 int N = S.size(), ans = 0;
      | ^
a.cc:8:1: error: extended character 　 is not valid in an identifier
    8 | 　 for(int i = 0; i < N; ++i){
      | ^
a.cc:9:1: error: extended character 　 is not valid in an identifier
    9 | 　　 if(S[i] != T[i]) ++ans;
      | ^
a.cc:9:1: error: extended character 　 is not valid in an identifier
a.cc:10:2: error: extended character 　 is not valid in an identifier
   10 |  　}
      |  ^
a.cc:11:1: error: extended character 　 is not valid in an identifier
   11 | 　 cout << ans << endl;
      | ^
a.cc: In function 'int main()':
a.cc:5:1: error: '\U00003000string' was not declared in this scope
    5 | 　string S, T;
      | ^~~~~~~~
a.cc:6:1: error: '\U00003000' was not declared in this scope
    6 | 　 cin >> S >> T;
      | ^~
a.cc:7:3: error: expected ';' before 'int'
    7 | 　 int N = S.size(), ans = 0;
      |   ^~~~
      |   ;
a.cc:8:3: error: expected ';' before 'for'
    8 | 　 for(int i = 0; i < N; ++i){
      |   ^~~~
      |   ;
a.cc:8:19: error: 'i' was not declared in this scope
    8 | 　 for(int i = 0; i < N; ++i){
      |                   ^
a.cc:8:23: error: 'N' was not declared in this scope
    8 | 　 for(int i = 0; i < N; ++i){
      |                       ^
a.cc:11:3: error: expected ';' before 'cout'
   11 | 　 cout << ans << endl;
      |   ^~~~~
      |   ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'string' was not declared in this scope
    3 |         string S,T;
      |         ^~~~~~
a.cc:3: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:4:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |         cin >> S >> T;
      |         ^~~
      |         std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:4:16: error: 'S' was not declared in this scope
    4 |         cin >> S >> T;
      |                ^
a.cc:4:21: error: 'T' was not declared in this scope
    4 |         cin >> S >> T;
      |                     ^
a.cc:7:21: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |     if(S[i]!=T[i])++ans;
      |                     ^~~
      |                     abs
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:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |   cout<<ans<<endl;
      |         ^~~
      |         abs
a.cc:9:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   cout<<ans<<endl;
      |              ^~~~
      |              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~