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

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

int main(){
  vector<string>s();
  vector<string>t();

  for(int i=0; i<20001; i++){
    cin >> s.at(i);
  }

  for(int i=0; i<20001; i++){
    cin >> t.at(i);
  }

  int j=0;
  int cont =0;
  while (s() != t()){
    if(s(j) != t(j)){
      s(j) = t(j);
    }
    j++;
    cont++;
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    5 |   vector<string>s();
      |                  ^~
a.cc:6:18: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    6 |   vector<string>t();
      |                  ^~
a.cc:9:14: error: request for member 'at' in 's', which is of non-class type 'std::vector<std::__cxx11::basic_string<char> >()'
    9 |     cin >> s.at(i);
      |              ^~
a.cc:13:14: error: request for member 'at' in 't', which is of non-class type 'std::vector<std::__cxx11::basic_string<char> >()'
   13 |     cin >> t.at(i);
      |              ^~
a.cc:19:9: error: too many arguments to function 'std::vector<std::__cxx11::basic_string<char> > s()'
   19 |     if(s(j) != t(j)){
      |        ~^~~
a.cc:5:17: note: declared here
    5 |   vector<string>s();
      |                 ^
a.cc:19:17: error: too many arguments to function 'std::vector<std::__cxx11::basic_string<char> > t()'
   19 |     if(s(j) != t(j)){
      |                ~^~~
a.cc:6:17: note: declared here
    6 |   vector<string>t();
      |                 ^
a.cc:20:8: error: too many arguments to function 'std::vector<std::__cxx11::basic_string<char> > s()'
   20 |       s(j) = t(j);
      |       ~^~~
a.cc:5:17: note: declared here
    5 |   vector<string>s();
      |                 ^
a.cc:20:15: error: too many arguments to function 'std::vector<std::__cxx11::basic_string<char> > t()'
   20 |       s(j) = t(j);
      |              ~^~~
a.cc:6:17: note: declared here
    6 |   vector<string>t();
      |                 ^
Language: C++

#include <iostream>
using namespace std;

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

  int S.size();

  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:8:8: error: expected initializer before '.' token
    8 |   int S.size();
      |        ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   16 |   return;
      |   ^~~~~~
Language: C++

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

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


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

#include <iostream>
#include <string>
 
using namespace std;
 
int main(){
  	string S, T;
  	cin >> S >> T;
  
  	int counter = 0;
	
  	if(int i = 0; i < S.size(); i++){
      if(S[i] == T[i]) counter++;
    }
  	
  	cout << counter << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:35: error: expected ')' before ';' token
   12 |         if(int i = 0; i < S.size(); i++){
      |           ~                       ^
      |                                   )
a.cc:12:37: error: 'i' was not declared in this scope
   12 |         if(int i = 0; i < S.size(); i++){
      |                                     ^
Language: Java

#include<stdio.h>
#include<string.h>
int main()
{
    int i,j=0,count=0,flag=0;
    char S[30];
    char T[30];
    scanf("%s",S);
    scanf("%s",T);
    int m=strlen(S);
    int n=strlen(T);
    for(i=0;i<m;i++)
    {
        
            if(S[i]==T[j])
            {
                count++;
                j++;
            }
      else
      {
        j++;
      }
    }
    printf("%d",count);
    return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include<stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<stdio.h>
        ^
Main.java:2: error: illegal character: '#'
#include<string.h>
^
Main.java:6: error: class, interface, enum, or record expected
    char S[30];
    ^
Main.java:7: error: class, interface, enum, or record expected
    char T[30];
    ^
Main.java:8: error: class, interface, enum, or record expected
    scanf("%s",S);
    ^
Main.java:9: error: class, interface, enum, or record expected
    scanf("%s",T);
    ^
Main.java:10: error: unnamed classes are a preview feature and are disabled by default.
    int m=strlen(S);
    ^
  (use --enable-preview to enable unnamed classes)
Main.java:12: error: class, interface, enum, or record expected
    for(i=0;i<m;i++)
    ^
Main.java:12: error: class, interface, enum, or record expected
    for(i=0;i<m;i++)
            ^
Main.java:12: error: class, interface, enum, or record expected
    for(i=0;i<m;i++)
                ^
Main.java:18: error: class, interface, enum, or record expected
                j++;
                ^
Main.java:19: error: class, interface, enum, or record expected
            }
            ^
Main.java:23: error: class, interface, enum, or record expected
      }
      ^
Main.java:26: error: class, interface, enum, or record expected
    return 0;
    ^
Main.java:27: error: class, interface, enum, or record expected
}
^
16 errors
Language: C++

#include <iostream>
#include <string>
 
using namespace std;
 
int main(){
  	string S, T;
  	cin >> S >> T;
  
  	counter = 0;
	
  	if(int i = 0; i < S.size(); i++){
      if(S[i] == T[i]) counter++;
    }
  	
  	cout << counter << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'counter' was not declared in this scope
   10 |         counter = 0;
      |         ^~~~~~~
a.cc:12:35: error: expected ')' before ';' token
   12 |         if(int i = 0; i < S.size(); i++){
      |           ~                       ^
      |                                   )
a.cc:12:37: error: 'i' was not declared in this scope
   12 |         if(int i = 0; i < S.size(); i++){
      |                                     ^
Language: C++

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:3:8: error: array size missing in 'str1'
    3 |   char str1[],str2[];
      |        ^~~~
main.c:3:15: error: array size missing in 'str2'
    3 |   char str1[],str2[];
      |               ^~~~
main.c:10:7: error: 'i' undeclared (first use in this function)
   10 |   for(i=0;i<len;i++){
      |       ^
main.c:10:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:26: error: expected ')' before '{' token
   11 |     if(str1[i] != str2[i]{
      |       ~                  ^
      |                          )
main.c:14:3: error: expected expression before '}' token
   14 |   }
      |   ^
Language: C++

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

string S,T;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: warning: ignoring return value of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator[](size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; reference = char&; size_type = long unsigned int]', declared with attribute 'nodiscard' [-Wunused-result]
   12 |     for(int i=0; S[i], i++){
      |                     ^
In file included from /usr/include/c++/14/string:54,
                 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,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:1265:7: note: declared here
 1265 |       operator[](size_type __pos)
      |       ^~~~~~~~
a.cc:12:27: error: expected ';' before ')' token
   12 |     for(int i=0; S[i], i++){
      |                           ^
      |                           ;
Language: C++

#include <iostream>
#include <string>
 
using namespace std;
 
int main(){
  	string S, T;
  	cin >> S >> T;
  
  	int  i = 0, counter = 0;
	
  	if(int i = 0; i < S.size(); i++){
      if(S[i] == T[i]) counter++;
    }
  	
  	cout << counter << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:35: error: expected ')' before ';' token
   12 |         if(int i = 0; i < S.size(); i++){
      |           ~                       ^
      |                                   )
a.cc:12:40: error: expected ';' before ')' token
   12 |         if(int i = 0; i < S.size(); i++){
      |                                        ^
      |                                        ;
Language: C++

#include <cctype>
#include <iostream>
#define rep(i, n) for (int i = 0; i < n; ++i)
#define FOR(i, a, b) for (int i = a; i < b; ++i)
using namespace std;

int main(){
  char S[200000], T[200000];
  cin >> S >> T;
  unsigned long count=0;
  unsigned long len = strlen(S);
  rep(i,len){
    if(S[i]!=T[i])
      count++;
  }
  cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:23: error: 'strlen' was not declared in this scope
   11 |   unsigned long len = strlen(S);
      |                       ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <iostream>
  +++ |+#include <cstring>
    3 | #define rep(i, n) for (int i = 0; i < n; ++i)
Language: Java

import java.io.*; 
import java.util.*; 
 
public class GFG { 
	
 
	
	public static int minOps(String A, String B) 
	{ 
		
		if(A.length() != B.length()) 
			return -1; 
		
		int i, j, res = 0; 
		int count [] = new int [256]; 
		
		
		for(i = 0; i < A.length(); i++) 
		{ 
			count[A.charAt(i)]++; 
			count[B.charAt(i)]--; 
		} 
		
		
		for(i = 0; i < 256; i++) 
			if(count[i] != 0) 
				return -1; 
		
		i = A.length() - 1; 
		j = B.length() - 1; 
 
		while(i >= 0) 
		{ 
			if(A.charAt(i) != B.charAt(j)) 
				res++; 
			else
				j--; 
			i--;		 
		} 
		return res;	 
	} 
 
 
	public static void main(String[] args) 
	{  
      Scanner sc = new Scanner(System.in);
		String A = sc.next(); 
		String B = sc.next(); 
		
		System.out.println("Minimum number of "
					+ "operations required is "
								+ minOps(A, B)); 
	} 
} 
 

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

#inclede <stdio.h>
int main(void){
  char S[2*100000];
  char T[2*100000];
  int a;
  for(int i;2*100000>i;i++){
    if(S[i]!=T[i]){
      a++;
    }
  }
  return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclede; did you mean #include?
    1 | #inclede <stdio.h>
      |  ^~~~~~~
      |  include
Language: C

#include <stdio.h>

int main(){
    char s[200000], t[200000];
    scanf("%s", s);
    scanf("%s", t);
    
    int count = 0;
    int i= 0;

    while (s[i] != '\0'){
        if (s[i] != t[i]){
            count += 1;
        }
        i++;
    }
    printf("%d", count);
    return 0;

Compiler output:
main.c: In function 'main':
main.c:18:5: error: expected declaration or statement at end of input
   18 |     return 0;
      |     ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:14: error: array size missing in 's'
    6 |         char s[], t[];
      |              ^
main.c:6:19: error: array size missing in 't'
    6 |         char s[], t[];
      |                   ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'couut' was not declared in this scope
    8 |         couut<<ans;
      |         ^~~~~
Language: C++

#include <cctype>
#include <iostream>
#define rep(i, n) for (int i = 0; i < n; ++i)
#define FOR(i, a, b) for (int i = a; i < b; ++i)
using namespace std;

int main(){
  char S[200000], T[200000];
  cin >> S >> T;
  long long count=0;
  long long len = strlen(S);
  rep(i,len){
    if(S[i]!=T[i])
      count++;
  }
  cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: 'strlen' was not declared in this scope
   11 |   long long len = strlen(S);
      |                   ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <iostream>
  +++ |+#include <cstring>
    3 | #define rep(i, n) for (int i = 0; i < n; ++i)
Language: C

#include <stdio.h>
int main()
{
	int i,j,k,n=0;
        int a[100],b[100];
	while(scanf("%c",&a[i])!='/n')
                i++;
      for(j=0;j<i;j++)
      {scanf("%c",&b[j])
             if(a[j]!=b[j])
                 n++;}
      printf("%d",n);
      return 0;
 }

Compiler output:
main.c: In function 'main':
main.c:6:34: warning: multi-character character constant [-Wmultichar]
    6 |         while(scanf("%c",&a[i])!='/n')
      |                                  ^~~~
main.c:9:25: error: expected ';' before 'if'
    9 |       {scanf("%c",&b[j])
      |                         ^
      |                         ;
   10 |              if(a[j]!=b[j])
      |              ~~
Language: Java


import java.io.*; 
import java.util.*; 

public class GFG { 
	

	
	public static int minOps(String A, String B) 
	{ 
		
		if(A.length() != B.length()) 
			return -1; 
		
		int i, j, res = 0; 
		int count [] = new int [256]; 
		
		
		for(i = 0; i < A.length(); i++) 
		{ 
			count[A.charAt(i)]++; 
			count[B.charAt(i)]--; 
		} 
		
		
		for(i = 0; i < 256; i++) 
			if(count[i] != 0) 
				return -1; 
		
		i = A.length() - 1; 
		j = B.length() - 1; 

		while(i >= 0) 
		{ 
			if(A.charAt(i) != B.charAt(j)) 
				res++; 
			else
				j--; 
			i--;		 
		} 
		return res;	 
	} 


	public static void main(String[] args) 
	{  
      Scanner sc = new Scanner(System.in);
		String A = sc.next(); 
		String B = sc.next(); 
		
		System.out.println("Minimum number of "
					+ "operations required is "
								+ minOps(A, B)); 
	} 
} 



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

#include<bits/stdc++.h>
using namespace std;
int n, m, i, j, k, ans, x, y;
char s[505], t[505];
int main()
{
	scanf ("%s%s", s, t);
	n = sizeof(s);
	for (i=0; i<n; i++)
	{
		if (s[i] != t[i])
		{
			ans++;
		}
	}
	printf ("%d", ans);
	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: Java

import java.util.*;

public class Main{
	public static void main(String[] args){
      	String S = sc.next();
      	String T = sc.next();
      	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:5: error: cannot find symbol
      	String S = sc.next();
      	           ^
  symbol:   variable sc
  location: class Main
Main.java:6: error: cannot find symbol
      	String T = sc.next();
      	           ^
  symbol:   variable sc
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

public class Main{
	public static void main(String args[]){
      Scanner sc = new Scanner(System.in);
      
      String s = sc.next();
      String t = sc.next();
      
      int result = 0;
      for(int i=0; i < s.length(); i++){
      	if(s.subString(i,1) != t.subString(i, 1)){
          result++;
        }
      }
        
      System.out.print(result);
    }
}


Compiler output:
Main.java:12: error: cannot find symbol
      	if(s.subString(i,1) != t.subString(i, 1)){
      	    ^
  symbol:   method subString(int,int)
  location: variable s of type String
Main.java:12: error: cannot find symbol
      	if(s.subString(i,1) != t.subString(i, 1)){
      	                        ^
  symbol:   method subString(int,int)
  location: variable t of type String
2 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
int n, m, j, k, i, a;
char s[100002], c[100002];
char main(){
	scanf("%s%s", s, c);
	m=strlen(s);
	for(i=0; i<=m; i++){
		if(s[i]!=c[i]){
			n++;
		}
	}
	printf("%d", n);
	return 0;
}

Compiler output:
a.cc:5:1: error: '::main' must return 'int'
    5 | char main(){
      | ^~~~
Language: C++

#include<string>
#include<iostream>
#include<vector>
#include<algorithm>

using namespace std;
using ll = long long;
using P = pair<ll, ll>;
#define REP(i, n) for(ll i = 0; i < (ll)n; i++)
#define RREP(i, n) for(ll i = (ll)(n-1); i >= 0; i--)
#define ALL(vector) vector.begin(), vector.end()

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    string s,t;
    cin>>s>>t;
    ll cnt=0;
    REP(i,s.size()){
        if(s[i] != t[i]) cnt++;
    }
    cout<<ent<<endl;
    return 0;
}

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

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

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

import java.util.Scanner;

public class Main{
	public static void main(String args[]){
      Scanner sc = new Scanner(System.in);
      
      String s = sc.next();
      String t = sc.next();
      
      int result = 0;
      for(int i=0; i < s.length(); i++){
      	if(s.toString(i,1) != t.toString(i, 1)){
          result++;
        }
      }
        
      System.out.print(result);
    }
}


Compiler output:
Main.java:12: error: method toString in class String cannot be applied to given types;
      	if(s.toString(i,1) != t.toString(i, 1)){
      	    ^
  required: no arguments
  found:    int,int
  reason: actual and formal argument lists differ in length
Main.java:12: error: method toString in class String cannot be applied to given types;
      	if(s.toString(i,1) != t.toString(i, 1)){
      	                       ^
  required: no arguments
  found:    int,int
  reason: actual and formal argument lists differ in length
2 errors
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:19: error: expected ';' before 'l'
   10 |      scanf("%s",t)
      |                   ^
      |                   ;
   11 |     l=strlen(s);
      |     ~              
main.c: At top level:
main.c:20:2: error: expected identifier or '(' before 'return'
   20 | }return 0
      |  ^~~~~~
Language: Java

import java.util.Scanner;

public class Main{
	public static void main(String args[]){
      Scanner sc = new Scanner(System.in);
      
      String s = sc.next();
      String t = sc.next();
      
      int result = 0;
      for(int i=0; i < s.length(); i++){
      	if(s[i] != t[i]){
          result++;
        }
      }
        
      System.out.print(result);
    }
}


Compiler output:
Main.java:12: error: array required, but String found
      	if(s[i] != t[i]){
      	    ^
Main.java:12: error: array required, but String found
      	if(s[i] != t[i]){
      	            ^
2 errors
Language: C++

#include <iostream>
#include <string>
 
using namespace std;
 
int main(){
  	string S, T;
  	cin >> S >> T;
  
  	int  i = 0; counter = 0;
	
  	while(1){
      if(S[i] == T[i]) counter++;
      
      if(i == S.size - 1) break;
    }
  	
  	cout << counter << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: 'counter' was not declared in this scope
   10 |         int  i = 0; counter = 0;
      |                     ^~~~~~~
a.cc:15:17: 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 '()' ?)
   15 |       if(i == S.size - 1) break;
      |               ~~^~~~
      |                     ()
Language: C++

import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner in = new Scanner(System.in);
		int n=0;
		String str1 = in.next();
		String str2 = in.next();
		for(int i=0;i<str1.length();i++)
		{
			if(str1.charAt(i) != str2.charAt(i))
				n++;
		}
		System.out.print(n);
	}

}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C

#include<stdio.h>

int main(){
  
  char S[200000];
   char T[200000];
  while(scanf("%s",S)==0);
  while(scanf("%s",T)==0);
  
  int i,N=0;
  
  for(i=0;T[i]!='\0';i++){
    if(S[i]!=T[i]){
      N++;  
    }
    
  }
  
  printf("%d",N)
  
 return 0; 
}

Compiler output:
main.c: In function 'main':
main.c:19:17: error: expected ';' before 'return'
   19 |   printf("%d",N)
      |                 ^
      |                 ;
   20 | 
   21 |  return 0;
      |  ~~~~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main(){
  	string S, T;
  	cin >> S >> T;
  
  	int  i = 0; counter = 0;
	
  	while(1){
      if(S[i] == T[i]) counter++;
      
      if(i == s.size - 1) break;
    }
  	
  	cout << counter << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: 'counter' was not declared in this scope
   10 |         int  i = 0; counter = 0;
      |                     ^~~~~~~
a.cc:15:15: error: 's' was not declared in this scope
   15 |       if(i == s.size - 1) break;
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int n, m, j, k, i, a;
char s[100002], c[100002];
int main(){
	gets(s);
	gets(c);
	m=strlen(s);
	for(i=0; i<=m; i++){
		if(s[i]!=c[i]){
			n++;
		}
	}
	printf("%d", n);
	return 0;
}

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(s);
      |         ^~~~
      |         getw
Language: C++

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namspace'
    2 | using namspace std;
      |       ^~~~~~~~
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:13:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |   cout<<cnt;
      |   ^~~~
      |   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;

int main() {
  string s,t;
  cin >> s >> t;
  cout << length(s) << endl;
  for(i = 0; i < 
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'length' was not declared in this scope
    7 |   cout << length(s) << endl;
      |           ^~~~~~
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   for(i = 0; i <
      |       ^
a.cc:9:3: error: expected primary-expression before 'return'
    9 |   return 0;
      |   ^~~~~~
a.cc:8:17: error: expected ';' before 'return'
    8 |   for(i = 0; i <
      |                 ^
      |                 ;
    9 |   return 0;
      |   ~~~~~~         
a.cc:9:3: error: expected primary-expression before 'return'
    9 |   return 0;
      |   ^~~~~~
a.cc:8:17: error: expected ')' before 'return'
    8 |   for(i = 0; i <
      |      ~          ^
      |                 )
    9 |   return 0;
      |   ~~~~~~
Language: Java

import java.util.*;
public class B {

    public static void main(String[] args) throws Exception {
        Scanner sc = null;
        sc = new Scanner(System.in);
        String s = sc.nextLine();	
        String t = sc.nextLine();
        sc.close();	
        char[] cs = s.toCharArray();
        char[] ct = t.toCharArray();
        int count = 0;
        for (int i = 0; i < cs.length; i++) {
            if (cs[i] != ct[i]) {
                count +=1;
            } 
        }
        System.out.println(count);   
    }
    
}

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

#include <bits/stdc++.h>
using namespace std;
int ans=0;
char a[20000],b[20000];
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<string>
#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'str' was not declared in this scope; did you mean 'std'?
    6 |   str S,T;
      |   ^~~
      |   std
a.cc:7:8: error: 'S' was not declared in this scope
    7 |   cin>>S>>T;
      |        ^
a.cc:7:11: error: 'T' was not declared in this scope
    7 |   cin>>S>>T;
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int n, m, j, k, i, a;
char s[100002], c[100002];
int main(){
	gets(s);
	gets(c);
	for(i=0; i<=100001; i++){
		if(s[i]!=c[i]){
			n++;
		}
	}
	printf("%d", n);
	return 0;
}

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(s);
      |         ^~~~
      |         getw
Language: C++

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

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

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    2 | #inlcude <string>
      |  ^~~~~~~
      |  include
Language: Java

import java.util.Scanner;
public class Minor_change {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner in = new Scanner(System.in);
		int n=0;
		String str1 = in.next();
		String str2 = in.next();
		for(int i=0;i<str1.length();i++)
		{
			if(str1.charAt(i) != str2.charAt(i))
				n++;
		}
		System.out.print(n);
	}

}


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

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


Compiler output:
main.c: In function 'main':
main.c:5:8: error: array size missing in 's'
    5 |   char s[],t[];
      |        ^
main.c:5:12: error: array size missing in 't'
    5 |   char s[],t[];
      |            ^
main.c:8:16: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    8 |     if(strcmp(s[i],t[i])!=0){
      |               ~^~~
      |                |
      |                char
In file included from main.c:2:
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:8:21: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    8 |     if(strcmp(s[i],t[i])!=0){
      |                    ~^~~
      |                     |
      |                     char
/usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
Language: C

#include<stdio.h>
#include<string.h>
int main()
{
char a[10],b[10];
int count =0;
int i;
scanf("%s  ",a);
for(i=0;i<a.length();i++)
{
b[i]=a[i];
}
for(i=0;i<a.length();i++)
{

if(a[i]==b[i])
{
continue;
}
else
{
count++;
}
}
printf("%d",count);
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:12: error: request for member 'length' in something not a structure or union
    9 | for(i=0;i<a.length();i++)
      |            ^
main.c:13:12: error: request for member 'length' in something not a structure or union
   13 | for(i=0;i<a.length();i++)
      |            ^
Language: Java

import java.util.Scanner;

public class B {

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

}

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

import java.util.*;

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

Compiler output:
Main.java:15: error: class, interface, enum, or record expected
}
^
1 error
Language: Java

public class Main {

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

}

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

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


Compiler output:
main.c: In function 'main':
main.c:7:20: error: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Wint-conversion]
    7 |   for(i=0;i<strlen(s);i++){
      |                    ^
      |                    |
      |                    char
In file included from main.c:2:
/usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'char'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
main.c:8:16: error: subscripted value is neither array nor pointer nor vector
    8 |     if(strcmp(s[i],t[i])!=0){
      |                ^
main.c:8:21: error: subscripted value is neither array nor pointer nor vector
    8 |     if(strcmp(s[i],t[i])!=0){
      |                     ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:10: error: invalid operands to binary < (have 'complex int' and 'int')
    8 |  for(i=0i<20;i++)
      |          ^
main.c:8:17: error: expected ';' before ')' token
    8 |  for(i=0i<20;i++)
      |                 ^
      |                 ;
Language: C

#include <stdio.h>
int main(){
  chr s[200000],t[200000];
  int i=0,j,k;
  scanf("%s",s);
  scanf("%s",t);
  while(s[i]){
    i++;}
  for(j=0;j<i;j++){
    if(s[j]==t[j]){
      k++;
    }
  }
  printf("%d",i-k);
  return 0;}

Compiler output:
main.c: In function 'main':
main.c:3:3: error: unknown type name 'chr'; did you mean 'char'?
    3 |   chr s[200000],t[200000];
      |   ^~~
      |   char
Language: C

#include<stdio.h>
#include<string.h>
int main()
{
char a[10],b[10];
int count =0;
int i;
scanf("%s  ",a);
b=a;
for(i=0;i<a.length;i++)
{

if(a[i]==b[i])
{
continue;
}
else
{
count++;
}
}
printf("%d",count);
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:2: error: assignment to expression with array type
    9 | b=a;
      |  ^
main.c:10:12: error: request for member 'length' in something not a structure or union
   10 | for(i=0;i<a.length;i++)
      |            ^
Language: Java

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


Compiler output:
Main.java:11: error: cannot find symbol
    l=s.length;
       ^
  symbol:   variable length
  location: variable s of type String
Main.java:14: error: array required, but String found
    if(s[i]!=t[i])
        ^
Main.java:14: error: array required, but String found
    if(s[i]!=t[i])
              ^
3 errors
Language: Java

import java.util.*;

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


Compiler output:
Main.java:7: error: cannot find symbol
    String S = sc.nextString();
                 ^
  symbol:   method nextString()
  location: variable sc of type Scanner
Main.java:8: error: cannot find symbol
    String T = sc.nextString();
                 ^
  symbol:   method nextString()
  location: variable sc of type Scanner
2 errors
Language: C

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

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

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

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


Compiler output:
Main.java:1: error: ';' expected
import java.util.*
                  ^
1 error
Language: Java

import java.util.*;

public class Main {
 
  public static void main(String[] args) {
  	Scanner sc = new Scanner(System.in);
    String S = sc.nextString();
    String T = sc.nextString();
    
    int ans = 0;
    for (int i = 0; i < S.length(); i++) {
      if (S.charAt(i) != T.charAt(i)) {
        ans++;
      }
    }
    
    return ans;
  }
}

Compiler output:
Main.java:7: error: cannot find symbol
    String S = sc.nextString();
                 ^
  symbol:   method nextString()
  location: variable sc of type Scanner
Main.java:8: error: cannot find symbol
    String T = sc.nextString();
                 ^
  symbol:   method nextString()
  location: variable sc of type Scanner
Main.java:17: error: incompatible types: unexpected return value
    return ans;
           ^
3 errors
Language: C

#include<stdio.h>
int main()
{
char a[10],b[10];
int count =0;
scanf("%s  ",a);
b=a;
for(i=0;i<a.length;i++)
{

if(a[i]==b[i])
{
continue;
}
else
{
count++;
}
}
printf("%d",count);
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:2: error: assignment to expression with array type
    7 | b=a;
      |  ^
main.c:8:5: error: 'i' undeclared (first use in this function)
    8 | for(i=0;i<a.length;i++)
      |     ^
main.c:8:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:12: error: request for member 'length' in something not a structure or union
    8 | for(i=0;i<a.length;i++)
      |            ^
Language: C

#include <bits/stdc++.h>
using namespace std;
int n, m, i, j, k, ans, x, y;
char s[505], t[505];
int main()
{
	scanf ("%s%s", s, t);
	n = sizeof(s);
	for (i=0; i<n; i++)
	{
		if (s[i] != t[i])
		{
			ans++;
		}
	}
	printf ("%d", ans);
	return 0;
}


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

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

int main(){
  string *s[200001],*t[200001];

  int count =0;
  while(*s[i] != "\0"){
    if(*s[i] != *t[i]){
      *s[i] = *t[i];
    }
    count++;
  }

  cout << count << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'i' was not declared in this scope
    8 |   while(*s[i] != "\0"){
      |            ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
  String s,t;
  cin>>s>>t;
  int ans=0;
  for(int i=0;i<s.length();i++)
  {
    for(int j=0;i<t.length();j++)
    {
      if(s[i]!=t[j])
        ans++;
    }
  }
  cout<<ans;
}

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: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
Language: C++

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

int main(){
  long char *s[200001],*t[200001];

  int count =0;
  while(s[i] != "\0"){
    if(*s[i] != *t[i]){
      *s[i] = *t[i];
    }
    count++;
  }

  cout << count << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'long' specified with 'char'
    5 |   long char *s[200001],*t[200001];
      |   ^~~~
a.cc:5:3: error: 'long' specified with 'char'
a.cc:8:11: error: 'i' was not declared in this scope
    8 |   while(s[i] != "\0"){
      |           ^
Language: C

#include <stdio.h>

int main()
{
  
  char s[101];
  char t[101];
  
  int i;
  i = 0;
  
  int n;
  n = 0; 
  
  scanf("%s,%s",s,t);
  
  while(str[i] != '\0')
  {
    if (s[i] != t[i])
      n++;
    i++;
  }
    printf("%d", n);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:9: error: 'str' undeclared (first use in this function)
   17 |   while(str[i] != '\0')
      |         ^~~
main.c:17:9: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

import java.util.*;

public class solution {
	public static void main(String[] args) throws Exception {
		
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		int count = 0;
		
		for(int i=0;i<a.length();i++) {
			if(a.charAt(i)!=(b.charAt(i))) {
				//String s = a.replace(a.charAt(i), b.charAt(i));
				count++;
			}
		}
		System.out.println(count);
	}
}

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

#include <bits/stdc++.h>
using namespace std;
int ans=0;
char a[2000000],b[2000000];
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 <stdio.h>

char str1[100005];
char str2[100005];

int main() {
  scanf("%s", str1);
  scanf("%s", str2);
  int i=0;
  int diff=0;
  while(str[i]!='\0') diff+=!(str1[i]==str2[i]);
  printf("%d", diff);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:9: error: 'str' undeclared (first use in this function); did you mean 'str2'?
   11 |   while(str[i]!='\0') diff+=!(str1[i]==str2[i]);
      |         ^~~
      |         str2
main.c:11:9: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

class a
{
  public static void main(String args[])
  {
    String s,t;
  int count=0,i,l;
  cin>>s;
  cin>>t;
    l=s.length;
  for(i=0;i<l;i++)
  {
    if(s[i]!=t[i])
    {
      count++;
    }
  }
  cout<<count;
  }
}


Compiler output:
Main.java:7: error: not a statement
  cin>>s;
     ^
Main.java:8: error: not a statement
  cin>>t;
     ^
Main.java:17: error: not a statement
  cout<<count;
      ^
3 errors
Language: C++

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

int main()
{
  string str1,str2;
  cin >> str1 >> str2;
  int cnt = 0;
  for(int i=0; str1[i]; i++)
  {
    if(str1[i] != str2[i])
      cnt += 1;
  }
  cout << cnt << endl;
  return 0
}

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

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

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


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

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

Compiler output:
Main.java:17: error: cannot find symbol
      System.out.pritln(count);
                ^
  symbol:   method pritln(int)
  location: variable out of type PrintStream
1 error
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: 'a' was not declared in this scope
    9 |   for(int i=0;i<int(a.size());++i){
      |                     ^
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^