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

#include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cin>>s;
int m=(s[0]-'0')*10+(s[1]-'0');
int q=(s[2]-'0')*10+(s[3]-'0');

if(m==0&&q>12||q==0&&m>12)
    cout<<"NA"<<endl;
else if(m==0&&q<=12)
    cout<<"YYMM"<<endl;
else (q==0&&m<=12)
    cout<<"MMYY"<<endl;
else if(m<=12&&q<=12)
    cout<<"AMBIGUOUS"<<endl;
else if(m>12&&q<=12)
    cout<<"YYMM"<<endl;
else if(m<=12&&q>12)
    cout<<"MMYY"<<endl;
else
cout<<"NA"<<endl;


}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:19: error: expected ';' before 'cout'
   13 | else (q==0&&m<=12)
      |                   ^
      |                   ;
   14 |     cout<<"MMYY"<<endl;
      |     ~~~~           
a.cc:15:1: error: 'else' without a previous 'if'
   15 | else if(m<=12&&q<=12)
      | ^~~~
Language: C++

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

int main(){
  int n,k; cin>>n >>k;
  string 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("%d\n",s);
}
  

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

#include <stdio.h>
int main(){
int a,b;scanf("%d%d",&a,&b);
double ret=0;
for(int i=1;i<=a;i++){
double tmp=1.0/a;
int now=i;
while(now<b){
now*=2;
tmp/=2;
}
ret+=tmp;
}
printf("%.12f\n",ret);
}
3

Compiler output:
a.cc:16:1: error: expected unqualified-id before numeric constant
   16 | 3
      | ^
Language: C++

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


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

int main(){
  int N,K;scanf("%d%d",N,K);
  int S[52];scanf("%s",S);
  S[K-1]=+32;
  printf("%s¥n",S);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:11: error: 'scanf' was not declared in this scope
    2 |   int N,K;scanf("%d%d",N,K);
      |           ^~~~~
a.cc:5:3: error: 'printf' was not declared in this scope
    5 |   printf("%s¥n",S);
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
Language: C++

void main(){
  int N,K;scanf("%d%d",N,K);
  int S[52];scanf("%s",S);
  S[K-1]=+32;
  printf("%s¥n",S);
}

Compiler output:
a.cc:1:1: error: '::main' must return 'int'
    1 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:11: error: 'scanf' was not declared in this scope
    2 |   int N,K;scanf("%d%d",N,K);
      |           ^~~~~
a.cc:5:3: error: 'printf' was not declared in this scope
    5 |   printf("%s¥n",S);
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | void main(){
Language: C++

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

void main()

{
    FILE *in = stdin;
    int n, k;
    fscanf(in, "%d %d", &n, &k);
    //printf("%d,%d\n", n, k);

    char tmp[51];
    fgets(tmp, 50, in);

    tmp[k - 1] = tolower(tmp[k - 1]);
}

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

void main()

{
    FILE *in = stdin;
    int n, k;
    fscanf(in, "%d %d", &n, &k);
    //printf("%d,%d\n", n, k);

    char tmp[51];
    fgets(tmp, "%s", in);

    tmp[k - 1] = tolower(tmp[k - 1]);
}


Compiler output:
a.cc:1:1: error: '::main' must return 'int'
    1 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:4:5: error: 'FILE' was not declared in this scope
    4 |     FILE *in = stdin;
      |     ^~~~
a.cc:1:1: note: 'FILE' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | void main()
a.cc:4:11: error: 'in' was not declared in this scope; did you mean 'int'?
    4 |     FILE *in = stdin;
      |           ^~
      |           int
a.cc:4:16: error: 'stdin' was not declared in this scope
    4 |     FILE *in = stdin;
      |                ^~~~~
a.cc:4:16: note: 'stdin' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:6:5: error: 'fscanf' was not declared in this scope
    6 |     fscanf(in, "%d %d", &n, &k);
      |     ^~~~~~
a.cc:10:5: error: 'fgets' was not declared in this scope
   10 |     fgets(tmp, "%s", in);
      |     ^~~~~
a.cc:12:18: error: 'tolower' was not declared in this scope
   12 |     tmp[k - 1] = tolower(tmp[k - 1]);
      |                  ^~~~~~~
Language: C++

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

int main(int argc, const char* argv[])

{
    FILE *in = stdin;
    int n, k;
    fscanf(in, "%d %d", &n, &k);
    //printf("%d,%d\n", n, k);

    char tmp[51];
    fgets(tmp, "%s", in);

    tmp[k - 1] = tolower(tmp[k - 1]);
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:14:16: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   14 |     fgets(tmp, "%s", in);
      |                ^~~~
      |                |
      |                const char*
In file included from a.cc:1:
/usr/include/stdio.h:654:47: note:   initializing argument 2 of 'char* fgets(char*, int, FILE*)'
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |                                           ~~~~^~~
Language: C

#include<stdio.h>

int main(void)
{
	int n, k, i;
	char* s;

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

	s = (char*)malloc(sizeof(char) * n);

	if(s[k] == 'A') s[k] ='a';
	if(s[k] == 'B') s[k] ='b';
	if(s[k] == 'C') s[k] ='c';

	for(i = 0; i < n; i++){
		printf(s[i]);
	}

	rerturn 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:20: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
   11 |         s = (char*)malloc(sizeof(char) * n);
      |                    ^~~~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
    1 | #include<stdio.h>
  +++ |+#include <stdlib.h>
    2 | 
main.c:11:20: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
   11 |         s = (char*)malloc(sizeof(char) * n);
      |                    ^~~~~~
main.c:11:20: note: include '<stdlib.h>' or provide a declaration of 'malloc'
main.c:18:25: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   18 |                 printf(s[i]);
      |                        ~^~~
      |                         |
      |                         char
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'char'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:21:9: error: 'rerturn' undeclared (first use in this function)
   21 |         rerturn 0;
      |         ^~~~~~~
main.c:21:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:21:16: error: expected ';' before numeric constant
   21 |         rerturn 0;
      |                ^~
      |                ;
Language: C++

inputstr1 = input().split()
n = inputstr1[0]
k = inputstr1[1]
s = input()
print("N:" + n)
print("K:" + k)
print("S:", end="")
N = int(n)
K = int(k)

for i in range(0, N):
    if(i == (K-1)):
        print(s[i].lower(), end="")
    elif(i == (N-1)):
        print(s[i])
    else:
        print(s[i], end="")


Compiler output:
a.cc:1:1: error: 'inputstr1' does not name a type
    1 | inputstr1 = input().split()
      | ^~~~~~~~~
Language: C++

inputstr1 = input().split()
n = inputstr1[0]
k = inputstr1[1]
s = input()

intn = int(n)
intk = int(k)

small = str.swapcase(s[intk -1])

answer = s.replace(s[intk -1], small)

print(answer)


Compiler output:
a.cc:1:1: error: 'inputstr1' does not name a type
    1 | inputstr1 = input().split()
      | ^~~~~~~~~
Language: C++

#include<stdio.h>

int main(){
  
  int N,K;
  char str[50];
  char str2[51];
  char s=' ';
  
  scanf("%d%d",N,K);
  while(s==' ')scanf("%s",s);
  scanf("%s",str);
  sprintf(str2,"%s%s",s,str)
  
  if(str2[K]=='A')str2[K]='a';
  if(str2[K]=='B')str2[K]='b';
  if(str2[K]=='C')str2[K]='c';
  
  printf("%s",str2);
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:29: error: expected ';' before 'if'
   13 |   sprintf(str2,"%s%s",s,str)
      |                             ^
      |                             ;
   14 | 
   15 |   if(str2[K]=='A')str2[K]='a';
      |   ~~
Language: C++

#include<stdio.h>

int main(){
  
  int N,K;
  char str[50];
  char str2[51];
  char s=' ';
  
  scanf("%d%d",N,K);
  while(s==' ')scanf("%s",s);
  scanf("%s",str);
  sprintf(str2,"%s%s",s,str)
  
  if(str2[K]=='A')str2[K]='a';
  if(str2[K]=='B')str2[K]='b';
  if(str2[K]=='C')str2[K]='c';
  
  printf("%s",str);
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:29: error: expected ';' before 'if'
   13 |   sprintf(str2,"%s%s",s,str)
      |                             ^
      |                             ;
   14 | 
   15 |   if(str2[K]=='A')str2[K]='a';
      |   ~~
Language: C++

#include<stdio.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if(str[K]=="A")str[K]="a";
      |      ~~~~~~^~~~~
a.cc:11:25: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   11 |   if(str[K]=="A")str[K]="a";
      |                         ^~~
      |                         |
      |                         const char*
a.cc:12:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   if(str[K]=="B")str[K]="b";
      |      ~~~~~~^~~~~
a.cc:12:25: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   12 |   if(str[K]=="B")str[K]="b";
      |                         ^~~
      |                         |
      |                         const char*
a.cc:13:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   if(str[K]=="C")str[K]="c";
      |      ~~~~~~^~~~~
a.cc:13:25: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   13 |   if(str[K]=="C")str[K]="c";
      |                         ^~~
      |                         |
      |                         const char*
Language: C++

#include<stdio.h>

int main(){
  
  int N,K;
  char str[51];
  
  scanf("%d%d\n",N,K);
  scanf("%s",str);
  
  if(str[K]=="A")str[K]="a";
  if(str[K]=="B")str[K]="b";
  if(str[K]=="C")str[K]="c";
  
  printf("%s",str);
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if(str[K]=="A")str[K]="a";
      |      ~~~~~~^~~~~
a.cc:11:25: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   11 |   if(str[K]=="A")str[K]="a";
      |                         ^~~
      |                         |
      |                         const char*
a.cc:12:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   if(str[K]=="B")str[K]="b";
      |      ~~~~~~^~~~~
a.cc:12:25: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   12 |   if(str[K]=="B")str[K]="b";
      |                         ^~~
      |                         |
      |                         const char*
a.cc:13:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   if(str[K]=="C")str[K]="c";
      |      ~~~~~~^~~~~
a.cc:13:25: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   13 |   if(str[K]=="C")str[K]="c";
      |                         ^~~
      |                         |
      |                         const char*
Language: C++

#include <bits/stdc++.h>

using namespace std;
int main(){
  string s;int a, b; cin >> a >> b >> s;
  b --;
  if(isupper(s[b]) s[b] = tolower(s[b]);
     
    cout << s;
     return 0;
     }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: expected ';' before 's'
    7 |   if(isupper(s[b]) s[b] = tolower(s[b]);
      |                   ^~
      |                   ;
a.cc:9:14: error: expected ')' before ';' token
    9 |     cout << s;
      |              ^
      |              )
a.cc:7:5: note: to match this '('
    7 |   if(isupper(s[b]) s[b] = tolower(s[b]);
      |     ^
Language: C++

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

using namespace std;

int main()
{
  	int N,K;
  	string S;
  	cin >> N >> K >> S;
	string c = S[K-1];
  
    S[K-1] = tolower(c);
  	
  	cout << S << endl;  
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   12 |         string c = S[K-1];
      |                         ^
a.cc:14:21: error: no matching function for call to 'tolower(std::string&)'
   14 |     S[K-1] = tolower(c);
      |              ~~~~~~~^~~
In file included from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/locale_facets.h:2693:5: note: candidate: 'template<class _CharT> _CharT std::tolower(_CharT, const locale&)'
 2693 |     tolower(_CharT __c, const locale& __loc)
      |     ^~~~~~~
/usr/include/c++/14/bits/locale_facets.h:2693:5: note:   candidate expects 2 arguments, 1 provided
In file included from /usr/include/c++/14/cctype:42,
                 from /usr/include/c++/14/bits/localefwd.h:42,
                 from /usr/include/c++/14/ios:43:
/usr/include/ctype.h:122:12: note: candidate: 'int tolower(int)'
  122 | extern int tolower (int __c) __THROW;
      |            ^~~~~~~
/usr/include/ctype.h:122:25: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int'
  122 | extern int tolower (int __c) __THROW;
      |                     ~~~~^~~
Language: C++

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

using namespace std;

int main()
{
  	int N,K;
  	string S;
  	cin >> N >> K >> S;
	S[K-1] = tlower();
    cout << S << endl;
  	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: 'tlower' was not declared in this scope; did you mean 'tolower'?
   12 |         S[K-1] = tlower();
      |                  ^~~~~~
      |                  tolower
Language: C++

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

using namespace std;

int main()
{
  	int N,K;
  	string S;
  	cin >> N >> K >> S;
	string str = S.at(K);
	transform(str.begin(), str.end(), str.begin(), ::tolower);

	cout << S << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:26: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   12 |         string str = S.at(K);
      |                      ~~~~^~~
Language: C++

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

int main() {
  int N,K;
  cin >> N >> A;
  string s;
  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";  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: 'A' was not declared in this scope
    6 |   cin >> N >> A;
      |               ^
a.cc:9:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if(s.at(K)=="A") s.at(K)="a";
      |      ~~~~~~~^~~~~
a.cc:9:28: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    9 |   if(s.at(K)=="A") s.at(K)="a";
      |                            ^~~
      |                            |
      |                            const char*
a.cc:10:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if(s.at(K)=="B") s.at(K)="b";
      |      ~~~~~~~^~~~~
a.cc:10:28: 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)=="B") s.at(K)="b";
      |                            ^~~
      |                            |
      |                            const char*
a.cc:11:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if(s.at(K)=="C") s.at(K)="c";
      |      ~~~~~~~^~~~~
a.cc:11:28: 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)=="C") s.at(K)="c";
      |                            ^~~
      |                            |
      |                            const char*
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';
 }
  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;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'k' was not declared in this scope
   11 |    S.at(k-1)='a';
      |         ^
a.cc:13:11: error: 'k' was not declared in this scope
   13 |   if(S.at(k-1)='B'){
      |           ^
a.cc:16:11: error: 'k' was not declared in this scope
   16 |   if(S.at(k-1)='C'){
      |           ^
Language: C++

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

int main(){
  string s;
  int i;
  cin >> i>> i >> s;
  switch(s[i-1])
  {
    case "A":
        s[i-1] = "a";
        break;
    case "B":
       s[i-1] = "b";
      break;
    case "C":
      s[i-1] = "c";
      break;
  }
  cout << s;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: conversion from 'const char*' to 'int' in a converted constant expression
   10 |     case "A":
      |          ^~~
a.cc:10:10: error: could not convert '"A"' from 'const char [2]' to 'int'
   10 |     case "A":
      |          ^~~
      |          |
      |          const char [2]
a.cc:11:18: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   11 |         s[i-1] = "a";
      |                  ^~~
      |                  |
      |                  const char*
a.cc:13:10: error: conversion from 'const char*' to 'int' in a converted constant expression
   13 |     case "B":
      |          ^~~
a.cc:13:10: error: could not convert '"B"' from 'const char [2]' to 'int'
   13 |     case "B":
      |          ^~~
      |          |
      |          const char [2]
a.cc:14:17: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   14 |        s[i-1] = "b";
      |                 ^~~
      |                 |
      |                 const char*
a.cc:16:10: error: conversion from 'const char*' to 'int' in a converted constant expression
   16 |     case "C":
      |          ^~~
a.cc:16:10: error: could not convert '"C"' from 'const char [2]' to 'int'
   16 |     case "C":
      |          ^~~
      |          |
      |          const char [2]
a.cc:17:16: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   17 |       s[i-1] = "c";
      |                ^~~
      |                |
      |                const char*
Language: C++

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

int main(){
  string s;
  int i;
  cin >> >> i >> s;
  switch(s[i-1])
  {
    case "A":
        s[i-1] = "a";
        break;
    case "B":
       s[i-1] = "b";
      break;
    case "C":
      s[i-1] = "c";
      break;
  }
  cout << s;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: expected primary-expression before '>>' token
    7 |   cin >> >> i >> s;
      |          ^~
a.cc:10:10: error: conversion from 'const char*' to 'int' in a converted constant expression
   10 |     case "A":
      |          ^~~
a.cc:10:10: error: could not convert '"A"' from 'const char [2]' to 'int'
   10 |     case "A":
      |          ^~~
      |          |
      |          const char [2]
a.cc:11:18: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   11 |         s[i-1] = "a";
      |                  ^~~
      |                  |
      |                  const char*
a.cc:13:10: error: conversion from 'const char*' to 'int' in a converted constant expression
   13 |     case "B":
      |          ^~~
a.cc:13:10: error: could not convert '"B"' from 'const char [2]' to 'int'
   13 |     case "B":
      |          ^~~
      |          |
      |          const char [2]
a.cc:14:17: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   14 |        s[i-1] = "b";
      |                 ^~~
      |                 |
      |                 const char*
a.cc:16:10: error: conversion from 'const char*' to 'int' in a converted constant expression
   16 |     case "C":
      |          ^~~
a.cc:16:10: error: could not convert '"C"' from 'const char [2]' to 'int'
   16 |     case "C":
      |          ^~~
      |          |
      |          const char [2]
a.cc:17:16: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   17 |       s[i-1] = "c";
      |                ^~~
      |                |
      |                const char*
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n,k;
  char s;
  cin>>n>>k;
  cin>>s;
  s[k-1]+=32;
  cout<<s;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:4: error: invalid types 'char[int]' for array subscript
    9 |   s[k-1]+=32;
      |    ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n,k;
  char s[];
  cin>>n>>k;
  cin>>s;
  s[k-1]+=32;
  cout<<s;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: storage size of 's' isn't known
    6 |   char s[];
      |        ^
Language: C++

#inclde <bits/stdc++.h>

using namespace std;

int main() {
 	int n, k;
  	string s;
  	cin >> s;
  	s[k - 1] -= 'A';
  	s[k - 1] += 'a';
  	cout << s;
}

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

#include <bits/stdc++.h>

using namespace std;

map<int, int> mp;

int findPower(int i, int k)
{
    int t = i, cnt = 0;

    while (t <= k)
    {
	if (mp.find(t) != mp.end())
	{
	    cnt += mp[t];
	    break;
	}
	t *= 2;
	++cnt;
    }

    mp[i] = cnt;
    return cnt;
}

int main()
{
    int n, k;
    cin >> n >> k;

    // power of 2
    vector<int> p2(31);

    p2[0] = 1;
    for (int i=1; i<p2.size(); ++i)	p2[i] = p2[i-1] * 2;

    long double b = 0.0;
    for (int i=n; i>=1; --i)
    {
	int p = findPower(i, k);
	p = p2[p];
	b += (long double)1/p;
    }
	cout << fixed ; cout << setprecision(15) 
    cout << ((long double)1/n) * b << '\n';
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:44:49: error: expected ';' before 'cout'
   44 |         cout << fixed ; cout << setprecision(15)
      |                                                 ^
      |                                                 ;
   45 |     cout << ((long double)1/n) * b << '\n';
      |     ~~~~
Language: C++

#include <stdio.h>
#include <stdlib.h>
#include<iostream>
#include<string>
#include<map>
#include"Header.h"
using namespace std;
int x, y, num;
char c;
int *a;
long long N, M,Y[100000],P[100000];
string s;
map<long long, long long>m;
int main(){
	cin >> N >> M;
	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 << endl;
	return 0;
}

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

#include<iostream>
#include<string>
using namespace std;
int main(){
int N,K;
  cin>>N>>K;
  string S;
  cin>>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;
  return 0;


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

#include<iostream>
#include<string>
using namespace std;
int main(){
int N,K;
  cin>>N>>K;
  string S;
  cin>>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;
  return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:16:15: error: expected ';' before '}' token
   16 |     S[K-1]='c'
      |               ^
      |               ;
   17 |     }
      |     ~          
a.cc:19:12: error: expected '}' at end of input
   19 |   return 0;
      |            ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++


#include "pch.h"
#include <algorithm>
#include <iostream>
#include <iomanip>
#include <cstring>
#include <cstdlib>
#include <utility>
#include <cstdio>
#include <vector>
#include <string>
#include <queue>
#include <stack>
#include <cmath>
#include <set>
#include <map>

using ll = long long;
using itn = int;
using namespace std;


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

	char c = s[k - 1] + 0x20;
	s[k - 1] = c;
	cout << s << endl;
	return 0;
}



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

#include<iostream>
#include<string>
using namespace std:
int main(){
int N,K;
string S;
cin>>N>>K;
  cin>>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';
  }
  cout<<S<<endl;
  return 0;
}

Compiler output:
a.cc:3:20: error: expected ';' before ':' token
    3 | using namespace std:
      |                    ^
      |                    ;
a.cc:3:20: error: expected unqualified-id before ':' token
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  int N,K;
  cin>>N>>K;
 string s;
  cin>>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"
}
  cout<<s<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    9 | if(s[K-1]="A"){
      |           ^~~
      |           |
      |           const char*
a.cc:10:3: error: 'k' was not declared in this scope
   10 | s[k-1]="a"
      |   ^
a.cc:12:16: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   12 | else if(s[K-1]="B"){
      |                ^~~
      |                |
      |                const char*
a.cc:13:8: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   13 | s[K-1]="b"
      |        ^~~
      |        |
      |        const char*
a.cc:13:11: error: expected ';' before '}' token
   13 | s[K-1]="b"
      |           ^
      |           ;
   14 | }
      | ~          
a.cc:16:10: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   16 |   s[K-1]="c"
      |          ^~~
      |          |
      |          const char*
a.cc:16:13: error: expected ';' before '}' token
   16 |   s[K-1]="c"
      |             ^
      |             ;
   17 | }
      | ~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  int N,K;
  cin>>N>>K;
 string s;
  cin>>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'
}
  cout<<s<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: expected ';' before '}' token
   10 | s[K-1]='a'
      |           ^
      |           ;
   11 | }
      | ~          
a.cc:13:11: error: expected ';' before '}' token
   13 | s[K-1]='b'
      |           ^
      |           ;
   14 | }
      | ~          
a.cc:16:13: error: expected ';' before '}' token
   16 |   s[K-1]='c'
      |             ^
      |             ;
   17 | }
      | ~
Language: C++

#include <iostram>
using namespace std;

int main(){
  int n=0,k=0;
  char* s=nullptr;
  cin>>n>>k>>s;
  s[k-1] -= ('A'-'a');
  cout<<s<<endl;
  return 0;
}

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:11: warning: comparison between pointer and integer
    7 |   if(S[K] == "A"){
      |           ^~
main.c:8:10: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    8 |     S[K] = "a";
      |          ^
main.c:9:18: warning: comparison between pointer and integer
    9 |   } else if(S[K] == "B"){
      |                  ^~
main.c:10:10: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   10 |     S[K] = "b";
      |          ^
main.c:12:10: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   12 |     S[K] = "c";
      |          ^
main.c:14:17: error: expected ')' before ';' token
   14 |   printf("%s", S;)
      |         ~       ^
      |                 )
main.c:14:19: error: expected ';' before '}' token
   14 |   printf("%s", S;)
      |                   ^
      |                   ;
   15 | }
      | ~
Language: C++

#include<iostream>
usingnamespace std;
#define ll long long int
int main()
{
	ll n,k;
  cin>>n>>k;
  string s;
  cin>>s;
  s[k-1]=s[k-1]+32;
  cout<<s;
}


Compiler output:
a.cc:2:1: error: 'usingnamespace' does not name a type
    2 | usingnamespace std;
      | ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin>>n>>k;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:3: error: 'string' was not declared in this scope
    8 |   string s;
      |   ^~~~~~
a.cc:8:3: 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:
/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:9:8: error: 's' was not declared in this scope
    9 |   cin>>s;
      |        ^
a.cc:11:3: 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<iostream>
usingnamespace std;
int main()
{
	ll n,k;
  cin>>n>>k;
  string s;
  cin>>s;
  s[k-1]=s[k-1]+32;
  cout<<s;
}

Compiler output:
a.cc:2:1: error: 'usingnamespace' does not name a type
    2 | usingnamespace std;
      | ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:9: error: 'll' was not declared in this scope
    5 |         ll n,k;
      |         ^~
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>n>>k;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:8: error: 'n' was not declared in this scope
    6 |   cin>>n>>k;
      |        ^
a.cc:6:11: error: 'k' was not declared in this scope
    6 |   cin>>n>>k;
      |           ^
a.cc:7:3: error: 'string' was not declared in this scope
    7 |   string s;
      |   ^~~~~~
a.cc:7:3: 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:
/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:8:8: error: 's' was not declared in this scope
    8 |   cin>>s;
      |        ^
a.cc:10:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   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 <iostream>

using namespace std;

int main(){
    int a,b,c;
    cin >> a >> b >> c;
    if(3 == 1){
        cout << "aBC" << endl;
    }else{
        cout << "CAbA" << endl;
    }
    
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >> a >> b >> c;
      |     ^~~
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << "aBC" << endl;
      |         ^~~~
a.cc:9:26: error: 'endl' was not declared in this scope
    9 |         cout << "aBC" << endl;
      |                          ^~~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << "CAbA" << endl;
      |         ^~~~
a.cc:11:27: error: 'endl' was not declared in this scope
   11 |         cout << "CAbA" << endl;
      |                           ^~~~
Language: C++

include <iostream>

using namespace std;

int main()
{
    int a,b,c;
    cin >> a >> b >> c;
    if(3 == 1){
        cout << "aBC" << endl;
    }else{
        cout << "CAbA" << endl;
    }
    
}


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:5: error: 'cin' was not declared in this scope
    8 |     cin >> a >> b >> c;
      |     ^~~
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << "aBC" << endl;
      |         ^~~~
a.cc:10:26: error: 'endl' was not declared in this scope
   10 |         cout << "aBC" << endl;
      |                          ^~~~
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout << "CAbA" << endl;
      |         ^~~~
a.cc:12:27: error: 'endl' was not declared in this scope
   12 |         cout << "CAbA" << endl;
      |                           ^~~~
Language: C++

#include<algorithm>
#include<climits>
#include<numeric>
#include<iomanip>
#include<iostream>
#include<map>
#include<queue>
#include<set>
#include<stack>
#include<unordered_map>
#include<unordered_set>
#include<vector>
#include<cassert>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<string>
using namespace std;


int main() {
    //ios_base::sync_with_stdio(0);
    //cin.tie(0);
    
    int n, m;
    string s
    cin >> n >> m;
    cin >> s;
    s[m] -= 'A' - 'a';
    cout << s << endl;
    return 0;
}










Compiler output:
a.cc: In function 'int main()':
a.cc:28:5: error: expected initializer before 'cin'
   28 |     cin >> n >> m;
      |     ^~~
a.cc:29:12: error: 's' was not declared in this scope
   29 |     cin >> s;
      |            ^
Language: C++

#include<algorithm>
#include<climits>
#include<numeric>
#include<iomanip>
#include<iostream>
#include<map>
#include<queue>
#include<set>
#include<stack>
#include<unordered_map>
#include<unordered_set>
#include<vector>
#include<cassert>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<string>
using namespace std;


int main() {
    //ios_base::sync_with_stdio(0);
    //cin.tie(0);
    
    int n, m;
    cin >> n >> m;
    cin >> s;
    s[m] -= 'A' - 'a';
    cout << s << endl;
    return 0;
}










Compiler output:
a.cc: In function 'int main()':
a.cc:28:12: error: 's' was not declared in this scope
   28 |     cin >> s;
      |            ^
Language: C++

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

int main(void)
{
  int n, k;
  string s;
  cin >> n;
  cin >> k;
  cin >> s;
  s[k-1] = s[k-1] - 'A' + 'a';
  return 0;
}

Compiler output:
a.cc:3:1: error: 'uusing' does not name a type
    3 | uusing namespace std;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'string' was not declared in this scope
    8 |   string s;
      |   ^~~~~~
a.cc:8:3: 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:9:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |   cin >> n;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:10: error: 's' was not declared in this scope
   11 |   cin >> s;
      |          ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(void){
  int N,K;
  cin >> N >> K;
  
  string s;
  cin >> 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';
  
  cout << s << endl;
  
  return 0;
}

  

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: 'k' was not declared in this scope
   13 |   else if(s[k - 1] == 'B')
      |             ^
Language: C++

#include<stdio.h>
#include<ctype.h>
int main(void){
  int n,k;
  scanf("%d %d",&n,&k);
  char str[n+1];
  scanf"%s",str);
  tolower(str[k-1]);
  printf("%s\n",str);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected ';' before string constant
    7 |   scanf"%s",str);
      |        ^~~~
      |        ;
Language: Java

#include<stdio.h>
#include<ctype.h>
int main(void){
  int n,k;
  scanf("%d %d",&n,&k);
  char str[n+1];
  scanf("%s",str);
  tolower(str[k-1]);
  printf("%s\n",str);
  return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include<stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<stdio.h>
        ^
Main.java:2: error: illegal character: '#'
#include<ctype.h>
^
Main.java:5: error: class, interface, enum, or record expected
  scanf("%d %d",&n,&k);
  ^
Main.java:6: error: class, interface, enum, or record expected
  char str[n+1];
  ^
Main.java:7: error: class, interface, enum, or record expected
  scanf("%s",str);
  ^
Main.java:8: error: class, interface, enum, or record expected
  tolower(str[k-1]);
  ^
Main.java:9: error: class, interface, enum, or record expected
  printf("%s\n",str);
  ^
Main.java:10: error: class, interface, enum, or record expected
  return 0;
  ^
Main.java:11: error: class, interface, enum, or record expected
}
^
10 errors
Language: C

#include<stdio.h>
#include<string.h>
int main()
{
  char s;
  int n,a,i;
  scanf("%d%d%s",&n,&a,s);
  int len=strlen(s);
  for(i=0;i<len;i++)
  {
    if(s[a-1]>='A'&&s[a-1]<='Z')
      s[a-1]=a[a-1]+32;
    break;
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:18: error: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Wint-conversion]
    8 |   int len=strlen(s);
      |                  ^
      |                  |
      |                  char
In file included from main.c:2:
/usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'char'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
main.c:11:9: error: subscripted value is neither array nor pointer nor vector
   11 |     if(s[a-1]>='A'&&s[a-1]<='Z')
      |         ^
main.c:11:22: error: subscripted value is neither array nor pointer nor vector
   11 |     if(s[a-1]>='A'&&s[a-1]<='Z')
      |                      ^
main.c:12:8: error: subscripted value is neither array nor pointer nor vector
   12 |       s[a-1]=a[a-1]+32;
      |        ^
main.c:12:15: error: subscripted value is neither array nor pointer nor vector
   12 |       s[a-1]=a[a-1]+32;
      |               ^
Language: Java

//package atcoder;
import java.util.*;
public class B_126_A {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int k=sc.nextInt();
		String s=sc.next();
		System.out.println(s.substring(0,k-1) + (char)(s.charAt(k-1)+32) + s.substring(k));

	}

}


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

#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<iomanip>
#include<math.h>
#include<complex>
#include<queue>
#include<deque>
#include<stack>
#include<map>
#include<set>
#include<bitset>
using namespace std;
#define REP(i,m,n) for(int i=(int)m ; i < (int) n ; ++i )
#define rep(i,n) REP(i,0,n)
typedef long long ll;
typedef pair<int,int> pint;
typedef pair<ll,int> pli;
const int inf=1e9+7;
const ll longinf=1LL<<60 ;
const ll mod=1e9+7 ;

vector<int> Odd[100010],Even[100010];
int color[100010];

bool dfs(int v,int c){
  color[v]=c;
  for(int i=0;i<Odd[v].size();i++){
    if(color[Odd[v][i]]==0)dfs(Odd[v][i],-c);
  }
  for(int i=0;i<Even[v].size();i++){
    if(color[Even[v][i]]==0)dfs(Even[v][i],c);
  }
}

int main(){
  int n,k;
  cin >> n >> k;
  string s;
  cin >> s;
  rep(i,s.size()){
    if(i==k-1){
      char c=s[i]-'A''a';
      cout << c ;
    }
    else cout << s[i] ;
  }
  cout << endl;
return 0;}

Compiler output:
a.cc: In function 'bool dfs(int, int)':
a.cc:35:1: warning: no return statement in function returning non-void [-Wreturn-type]
   35 | }
      | ^
a.cc: In function 'int main()':
a.cc:44:22: error: expected ',' or ';' before 'a'
   44 |       char c=s[i]-'A''a';
      |                      ^~~
Language: C++

#include <bits/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-1){
      cout << s.at(i);
    }
    else {
      if(s.at(i) == 'A'){
        cout << 'a';
      }
      else if(s.at(i) == 'B'){
        cout << 'b';
      }
      else {
        cout << 'c';
      }
    }
  }
  
  cout << << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:11: error: expected primary-expression before '<<' token
   26 |   cout << << endl;
      |           ^~
Language: C++

#include <iostream>
using namespace std;
char in[55];
int main(){
int a,b;scanf("%d%d",&a,&b);
scanf("%s",in);
in[b-1]+=32;
printf("%s\n",in);

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected '}' at end of input
    8 | printf("%s\n",in);
      |                   ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
#include<ctype>
void main(){
	int n,k;
  	scanf("%d%d",n,k);
  	if(n<=50){
    	if(k<=n){
        	char str[n];
          	scanf("%s",str);
          	str[k-1]=tolower(sttr[k-1]);
          	printf("\n%s",str);
        }
    }
}

Compiler output:
a.cc:2:9: fatal error: ctype: No such file or directory
    2 | #include<ctype>
      |         ^~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;

std::cout << std::setprecision(10);

int main(void){
  unsigned int n, k;
  unsigned long long int max_, min_;
  cin >> n >> k;
  min_ = ceil(log2(k / n));
  max_ = ceil(log2(k));
  // cout << (pow(0.5L, min_ - 1LL) - pow(0.5L, max_)) / (long double)n << '\n';
  cout << (pow(2.0, max_ - min_ + 1) - 1) / (3 * pow(2.0, max_)) << '\n';
  return 0;
}

Compiler output:
a.cc:6:6: error: 'cout' in namespace 'std' does not name a type
    6 | std::cout << std::setprecision(10);
      |      ^~~~
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~