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

#include <iostream>
#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
#include <numeric>
#include <string>
#include <functional>
#include <iostream>
#include <cstdlib>
#include <algorithm>
#include <cctype>
#include <iostream>
#include <string>
#include <algorithm>
#include <string>

using namespace std;
     
int main() {
  int n,b;
  cin >> n >> b;
  std::string s;
  cin >> s;
        
  char cary[n]; 
  s.copy(cary, n);
      
  for (int i=0;i<n;i++){
    if (i == b-1 {
      cary[b] = static_cast<char>(std::tolower(static_cast<unsigned char>(cary[b])));
    }
  }
     
  cout << cary << endl;    
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:17: error: expected ')' before '{' token
   32 |     if (i == b-1 {
      |        ~        ^~
      |                 )
a.cc:35:3: error: expected primary-expression before '}' token
   35 |   }
      |   ^
Language: C++

#include<bits/stdio.h>
using namespace
  int main ()
  ｛
  int N,K;
  string S;
  cin>>N>>K>>S;
  if(S[K－1]=="A")｛
  S[K－1]="a"｝
  else if(S[K－1]=="B")｛
  S[K－1]="b"｝
  else if(S[K－1]=="C")｛
  S[K－1]="c"｝
  cout<<S<<endl;
｝

Compiler output:
In file included from a.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio.h:23:3: error: #error "Never include <bits/stdio.h> directly; use <stdio.h> instead."
   23 | # error "Never include <bits/stdio.h> directly; use <stdio.h> instead."
      |   ^~~~~
a.cc:3:3: error: expected identifier before 'int'
    3 |   int main ()
      |   ^~~
a.cc:2:16: error: expected ';' before 'int'
    2 | using namespace
      |                ^
      |                ;
    3 |   int main ()
      |   ~~~           
a.cc:4:3: error: expected initializer before '\U0000ff5b'
    4 |   ｛
      |   ^~
a.cc:6:3: error: 'string' does not name a type
    6 |   string S;
      |   ^~~~~~
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin>>N>>K>>S;
      |   ^~~
a.cc:8:3: error: expected unqualified-id before 'if'
    8 |   if(S[K－1]=="A")｛
      |   ^~
a.cc:15:1: error: '\U0000ff5d' does not name a type
   15 | ｝
      | ^~
Language: C++

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

int main() {
  int N;
  int K;
  string str1;
  cin >> N >> K;
  cin >> str1;
  for (int i = 1; i < N+1; i++) {
    if (i == K) {
    if (str.at(K) == "A") {
    cout << "a" << endl;
  }
  if (str.at(K) == "a") {
    cout << "A" << endl;
  }
  if (str.at(K) == "B") {
    cout << "b" << endl;
  }
  if (str.at(K) == "b") {
    cout << "B" << endl;
  }
  if (str.at(K) == "C") {
    cout << "c" << endl;
  }
  if (str.at(K) == "c") {
    cout << "C" << endl;
  }
      
  }
    else{
      cout << str.at(i) << endl;
    }
    }
    
    
    
  

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'str' was not declared in this scope; did you mean 'str1'?
   12 |     if (str.at(K) == "A") {
      |         ^~~
      |         str1
a.cc:15:7: error: 'str' was not declared in this scope; did you mean 'str1'?
   15 |   if (str.at(K) == "a") {
      |       ^~~
      |       str1
a.cc:18:7: error: 'str' was not declared in this scope; did you mean 'str1'?
   18 |   if (str.at(K) == "B") {
      |       ^~~
      |       str1
a.cc:21:7: error: 'str' was not declared in this scope; did you mean 'str1'?
   21 |   if (str.at(K) == "b") {
      |       ^~~
      |       str1
a.cc:24:7: error: 'str' was not declared in this scope; did you mean 'str1'?
   24 |   if (str.at(K) == "C") {
      |       ^~~
      |       str1
a.cc:27:7: error: 'str' was not declared in this scope; did you mean 'str1'?
   27 |   if (str.at(K) == "c") {
      |       ^~~
      |       str1
a.cc:33:15: error: 'str' was not declared in this scope; did you mean 'str1'?
   33 |       cout << str.at(i) << endl;
      |               ^~~
      |               str1
a.cc:35:6: error: expected '}' at end of input
   35 |     }
      |      ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include<bits/stdc++.h>
using namespace std ;
#define ll long long int 
#define pb push_back 
#define mp make_pair 
int main(){
	ios_base::sync_with_stdio(false) ;
	cin.tie(NULL) ;
	int n , k ;
	cin >> n >> k ;
	string s ;
	cin >> s ;
	k-- ;
	for(int i = 0 ; i < n ; i++){
		if(i == k){
			if(s[i] == 'A')
				cout 'a' ;
			if(s[i] == 'B')
				cout 'b' ;
			if(s[i] == 'C')
				cout 'c' ;
		}
		else
			cout << s[i] ;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:37: error: expected ';' before 'a'
   17 |                                 cout 'a' ;
      |                                     ^~~~
      |                                     ;
a.cc:19:37: error: expected ';' before 'b'
   19 |                                 cout 'b' ;
      |                                     ^~~~
      |                                     ;
a.cc:21:37: error: expected ';' before 'c'
   21 |                                 cout 'c' ;
      |                                     ^~~~
      |                                     ;
Language: C++

#include <stdio.h>
#include<iostream>
#include<vector>
#include<math.h>
#include<string>
int main(){
	int N, K;
	string S;
	scanf("%d%d", &N, &K);
	cin >> S;
	char c = S[K - 1];
	c = c + 0x20;
	S[K] = c;
	std::cout << S;
}


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

#include <stdio.h>
int to_small(char*)

int main(){
    int N,K;
    char S[N];
    scanf("%d",&N);
    scanf("%d",&K);
    scanf("%s",S);
    to_small(&S[K]);
    printf("%s",S);
    return 0;
}

int to_small(char *m){
    if(*m=="A"){
        *m=="a";
    }
    if(*m=="B"){
        *m=="b";
    }
    if(*m=="C"){
        *m=="c";
    }
    return 0;
}


Compiler output:
main.c: In function 'to_small':
main.c:4:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    4 | int main(){
      |           ^
main.c:15:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   15 | int to_small(char *m){
      |                      ^
main.c:27: error: expected '{' at end of input
Language: C++

#include<iostream>
#include<string>
using nanespace std;
int main(){
string s;
int n,k;
cin>>n>>k>>s;
if(s[k]=="A"){s[k]="a";}
else if(s[k]=="B"){s[k]="b";}
else if(s[k]=="C"){s[k]="c";}
system("pause");
return 0;
}


Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'nanespace'
    3 | using nanespace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'string' was not declared in this scope
    5 | string s;
      | ^~~~~~
a.cc:5:1: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:7:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 | cin>>n>>k>>s;
      | ^~~
      | std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:12: error: 's' was not declared in this scope
    7 | cin>>n>>k>>s;
      |            ^
Language: Java

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        String S = sc.next();

        if(K==1){
            S= new String(S.charAt(K-1)+"").toLowerCase() + S.substring(K);
        }else{
            S= S.substring(0,K-1) + new String(S.charAt(K-1)+"").toLowerCase() + S.substring(K);
        }


        System.out.println(S);


    }

}


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 < bits/stdc++.h >

using namespace std;


int main()
{
	int n, k;
	cin >> n >> k;
	vector<char> s(n);
	for (int i = 0; i < n; i++) {
		cin >> s[i];
	}
	if (s[k - 1] == 'A') {
		s[k - 1] = 'a';
	}
	else if (s[k - 1] == 'B') {
		s[k - 1] = 'b';
	}
	else {
		s[k - 1] = 'c';
	}
	for (int i = 0; i < n; i++) {
		cout << s[i];
	}
	cout << endl;
	return 0;
}

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


#include<iostream>
#include<ctype.h>
#include <stdio.h>

using namespace std;

int main()
{
    int a, b;
    string s;

    scanf("%d %d %s", *a, *b, s);

        s[b] = tolower(s[b]);

    printf("%s",s)

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:23: error: invalid type argument of unary '*' (have 'int')
   13 |     scanf("%d %d %s", *a, *b, s);
      |                       ^~
a.cc:13:27: error: invalid type argument of unary '*' (have 'int')
   13 |     scanf("%d %d %s", *a, *b, s);
      |                           ^~
a.cc:17:19: error: expected ';' before 'return'
   17 |     printf("%s",s)
      |                   ^
      |                   ;
   18 | 
   19 |     return 0;
      |     ~~~~~~
Language: C++

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

int main() {
    int AA[50];
    int a,b;
    cin >> a >> b;
    for (int i=0; i<a; i++){
        cin >> AA[i];
    }
    b -= 1;
    int tolower(AA[b]);
    for(int i= 0 i<a; i++){
        cout << AA[i];
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: expected ';' before 'i'
   13 |     for(int i= 0 i<a; i++){
      |                 ^~
      |                 ;
Language: C++

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

int main(){
  int N,K;
  string S;
  cin >> N;
  cin >> K;
  cin >> S;
　S[K-1] += ('a'-'A');
  cout << S;
}

Compiler output:
a.cc:11:1: error: extended character 　 is not valid in an identifier
   11 | 　S[K-1] += ('a'-'A');
      | ^
a.cc: In function 'int main()':
a.cc:11:1: error: '\U00003000S' was not declared in this scope
   11 | 　S[K-1] += ('a'-'A');
      | ^~~
Language: C

#include <stdio.h>
int to_small(char*)

int main(){
    int N,K;
    char S[N];
    scanf("%d",&N);
    scanf("%d",&K);
    scanf("%s",S);
    to_small(&S[K]);
    printf("%s",S);
    return 0;
}
int to_small(char *m){
    if(*m="A") *m="a";
    if(*m="B") *m="b";
    if(*m="C") *m="c";
    return 0;
}

Compiler output:
main.c: In function 'to_small':
main.c:4:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    4 | int main(){
      |           ^
main.c:14:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   14 | int to_small(char *m){
      |                      ^
main.c:20: error: expected '{' at end of input
Language: Java

import java.util.Scanner;

public class BC126A {

    String s;
    int n, k;

    public void solve() {
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        k = sc.nextInt();
        s = sc.next();

        String res = "";
        for (int i = 0; i < n; i++) {
            if (i == k-1) {
                res += Character.toLowerCase(s.charAt(i));
            } else {
                res += s.charAt(i);
            }

        }


        System.out.println(res);

    }
    public static void main(String[] args) {
        new BC126A().solve();

    }
}


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

#include "pch.h"
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>

#include <vector>
#include <set>
#include <map>
#include <iostream>
#include <utility>
#include <queue>
#include <algorithm>
#include <functional>
#include <string>
#include <bitset>

#define ll long long
#define fri(n) for(i=0;i<(n);i++)
#define frj(n) for(j=0;j<(n);i++)
#define min(p,q) ((p)<(q)?(p):(q))
#define max(p,q) ((p)>(q)?(p):(q))
#define INF 1000000000000000000//10^18
#define INFINT 2000000001//2*10^9+1
#define MOD 1000000007
#define MODANOTHER 998244353
#define PI acos(-1)

using namespace std;


int main(void)
{
	//変数の宣言
	int n,k;
	char s[55];

	//よく使う変数
	int i,j,l;
	int flag=0;
	int ans=0;
	int count=0;
	int temp=0;
	int temp1=0;
	int temp2=0;
	int max=0;
	int min=INFINT;
	int len=0;
	int sum=0;
	int ok=0;
	int ng=0;
	char dummy;



	//データの読み込み


//	scanf("%d %d",&n,&k);
	scanf_s("%d %d",&n,&k);

//	scanf("%s",&s);
	scanf_s("%s",&s,55);


/*	for(i=1;i<=n;i++){
//		scanf("%c",&a,&b,&f);
		scanf_s("%c",&a,&b,&f);
	}*/



	//	printf("nは%dです\n", n);
	//	printf("データの読み込み終了\n");
	//実際の処理

	s[k]=s[k]+32;

	//	printf("計算部分終了\n");

	//出力

	printf("%s",s);



	//	printf("結果の出力終了\n");

	return 0;
}



Compiler output:
a.cc:1:10: fatal error: pch.h: No such file or directory
    1 | #include "pch.h"
      |          ^~~~~~~
compilation terminated.
Language: C++

#include <stdio.h>
#include<iostream>
#include<vector>
#include<math.h>
#include<string>
int main(){
	int N, K;
	string S;
	scanf("%d%d", &N, &K);
	cin >> S;
	char c = S[K];
	c = c + 0x20;
	S[K] = c;
	std::cout << S;
}


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

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

int main(){
  	int N,K;
	string S;
  cin>> N ;
  cin>> K ;
  cin>> S ;
  if(S.at(K) == "A"); {S.at(K) = "a" ;}
  if(S.at(K) == "B"); {S.at(K) = "b" ;}
  if(S.at(K) == "c"); {S.at(K) = "c" ;}
  cout<< S << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if(S.at(K) == "A"); {S.at(K) = "a" ;}
      |      ~~~~~~~~^~~~~~
a.cc:10:34: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   10 |   if(S.at(K) == "A"); {S.at(K) = "a" ;}
      |                                  ^~~
      |                                  |
      |                                  const char*
a.cc:11:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if(S.at(K) == "B"); {S.at(K) = "b" ;}
      |      ~~~~~~~~^~~~~~
a.cc:11:34: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   11 |   if(S.at(K) == "B"); {S.at(K) = "b" ;}
      |                                  ^~~
      |                                  |
      |                                  const char*
a.cc:12:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   if(S.at(K) == "c"); {S.at(K) = "c" ;}
      |      ~~~~~~~~^~~~~~
a.cc:12:34: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   12 |   if(S.at(K) == "c"); {S.at(K) = "c" ;}
      |                                  ^~~
      |                                  |
      |                                  const char*
Language: C++


#include<iostream>
#include<ctype.h>
#include <stdio.h>

using namespace std;

int main()
{
    int a, b;
    string s;

    scanf("%d %d %s", a, b, s);

        s[b] = tolower(s[b]);

    printf("%s",s)

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:19: error: expected ';' before 'return'
   17 |     printf("%s",s)
      |                   ^
      |                   ;
   18 | 
   19 |     return 0;
      |     ~~~~~~
Language: C++

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

int main() {
    int N, K;
    string S;
    cin >> N >> K >> S;
    if (S.at(K-1) == 'A') S.at(K-1) = 'a';
    if (S.at(K-1) == 'A') S.at(K-1) = 'b';
    if (S.at(K-1) == 'A') S.at(K-1) = 'c';
    cout << S << endl;
    return 0;
}

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

N, K = map(int, input().split(" "))
S = input()
for i, s in zip(1, s):
    if i == K:
        print(s, end="")
    else:
        print(s)


Compiler output:
a.cc:1:1: error: 'N' does not name a type
    1 | N, K = map(int, input().split(" "))
      | ^
Language: C

miu = input().split()
sella = input()

for x in sella:
	if x == int(miu[1]):
		print(x.lower(), end='')
    else:
		print(x, end='')

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | miu = input().split()
      | ^~~
main.c:1:1: error: type defaults to 'int' in declaration of 'miu' [-Wimplicit-int]
main.c:1:7: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | miu = input().split()
      |       ^~~~~
main.c:1:14: error: request for member 'split' in something not a structure or union
    1 | miu = input().split()
      |              ^
main.c:2:1: error: expected ',' or ';' before 'sella'
    2 | sella = input()
      | ^~~~~
main.c:6:38: error: empty character constant
    6 |                 print(x.lower(), end='')
      |                                      ^~
main.c:8:30: error: empty character constant
    8 |                 print(x, end='')
      |                              ^~
Language: C++

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

int main(){
  int N,K; cin >> N >> K;
  string S; cin >> S;
  if (S.at(K - 1) == 'A'){
    S.at(K - 1) = 'a'
  }else if (S.at(K - 1) == 'B'){
    S.at(K - 1) = 'b'
  }else{
    S.at(K - 1) = 'c'}
  cout << S << endl; 
}
    
    
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ';' before '}' token
    8 |     S.at(K - 1) = 'a'
      |                      ^
      |                      ;
    9 |   }else if (S.at(K - 1) == 'B'){
      |   ~                   
a.cc:10:22: error: expected ';' before '}' token
   10 |     S.at(K - 1) = 'b'
      |                      ^
      |                      ;
   11 |   }else{
      |   ~                   
a.cc:12:22: error: expected ';' before '}' token
   12 |     S.at(K - 1) = 'c'}
      |                      ^
      |                      ;
Language: C++

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

int main(){
  int N,K; cin >> N >> K;
  string S; cin >> S;
  if (S.at(K - 1) == A){
    S.at(K - 1) = 'a'
  }else if (S.at(K - 1) == B){
    S.at(K - 1) = 'b'
  }else{
    S.at(K - 1) = 'c'}
  cout << S << endl; 
}
    
    
  

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: 'A' was not declared in this scope
    7 |   if (S.at(K - 1) == A){
      |                      ^
a.cc:8:22: error: expected ';' before '}' token
    8 |     S.at(K - 1) = 'a'
      |                      ^
      |                      ;
    9 |   }else if (S.at(K - 1) == B){
      |   ~                   
a.cc:9:28: error: 'B' was not declared in this scope
    9 |   }else if (S.at(K - 1) == B){
      |                            ^
a.cc:10:22: error: expected ';' before '}' token
   10 |     S.at(K - 1) = 'b'
      |                      ^
      |                      ;
   11 |   }else{
      |   ~                   
a.cc:12:22: error: expected ';' before '}' token
   12 |     S.at(K - 1) = 'c'}
      |                      ^
      |                      ;
Language: C++

#include "bits/stdc++.h"
using namespace std;
#define int long long

signed main() {
	int n,k;
	string s;
 	cin >> n >> k >> s;

	string s2;
	s2 = s[k - 1];

	transform(s2.begin(), s2.end(), s2.begin(), tolower);
	s[k - 1] = s2[0];

	cout << s << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
   13 |         transform(s2.begin(), s2.end(), s2.begin(), tolower);
      |         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
 4209 |     transform(_InputIterator __first, _InputIterator __last,
      |     ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note:   template argument deduction/substitution failed:
a.cc:13:18: note:   couldn't deduce template parameter '_UnaryOperation'
   13 |         transform(s2.begin(), s2.end(), s2.begin(), tolower);
      |         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
 4247 |     transform(_InputIterator1 __first1, _InputIterator1 __last1,
      |     ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note:   candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
  156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
      | ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note:   candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
  162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
      | ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note:   candidate expects 6 arguments, 4 provided
Language: C++

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

int main(){
  int N,K;
  cin >> N>>K;
  
  string S;
  cin >> S;
  
  if(S[K]=='A'){
    S[K] ='a'
  }else if(S[K]=='B'){
    S[K] ='b'
  }else if(S[K]=='C'){
    S[K] ='c'
  }
  
  cout << S << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: expected ';' before '}' token
   13 |     S[K] ='a'
      |              ^
      |              ;
   14 |   }else if(S[K]=='B'){
      |   ~           
a.cc:15:14: error: expected ';' before '}' token
   15 |     S[K] ='b'
      |              ^
      |              ;
   16 |   }else if(S[K]=='C'){
      |   ~           
a.cc:17:14: error: expected ';' before '}' token
   17 |     S[K] ='c'
      |              ^
      |              ;
   18 |   }
      |   ~
Language: C++

package main

import (
	"fmt"
)

func toLower(char byte) string {
	if char == []byte("A")[0] {
		return "a"
	} else if char == []byte("B")[0] {
		return "b"
	}
	return "c"
}

func main() {
	var n, k int
	var s string
	fmt.Scanf("%d %d", &n, &k)
	fmt.Scanf("%s", &s)

	fmt.Print(s[0 : k-1])
	fmt.Print(toLower(s[k-1]))
	fmt.Print(s[k:])

}


Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
a.cc:16:1: error: 'func' does not name a type
   16 | func main() {
      | ^~~~
Language: C++

#include <iostream>

using namespace std;


int main() {
    int N, K;
    string S;
    cin >> N >> K >> S;

    string str = S.substr(K - 1, 1);
    transform(str.begin(), str.end(), str.begin(), ::tolower);


    cout << S.replace(K - 1, 1, str);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'transform' was not declared in this scope
   12 |     transform(str.begin(), str.end(), str.begin(), ::tolower);
      |     ^~~~~~~~~
Language: C++

// https://atcoder.jp/contests/abc126/tasks/abc126_a
/*<head>*/
#include "Template.hpp"
/*</head>*/

/*<body>*/
/*</body>*/

int main() {
    int n, k;
    cin >> n >> k;
    string s;
    cin >> s;
    s[k - 1] = tolower(s[k - 1]);
    cout << s << endl;
    return 0;
}

Compiler output:
a.cc:3:10: fatal error: Template.hpp: No such file or directory
    3 | #include "Template.hpp"
      |          ^~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N, K;
  string S;
  cin >> N >> K;
  cin >> S;
  
  if(S.at(K-1) == 'A'){
    S.at(K-1) = 'a'    
  }
  if(S.at(K-1) == 'B'){
    S.at(K-1) = 'b'
  }
  if(S.at(K-1) == 'C'){
    S.at(K-1) = 'c'
  }
  cout << S << endl;
  return 0;
}
    
  


Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected ';' before '}' token
   11 |     S.at(K-1) = 'a'
      |                    ^
      |                    ;
   12 |   }
      |   ~                 
a.cc:14:20: error: expected ';' before '}' token
   14 |     S.at(K-1) = 'b'
      |                    ^
      |                    ;
   15 |   }
      |   ~                 
a.cc:17:20: error: expected ';' before '}' token
   17 |     S.at(K-1) = 'c'
      |                    ^
      |                    ;
   18 |   }
      |   ~
Language: C++

X =input().split()
N = int(X[0])
K = int(X[1])
S = list(str(input()))

if S[K]=="A":
    S[K] = "a"
elif S[K]=="B":
    S[K] = "b"
elif S[K]=="C":
    S[K] = "c"
for i in S:
  print(i, end ="")

Compiler output:
a.cc:1:1: error: 'X' does not name a type
    1 | X =input().split()
      | ^
Language: Java

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

public class _126_ChangingACharacter {
    static BufferedReader input = null;

    static {
        input = new BufferedReader(new InputStreamReader(System.in));
    }

    public static void main(String ar[]) throws IOException {
        String nk[] = input.readLine().split(" ");
        int k = Integer.parseInt(nk[1]) - 1;
        char str[] = input.readLine().toCharArray();
        str[k] = (char) (str[k] - ('A' - 'a'));
        System.out.println(String.valueOf(str));
    }
}


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

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

using namespace std;

int main(void){
    int n =0;
    int k=0;
    int offset = 0;
    string s;

    scanf("%d",&n);
    scanf("%d",&k);
    cin >> s;

    offset = s[k-1] - 0x41;
    s[k-1] = 0x61 + offset;

    cout << s ;.

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:16: error: expected primary-expression before '.' token
   20 |     cout << s ;.
      |                ^
a.cc:22:5: error: expected unqualified-id before 'return'
   22 |     return 0;
      |     ^~~~~~
Language: C++

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

int main() {
  int n k;
  string s;
  cin >> n >> k >> s;
  if (s.at(k)=='A'){
  cout << 'a' << endl;
  }else if (s.at(k)=='B'){
  cout << 'b' << endl;
  }else{
  cout << 'c' << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before 'k'
    5 |   int n k;
      |         ^
a.cc:7:10: error: 'n' was not declared in this scope
    7 |   cin >> n >> k >> s;
      |          ^
a.cc:7:15: error: 'k' was not declared in this scope
    7 |   cin >> n >> k >> s;
      |               ^
Language: Java

import java.util.*;

public class Main{
	public static void main(String args){
    	Scanner scan = new Scanner(System.in);
      	int N = scan.nextInt();
      	int k = scan.nextInt();
      	String s = scan.next();
      	String small = "";
      	if(s.substring(k-1, k).contains("A")){
        	small = "a";
        }
      	else if(s.substring(k-1, k).contains("B")){
        	small = "b";
        }
      	else{
        	small == "c";
        }
      	String ans = s.replace(s.substring(k-1, k), small);
    	Sytem.out.print(ans);
    }
		
}

Compiler output:
Main.java:17: error: not a statement
        	small == "c";
        	      ^
1 error
Language: C++

n,k = list(map(int, input().split()))
s = input()
if s[k-1] == "A":
    a = s[:k-1] + "a" + s[k:]
elif s[k-1] == "B":
    a = s[:k-1] + "b" + s[k:]
else:
    a = s[:k-1] + "c" + s[k:]

print(a)

Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n,k = list(map(int, input().split()))
      | ^
Language: C++

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

int main()
{
    string str;
    int num, num1;
    cin >> num1  >> num >> str;

    transform(str.begin()+num-1,str.begin()+num,str.begin()+num-1,::tolower);
    cout <<  str << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'transform' was not declared in this scope
   11 |     transform(str.begin()+num-1,str.begin()+num,str.begin()+num-1,::tolower);
      |     ^~~~~~~~~
Language: C++

#include<bits/stdc++.h>//atcoder.126.A
using namespace std;
int main(){
	int n,m,i;
	cin>>n>>m;
	string s;
	gteline(cin,s);
	if(s[m-1]=='A')s[m-1]=='a';
	if(s[m-1]=='B')s[m-1]=='b';
	if(s[m-1]=='C')s[m-1]=='c';
	cout<<s;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'gteline' was not declared in this scope; did you mean 'getline'?
    7 |         gteline(cin,s);
      |         ^~~~~~~
      |         getline
Language: C++

N, K = map(int, input().split())

S = input()

K += 1
replaced_S = S[:K] + S[K].lower() + S[K+1:]

print(replaced_S)

Compiler output:
a.cc:1:1: error: 'N' does not name a type
    1 | N, K = map(int, input().split())
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main();
{
  	string st;
    int n,k;
  	cin>>n>>k;
    cin.get();
    cin>>st;
    st[k-1]+=('a'-'A');
    cout<<st;
    return 0;
}

Compiler output:
a.cc:4:1: error: expected unqualified-id before '{' token
    4 | {
      | ^
Language: C++

n, k =map(int,input().split())
str = input()
change = str[k-1]

str = str[0:k-1] + change.lower() + str[k:n]

print(str)


Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n, k =map(int,input().split())
      | ^
Language: C++

#include <vector>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <random>
#include <string.h>

using namespace std;

int main() {
	int N, K;
	string S;
	char s[101];
	scanf("%d %d", &N, &K);
	getline(std::cin, S);
	int asc = S[K];
	int rem = asc - (26 - (S[i] - 'a'));
	int m = rem % 26;
	S[K] = (char)(m + 'A');
	cout << S;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:34: error: 'i' was not declared in this scope
   32 |         int rem = asc - (26 - (S[i] - 'a'));
      |                                  ^
Language: C++

#inclue<iostream>
using namespace std;
int main()
{
  int k,n,i;
  cin>>n>>k;
  char a[n];
  cin>>a;
  for(i=0;i<n;i++)
  {
    if(k==(i+1))
      a[i]=a[i]+32;
  }
  for(i=0;i<n;i++)
    cout<<a[i];
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclue; did you mean #include?
    1 | #inclue<iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>n>>k;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclue<iostream>
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout<<a[i];
      |     ^~~~
a.cc:15:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:10:6: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   10 |     }elseif(i==k){
      |      ^~~~~~
main.c:10:18: error: expected ';' before '{' token
   10 |     }elseif(i==k){
      |                  ^
      |                  ;
Language: C++

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



int main(){
    int N,K;
    string S;
    cin >> N >> K >> S;
    std::map<char, char> lower;
    lower['A'] = 'a';
    lower['B'] = 'b';
    lower['C'] = 'c';
    S.at(K-1) = lower[S.at(K-1)];s
    cout << S << endl;
    return 0;


}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:34: error: 's' was not declared in this scope
   14 |     S.at(K-1) = lower[S.at(K-1)];s
      |                                  ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
  string S;
  int N,K;
  cin >> N >> K >> S;
  
  if(S.at(K-1) == 'A'){
    S.at(K-1) = 'a';
  }else if(S.at(K-1) == 'B'){
    S.at(K-1) = 'b';
  }else{
    S.at(K-1) = 'c';
  }

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

#include<iostream>
using namespace std;
int main();
{
  	string st;
    int n,k;
  	cin>>n>>k;
    cin.get();
    cin>>st;
    st[k-1]+=('a'-'A');
    cout<<st;
    return 0;
}

Compiler output:
a.cc:4:1: error: expected unqualified-id before '{' token
    4 | {
      | ^
Language: C

#include <stdio.h>
int main(){
  int N=0,K=0;
  char S[50]={};
  scanf("%d",&N);
  scanf("%d",&K);
  scanf("%s",S);
  S[k-1]=S[k-1]-'A'+'a';
  for(int i=0;i<N;i++){
    printf("%c",S[i]);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:5: error: 'k' undeclared (first use in this function)
    8 |   S[k-1]=S[k-1]-'A'+'a';
      |     ^
main.c:8:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<bits/stdc++.h>//atcoder.126.A
using namespce std;
int main(){
	int n,m,i;
	cin>>n>>m;
	string s;
	gteline(cin,s);
	if(s[m-1]=='A')s[m-1]=='a';
	if(s[m-1]=='B')s[m-1]=='b';
	if(s[m-1]=='C')s[m-1]=='c';
	cout<<s;
	return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespce'
    2 | using namespce std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin>>n>>m;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:9: error: 'string' was not declared in this scope
    6 |         string s;
      |         ^~~~~~
a.cc:6:9: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/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:7:21: error: 's' was not declared in this scope
    7 |         gteline(cin,s);
      |                     ^
a.cc:7:9: error: 'gteline' was not declared in this scope; did you mean 'getline'?
    7 |         gteline(cin,s);
      |         ^~~~~~~
      |         getline
a.cc:11:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |         cout<<s;
      |         ^~~~
      |         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 <stdio.h>
int main(){
  int i,n,k;
  char c[n];
  scanf("%d %d",&n,&k);
  scanf("%s",c);
  for(i=0;i<=n;i++){
    if(i!=k){
	   printf("%c",c[i]);
    }elseif(i==k){
      printf("%c",c[i]+32);
    }
   return 0;
}
      

Compiler output:
main.c: In function 'main':
main.c:10:6: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   10 |     }elseif(i==k){
      |      ^~~~~~
main.c:10:18: error: expected ';' before '{' token
   10 |     }elseif(i==k){
      |                  ^
      |                  ;
main.c:14:1: error: expected declaration or statement at end of input
   14 | }
      | ^
Language: C++

include<iostream>
using namespace std;

int main(){
	int N, K;
  	char S[51];
  
  cin >> N >> K;
  cin >> S;
  
  if(S[k-1] == 'A') S[k-1] = 'a';
  if(S[k-1] == 'B') S[k-1] = 'b';
  if(S[k-1] == 'C') S[k-1] = 'c';
  
  cout << S << endl;
  
  return 0;
  
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> N >> K;
      |   ^~~
a.cc:11:8: error: 'k' was not declared in this scope
   11 |   if(S[k-1] == 'A') S[k-1] = 'a';
      |        ^
a.cc:12:8: error: 'k' was not declared in this scope
   12 |   if(S[k-1] == 'B') S[k-1] = 'b';
      |        ^
a.cc:13:8: error: 'k' was not declared in this scope
   13 |   if(S[k-1] == 'C') S[k-1] = 'c';
      |        ^
a.cc:15:3: error: 'cout' was not declared in this scope
   15 |   cout << S << endl;
      |   ^~~~
a.cc:15:16: error: 'endl' was not declared in this scope
   15 |   cout << S << endl;
      |                ^~~~
Language: C++

#include <stdio.h>

int main (void) {
  char *s;
  int n, k;
  
  scanf("%d%d", &n, &k);
  
  s = new char[n + 1];
  scnaf("%s", s);
  
  if (s[k-1] == 'A') {
    s[k-1] = 'a';
  } else if (s[k-1] == 'B') {
    s[k-1] = 'b';
  } else {
    s[k-1] = 'c';
  }
  
  printf("%s\n", s);
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'scnaf' was not declared in this scope; did you mean 'scanf'?
   10 |   scnaf("%s", s);
      |   ^~~~~
      |   scanf
Language: C++

#include<bits/stdc++.h>//atcoder.126.A
using namespce std;
int main(){
	int n,m,i;
	cin>>n>>m;
	string s;
	gteline(cin,s);
	if(s[m-1]=='A')s[m-1]=='a';
	if(s[m-1]=='B')s[m-1]=='b';
	if(s[m-1]=='C')s[m-1]=='c';
	return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespce'
    2 | using namespce std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin>>n>>m;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:9: error: 'string' was not declared in this scope
    6 |         string s;
      |         ^~~~~~
a.cc:6:9: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/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:7:21: error: 's' was not declared in this scope
    7 |         gteline(cin,s);
      |                     ^
a.cc:7:9: error: 'gteline' was not declared in this scope; did you mean 'getline'?
    7 |         gteline(cin,s);
      |         ^~~~~~~
      |         getline
Language: C++

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

int n, k;

int main(){
    char s[50];
    cin >> n >> k;
    for(int i = 0; i < n; i++) scanf("%d", &s[i]);

    if(s[k] == 'A') s[k] = A;
    else if(s[k] == 'B') s[k] = B;
    else s[k] = C;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:28: error: 'A' was not declared in this scope
   12 |     if(s[k] == 'A') s[k] = A;
      |                            ^
a.cc:13:33: error: 'B' was not declared in this scope
   13 |     else if(s[k] == 'B') s[k] = B;
      |                                 ^
a.cc:14:17: error: 'C' was not declared in this scope
   14 |     else s[k] = C;
      |                 ^
Language: C++

using System;

namespace AtCoderABC126A
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] s = Console.ReadLine().Split(' ');

            int N = int.Parse(s[0]);
            int K = int.Parse(s[1]);

            char[] c = Console.ReadLine().ToCharArray();

            c[K - 1] =  (char)(c[K - 1] + 'a' - 'A');

            string ans = new string(c);

            Console.WriteLine(ans);
        }
    }


}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:7:26: error: 'string' has not been declared
    7 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:7:35: error: expected ',' or '...' before 'args'
    7 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:22:6: error: expected ';' after class definition
   22 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void AtCoderABC126A::Program::Main(int*)':
a.cc:9:13: error: 'string' was not declared in this scope
    9 |             string[] s = Console.ReadLine().Split(' ');
      |             ^~~~~~
a.cc:9:20: error: expected primary-expression before ']' token
    9 |             string[] s = Console.ReadLine().Split(' ');
      |                    ^
a.cc:11:21: error: expected primary-expression before 'int'
   11 |             int N = int.Parse(s[0]);
      |                     ^~~
a.cc:12:21: error: expected primary-expression before 'int'
   12 |             int K = int.Parse(s[1]);
      |                     ^~~
a.cc:14:17: error: structured binding declaration cannot have type 'char'
   14 |             char[] c = Console.ReadLine().ToCharArray();
      |                 ^~
a.cc:14:17: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:14:17: error: empty structured binding declaration
a.cc:14:20: error: expected initializer before 'c'
   14 |             char[] c = Console.ReadLine().ToCharArray();
      |                    ^
a.cc:16:13: error: 'c' was not declared in this scope
   16 |             c[K - 1] =  (char)(c[K - 1] + 'a' - 'A');
      |             ^
a.cc:18:20: error: expected ';' before 'ans'
   18 |             string ans = new string(c);
      |                    ^~~
a.cc:20:13: error: 'Console' was not declared in this scope
   20 |             Console.WriteLine(ans);
      |             ^~~~~~~
a.cc:20:31: error: 'ans' was not declared in this scope
   20 |             Console.WriteLine(ans);
      |                               ^~~
Language: Java

import System;

public class Main {

	public static void main( string[] args ){
		int n = Integer.parse( args[0] );
		int k = Integer.parse( args[1] );
		String s = args[2];
		String[] splited = s.split("");
		String ans = "";
		for( int i = 0 ; i < splited.length ; i++ ){
			if( i == k ){
				ans += splited[i].toLowerCase( splited[i] );
			}
			else {
				ans += splited[i];
			}
		}
		System.out.println(ans);
	}
}

Compiler output:
Main.java:1: error: '.' expected
import System;
             ^
1 error
Language: C

#include <stdio.h>
int main(){
  int N=0,K=0;
  char S[50]={};
  scanf("%d",&N);
  scanf("%d",&K);
  scanf("%s",&S);
  S[k-1]=S[k-1]-'A'+'a';
  for(int i=0;i<N;i++){
    printf("%c",S[i]);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:5: error: 'k' undeclared (first use in this function)
    8 |   S[k-1]=S[k-1]-'A'+'a';
      |     ^
main.c:8:5: note: each undeclared identifier is reported only once for each function it appears in