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

#include <bis/stdc++.h>

using namespace std;

int main()
{
    int n,k;
    cin>>n>>k;
    string str;
    cin>>str;
    for(int i=0;i<str.size();i++)
    {
        if(i==k-1)
        {
            if(str[i]=='A')
                cout<<"a";
            else if(str[i]=='B')
                cout<<"b";
            else if(str[i]=='C')
                cout<<"c";
        }
        else
        {
            cout<<str[i];
        }
    }
    return 0;
}


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

import java.util.*;
 public class Main{
 public static void main(String args[]){
            
   Scanner sc = new Scanner(System.in);
        
   int a = sc.nextInt();
   int b = sc.nextInt();
   String x = sc.nextLine();
   String c = sc.nextLine();
            
   if(b == 1){
     System.out.println(c.substring(0,1).toLowerCase() + c.substring(1));
   }else if(b < a){
     System.out.println(c.substring(0,b-1) + c.substring(b-1,b).toLowerCase() + c.subString(b));
   }else{
     System.out.println(c.substring(0,b-1) + c.subString(b-1).toLowerCase());
   }
 }
}

Compiler output:
Main.java:15: error: cannot find symbol
     System.out.println(c.substring(0,b-1) + c.substring(b-1,b).toLowerCase() + c.subString(b));
                                                                                 ^
  symbol:   method subString(int)
  location: variable c of type String
Main.java:17: error: cannot find symbol
     System.out.println(c.substring(0,b-1) + c.subString(b-1).toLowerCase());
                                              ^
  symbol:   method subString(int)
  location: variable c of type String
2 errors
Language: C++

#include <bits/stdc++.h>
typedef long long ll;
using namespace std;
int main()
{
	ll N,K;
	string S;
	cin>>N>>K;
	cin>>S;
	for(ll i=0;i<N;i++){
		if(i==K-1) printf("%c",tolower(s[i]));
		else cout<<s[i];
	}
	cout<<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:48: error: 's' was not declared in this scope
   11 |                 if(i==K-1) printf("%c",tolower(s[i]));
      |                                                ^
a.cc:12:28: error: 's' was not declared in this scope
   12 |                 else cout<<s[i];
      |                            ^
Language: C++

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

using ll=long long;
const int inf=100000000;

int in(){
  int a;
  cin >> a;
  return a;
}//int型関数の受け取り

void forin(int* x,int y){
  for (int i=0;i<y;i++){
    cin >> x[i];
  }
}//(x,y) int型配列x[y]の受け取り

int intpow(int x,int y){
  double a=x,b=y;
  return pow(a,b);
}//(x,y) xをy乗

int intfabs(int x){
  double a=x;
  return fabs(a);
}//(x) xの絶対値

int fact(int x){
  if (x == 1) return 1;
  return x*fact(x-1);
}//(x) x!

int fib(int x){
  if (x <= 2) return x;
  int a[x];
  a[0]=1;
  a[1]=2;
  for (int i=2;i<x;i++){
    a[i]=a[i-1]+a[i-2];
  }
  return a[x-1];
}//(x) フィボナッチ数列のx番目

int div1(ll x){
  return x%1000000007;
}

main(){
  int n=in(),k=in();
  string s;
  cin >> s;
  tolower(s.at(k))
  cout << s << endl;
}


Compiler output:
a.cc:49:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   49 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:53:19: error: expected ';' before 'cout'
   53 |   tolower(s.at(k))
      |                   ^
      |                   ;
   54 |   cout << s << endl;
      |   ~~~~
Language: C++

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

using namespace std;

int main(){
	int N;
	int K;
	char S[1000];
	cin >> N >>K>> S;
	S[K-1]=tolower(S[K-1]);
	cout << S << endl;
	r

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:6: error: 'x' was not declared in this scope
   14 |   if(x[K-1] = 'C')
      |      ^
Language: C++

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

using ll=long long;
const int inf=100000000;

int in(){
  int a;
  cin >> a;
  return a;
}//int型関数の受け取り

void forin(int* x,int y){
  for (int i=0;i<y;i++){
    cin >> x[i];
  }
}//(x,y) int型配列x[y]の受け取り

int intpow(int x,int y){
  double a=x,b=y;
  return pow(a,b);
}//(x,y) xをy乗

int intfabs(int x){
  double a=x;
  return fabs(a);
}//(x) xの絶対値

int fact(int x){
  if (x == 1) return 1;
  return x*fact(x-1);
}//(x) x!

int fib(int x){
  if (x <= 2) return x;
  int a[x];
  a[0]=1;
  a[1]=2;
  for (int i=2;i<x;i++){
    a[i]=a[i-1]+a[i-2];
  }
  return a[x-1];
}//(x) フィボナッチ数列のx番目

int div1(ll x){
  return x%1000000007;
}

main(){
  int n=in(),k=in();
  string s;
  cin >> s;
  cout << tolower(s.at(k),l) << endl;
}

Compiler output:
a.cc:49:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   49 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:53:27: error: 'l' was not declared in this scope
   53 |   cout << tolower(s.at(k),l) << endl;
      |                           ^
Language: C

#include <stdio.h>
#include <math.h>
int main(void){
  int s;
  int a,b;
  a=floor(s/100)*100;
  b=s%100;
  if((a<13)&&(a)&&(b>13))f1=1;
  if((b<13)&&(b)&&(a>13))f2=1;
  if((a<13)&&(a)&&(b)&&(b<13)){
    printf("AMBIGUOUS\n");
    f1=0;
    f2=0;
  }
  if((!a)||(!b))printf("NA\n");
  if(f1)printf("MMYY");
  if(f2)printf("YYMM");
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:26: error: 'f1' undeclared (first use in this function); did you mean 'y1'?
    8 |   if((a<13)&&(a)&&(b>13))f1=1;
      |                          ^~
      |                          y1
main.c:8:26: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:26: error: 'f2' undeclared (first use in this function)
    9 |   if((b<13)&&(b)&&(a>13))f2=1;
      |                          ^~
Language: Java

import java.util.Scanner;

public Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		int N = 0;
		int K = 0;
		String S;
		Scanner sc = new Scanner(System.in);
		N = Integer.parseInt(sc.next());
		K = Integer.parseInt(sc.next());
		S = sc.next();
		StringBuilder sb = new StringBuilder();
		sb.append(S);
		char s;
		String lower;
		s = sb.charAt(K-1);
		lower=String.valueOf(s);
		sb.setCharAt(K-1, (lower.toLowerCase()).toCharArray()[0]);
		System.out.println(sb.toString());

	}

}


Compiler output:
Main.java:3: error: class, interface, enum, or record expected
public Main {
       ^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args) {
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:25: error: class, interface, enum, or record expected
}
^
3 errors
Language: C++

#include <iostream> 
using namespace std;
int N,K; 
int A[N]; 
int main() {
cin >> N>>K;
for (int i = 0; i < N; ++i) cin >> A[i];
if(A[K]==‘A’)A[K]=‘a’;
else if(A[K]==‘A’)A[K]=‘b’;
else if(A[K]==‘A’)A[K]=‘c’;
cout<<A<<endl;
}



Compiler output:
a.cc:8:10: error: extended character ‘ is not valid in an identifier
    8 | if(A[K]==‘A’)A[K]=‘a’;
      |          ^
a.cc:8:10: error: extended character ’ is not valid in an identifier
a.cc:8:19: error: extended character ‘ is not valid in an identifier
    8 | if(A[K]==‘A’)A[K]=‘a’;
      |                   ^
a.cc:8:19: error: extended character ’ is not valid in an identifier
a.cc:9:15: error: extended character ‘ is not valid in an identifier
    9 | else if(A[K]==‘A’)A[K]=‘b’;
      |               ^
a.cc:9:15: error: extended character ’ is not valid in an identifier
a.cc:9:24: error: extended character ‘ is not valid in an identifier
    9 | else if(A[K]==‘A’)A[K]=‘b’;
      |                        ^
a.cc:9:24: error: extended character ’ is not valid in an identifier
a.cc:10:15: error: extended character ‘ is not valid in an identifier
   10 | else if(A[K]==‘A’)A[K]=‘c’;
      |               ^
a.cc:10:15: error: extended character ’ is not valid in an identifier
a.cc:10:24: error: extended character ‘ is not valid in an identifier
   10 | else if(A[K]==‘A’)A[K]=‘c’;
      |                        ^
a.cc:10:24: error: extended character ’ is not valid in an identifier
a.cc:4:7: error: size of array 'A' is not an integral constant-expression
    4 | int A[N];
      |       ^
a.cc: In function 'int main()':
a.cc:8:10: error: '\U00002018A\U00002019' was not declared in this scope
    8 | if(A[K]==‘A’)A[K]=‘a’;
      |          ^~~
a.cc:8:19: error: '\U00002018a\U00002019' was not declared in this scope
    8 | if(A[K]==‘A’)A[K]=‘a’;
      |                   ^~~
a.cc:9:24: error: '\U00002018b\U00002019' was not declared in this scope
    9 | else if(A[K]==‘A’)A[K]=‘b’;
      |                        ^~~
a.cc:10:24: error: '\U00002018c\U00002019' was not declared in this scope
   10 | else if(A[K]==‘A’)A[K]=‘c’;
      |                        ^~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: request for member 'at' in 'S', which is of non-class type 'char [(N + 1)]'
   10 |   if(S.at(K) = 'A')
      |        ^~
a.cc:11:7: error: request for member 'at' in 'S', which is of non-class type 'char [(N + 1)]'
   11 |     S.at(K) = 'a';
      |       ^~
a.cc:12:8: error: request for member 'at' in 'S', which is of non-class type 'char [(N + 1)]'
   12 |   if(S.at(K) = 'B')
      |        ^~
a.cc:13:7: error: request for member 'at' in 'S', which is of non-class type 'char [(N + 1)]'
   13 |     S.at(K) = 'b';
      |       ^~
a.cc:14:6: error: 'x' was not declared in this scope
   14 |   if(x.at(K) = 'C')
      |      ^
a.cc:15:7: error: request for member 'at' in 'S', which is of non-class type 'char [(N + 1)]'
   15 |     S.at(K) = 'c';
      |       ^~
Language: Java

    import java.util.*;
    public class Main{
      public static void main(String args[]){
        
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        String x = sc.nextLine();
        String c = sc.nextLine();
        
        if(b == 0){
        System.out.println(c.substring(0,1).toLowerCase() + c.substring(1));
        }else if(b < a){
         System.out.println(c.substring(0,b) + c.substring(b,b+1).toLowerCase() + c.subString(b+1)); 
        }else{
          System.out.println(c.substring(0,b) + c.subString(b).toLowerCase());
        }
      }
    }

Compiler output:
Main.java:15: error: cannot find symbol
         System.out.println(c.substring(0,b) + c.substring(b,b+1).toLowerCase() + c.subString(b+1)); 
                                                                                   ^
  symbol:   method subString(int)
  location: variable c of type String
Main.java:17: error: cannot find symbol
          System.out.println(c.substring(0,b) + c.subString(b).toLowerCase());
                                                 ^
  symbol:   method subString(int)
  location: variable c of type String
2 errors
Language: C++

int main(void)
{
	int s;
	int l, h;
	bool hm, lm;
	hm = false;
	lm = false;

	scanf("%d", &s);

	h =  s/100;
	l =  s%100;

	if (1 <= h && h <= 12) hm = true;
	if (1 <= l && l <= 12) lm = true;

	if (!hm && !lm) {
		printf("NA\n");
	}
	if (hm && lm) {
		printf("AMBIGUOUS\n");
	}
	if (hm && !lm) {
		printf("MMYY\n");
	}
	if (!hm && lm) {
		printf("YYMM\n");
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'scanf' was not declared in this scope
    9 |         scanf("%d", &s);
      |         ^~~~~
a.cc:18:17: error: 'printf' was not declared in this scope
   18 |                 printf("NA\n");
      |                 ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void)
a.cc:21:17: error: 'printf' was not declared in this scope
   21 |                 printf("AMBIGUOUS\n");
      |                 ^~~~~~
a.cc:21:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:24:17: error: 'printf' was not declared in this scope
   24 |                 printf("MMYY\n");
      |                 ^~~~~~
a.cc:24:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:27:17: error: 'printf' was not declared in this scope
   27 |                 printf("YYMM\n");
      |                 ^~~~~~
a.cc:27:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: Java

import java.util.*;
public class Main{
  public static void main(String args[]){
    
    Scanner sc = new Scanner(System.in);
    
    int a = new sc.nextInt();
    int b = new sc.nextInt();
    String x = new sc.nextLine();
    String c = new sc.nextLine();
    
    if(b == 0){
    System.out.println(c.substring(0,1).toLowerCase() + c.substring(1));
    }else if(b < a){
     System.out.println(c.substring(0,b) + c.substring(b,b+1).toLowerCase() + c.subString(b+1)); 
    }else{
      System.out.println(c.substring(0,b) + c.subString(b).toLowerCase());
    }
  }
}

Compiler output:
Main.java:7: error: package sc does not exist
    int a = new sc.nextInt();
                  ^
Main.java:8: error: package sc does not exist
    int b = new sc.nextInt();
                  ^
Main.java:9: error: package sc does not exist
    String x = new sc.nextLine();
                     ^
Main.java:10: error: package sc does not exist
    String c = new sc.nextLine();
                     ^
Main.java:15: error: cannot find symbol
     System.out.println(c.substring(0,b) + c.substring(b,b+1).toLowerCase() + c.subString(b+1)); 
                                                                               ^
  symbol:   method subString(int)
  location: variable c of type String
Main.java:17: error: cannot find symbol
      System.out.println(c.substring(0,b) + c.subString(b).toLowerCase());
                                             ^
  symbol:   method subString(int)
  location: variable c of type String
6 errors
Language: C++

#include <iostream>
using namespace std;
int main()
{
    // 整数の入力
    int N;
    cin >> N;

    int K;
    cin >> K;

    // 文字列の入力
    string S;
    cin >> S;
    
    S[K+1] = tolower(S[K+!]);

    // 出力
    cout << S << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:27: error: expected primary-expression before ']' token
   16 |     S[K+1] = tolower(S[K+!]);
      |                           ^
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)=='A'){
        S.at(K)='a';
    }
  if(S.at(K)=='B'){
        S.at(K)='b';
    }
  else{
        S.at(K)='c';
    }
    cout<<S<<endl;
  }
}


Compiler output:
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

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

int main(){
  int N,K;
  cin >> N >> K;
  
  string S;
  cin >> S;
  
  for(int i = 0; i < N; i++){
    if(i == K){
      S[i] = tolower(S[i]);
    }
  }
  
  cout << S << endl;
  
}

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

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

# いったんリストにする
S_list = list(S)

if S_list[K-1] == 'A':
    S_list[K - 1]='a'
elif S_list[K-1] == 'B':
    S_list[K - 1] = 'b'
elif str == 'C':
    S_list[K - 1] = 'c'

# またリストから文字列へ戻す
S_changed = "".join(S_list)
print(S_changed)

Compiler output:
a.cc:4:3: error: invalid preprocessing directive #\U00003044\U00003063\U0000305f\U00003093\U000030ea\U000030b9\U000030c8\U0000306b\U00003059\U0000308b
    4 | # いったんリストにする
      |   ^~~~~~~~~~~~~~~~~~~~
a.cc:14:3: error: invalid preprocessing directive #\U0000307e\U0000305f\U000030ea\U000030b9\U000030c8\U0000304b\U00003089\U00006587\U00005b57\U00005217\U00003078\U0000623b\U00003059
   14 | # またリストから文字列へ戻す
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:1:1: error: 'N' does not name a type
    1 | N,K = map(int, input().split())
      | ^
Language: C

include <stdio.h>

int main(void)
{
  char S[5],mmyy_flag=1,yymm_flag=1;
  
  scanf("%s",S);
  
  if(S[0]>='1' || S[1]>='3')
  {
    mmyy_flag=0;
  }
  if(S[2]=='0' && S[3]=='0')
  {
    yymm_flag=0;
  }
  
  if(yymm_flag==1 && mmyy_flag==1)
  {
    printf("AMBIGUOUS\n");
  }
  else if(yymm_flag==1 && mmyy_flag==0)
  {
	printf("YYMM\n");
  }
  else if(yymm_flag==0 && mmyy_flag==1)
  {
    printf("MMYY\n");
  }
  else
  {
    printf("NA\n");
  }
  
  return 0;
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <cstdlib>

using namespace std;

int main() {
	int N, K;
	string S, A;
	cin >> N >> K >> S;
	K--;
	A = S[K];
	transform(A.begin(), A.end(), A.begin(), tolower);
	S.replace(K, 1, A);
	cout << S << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14: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>)'
   14 |         transform(A.begin(), A.end(), A.begin(), tolower);
      |         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:3:
/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:14:18: note:   couldn't deduce template parameter '_UnaryOperation'
   14 |         transform(A.begin(), A.end(), A.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 <bits/stdc++.h>
using namespace std;

int main() {
  int n,k;
  string s;
  cin>>n>>k>>s;
  int c=s.at(k);
  int tolower(int c){
    return (c+0x20);
  }
  s.at(k)='i';
  cout<<s<<endl;
  
}






Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: a function-definition is not allowed here before '{' token
    9 |   int tolower(int c){
      |                     ^
Language: C++

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

typedef long long ll;
typedef unsigned short int unsi;
typedef unsigned int uni;
typedef unsigned long int unli;

using namespace std;
int main(){
	int N, K;
	string S;
	scanf_s("%d%d", &N, &K);
	cin >> S;
	char c = S[K - 1];
	c = tolower(c);
	S[K-1] = c;
	cout << S << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   17 |         scanf_s("%d%d", &N, &K);
      |         ^~~~~~~
      |         scanf
Language: C++

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

int main() {
  int n,k;
  string s;
  cin>>n>>k>>s;
  int c=s.at(k);
  char tolower(char c){
    return (c+0x20);
  }
  s.at(k)='i';
  cout<<s<<endl;
  
}





Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: a function-definition is not allowed here before '{' token
    9 |   char tolower(char c){
      |                       ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: expected primary-expression before 'char'
   11 |     AA[b]= char tolower(AA[b]);
      |            ^~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main(void)
{
  short int n;
  cin >> n;

  short in k;
  cin >> k;

  string s;
  cin >> s;

  switch(s[k]) {
    case 'A':
      s[k] = 'a';
      break;
    case 'B':
      s[k] = 'b';
      break;
    case 'C':
      s[k] = 'c';
      break;
  }

  cout << s << endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: expected initializer before 'k'
   11 |   short in k;
      |            ^
a.cc:12:10: error: 'k' was not declared in this scope
   12 |   cin >> k;
      |          ^
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) {
      if (cary[i] == "A") {
        cary[i] = "a"
      }
      if (cary[i] == "B") {
        cary[i] = "b"
      }
      if (cary[i] == "C") {
        cary[i] = "c"
      }
      
      
      //cary[i] = std::tolower(cary[i]);
    }
  }
     
  cout << cary << endl;    
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   33 |       if (cary[i] == "A") {
      |           ~~~~~~~~^~~~~~
a.cc:34:19: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   34 |         cary[i] = "a"
      |                   ^~~
      |                   |
      |                   const char*
a.cc:34:22: error: expected ';' before '}' token
   34 |         cary[i] = "a"
      |                      ^
      |                      ;
   35 |       }
      |       ~               
a.cc:36:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   36 |       if (cary[i] == "B") {
      |           ~~~~~~~~^~~~~~
a.cc:37:19: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   37 |         cary[i] = "b"
      |                   ^~~
      |                   |
      |                   const char*
a.cc:37:22: error: expected ';' before '}' token
   37 |         cary[i] = "b"
      |                      ^
      |                      ;
   38 |       }
      |       ~               
a.cc:39:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   39 |       if (cary[i] == "C") {
      |           ~~~~~~~~^~~~~~
a.cc:40:19: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   40 |         cary[i] = "c"
      |                   ^~~
      |                   |
      |                   const char*
a.cc:40:22: error: expected ';' before '}' token
   40 |         cary[i] = "c"
      |                      ^
      |                      ;
   41 |       }
      |       ~
Language: C++

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

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

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

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

int main()
{
  int N,K;
  cin >> N >> K;
  string S[N+1];
  for(int i=0;i<N;i++){
    cin >> S.at(i);
  }
  if(S.at(K) = 'A')
    S.at(K) = 'a';
  if(S.at(K) = 'B')
    S.at(K) = 'b';
  if(x.at(K) = 'C')
    S.at(K) = 'c';
  for(int j=0;j<N;j++){
    cout << S.at(j);
  }
  return 0;
}
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: request for member 'at' in 'S', which is of non-class type 'std::string [(N + 1)]' {aka 'std::__cxx11::basic_string<char> [(N + 1)]'}
   10 |     cin >> S.at(i);
      |              ^~
a.cc:12:8: error: request for member 'at' in 'S', which is of non-class type 'std::string [(N + 1)]' {aka 'std::__cxx11::basic_string<char> [(N + 1)]'}
   12 |   if(S.at(K) = 'A')
      |        ^~
a.cc:13:7: error: request for member 'at' in 'S', which is of non-class type 'std::string [(N + 1)]' {aka 'std::__cxx11::basic_string<char> [(N + 1)]'}
   13 |     S.at(K) = 'a';
      |       ^~
a.cc:14:8: error: request for member 'at' in 'S', which is of non-class type 'std::string [(N + 1)]' {aka 'std::__cxx11::basic_string<char> [(N + 1)]'}
   14 |   if(S.at(K) = 'B')
      |        ^~
a.cc:15:7: error: request for member 'at' in 'S', which is of non-class type 'std::string [(N + 1)]' {aka 'std::__cxx11::basic_string<char> [(N + 1)]'}
   15 |     S.at(K) = 'b';
      |       ^~
a.cc:16:6: error: 'x' was not declared in this scope
   16 |   if(x.at(K) = 'C')
      |      ^
a.cc:17:7: error: request for member 'at' in 'S', which is of non-class type 'std::string [(N + 1)]' {aka 'std::__cxx11::basic_string<char> [(N + 1)]'}
   17 |     S.at(K) = 'c';
      |       ^~
a.cc:19:15: error: request for member 'at' in 'S', which is of non-class type 'std::string [(N + 1)]' {aka 'std::__cxx11::basic_string<char> [(N + 1)]'}
   19 |     cout << S.at(j);
      |               ^~
Language: Java

import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    ArrayList<String> x = new ArrayList<>();
    int n = sc.nextInt();
    int k = sc.nextInt();
    
    for(int i = 0;i < n;i++){
		x.add(sc.nextLine());
    }
    String lower = x.get(k - 1).toLowerCase();
    list.set(k - 1,lower);
    
    for(String i : x){
      System.out.print(i);
    }
  }
}
    


Compiler output:
Main.java:14: error: cannot find symbol
    list.set(k - 1,lower);
    ^
  symbol:   variable list
  location: class Main
1 error
Language: C++

#include <iostream>
using namespace std;
int main()
{
  int N,K;
  string s;
  cin>>N>>K;
  cin>>s;
  s[k-1]=(char)(73+(int)s[k-1]-41);
  cout<<s<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'k' was not declared in this scope
    9 |   s[k-1]=(char)(73+(int)s[k-1]-41);
      |     ^
Language: C++

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

  string S;
  int K;
  void small(){
    if(S.at(K-1) == A){
      S.at(K-1) =a;
    }
    else if(S.at(K-1) == B){
      S.at(K-1)  =b;
    }
    else if(S.at(K-1) == C){
      S.at(K-1) = c;
    }
    return;
  }

	int main(){
      small();
      cout << S << endl;
    }
  

Compiler output:
a.cc: In function 'void small()':
a.cc:7:21: error: 'A' was not declared in this scope
    7 |     if(S.at(K-1) == A){
      |                     ^
a.cc:8:18: error: 'a' was not declared in this scope
    8 |       S.at(K-1) =a;
      |                  ^
a.cc:10:26: error: 'B' was not declared in this scope
   10 |     else if(S.at(K-1) == B){
      |                          ^
a.cc:11:19: error: 'b' was not declared in this scope
   11 |       S.at(K-1)  =b;
      |                   ^
a.cc:13:26: error: 'C' was not declared in this scope
   13 |     else if(S.at(K-1) == C){
      |                          ^
a.cc:14:19: error: 'c' was not declared in this scope
   14 |       S.at(K-1) = c;
      |                   ^
Language: C++

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

int main() {
  int n,k;
  string s;
  cin>>n>>k>>s;
  int i=s.at(k);
  char tolower(char i){
    return (c+0x20);
  }
  s.at(k)='i';
  cout<<s<<endl;
  
}




Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: a function-definition is not allowed here before '{' token
    9 |   char tolower(char i){
      |                       ^
Language: C++

#include<bits/stdc++.h>
#include<cctype>
using namespace std;
int main(){
	int n, k;
  string s;
  cin>>n>>k>>s;
  if(s[k-1]===65||s[k-1]===66||s[k-1]===67){
  	s[k-1]=tolower(s[k-1]);
  }
  cout<<s;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected primary-expression before '=' token
    8 |   if(s[k-1]===65||s[k-1]===66||s[k-1]===67){
      |              ^
a.cc:8:27: error: expected primary-expression before '=' token
    8 |   if(s[k-1]===65||s[k-1]===66||s[k-1]===67){
      |                           ^
a.cc:8:40: error: expected primary-expression before '=' token
    8 |   if(s[k-1]===65||s[k-1]===66||s[k-1]===67){
      |                                        ^
Language: C++

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

int main() {
  int n,k;
  string s;
  cin>>n>>k>>s;
  int i=s.at(k)
  char tolower(char i){
    return (c+0x20);
  }
  s.at(k)='i';
  cout<<s<<endl;
  
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'char'
    9 |   char tolower(char i){
      |   ^~~~
Language: C++

#include<stdio.h>
#include<string.h>
 
int main(void){
 
  int n,k;
  char s[n];
  scanf("%d %d",&n,&k);
  scanf("%s",s);
  if(str[k]>=65&&str[k]<=90){
    s[k]=str[k]+32;
  }
  /* 変換した文字列を出力 */
  printf("%s\n", s);
 
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: 'str' was not declared in this scope; did you mean 'std'?
   10 |   if(str[k]>=65&&str[k]<=90){
      |      ^~~
      |      std
Language: C++

#include<bits/stdc++.h>
using namespace std;
  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:
a.cc:4:3: error: expected initializer before '\U0000ff5b'
    4 |   ｛
      |   ^~
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 (str1.at(K) == 'A') {
    cout << "a" << endl;
  }
  if (str1.at(K) == 'a') {
    cout << "A" << endl;
  }
  if (str1.at(K) == 'B') {
    cout << "b" << endl;
  }
  if (str1.at(K) == 'b') {
    cout << "B" << endl;
  }
  if (str1.at(K) == 'C') {
    cout << "c" << endl;
  }
  if (str1.at(K) == 'c') {
    cout << "C" << endl;
  }
      
  }
    else{
      cout << str1.at(i) << endl;
    }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:35:4: 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;

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 (str1.at(K) == 'A') {
    cout << "a" << endl;
  }
  if (str1.at(K) == 'a') {
    cout << "A" << endl;
  }
  if (str1.at(K) == 'B') {
    cout << "b" << endl;
  }
  if (str1.at(K) == 'b') {
    cout << "B" << endl;
  }
  if (str1.at(K) == 'C') {
    cout << "c" << endl;
  }
  if (str1.at(K) == 'c') {
    cout << "C" << endl;
  }
      
  }
    else{
      cout << str1.at(i) << endl;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:34:6: error: expected '}' at end of input
   34 |     }
      |      ^
a.cc:10:33: note: to match this '{'
   10 |   for (int i = 1; i < N+1; i++) {
      |                                 ^
a.cc:34:6: error: expected '}' at end of input
   34 |     }
      |      ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
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 (str1.at(K) == 'A') {
    cout << "a" << endl;
  }
  if (str1.at(K) == 'a') {
    cout << "A" << endl;
  }
  if (str1.at(K) == 'B') {
    cout << "b" << endl;
  }
  if (str1.at(K) == 'b') {
    cout << "B" << endl;
  }
  if (str1.at(K) == 'C') {
    cout << "c" << endl;
  }
  if (str1.at(K) == 'c') {
    cout << "C" << endl;
  }
      
  }
    else{
      cout << str1.at(i) << endl;
    }
    }
    
    
    
  


Compiler output:
a.cc: In function 'int main()':
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;

int main() {
  int n,k;
  string s;
  cin>>n>>k>>s;
  int s.at(k)=i
  char tolower(char i){
    return (c+0x20);
  }
  s.at(k)='i'
  cout<<s<<endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected initializer before '.' token
    8 |   int s.at(k)=i
      |        ^
a.cc:12:14: error: expected ';' before 'cout'
   12 |   s.at(k)='i'
      |              ^
      |              ;
   13 |   cout<<s<<endl;
      |   ~~~~
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 (str1.at(K) == 'A') {
    cout << "a" << endl;
  }
  if (str1.at(K) == 'a') {
    cout << "A" << endl;
  }
  if (str1.at(K) == 'B') {
    cout << "b" << endl;
  }
  if (str1.at(K) == 'b') {
    cout << "B" << endl;
  }
  if (str1.at(K) == 'C') {
    cout << "c" << endl;
  }
  if (str1.at(K) == 'c') {
    cout << "C" << endl;
  }
      
  }
    else{
      cout << str.at(i) << endl;
    }
    }
    
    
    
  


Compiler output:
a.cc: In function 'int main()':
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 <iostream>

using namespace std;

int main()
{
    int n, k;
    string s;
    cin >> n >> k >> s;
    
    string str(s);
    transform(str.begin(), str.end(), str.begin(), ::tolower);

    s[k-1] = str[k-1];
    cout << s << endl;

    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++

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


using namespace std;

int main()
{
    
	int N, K;
	string S;
	string smallS;

	cin >> N >> K;

	cin >> S;
	smallS = S;

	transform(S.cbegin(), S.cend(), smallS.begin(), tolower);

	S[K-1] = smallS[K-1];

	cout << S;

	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
   20 |         transform(S.cbegin(), S.cend(), smallS.begin(), tolower);
      |         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:3:
/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:20:18: note:   couldn't deduce template parameter '_UnaryOperation'
   20 |         transform(S.cbegin(), S.cend(), smallS.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<bits/stdc++.h>
using namespace std;

int main(){
  int N,K;
  vector<char> S(N);
  cin>>N;
  cin>>K;
  for(i=0;i<N;i++){
    cin>>S.at(i);
  }
    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:9:7: error: 'i' was not declared in this scope
    9 |   for(i=0;i<N;i++){
      |       ^
Language: C++

/******************************\
*  Everyone has a different way of thinking, so God Created us
   Hope You Respect My Way..,Thank You ):  *
*                            *
*   Created by : Murad   *
\******************************/ 
#include<bits\stdc++.h>
using namespace std;
#define pi 3.1415926536
#define forn(i,a,b)for(int i=a;i<b;i++)
#define LL long long
#define MP make_pair
#define ff first
#define ss second
#define INF 2147483647
#define _INF -2147483647
#define pq priority_queue
#define MM multimap
#define PB push_back
#define ipair pair<int,int>
#define lpair pair<LL,LL>
#define MAXN 100004
#define El3zba ios::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define modd 1000000007
//std::transform(s1.begin(), s1.end(), s1.begin(),::tolower);
char alphz[27] = { 'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z' };
LL MMIN(LL a, LL b)
{
	if (a <= b)
		return a;
	else
		return b;
}
LL MMAX(LL a, LL b) {
	if (a >= b)
		return a;
	else
		return b;
}
LL Euclidean(LL x1, LL y1, LL x2, LL y2) {
	return (pow(x1 - x2, 2) + pow(y1 - y2, 2));
}
int main()
{
	El3zba;
	char a[100];
	int k,  n; cin >> n >> k;
	for (int i = 0; i < n; i++) {
		cin >> a[i];
	}
	int i = 0;
	while (i<n) {
		if (i == k - 1) {
			char c = a[k - 1];
			int val = c - 'A';
			int req = val + 97;
			a[k - 1] = toascii(req);
			break;
		}
		else
			i++;
	}
	for (int i = 0; i < n; i++)cout << a[i];
	cout << endl;
	return 0;
}

Compiler output:
a.cc:7:9: fatal error: bits\stdc++.h: No such file or directory
    7 | #include<bits\stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
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 (str1.at(K) == "A") {
    cout << "a" << endl;
  }
  if (str1.at(K) == "a") {
    cout << "A" << endl;
  }
  if (str1.at(K) == "B") {
    cout << "b" << endl;
  }
  if (str1.at(K) == "b") {
    cout << "B" << endl;
  }
  if (str1.at(K) == "C") {
    cout << "c" << endl;
  }
  if (str1.at(K) == "c") {
    cout << "C" << endl;
  }
      
  }
    else{
      cout << str.at(i) << endl;
    }
    }
    
    
    
  


Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if (str1.at(K) == "A") {
      |         ~~~~~~~~~~~^~~~~~
a.cc:15:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |   if (str1.at(K) == "a") {
      |       ~~~~~~~~~~~^~~~~~
a.cc:18:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |   if (str1.at(K) == "B") {
      |       ~~~~~~~~~~~^~~~~~
a.cc:21:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |   if (str1.at(K) == "b") {
      |       ~~~~~~~~~~~^~~~~~
a.cc:24:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |   if (str1.at(K) == "C") {
      |       ~~~~~~~~~~~^~~~~~
a.cc:27:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   27 |   if (str1.at(K) == "c") {
      |       ~~~~~~~~~~~^~~~~~
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;

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 (str1.at(K) = "A") {
    cout << "a" << endl;
  }
  if (str1.at(K) = "a") {
    cout << "A" << endl;
  }
  if (str1.at(K) = "B") {
    cout << "b" << endl;
  }
  if (str1.at(K) = "b") {
    cout << "B" << endl;
  }
  if (str1.at(K) = "C") {
    cout << "c" << endl;
  }
  if (str1.at(K) = "c") {
    cout << "C" << endl;
  }
      
  }
    else{
      cout << str.at(i) << endl;
    }
    }
    
    
    
  


Compiler output:
a.cc: In function 'int main()':
a.cc:12:22: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   12 |     if (str1.at(K) = "A") {
      |                      ^~~
      |                      |
      |                      const char*
a.cc:15:20: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   15 |   if (str1.at(K) = "a") {
      |                    ^~~
      |                    |
      |                    const char*
a.cc:18:20: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   18 |   if (str1.at(K) = "B") {
      |                    ^~~
      |                    |
      |                    const char*
a.cc:21:20: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   21 |   if (str1.at(K) = "b") {
      |                    ^~~
      |                    |
      |                    const char*
a.cc:24:20: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   24 |   if (str1.at(K) = "C") {
      |                    ^~~
      |                    |
      |                    const char*
a.cc:27:20: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   27 |   if (str1.at(K) = "c") {
      |                    ^~~
      |                    |
      |                    const char*
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>
#include <algorithm>
using namespace std;
int main(){
  int N, K;
  string S;
  cin >> N >> K >> S;
  transform(S.at(K).begin(), S.at(K).end(), S.at(K).begin(), tolower);
  cout << S << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: request for member 'begin' in 'S.std::__cxx11::basic_string<char>::at(((std::__cxx11::basic_string<char>::size_type)K))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
    8 |   transform(S.at(K).begin(), S.at(K).end(), S.at(K).begin(), tolower);
      |                     ^~~~~
a.cc:8:38: error: request for member 'end' in 'S.std::__cxx11::basic_string<char>::at(((std::__cxx11::basic_string<char>::size_type)K))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
    8 |   transform(S.at(K).begin(), S.at(K).end(), S.at(K).begin(), tolower);
      |                                      ^~~
a.cc:8:53: error: request for member 'begin' in 'S.std::__cxx11::basic_string<char>::at(((std::__cxx11::basic_string<char>::size_type)K))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
    8 |   transform(S.at(K).begin(), S.at(K).end(), S.at(K).begin(), tolower);
      |                                                     ^~~~~