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

#include <iostream>
int main(){
	string S,T;
  	cin >> S >> T;
  	int N = S.size(),ans=0;
  	for(int i=0i<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:6:21: error: invalid operands of types '__complex__ int' and 'int' to binary 'operator<'
    6 |         for(int i=0i<N;++i){
a.cc:6:27: error: expected ';' before ')' token
    6 |         for(int i=0i<N;++i){
      |                           ^
      |                           ;
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)
      |     ^~~~
Language: C

#include <stdio.h>

void shuffle(void* arr, const size_t size, const size_t n)
{
    char * A = (char *)arr;
    char tmp[size];

    for (int i = n - 1; i >= 0; i--){
        int select = rand_range(0, i - 1);

        for (int j = 0; j < size; j++) tmp[j] = *(A + i*size + j);
        arr[i] = arr[select];
    }
}

int main()
{
  int x;

  scanf ("%d", &x);
  
  
  
  printf("%d\n", x + x * x + x * x * x);
  return 0;
}



Compiler output:
main.c: In function 'shuffle':
main.c:9:22: error: implicit declaration of function 'rand_range' [-Wimplicit-function-declaration]
    9 |         int select = rand_range(0, i - 1);
      |                      ^~~~~~~~~~
main.c:12:12: warning: dereferencing 'void *' pointer
   12 |         arr[i] = arr[select];
      |            ^
main.c:12:21: warning: dereferencing 'void *' pointer
   12 |         arr[i] = arr[select];
      |                     ^
main.c:12:16: error: invalid use of void expression
   12 |         arr[i] = arr[select];
      |                ^
Language: C

#include <stdio.h>

int main()
{
    char S[2*10*10*10*10*10], T[2*10*10*10*10];

    printf("S\n");
    scanf("%s\n",S);
    printf("T");
    scanf("%s\n",T);

    int count = 0;
    int i,len;
    
    for (i = 0; i < = "\0"; i++)
    {
        if (S[i] != T[i])
        {
            count += 1;
        }
        
    }
    
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:21: error: expected expression before '=' token
   15 |     for (i = 0; i < = "\0"; i++)
      |                     ^
Language: C

int main()
{
  int x;

  scanf ("%d", &x);
  
void shuffle(void* arr, const size_t size, const size_t n)
{
    char * A = (char *)arr;
    char tmp[size];

    for (int i = n - 1; i >= 0; i--){
        int select = rand_range(0, i - 1);

        for (int j = 0; j < size; j++) tmp[j] = *(A + i*size + j);
        arr[i] = arr[select];
        arr[select] = tmp;
    }
}
  
  printf("%d\n", x + x * x + x * x * x);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |   scanf ("%d", &x);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main()
main.c:5:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |   scanf ("%d", &x);
      |   ^~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:31: error: unknown type name 'size_t'
    7 | void shuffle(void* arr, const size_t size, const size_t n)
      |                               ^~~~~~
main.c:1:1: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
  +++ |+#include <stddef.h>
    1 | int main()
main.c:7:50: error: unknown type name 'size_t'
    7 | void shuffle(void* arr, const size_t size, const size_t n)
      |                                                  ^~~~~~
main.c:7:50: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
main.c: In function 'shuffle':
main.c:13:22: error: implicit declaration of function 'rand_range' [-Wimplicit-function-declaration]
   13 |         int select = rand_range(0, i - 1);
      |                      ^~~~~~~~~~
main.c:16:12: warning: dereferencing 'void *' pointer
   16 |         arr[i] = arr[select];
      |            ^
main.c:16:21: warning: dereferencing 'void *' pointer
   16 |         arr[i] = arr[select];
      |                     ^
main.c:16:16: error: invalid use of void expression
   16 |         arr[i] = arr[select];
      |                ^
main.c:17:12: warning: dereferencing 'void *' pointer
   17 |         arr[select] = tmp;
      |            ^
main.c:17:21: error: invalid use of void expression
   17 |         arr[select] = tmp;
      |                     ^
main.c: In function 'main':
main.c:21:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   21 |   printf("%d\n", x + x * x + x * x * x);
      |   ^~~~~~
main.c:21:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:21:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:21:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

int change(char S[], char T[])
{
    int cnt = 0;
    for (int i = 0; i <= 200000; i++){
        if (S[i] != T[i]) cnt++;
    }
    return cnt;
}

int main()
{
    int n;
    char buf[200000];

    fgets(buf, sizeof(buf), stdin);
    char S[200000] = buf;
    fgets(buf, sizeof(buf), stdin);
    char T[200000] = buf;

    n = change(S, T);
    printf("%d\n", n);
}

Compiler output:
main.c: In function 'main':
main.c:20:22: error: invalid initializer
   20 |     char S[200000] = buf;
      |                      ^~~
main.c:22:22: error: invalid initializer
   22 |     char T[200000] = buf;
      |                      ^~~
Language: C

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

int change(char S[], char T[])
{
    int cnt = 0;
    for (int i = 0; i <= 200000; i++){
        if (S[i] != T[i]) cnt++;
        return cnt;
    }
}

int main()
{
    int n;
    char buf[400000];

    char S[200000] = fgets(buf, sizeof(buf), stdin);
    char T[200000] = fgets(buf, sizeof(buf), stdin);

    n = change(S, T);
    printf("%d\n", n);
}

Compiler output:
main.c: In function 'main':
main.c:19:22: error: invalid initializer
   19 |     char S[200000] = fgets(buf, sizeof(buf), stdin);
      |                      ^~~~~
main.c:20:22: error: invalid initializer
   20 |     char T[200000] = fgets(buf, sizeof(buf), stdin);
      |                      ^~~~~
Language: C

#include <stdio.h>

int main()
{
  int x;

  scanf ("%d", &x);
  
  printf("%d\n", x + x * x + x * x * x);
  jxfjdkcfvlgligbbvfclvbjhblhljbl
    
    arnkvqhqhqqt
    qkqlmqvqtt
    vkwmqt5vwlhw
    
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:3: error: unknown type name 'jxfjdkcfvlgligbbvfclvbjhblhljbl'
   10 |   jxfjdkcfvlgligbbvfclvbjhblhljbl
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:13:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'qkqlmqvqtt'
   13 |     qkqlmqvqtt
      |     ^~~~~~~~~~
Language: C

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

void change(int S, int T){
    for(int i=0;i<len(S);i++){
        for(int j=0;j<len(T);j++){
            if(S[i]!=J[i]){
                int count =0;
                count +=(S[i]!=T[i]);
                return 0;
            }
            else{
                return 1;
            }
        }
    }
}

int main(){
    int S,T;
    scanf("%f\n",&S);
    scanf("%f\n",&T);

    printf("%d\n",change(S,T));

    return 0;
}

Compiler output:
main.c: In function 'change':
main.c:5:19: error: implicit declaration of function 'len' [-Wimplicit-function-declaration]
    5 |     for(int i=0;i<len(S);i++){
      |                   ^~~
main.c:7:17: error: subscripted value is neither array nor pointer nor vector
    7 |             if(S[i]!=J[i]){
      |                 ^
main.c:7:22: error: 'J' undeclared (first use in this function)
    7 |             if(S[i]!=J[i]){
      |                      ^
main.c:7:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:27: error: subscripted value is neither array nor pointer nor vector
    9 |                 count +=(S[i]!=T[i]);
      |                           ^
main.c:9:33: error: subscripted value is neither array nor pointer nor vector
    9 |                 count +=(S[i]!=T[i]);
      |                                 ^
main.c:10:24: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
   10 |                 return 0;
      |                        ^
main.c:4:6: note: declared here
    4 | void change(int S, int T){
      |      ^~~~~~
main.c:13:24: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
   13 |                 return 1;
      |                        ^
main.c:4:6: note: declared here
    4 | void change(int S, int T){
      |      ^~~~~~
main.c: In function 'main':
main.c:24:19: error: invalid use of void expression
   24 |     printf("%d\n",change(S,T));
      |                   ^~~~~~~~~~~
Language: C

#include <stdio.h>

int main(void){
    char S[20000], T[20000];
    scanf("%s", S);
    scanf("%s", T);
    
    int i;
    int wrong = 0;

    if (i=0; i <= 10; i++){
        S[i] != T[i];
        wrong += 1;
    }
    
    printf("%d\n", wrong);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:12: error: expected ')' before ';' token
   11 |     if (i=0; i <= 10; i++){
      |        ~   ^
      |            )
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:17:2: error: expected declaration or statement at end of input
   17 |  }
      |  ^
Language: C

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

int main(){
    int i=0;
    int count;
    char a;
    char b;
    printf("1つ目の文字列を入力");
    scanf("%s\n", a);
    printf("2つ目の文字列を入力");
    scanf("%s\n", b);

    while(a[i]!='\0' && b[i]!='\0'){
        if (a[i]!=b[i]){
            ++count;
        }
    }

    printf('%d', count);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:12: error: subscripted value is neither array nor pointer nor vector
   14 |     while(a[i]!='\0' && b[i]!='\0'){
      |            ^
main.c:14:26: error: subscripted value is neither array nor pointer nor vector
   14 |     while(a[i]!='\0' && b[i]!='\0'){
      |                          ^
main.c:15:14: error: subscripted value is neither array nor pointer nor vector
   15 |         if (a[i]!=b[i]){
      |              ^
main.c:15:20: error: subscripted value is neither array nor pointer nor vector
   15 |         if (a[i]!=b[i]){
      |                    ^
main.c:20:12: warning: multi-character character constant [-Wmultichar]
   20 |     printf('%d', count);
      |            ^~~~
main.c:20:12: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   20 |     printf('%d', count);
      |            ^~~~
      |            |
      |            int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C

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

int main(){
    char S[],T[];
    int ans;
    // scanf("%s", &S);
    // scanf("%s", &T);
    // printf("%s\n",S[1]);
    // for(int i=0; i<5; i++){
    //     if (S[i] != T[i] ){
    //         ans++;
    // }
    printf("%d\n",ans);
}



Compiler output:
main.c: In function 'main':
main.c:5:10: error: array size missing in 'S'
    5 |     char S[],T[];
      |          ^
main.c:5:14: error: array size missing in 'T'
    5 |     char S[],T[];
      |              ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:11:17: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
   11 |     for(i = 0;i<strlen(S);i++){
      |                 ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strlen'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | 
main.c:11:17: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
   11 |     for(i = 0;i<strlen(S);i++){
      |                 ^~~~~~
main.c:11:17: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:13:13: error: 'w' undeclared (first use in this function)
   13 |             w+=1;
      |             ^
main.c:13:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

int main(){
    char S[],T[];
    int ans;
    scanf("%s", &S);
    scanf("%s", &T);
    printf("%s\n",S[1]);
    // for(int i=0; i<5; i++){
    //     if (S[i] != T[i] ){
    //         ans++;
    // }
    printf("%d\n",ans);
}



Compiler output:
main.c: In function 'main':
main.c:5:10: error: array size missing in 'S'
    5 |     char S[],T[];
      |          ^
main.c:5:14: error: array size missing in 'T'
    5 |     char S[],T[];
      |              ^
Language: C

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

int change(const char *a, const char *b){
    int c =0;
    for (i=0; i<strlen(a); i++){
        if (a(i) != b(i)) c++;
    }
    return c;
    return 0;
}

int main(){
    const char *S = "cupofcoffee";
    const char *T = "cupofhottea";
    change(S, T);

    const char *S = "abcde";
    const char *T = "bcdea";
    change(S, T);
    return 0;
}

Compiler output:
main.c: In function 'change':
main.c:6:10: error: 'i' undeclared (first use in this function)
    6 |     for (i=0; i<strlen(a); i++){
      |          ^
main.c:6:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:13: error: called object 'a' is not a function or function pointer
    7 |         if (a(i) != b(i)) c++;
      |             ^
main.c:4:24: note: declared here
    4 | int change(const char *a, const char *b){
      |            ~~~~~~~~~~~~^
main.c:7:21: error: called object 'b' is not a function or function pointer
    7 |         if (a(i) != b(i)) c++;
      |                     ^
main.c:4:39: note: declared here
    4 | int change(const char *a, const char *b){
      |                           ~~~~~~~~~~~~^
main.c: In function 'main':
main.c:18:17: error: redefinition of 'S'
   18 |     const char *S = "abcde";
      |                 ^
main.c:14:17: note: previous definition of 'S' with type 'const char *'
   14 |     const char *S = "cupofcoffee";
      |                 ^
main.c:19:17: error: redefinition of 'T'
   19 |     const char *T = "bcdea";
      |                 ^
main.c:15:17: note: previous definition of 'T' with type 'const char *'
   15 |     const char *T = "cupofhottea";
      |                 ^
Language: C++

#include <stdio.h>

void minor(char *S, char *T){
    int i;
    int x;
    len=strlen(S);
    for(i=0; i<len; i++){
        if(S[i] != T[i]){
            x++;
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'void minor(char*, char*)':
a.cc:6:5: error: 'len' was not declared in this scope
    6 |     len=strlen(S);
      |     ^~~
a.cc:6:9: error: 'strlen' was not declared in this scope
    6 |     len=strlen(S);
      |         ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <stdio.h>
  +++ |+#include <cstring>
    2 | 
a.cc:12:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
   12 |     return 0;
      |            ^
Language: C

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

int main(){
    char s[200000];
    scanf("%s",&s);

    char t[200000];
    scanf("%s");

    
    int n;
    for(int i=0; i<200000; i++){
        char a=s[i];
        char b=t[i];

        if(a != b){
            n++;
        } 

        if(a == "\0"){
            printf("%d",n);
            break;
        }

        printf(%d,n);

    }

}

Compiler output:
main.c: In function 'main':
main.c:22:14: warning: comparison between pointer and integer
   22 |         if(a == "\0"){
      |              ^~
main.c:27:16: error: expected expression before '%' token
   27 |         printf(%d,n);
      |                ^
Language: C

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

int operation(char* S, char* T){
    int j = 0;
    for (int i = 0; i < sizeof(*S)/sizeof(char()); i++){
        if (strncpm(S+i, T+i, 1)==0) continue;
        j++;
    }
    return j;
}

int main() {
    char S[20000];
    char T[20000];
    scanf("%s\n", S);
    scanf("%s\n", T);
    printf("%d\n", operation(S, T));
}


Compiler output:
main.c: In function 'operation':
main.c:8:13: error: implicit declaration of function 'strncpm'; did you mean 'strncmp'? [-Wimplicit-function-declaration]
    8 |         if (strncpm(S+i, T+i, 1)==0) continue;
      |             ^~~~~~~
      |             strncmp
Language: Java

import java.util.*;

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;
    sc.close();
    
    While (!(s.equals(t))) {
      for (int i=0; i<s.length(); i++) {
        if (s.charAt(i) == t.charAt(i))
          count++;
      }
    }
    System.out.println(count);
  }
}


Compiler output:
Main.java:12: error: ';' expected
    While (!(s.equals(t))) {
                          ^
1 error
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:25: error: expression cannot be used as a function
   13 |   for(int i=0;i<s.size()();i++){
      |                 ~~~~~~~~^~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
  char s[2*(10^5)],t[2*(10^5];
  cin>>s;
  cin>>t;                     
  int c;
  for(int i=0;i<s.strlen()();i++){
    if(s[i]==t[i])
      c++;
  }
  cout<<c;
  return 0;
  }
#include <iostream>

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: warning: result of '10^5' is 15; did you mean '1e5'? [-Wxor-used-as-pow]
    5 |   char s[2*(10^5)],t[2*(10^5];
      |               ^
      |             ---
      |             1e
a.cc:5:13: note: you can silence this warning by using a hexadecimal constant (0xa rather than 10)
    5 |   char s[2*(10^5)],t[2*(10^5];
      |             ^~
      |             0xa
a.cc:5:27: warning: result of '10^5' is 15; did you mean '1e5'? [-Wxor-used-as-pow]
    5 |   char s[2*(10^5)],t[2*(10^5];
      |                           ^
      |                         ---
      |                         1e
a.cc:5:25: note: you can silence this warning by using a hexadecimal constant (0xa rather than 10)
    5 |   char s[2*(10^5)],t[2*(10^5];
      |                         ^~
      |                         0xa
a.cc:5:29: error: expected ')' before ']' token
    5 |   char s[2*(10^5)],t[2*(10^5];
      |                        ~    ^
      |                             )
a.cc:5:30: error: expected ']' before ';' token
    5 |   char s[2*(10^5)],t[2*(10^5];
      |                              ^
      |                              ]
a.cc:7:8: error: 't' was not declared in this scope
    7 |   cin>>t;
      |        ^
a.cc:9:19: error: request for member 'strlen' in 's', which is of non-class type 'char [30]'
    9 |   for(int i=0;i<s.strlen()();i++){
      |                   ^~~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
 int main(){
   char s[2*(10^5)],t[2*(10^5)];
   int c;
   for(int i=0;i<s.strlen();i++){
     if(s[i]==t[i])
     c++;
  }
  cout<<c;
  return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: warning: result of '10^5' is 15; did you mean '1e5'? [-Wxor-used-as-pow]
    5 |    char s[2*(10^5)],t[2*(10^5)];
      |                ^
      |              ---
      |              1e
a.cc:5:14: note: you can silence this warning by using a hexadecimal constant (0xa rather than 10)
    5 |    char s[2*(10^5)],t[2*(10^5)];
      |              ^~
      |              0xa
a.cc:5:28: warning: result of '10^5' is 15; did you mean '1e5'? [-Wxor-used-as-pow]
    5 |    char s[2*(10^5)],t[2*(10^5)];
      |                            ^
      |                          ---
      |                          1e
a.cc:5:26: note: you can silence this warning by using a hexadecimal constant (0xa rather than 10)
    5 |    char s[2*(10^5)],t[2*(10^5)];
      |                          ^~
      |                          0xa
a.cc:7:20: error: request for member 'strlen' in 's', which is of non-class type 'char [30]'
    7 |    for(int i=0;i<s.strlen();i++){
      |                    ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: no matching function for call to 'size()'
   12 |   for(int i=0;i<size();i++){
      |                 ~~~~^~
In file included from /usr/include/c++/14/string:53,
                 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/range_access.h:262:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
  262 |     size(const _Container& __cont) noexcept(noexcept(__cont.size()))
      |     ^~~~
/usr/include/c++/14/bits/range_access.h:262:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:272:5: note: candidate: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
  272 |     size(const _Tp (&)[_Nm]) noexcept
      |     ^~~~
/usr/include/c++/14/bits/range_access.h:272:5: note:   candidate expects 1 argument, 0 provided
Language: C++

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

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

 #include <iostream>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <climits>
#include <algorithm>
#include <numeric>
#include <utility>
#include <random>
#include <chrono>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>

using namespace std;

using LL = long long;
using ULL = unsigned long long;
using PII = pair<int, int>;
using PIL = pair<int, LL>;
using PLL = pair<LL, LL>;
// const int mod = 1e9 + 7;
// const int mod = 998244353;

inline void quickread() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
}

inline void work() {
    string s, t;
    cin >> s >> t;
    int res = 0;
    for (int i = 0; i < s.size(); ++i) {
        res += (s[i] != t[i]);
    }
    cout << res;
}

int main() {
    // freopen(".txt", "r", stdin);
    quickread();
    work();
    return 0

Compiler output:
a.cc: In function 'int main()':
a.cc:49:13: error: expected ';' at end of input
   49 |     return 0
      |             ^
      |             ;
a.cc:49:13: error: expected '}' at end of input
a.cc:45:12: note: to match this '{'
   45 | int main() {
      |            ^
Language: Java

import java.util.*;class Main{public static void main(String[] a){Scanner c=new Scanner(Sytem.in);String s=c.next();String t=c.next();int b=0;for(int i=0;i<s.length();i++){if(s.charAt(i)==t.charAt(i))b++;}System.out.println(b);}}

Compiler output:
Main.java:1: error: cannot find symbol
import java.util.*;class Main{public static void main(String[] a){Scanner c=new Scanner(Sytem.in);String s=c.next();String t=c.next();int b=0;for(int i=0;i<s.length();i++){if(s.charAt(i)==t.charAt(i))b++;}System.out.println(b);}}
                                                                                        ^
  symbol:   variable Sytem
  location: class Main
1 error
Language: Java

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

Compiler output:
Main.java:1: error: variable a is already defined in method main(String[])
import java.util.*;class Main{public static void main(String[] a){Scanner c=new Scanner(System.in);String s=c.next();String t=c.next();int a=0;for(int i=0;i<s.length();i++){if(s.charAt(i)==t.charAt(i))a++;}System.out.println(a);}}
                                                                                                                                           ^
1 error
Language: Java

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

Compiler output:
Main.java:1: error: cannot find symbol
import java.util.*;class Main{public static void main(String[] a){Scanner c=new Scanner(Sytem.in);String s=c.next();String t=c.next();int a=0;for(int i=0;i<s.length();i++){if(s.charAt(i)==t.charAt(i))a++;}System.out.println(a);}}
                                                                                        ^
  symbol:   variable Sytem
  location: class Main
Main.java:1: error: variable a is already defined in method main(String[])
import java.util.*;class Main{public static void main(String[] a){Scanner c=new Scanner(Sytem.in);String s=c.next();String t=c.next();int a=0;for(int i=0;i<s.length();i++){if(s.charAt(i)==t.charAt(i))a++;}System.out.println(a);}}
                                                                                                                                          ^
2 errors
Language: C++

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


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

#include<iostream>
using namespace std;
int main()
{
  string a,b;
  cin>>a;
  cin>>b;
  int l=a.length();
int c=0;
  for(int i=0;i<l;i++)
  {if(a[i]===b[i])
    c++;
  }
  cout<<c;
  return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected primary-expression before '=' token
   11 |   {if(a[i]===b[i])
      |             ^
Language: C

#include<iostream>
using namespace std;
int main()
{
  string a,b;
  cin>>a;
  cin>>b;
  int l=a.length();
int c=0;
  for(int i=0;i<l;i++)
  {if(a[i]===b[i])
    c++;
  }
  cout<<c;
  return 0;
  
}



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

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

#define rep(ver,n) rep2(ver,0,n)
#define rep2(ver,m,n) for(int ver=m;ver<(n);ver++)
#define loop while(true)
#define dup(x,y) (((x)+(y)-1)/(y))
#define all(v) (v).begin(), (v).end()
#define debug(x) std::cerr<<#x<<": "<<x<<"\n"
#define debug2(x,y) std::cerr<<#x<<": "<<x<<", "<<#y<<": "<<y<<"\n"
#define debug3(x,y,z) std::cerr<<#x<<": "<<x<<", "<<#y<<": "<<y<<", "<<#z<<": "<<z<<"\n"

typedef long long ll;
typedef pair<int, int> P;

int main(){
  char[] s1[300000];
  char[] s2[300000];
  
  scanf("%s", s1);
  scanf("%s", s2);
  
  int ans=0;
  for(int i=0;i<250000;i++){
    if(s1[i]=='\0')brake;
    if(s1[i]!=s2[i])ans++;
  }
  
  printf("%d",ans);
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:7: error: structured binding declaration cannot have type 'char'
   17 |   char[] s1[300000];
      |       ^~
a.cc:17:7: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:17:7: error: empty structured binding declaration
a.cc:17:10: error: expected initializer before 's1'
   17 |   char[] s1[300000];
      |          ^~
a.cc:18:7: error: structured binding declaration cannot have type 'char'
   18 |   char[] s2[300000];
      |       ^~
a.cc:18:7: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:18:7: error: empty structured binding declaration
a.cc:18:10: error: expected initializer before 's2'
   18 |   char[] s2[300000];
      |          ^~
a.cc:20:15: error: 's1' was not declared in this scope; did you mean 'y1'?
   20 |   scanf("%s", s1);
      |               ^~
      |               y1
a.cc:21:15: error: 's2' was not declared in this scope
   21 |   scanf("%s", s2);
      |               ^~
a.cc:25:20: error: 'brake' was not declared in this scope; did you mean 'brk'?
   25 |     if(s1[i]=='\0')brake;
      |                    ^~~~~
      |                    brk
Language: C

##include <stdio.h>

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


Compiler output:
main.c:1:1: error: stray '##' in program
    1 | ##include <stdio.h>
      | ^~
main.c:1:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | ##include <stdio.h>
      |           ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:13:20: error: 'sum' undeclared (first use in this function)
   13 |     printf("%d\n", sum);
      |                    ^~~
main.c:13:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

#define LENGTH 20000;
int main(){
  char S[LENGTH];
  char T[LENGTH];
  int r=0;
  int count=0;
  r=scanf("%s\n%s", S, T);
  int size = strlen(S);
  for(int i=0; i< size; i++){
    if(S[i]!=T[i]){
      count++;
    }
  }
  printf("%d\n", count);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:21: error: expected ']' before ';' token
    4 | #define LENGTH 20000;
      |                     ^
main.c:6:10: note: in expansion of macro 'LENGTH'
    6 |   char S[LENGTH];
      |          ^~~~~~
main.c:4:21: error: expected ']' before ';' token
    4 | #define LENGTH 20000;
      |                     ^
main.c:7:10: note: in expansion of macro 'LENGTH'
    7 |   char T[LENGTH];
      |          ^~~~~~
main.c:10:21: error: 'S' undeclared (first use in this function)
   10 |   r=scanf("%s\n%s", S, T);
      |                     ^
main.c:10:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:24: error: 'T' undeclared (first use in this function)
   10 |   r=scanf("%s\n%s", S, T);
      |                        ^
Language: C

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

define LENGTH 20000;
int main(){
  char S[LENGTH];
  char T[LENGTH];
  int r=0;
  int count=0;
  r=scanf("%s\n%s", S, T);
  int size = strlen(S);
  for(int i=0; i< size; i++){
    if(S[i]!=T[i]){
      count++;
    }
  }
  printf("%d\n", count);
  return 0;
}


Compiler output:
main.c:4:1: error: unknown type name 'define'
    4 | define LENGTH 20000;
      | ^~~~~~
main.c:4:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
    4 | define LENGTH 20000;
      |               ^~~~~
main.c: In function 'main':
main.c:6:10: error: 'LENGTH' undeclared (first use in this function)
    6 |   char S[LENGTH];
      |          ^~~~~~
main.c:6:10: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:8: error: size of array 'S' has non-integer type
    5 |   char S[n];
      |        ^
main.c:6:8: error: size of array 'T' has non-integer type
    6 |   char T[n];
      |        ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:8: error: size of array 'S' has non-integer type
    5 |   char S[n];
      |        ^
main.c:6:8: error: size of array 'T' has non-integer type
    6 |   char T[n];
      |        ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:8: error: size of array 'S' has non-integer type
    5 |   char S[n];
      |        ^
main.c:6:8: error: size of array 'T' has non-integer type
    6 |   char T[n];
      |        ^
Language: C

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

int main (void){
  char S[200001], T[200001];
  int i = 0, ans = 0;
  scanf("%s","%s", S, t);
  for(i = 0; i < strlen(s); i++){
     if(s[i] != t[i]){
       ans++;
     }
  }

Compiler output:
main.c: In function 'main':
main.c:7:23: error: 't' undeclared (first use in this function)
    7 |   scanf("%s","%s", S, t);
      |                       ^
main.c:7:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:25: error: 's' undeclared (first use in this function)
    8 |   for(i = 0; i < strlen(s); i++){
      |                         ^
main.c:12:3: error: expected declaration or statement at end of input
   12 |   }
      |   ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:9:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ret'
    9 |   ret = scanf("%s\n", S);
      |   ^~~
main.c:9:3: error: 'ret' undeclared (first use in this function)
main.c:9:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:8:19: error: expected expression before ')' token
    8 |   scanf("%s\n", S,);
      |                   ^
Language: C

#include <studio.h>
int main(void) {
  char s[200001], t[200001];
  int i = 0, a = 0;
  scanf("%s", s);
  scanf("%s", t);
  
  for(i = 0; i < strlen(s); i++) {
    if(s[i] != T[i]) {
      a++;
    }
  }
  
  printf("%d\n", a);
}

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

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

#define N 200001

int main(void)
{
	int i,length,count=0;
	char str_s[N],str_t[N];

	scanf("%s",str_s);
	scanf("%s",str_t);

	n = strlen(str_s);

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

	printf("%d\n",count);

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:9: error: 'n' undeclared (first use in this function)
   14 |         n = strlen(str_s);
      |         ^
main.c:14:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:20: error: 's' undeclared (first use in this function)
   17 |                 if(s[i]!=t[i]){
      |                    ^
main.c:17:26: error: 't' undeclared (first use in this function)
   17 |                 if(s[i]!=t[i]){
      |                          ^
Language: C

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

int main(void){
  int i = 0;
  int n = 0;
  char S[i] = S;
  char T[i] = T;
  scanf("%d", &S);
  scanf("%d", &T);
  for(i = 0, i < 200000, i++;){
    if(strcmp(S, T) == 0){
       printf("0\n");
    }else if(S[i] < T[i]){
      n = n + 1;
    }else
      n = n + 1;
    printf("%d\n", n);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:15: error: variable-sized object may not be initialized except with an empty initializer
    8 |   char S[i] = S;
      |               ^
main.c:9:15: error: variable-sized object may not be initialized except with an empty initializer
    9 |   char T[i] = T;
      |               ^
main.c:12:30: error: expected expression before ')' token
   12 |   for(i = 0, i < 200000, i++;){
      |                              ^
Language: C

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

int main(void){
  int i = 0;
  int n = 0;
  char S[i];
  char T[i];
  scanf("%s", &S);
  scanf("%s", &T);
  for(i = 0, i < 200000, i++){
    if(strcmp(S, T) == 0){
       printf("0\n")
    }else if(S[i] < T[i]){
      n = n + 1;
    }else
      n = n + 1;
    printf("%d\n", n)
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:29: error: expected ';' before ')' token
   12 |   for(i = 0, i < 200000, i++){
      |                             ^
      |                             ;
main.c:12:29: error: expected expression before ')' token
main.c:14:21: error: expected ';' before '}' token
   14 |        printf("0\n")
      |                     ^
      |                     ;
   15 |     }else if(S[i] < T[i]){
      |     ~                
main.c:19:22: error: expected ';' before '}' token
   19 |     printf("%d\n", n)
      |                      ^
      |                      ;
   20 |   }
      |   ~
Language: C++

#include <iostream>
 
using namespace std;
 
int main() {
    std::string S;
    cin >> S;
    std::string T;
    cin >> T;
    int out=0
    if(S == T){cout << out << endl;}
    else{
      for(int i = 0; i < (int)S.size(); ++i)
      {
         char s_tmp = S[i];
         
         for(int j = 1; j < (int)T.size()-1; ++j)
         {
             char t_tmp = T[j];
             if(s_tmp == t_tmp){
                 out += 1;
                 break;
             }
             else{
                 out += 0;
             }  
 
 
         }
 
      }
      cout << out << endl;
    }
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected ',' or ';' before 'if'
   11 |     if(S == T){cout << out << endl;}
      |     ^~
a.cc:12:5: error: 'else' without a previous 'if'
   12 |     else{
      |     ^~~~
Language: C++

#include <iostream>

using namespace std;

int main() {
    std::string S;
    cin >> S;
    std::string T;
    cin >> T;
    int out=0
    if(S == T){cout << out << endl;}
    else{
      for(int i = 0; i < (int)S.size(); ++i)
      {
         char s_tmp = S[i];
         
         for(int j = 0; j < (int)T.size(); ++j)
         {
             char t_tmp = T[i];
             if(s_tmp == t_tmp){
                 out += 0;
             }
             else{
                 out += 1;
             }  


         }

      }
      cout << out << endl;
    }
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected ',' or ';' before 'if'
   11 |     if(S == T){cout << out << endl;}
      |     ^~
a.cc:12:5: error: 'else' without a previous 'if'
   12 |     else{
      |     ^~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:8:11: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
    8 |         b=strlen(s);
      |           ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strlen'
    1 | #include<stdio.h>
  +++ |+#include <string.h>
    2 | int main(void)
main.c:8:11: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
    8 |         b=strlen(s);
      |           ^~~~~~
main.c:8:11: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:12:20: error: expected ';' before '}' token
   12 |                 i++
      |                    ^
      |                    ;
   13 |         }
      |         ~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:4: error: 'cotu' was not declared in this scope
   12 |    cotu << changes << endl;
      |    ^~~~
Language: C

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

int main(){
   int changes = 0;
   string s,t;
   cin >> s >> t;
   for(int i = 0; i < s.size();++i){
      if(s[i] != t[i])
         changes++;
   }
   cotu << changes << endl;
   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(){
	int s,t;
	cin >> s >> t;
	int ans = 0;
	for(int i = 0; i < s.size(); i++){
		if(s[i] != t[i]) ans++;
	}
	cout << ans; return 0;

}

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

#include <bits/stdc++.h>

using namespace std;

int main(){
  str a, b;
  int count = 0;
  cin >> a >> b;
  for (int i = 0, i<a.length(); i++){
    if (a[i] != b[i]){
      count++;
    }
    
  }
  cout << count;
  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 a, b;
      |   ^~~
      |   std
a.cc:8:10: error: 'a' was not declared in this scope
    8 |   cin >> a >> b;
      |          ^
a.cc:8:15: error: 'b' was not declared in this scope
    8 |   cin >> a >> b;
      |               ^
a.cc:9:20: error: expected ';' before '<' token
    9 |   for (int i = 0, i<a.length(); i++){
      |                    ^
      |                    ;
a.cc:9:20: error: expected primary-expression before '<' token