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

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

int main() {
int N; int K; string S;
  cin>>N>>K;
  cin>>S;
  transform(S.at(K),::tolower);
  cout<<S<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: no matching function for call to 'transform(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, int (&)(int) noexcept)'
    9 |   transform(S.at(K),::tolower);
      |   ~~~~~~~~~^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
 4209 |     transform(_InputIterator __first, _InputIterator __last,
      |     ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note:   candidate expects 4 arguments, 2 provided
/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, 2 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, 2 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, 2 provided
Language: C++

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

int main() {
int N; int K; string S;
  cin>>N>>K;
  cin>>S;
  transform(S.at(K),::tolower);
  cout<<S<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: no matching function for call to 'transform(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, int (&)(int) noexcept)'
    8 |   transform(S.at(K),::tolower);
      |   ~~~~~~~~~^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
 4209 |     transform(_InputIterator __first, _InputIterator __last,
      |     ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note:   candidate expects 4 arguments, 2 provided
/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, 2 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, 2 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, 2 provided
Language: C++

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

int main() {
int N; int K; string S;
  cin>>N>>K;
  cin>>S;
  transform(S.at(K),tolower);
  cout<<S<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: no matching function for call to 'transform(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, <unresolved overloaded function type>)'
    8 |   transform(S.at(K),tolower);
      |   ~~~~~~~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
 4209 |     transform(_InputIterator __first, _InputIterator __last,
      |     ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note:   candidate expects 4 arguments, 2 provided
/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, 2 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, 2 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, 2 provided
Language: C++

a,b=map(int,input().split())
c=input()
for i in range(len(c)):
  if b!=i+1:
  	print(c[i],end="")
  else:
    if c[i]=="A":
      print("a",end="")
    elif c[i]=="B":
      print("b",end="")
    else:
      print("c",end="")
print("")

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

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N,K;
  string S;
  cin >> N >> K >> S;
  S.at(k)=tolower(S.at(K));
  cout << S;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'k' was not declared in this scope
    7 |   S.at(k)=tolower(S.at(K));
      |        ^
Language: C++

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

int main() {
  int n,m; cin >> n >>m;
  vector<char> s(n);
  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;
  }
  
  rep(i,n){
    cout << s[i];
    if(i = n-1){
      cout << endl;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: 'A' was not declared in this scope
    9 |   if(s[m-1] == A){
      |                ^
a.cc:10:14: error: 'a' was not declared in this scope
   10 |     s[m-1] = a;
      |              ^
a.cc:12:16: error: 'B' was not declared in this scope
   12 |   if(s[m-1] == B){
      |                ^
a.cc:13:14: error: 'b' was not declared in this scope
   13 |     s[m-1] = b;
      |              ^
a.cc:15:16: error: 'C' was not declared in this scope
   15 |   if(s[m-1] == C){
      |                ^
a.cc:16:14: error: 'c' was not declared in this scope
   16 |     s[m-1] = c;
      |              ^
Language: C++

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

int main() {
  int n,m; cin >> n >>m;
  vector<char> s(n);
  if(s[m-1] == A){
    s[m-i] = a;
  }
  if(s[m-1] == B){
    s[m-i] = b;
  }
  if(s[m-1] == C){
    s[m-i] = c;
  }
  
  rep(i,n){
    cout << s[i];
    if(i = n-1){
      cout << endl;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: 'A' was not declared in this scope
    9 |   if(s[m-1] == A){
      |                ^
a.cc:10:9: error: 'i' was not declared in this scope
   10 |     s[m-i] = a;
      |         ^
a.cc:10:14: error: 'a' was not declared in this scope
   10 |     s[m-i] = a;
      |              ^
a.cc:12:16: error: 'B' was not declared in this scope
   12 |   if(s[m-1] == B){
      |                ^
a.cc:13:9: error: 'i' was not declared in this scope
   13 |     s[m-i] = b;
      |         ^
a.cc:13:14: error: 'b' was not declared in this scope
   13 |     s[m-i] = b;
      |              ^
a.cc:15:16: error: 'C' was not declared in this scope
   15 |   if(s[m-1] == C){
      |                ^
a.cc:16:9: error: 'i' was not declared in this scope
   16 |     s[m-i] = c;
      |         ^
a.cc:16:14: error: 'c' was not declared in this scope
   16 |     s[m-i] = c;
      |              ^
Language: C

#include <stdio.h>

int main(void) {

	int N;
	int K;
	char S[112];

	scanf("%d %d", &N, &K);
    scanf("%s",S);

		if (S[K - 1] == 'A') {
          S[i] = 'a';
		}
		else if (S[K - 1] == 'B') {
          S[i] = 'b';
		}
		else if (S[K - 1] == 'C') {
          S[i] = 'c';
		}
  
  printf("%s",S);

	return 0;
}


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

#include <stdio.h>

int main(void) {

	int N;
	int K;
	char S[112];

	scanf("%d %d", &N, &K);
    scanf("%c",S);

		if (S[K - 1] == 'A') {
          S[i] = 'a';
		}
		else if (S[K - 1] == 'B') {
          S[i] = 'b';
		}
		else if (S[K - 1] == 'C') {
          S[i] = 'c';
		}
  
  printf("%s",S[112]);

	return 0;
}


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

#include <stdio.h>

int main(void) {

	int N;
	int K;
	char S[112];

	scanf("%d %d", &N, &K);
    scanf("%c",S);

		if (S[K - 1] == 'A') {
          S[i] = 'a';
		}
		else if (S[K - 1] == 'B') {
          S[i] = 'b';
		}
		else if (S[K - 1] == 'C') {
          S[i] = 'c';
		}
  
  printf("%s",S);

	return 0;
}


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

#include <stdio.h>

int main(void) {

	int N;
	int K;
	char S[112];

	scanf("%d%d%s", &N, &K, S);

		if (S[K - 1] == 'A') {
          S[i] = 'a';
		}
		else if (S[K - 1] == 'B') {
          S[i] = 'b';
		}
		else if (S[K - 1] == 'C') {
          S[i] = 'c';
		}
  
  printf("%s",S);

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:13: error: 'i' undeclared (first use in this function)
   12 |           S[i] = 'a';
      |             ^
main.c:12:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void) {

	int N;
	int K;
	char S[112];

	scanf("%d%d%s", &N, &K, S);

		if (S[K - 1] == 'A') {
          S[i] = 'a';
		}
		else if (S[K - 1] == 'B') {
          S[i] = 'b';
		}
		else if (S[K - 1] == 'C') {
          S[i] = 'c';
		}

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:13: error: 'i' undeclared (first use in this function)
   12 |           S[i] = 'a';
      |             ^
main.c:12:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void) {

	int N;
	int K;
	char S[112];

	scanf("%d%d%s", &N, &K, S);

		if (S[K - 1] == 'A') {
          S[i] = 'a';
		}
		else if (S[K] == 'B') {
          S[i] = 'b';
		}
		else if (S[K] == 'C') {
          S[i] = 'c';
		}

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:13: error: 'i' undeclared (first use in this function)
   12 |           S[i] = 'a';
      |             ^
main.c:12:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void) {

	int N;
	int K;
	char S[112];

	scanf("%d%d%s", &N, &K, S);

		if (S[K - 1] == 'A') {
          S[i] = 'a';
		}
		else if (S[K] == 'B') {
          S[i] = 'b';
		}
		else if (S[K] == 'C') {
			puts("c");
          S[i] = 'c';
		}

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:13: error: 'i' undeclared (first use in this function)
   12 |           S[i] = 'a';
      |             ^
main.c:12:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void){
  
  int N;
  int K;
  char S[N];

  scanf("%d %d",&N,&K);
  
  fgets(S,[N],stdin);
  
  for(int i = 0;i < N;++i){
    if(S[K] == 'A'){
    puts("a");
    }
    else if(S[K] == 'B'){
    puts("b");
    }
    else if(S[K] == 'C'){
    puts("c");
    }
    else{
    printf("%c",S[i]);
    }   
  }
  return 0;
  }


Compiler output:
main.c: In function 'main':
main.c:11:11: error: expected expression before '[' token
   11 |   fgets(S,[N],stdin);
      |           ^
Language: C

#include <stdio.h>

int main(void){
  
  int N;
  int K;

  scanf("%d %d",&N,&K);
  
  char S[N];
  
  scanf("%s",S);
  
  for(int i = 0;i < N;++i){
    if(S[K] == 'A'){
    puts('a');
    }
    else if(S[K] == 'B'){
    puts('b');
    }
    else if(S[K] == 'C'){
    puts('c');
    }
    else{
    printf("%c",S[i]);
    }   
  return 0;
  }


Compiler output:
main.c: In function 'main':
main.c:16:10: error: passing argument 1 of 'puts' makes pointer from integer without a cast [-Wint-conversion]
   16 |     puts('a');
      |          ^~~
      |          |
      |          int
In file included from main.c:1:
/usr/include/stdio.h:714:30: note: expected 'const char *' but argument is of type 'int'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
main.c:19:10: error: passing argument 1 of 'puts' makes pointer from integer without a cast [-Wint-conversion]
   19 |     puts('b');
      |          ^~~
      |          |
      |          int
/usr/include/stdio.h:714:30: note: expected 'const char *' but argument is of type 'int'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
main.c:22:10: error: passing argument 1 of 'puts' makes pointer from integer without a cast [-Wint-conversion]
   22 |     puts('c');
      |          ^~~
      |          |
      |          int
/usr/include/stdio.h:714:30: note: expected 'const char *' but argument is of type 'int'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
main.c:28:3: error: expected declaration or statement at end of input
   28 |   }
      |   ^
Language: C

#include <stdio.h>

int main(void){
  
  int N;
  int K;

  scanf("%d %d",&N,&K);
  
  char S[N];
  
  scanf("%s",S);
  
  for(int i = 0;i < N;++i){
    if(S[K] == 'A'){
    puts("a");
    }
    else if(S[K] == 'B'){
    puts("b");
    }
    else if(S[K] == 'C'){
    puts("c");
    }
    else{
    printf("%c",S[i]);
    }   
  return 0;
  }


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

#include <stdio.h>

int main(void){
  
  int N;
  int K;

  scanf("%d %d",&N,&K);
  
  char S[N];
  char str;
  
  scanf("%s",S);
  
  for(int i = 0;i < N;++i){
    if(S[K] == "A"){
    puts("a");
    }
    else if(S[K] == "B"){
    puts("b");
    }
    else if(S[K] == "C"){
    puts("c");
    }
    else{
    printf("%c",S[i]);
    }   
  return 0;
  }


Compiler output:
main.c: In function 'main':
main.c:16:13: warning: comparison between pointer and integer
   16 |     if(S[K] == "A"){
      |             ^~
main.c:19:18: warning: comparison between pointer and integer
   19 |     else if(S[K] == "B"){
      |                  ^~
main.c:22:18: warning: comparison between pointer and integer
   22 |     else if(S[K] == "C"){
      |                  ^~
main.c:29:3: error: expected declaration or statement at end of input
   29 |   }
      |   ^
Language: C

#include <stdio.h>

int main(void){
  
  int N;
  int K;

  scanf("%d %d",&N,&K);
  
  char S[N];
  char str;
  
  scanf("%s",S);
  
  for(int i = 0;i < N;++i){
    if(S[K] == 'A'){
    pritnf("%c",a);
    }
    else if(S[K] == 'B'){
    printf("%c",b);
    }
    else if(S[K] == 'C'){
    pritnf("%c",c);
    }
    else{
    printf("%s",S[i]);
    }   
  return 0;
  }


Compiler output:
main.c: In function 'main':
main.c:17:5: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   17 |     pritnf("%c",a);
      |     ^~~~~~
      |     printf
main.c:17:17: error: 'a' undeclared (first use in this function)
   17 |     pritnf("%c",a);
      |                 ^
main.c:17:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:17: error: 'b' undeclared (first use in this function)
   20 |     printf("%c",b);
      |                 ^
main.c:23:17: error: 'c' undeclared (first use in this function)
   23 |     pritnf("%c",c);
      |                 ^
main.c:29:3: error: expected declaration or statement at end of input
   29 |   }
      |   ^
Language: C

#include <stdio.h>

int main(void){
  
  int N;
  int K;

  scanf("%d %d",&N,&K);
  
  char S[N];
  char str;
  
  scanf("%s",S);
  
  for(int i = 0;i < N;++i){
    if(S[K] == 'A'){
    puts("a");
    }
    else if(S[K] == 'B'){
    puts("b");
    }
    else if(S[K] == 'C'){
    puts("c");
    }
    else{
    printf("%c",S[i]);
    }   
  return 0;
  }


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

#include <stdio.h>

int main(void){
  
  int N;
  int K;

  scanf("%d %d",&N,&K);
  
  char S[N];
  char str;
  
  scanf("%s",S);
  
  for(int i = 0;i < N;++i){
    if(S[K] == 'A'){
    pritnf("%c",a);
    }
    else if(S[K] == 'B'){
    printf("%c",b);
    }
    else if(S[K] == 'C'){
    pritnf("%c",c);
    }
    else{
    printf("%c",S[i]);
    }   
  return 0;
  }


Compiler output:
main.c: In function 'main':
main.c:17:5: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   17 |     pritnf("%c",a);
      |     ^~~~~~
      |     printf
main.c:17:17: error: 'a' undeclared (first use in this function)
   17 |     pritnf("%c",a);
      |                 ^
main.c:17:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:17: error: 'b' undeclared (first use in this function)
   20 |     printf("%c",b);
      |                 ^
main.c:23:17: error: 'c' undeclared (first use in this function)
   23 |     pritnf("%c",c);
      |                 ^
main.c:29:3: error: expected declaration or statement at end of input
   29 |   }
      |   ^
Language: C

#include <stdio.h>

int main(void){
  
  int N;
  int K;

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

Compiler output:
main.c: In function 'main':
main.c:14:14: error: 'A' undeclared (first use in this function)
   14 |   if(S[K] == A){
      |              ^
main.c:14:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:5: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   15 |     pritnf("S[K]",a);
      |     ^~~~~~
      |     printf
main.c:15:19: error: 'a' undeclared (first use in this function)
   15 |     pritnf("S[K]",a);
      |                   ^
main.c:17:19: error: 'B' undeclared (first use in this function)
   17 |   else if(S[K] == B){
      |                   ^
main.c:18:19: error: 'b' undeclared (first use in this function)
   18 |     printf("S[K]",b);
      |                   ^
main.c:21:19: error: 'c' undeclared (first use in this function)
   21 |     pritnf("S[K]",c);
      |                   ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'siring' was not declared in this scope; did you mean 'si_int'?
    7 |   siring s;
      |   ^~~~~~
      |   si_int
a.cc:8:20: error: 's' was not declared in this scope
    8 |   cin >> n >> k >> s;
      |                    ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'stirng' was not declared in this scope
    7 |   stirng s;
      |   ^~~~~~
a.cc:8:20: error: 's' was not declared in this scope
    8 |   cin >> n >> k >> s;
      |                    ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'stirng' was not declared in this scope
    7 |   stirng s;
      |   ^~~~~~
a.cc:8:20: error: 's' was not declared in this scope
    8 |   cin >> n >> m >> s;
      |                    ^
a.cc:9:11: error: 'k' was not declared in this scope
    9 |   if(s.at(k) =='A')
      |           ^
Language: C++

int main() {
    int n, k;
    string s;
    cin >> n >> k >> s;
    if (s[k - 1] == 'A') s[k - 1] = 'a';
    if (s[k - 1] == 'B') s[k - 1] = 'b';
    if (s[k - 1] == 'C') s[k - 1] = 'c';
    cout << s << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'string' was not declared in this scope
    3 |     string s;
      |     ^~~~~~
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> n >> k >> s;
      |     ^~~
a.cc:4:22: error: 's' was not declared in this scope
    4 |     cin >> n >> k >> s;
      |                      ^
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << s << endl;
      |     ^~~~
a.cc:8:18: error: 'endl' was not declared in this scope
    8 |     cout << s << endl;
      |                  ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
signed main()
{
 int a,b;
string s;
cin>>a>>b>>>s;
s[b-1]+=32;
cout<<s<<"\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected primary-expression before '>' token
    7 | cin>>a>>b>>>s;
      |            ^
Language: C++

#include <bits/stdc++.h>
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;
}
  
    


Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: expected primary-expression before '}' token
   16 |   }
      |   ^
Language: Java

import java.util.*;

public class Changing_a_Character{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int k = sc.nextInt();
    char[] array = sc.next().toCharArray();

    array[k-1] += 32;

    System.out.println(array);



  }

}

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

#include <bits/stdc++.h>
using namespace std;
int main(){
  int n,k;
  string s;
  cin>>n>>k>>s;
  k-=1
  if(s[k]=='A'){
    s[k]='a';
  }else if(s[k]=='B'){
    s[k]='b';
  }else{
    s[k]='c';
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: expected ';' before 'if'
    7 |   k-=1
      |       ^
      |       ;
    8 |   if(s[k]=='A'){
      |   ~~   
a.cc:10:4: error: 'else' without a previous 'if'
   10 |   }else if(s[k]=='B'){
      |    ^~~~
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String[] s = sc.next().split();
    int a = sc.nextInt();

    s[a-1] = s[a-1].ToLowerCase();
    
    System.out.println(s);
  }

}

Compiler output:
Main.java:6: error: no suitable method found for split(no arguments)
    String[] s = sc.next().split();
                          ^
    method String.split(String,int) is not applicable
      (actual and formal argument lists differ in length)
    method String.split(String,int,boolean) is not applicable
      (actual and formal argument lists differ in length)
    method String.split(char,int,boolean) is not applicable
      (actual and formal argument lists differ in length)
    method String.split(String) is not applicable
      (actual and formal argument lists differ in length)
Main.java:9: error: cannot find symbol
    s[a-1] = s[a-1].ToLowerCase();
                   ^
  symbol:   method ToLowerCase()
  location: class String
2 errors
Language: Java

import java.util.*;

public class Changing_a_Character{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String[] s = sc.next().split();
    int a = sc.nextInt();

    s[a-1] = s[a-1].ToLowerCase();
  }

}

Compiler output:
Main.java:3: error: class Changing_a_Character is public, should be declared in a file named Changing_a_Character.java
public class Changing_a_Character{
       ^
Main.java:6: error: no suitable method found for split(no arguments)
    String[] s = sc.next().split();
                          ^
    method String.split(String,int) is not applicable
      (actual and formal argument lists differ in length)
    method String.split(String,int,boolean) is not applicable
      (actual and formal argument lists differ in length)
    method String.split(char,int,boolean) is not applicable
      (actual and formal argument lists differ in length)
    method String.split(String) is not applicable
      (actual and formal argument lists differ in length)
Main.java:9: error: cannot find symbol
    s[a-1] = s[a-1].ToLowerCase();
                   ^
  symbol:   method ToLowerCase()
  location: class String
3 errors
Language: C++

#include <iostream>
using namespace std;
 
int main() {
  int N;
  int K;
  cahr S[55];
  
  cin >> N >> K >> S;
  S[K-1]+=32;
  cout << S << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cahr' was not declared in this scope; did you mean 'char'?
    7 |   cahr S[55];
      |   ^~~~
      |   char
a.cc:9:20: error: 'S' was not declared in this scope
    9 |   cin >> N >> K >> S;
      |                    ^
Language: C++

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'cahr' was not declared in this scope; did you mean 'char'?
    8 |   cahr S[55];
      |   ^~~~
      |   char
a.cc:11:14: error: 'S' was not declared in this scope
   11 |   scanf("%s",S);
      |              ^
a.cc:12:3: error: 'in' was not declared in this scope; did you mean 'int'?
   12 |   in[b-1]+=32;
      |   ^~
      |   int
a.cc:12:6: error: 'b' was not declared in this scope
   12 |   in[b-1]+=32;
      |      ^
Language: C++

#include <iostream>
using namespace std;
#include <algorithm> 
 
int main() {
  int N;
  int K;
  char S[];
  
  cin >> N >> K >> S;
  
  if(S[K]=='A') S.replace(K,1,"a");
  else if(S[K]=='B') S.replace(K,1,"b");
  else if(S[K]=='C') S.replace(K,1,"c");

  cout << S <<endl;

}

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

#include <iostream>
using namespace std;
#include <algorithm> 
 
int main() {
  int N;
  int K;
  string S;
  
  cin >> N >> K;
  cin >> S;
  
  if(S.at(K)=="A") S.replace(K,1,"a");
  else if(S.at(K)=="B") S.replace(K,1,"b");
  else if(S.at(K)=="C") S.replace(K,1,"c");

  cout << S <<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   if(S.at(K)=="A") S.replace(K,1,"a");
      |      ~~~~~~~^~~~~
a.cc:14:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |   else if(S.at(K)=="B") S.replace(K,1,"b");
      |           ~~~~~~~^~~~~
a.cc:15:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |   else if(S.at(K)=="C") S.replace(K,1,"c");
      |           ~~~~~~~^~~~~
Language: C++

#include <iostream>
using namespace std;
#include <algorithm> 
 
int main() {
  int N;
  int K;
  string S;
  
  cin >> N >> K;
  cin >> S;
  
  if(S[K]=="A") S.replace(K,1,"a");
  else if(S[K]=="B") S.replace(K,1,"b");
  else if(S[K]=="C") S.replace(K,1,"c");

  cout << S <<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   if(S[K]=="A") S.replace(K,1,"a");
a.cc:14:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |   else if(S[K]=="B") S.replace(K,1,"b");
a.cc:15:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |   else if(S[K]=="C") S.replace(K,1,"c");
Language: C++

#include <iostream>
using namespace std;
#include <algorithm> 
 
int main() {
  int N;
  int K;
  string S;
  
  cin >> N >> K;
  cin >> S;
  
  if(S[K]=="A") S.replace(K,1,"a")
  else if(S[K]=="B") S.replace(K,1,"b")
  else if(S[K]=="C") S.replace(K,1,"c")

  cout << S <<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   if(S[K]=="A") S.replace(K,1,"a")
a.cc:13:35: error: expected ';' before 'else'
   13 |   if(S[K]=="A") S.replace(K,1,"a")
      |                                   ^
      |                                   ;
   14 |   else if(S[K]=="B") S.replace(K,1,"b")
      |   ~~~~
Language: C++

#include <iostream>
using namespace std;
#include <algorithm> 
 
int main() {
  int N;
  int K;
  sting S;
  
  cin >> N >> K;
  cin >> S;
  
  if(S[K]=="A") S.replace(K,1,"a")
  else if(S[K]=="B") S.replace(K,1,"b")
  else if(S[K]=="C") S.replace(K,1,"c")

  cout << S <<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'sting' was not declared in this scope
    8 |   sting S;
      |   ^~~~~
a.cc:11:10: error: 'S' was not declared in this scope
   11 |   cin >> S;
      |          ^
Language: C++

#include <iostream>
#include <string>

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

    for (int i = 0; i < N; i++) {
        char c = S[i];
        if (i == K) {
            if (c == 'A') S[i] = 'a';
            else if (c == 'B') S[i] = 'b';
            else if (c == 'C') S[i] = 'c';    
        }
    }

    std::cout << S << sd::endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:23: error: 'sd' has not been declared
   20 |     std::cout << S << sd::endl;
      |                       ^~
Language: Java

import java.util.Scanner;
public class AchangingChar {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        k--;
    //    int f[] = new int[k];
   String s = sc.next();
         
       char c[] = s.toCharArray();
      s = s.toLowerCase();
     char d []  = s.toCharArray();
       
        for(int i=0 ; i<n ; i++){
       if(i==k)
       {
           c[i] = d[k];
           break ;
       }
        
    }   for(int i = 0 ; i <c.length ; i++)
        System.out.print(c[i]);
} 
}


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

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

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

Compiler output:
a.cc:15:5: error: 'cout' does not name a type
   15 |     cout<<S<<endl;
      |     ^~~~
a.cc:16:3: error: expected declaration before '}' token
   16 |   }
      |   ^
Language: C

#include<stdio.h>
int main(void){
  int n,k;
  
  scanf("%d %d",&a,&b);
  char s[n];
  
 if(s[k-1]=="A"){
   s[k-1]="a";
 }
  if(s[k-1]=="B"){
    s[k-1]="b";
  }
  if(s[k-1]=="C"){
    s[k-1]="c";
  }
  
  printf("%s",s);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:18: error: 'a' undeclared (first use in this function)
    5 |   scanf("%d %d",&a,&b);
      |                  ^
main.c:5:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:21: error: 'b' undeclared (first use in this function)
    5 |   scanf("%d %d",&a,&b);
      |                     ^
main.c:8:11: warning: comparison between pointer and integer
    8 |  if(s[k-1]=="A"){
      |           ^~
main.c:9:10: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    9 |    s[k-1]="a";
      |          ^
main.c:11:12: warning: comparison between pointer and integer
   11 |   if(s[k-1]=="B"){
      |            ^~
main.c:12:11: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   12 |     s[k-1]="b";
      |           ^
main.c:14:12: warning: comparison between pointer and integer
   14 |   if(s[k-1]=="C"){
      |            ^~
main.c:15:11: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   15 |     s[k-1]="c";
      |           ^
Language: C++

#include <iostream>
#include <string>

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

Compiler output:
a.cc:11:17: warning: missing terminating ' character
   11 |   S[K-1] += 'a'-'A;
      |                 ^
a.cc:11:17: error: missing terminating ' character
   11 |   S[K-1] += 'a'-'A;
      |                 ^~~
a.cc: In function 'int main()':
a.cc:11:16: error: no match for 'operator-' (operand types are 'char' and 'std::ostream' {aka 'std::basic_ostream<char>'})
   11 |   S[K-1] += 'a'-'A;
      |             ~~~^
      |             |
      |             char
   12 |   cout << S;
      |   ~~~~          
      |   |
      |   std::ostream {aka std::basic_ostream<char>}
a.cc:11:16: note: candidate: 'operator-(int, int)' (built-in)
   11 |   S[K-1] += 'a'-'A;
      |             ~~~^~~~
   12 |   cout << S;
      |   ~~~~          
a.cc:11:16: note:   no known conversion for argument 2 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'int'
In file included from /usr/include/c++/14/string:48,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_iterator.h:618:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr decltype ((__y.base() - __x.base())) std::operator-(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
  618 |     operator-(const reverse_iterator<_IteratorL>& __x,
      |     ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:618:5: note:   template argument deduction/substitution failed:
a.cc:12:3: note:   mismatched types 'const std::reverse_iterator<_Iterator>' and 'char'
   12 |   cout << S;
      |   ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1790:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr decltype ((__x.base() - __y.base())) std::operator-(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
 1790 |     operator-(const move_iterator<_IteratorL>& __x,
      |     ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1790:5: note:   template argument deduction/substitution failed:
a.cc:12:3: note:   mismatched types 'const std::move_iterator<_IteratorL>' and 'char'
   12 |   cout << S;
      |   ^~~~
Language: C++

//
#include <bits/stdc++.h>

#include "../../template-proj/myMente.h"

using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;

#define MOD 1000000007
#define rp(i,n) for(int i=0;i<(n);i++)
#define up(i,s,e,d) for(int i=(s);i<(e);i+=(d))
#define ot(x) cout<<(x)
#define ote(x) cout<<(x)<<endl

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


Compiler output:
a.cc:4:10: fatal error: ../../template-proj/myMente.h: No such file or directory
    4 | #include "../../template-proj/myMente.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

int main(){
  int s,f,l;
  cin >> s;
  
  f = s/100;
  l = s%100;
  
  if(1<=f<=12  && 1<=l<=12){
    cout << "AMBIGUOUS" << endl;
  } else if(1<=f<=12){
    cout << "MMYY" << endl;
  } else if(1<=<l<=12){
    cout << "YYMM" << endl;
  } else{
    cout << "NA" << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:16: error: expected primary-expression before '<' token
   15 |   } else if(1<=<l<=12){
      |                ^
Language: C++

#include <iostream>
using namespace std;

void change(char a){
  char ret;
  if (a=='A') ret = 'a';
  if (a=='B') ret = 'b';
  if (a=='C') ret = 'c';
  return ret;
}

int main(){
  int n, k;
  cin >> n >> k;
  string s;
  cin >> s;
  s[k] = change(s[k]);
  cout << s << endl;
}
  

Compiler output:
a.cc: In function 'void change(char)':
a.cc:9:10: error: return-statement with a value, in function returning 'void' [-fpermissive]
    9 |   return ret;
      |          ^~~
a.cc: In function 'int main()':
a.cc:17:16: error: void value not ignored as it ought to be
   17 |   s[k] = change(s[k]);
      |          ~~~~~~^~~~~~
Language: C

  double b=N;
  for(int n=1;n<=N;n++){
    a=0;
    for(int i=1;i>0;i++){
      if(K<=n){
        break;
      }
      if(a+1<=log2(K/n)){
        a=a+1;
      }else{
        a=a+1;
        break;
      }
    }
    double p=1-1/(pow(2,a));
    b=b-p;
  }
  b=b/N;
  printf("%.9lf",b);
  return 0;
}

Compiler output:
main.c:1:12: error: 'N' undeclared here (not in a function)
    1 |   double b=N;
      |            ^
main.c:2:3: error: expected identifier or '(' before 'for'
    2 |   for(int n=1;n<=N;n++){
      |   ^~~
main.c:2:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
    2 |   for(int n=1;n<=N;n++){
      |                ^~
main.c:2:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    2 |   for(int n=1;n<=N;n++){
      |                     ^~
main.c:18:3: warning: data definition has no type or storage class
   18 |   b=b/N;
      |   ^
main.c:18:3: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
main.c:18:3: error: conflicting types for 'b'; have 'int'
main.c:1:10: note: previous definition of 'b' with type 'double'
    1 |   double b=N;
      |          ^
main.c:19:10: error: expected declaration specifiers or '...' before string constant
   19 |   printf("%.9lf",b);
      |          ^~~~~~~
main.c:19:18: error: expected declaration specifiers or '...' before 'b'
   19 |   printf("%.9lf",b);
      |                  ^
main.c:20:3: error: expected identifier or '(' before 'return'
   20 |   return 0;
      |   ^~~~~~
main.c:21:1: error: expected identifier or '(' before '}' token
   21 | }
      | ^
Language: C++

import sequtils, strutils, algorithm, tables, math, sets

var (_,K) = (let t = stdin.readline.split.map(parseInt);(t[0],t[1]))
var S = stdin.readline
S[K-1] = S[K-1].toLowerAscii
echo S

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import sequtils, strutils, algorithm, tables, math, sets
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:62: error: expected ')' before ',' token
    3 | var (_,K) = (let t = stdin.readline.split.map(parseInt);(t[0],t[1]))
      |                                                         ~    ^
      |                                                              )
a.cc:3:67: error: expected constructor, destructor, or type conversion before ')' token
    3 | var (_,K) = (let t = stdin.readline.split.map(parseInt);(t[0],t[1]))
      |                                                                   ^
Language: C

#include <stdio.h>
int main(){
    int N;
    int K;
    scanf("%d%d",&N,&K);
    char S[50];
    scanf("%s",S[]);
    S[K-1]=S[K-1]-32;
    printf("%s\n",S[]);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:18: error: expected expression before ']' token
    7 |     scanf("%s",S[]);
      |                  ^
main.c:9:21: error: expected expression before ']' token
    9 |     printf("%s\n",S[]);
      |                     ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
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);


Compiler output:
a.cc: In function 'int main()':
a.cc:3:162: error: expected '}' at end of input
    3 | 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);
      |           ~                                                                                                                                                      ^
Language: C++

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

int main() {
	int N, K;
	cin >> N >> K;
	string s;
	cin >> s;
	transform(s[K], tolower);
	cout << s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: no matching function for call to 'transform(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, <unresolved overloaded function type>)'
   10 |         transform(s[K], tolower);
      |         ~~~~~~~~~^~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
 4209 |     transform(_InputIterator __first, _InputIterator __last,
      |     ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note:   candidate expects 4 arguments, 2 provided
/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, 2 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, 2 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, 2 provided