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

#inlcude <stdio.h>

int main(){
  char str1[11], str2[11], str3[11];
  scanf("%d%d%d", str1, str2, str3);
  str1[1]=str1[1]-32;
  str2[1]=str2[1]-32;
  str3[1]=str3[1]-32;
  printf("%s%s%s", str1[1], str[2], str3[3]);
  return 0;
}


Compiler output:
main.c:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude <stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |   scanf("%d%d%d", str1, str2, str3);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inlcude <stdio.h>
main.c:5:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |   scanf("%d%d%d", str1, str2, str3);
      |   ^~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |   printf("%s%s%s", str1[1], str[2], str3[3]);
      |   ^~~~~~
main.c:9:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:29: error: 'str' undeclared (first use in this function); did you mean 'str3'?
    9 |   printf("%s%s%s", str1[1], str[2], str3[3]);
      |                             ^~~
      |                             str3
main.c:9:29: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

using namespace std;

int main() {
	string a,b,c,ans;
	cin >> a >> b >> c;
	ans = a.substr(0, 1);
	ans += b.substr(0, 1);
	ans += c.substr(0, 1);
	transform(ans.begin(), ans.end(), ans.begin(), toupper);
	cout << ans << endl;
	return 0;
}

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

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

using namespace std;

int main() {
	string a, b, c, ans;
	cin >> a >> b >> c;
	ans = a.substr(0, 1);
	ans += b.substr(0, 1);
	ans += c.substr(0, 1);
	transform(ans.begin(), ans.end(), ans.begin(), toupper);
	cout << ans << endl;
	return 0;
}

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

include <stdio.h>

int main()
{
    char s[3][11], ret[4];
    scanf("%s %s %s", s[0], s[1], s[2]);
    for (int i = 0; i < 3; i++)
        ret[i] = s[i][0] - 'a' + 'A';
    ret[4] = 0;
    printf("%s\n", ret);
    return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <stdio.h>
      | ^~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define VS vector<string>
#define ll long long int
#define debug(x) cout << x << " :" <<#x << endl
int main(void) {
    int n;
    cin >> n;
    vector<ll> a(100001);
    ll s;
    REP(i,n) {
        cin >{ s;
        a[i] = s;                                                                                                             
        a[i] = s;
    }                                                                                                                         
    ll oddsum = 0, evensum = 0;
    bool odd = true, even = false;
    REP(i,n) {
        oddsum += a[i];
        evensum += a[i];
        if(odd && oddsum <= 0) {
            oddcount += 1 - oddsum;
            oddsum = 1;
        }
        if(even && oddsum >= 0) {
            oddcount += 1 + oddsum;
            oddsum = -1;
        }
        if(even && evensum <= 0) {
            evencount += 1 - evensum;
            evensum = 1;
        }
        if(odd && evensum >= 0) {
            evencount += 1 + evensum;
            evensum = -1;
        }
        odd = !odd;
        even = !even;
        //debug(a[i]);
        //debug(oddsum);
        //debug(oddcount);
        //debug(evensum);
        //debug(evencount);
        //cout << endl;
    }
    cout << fmin(oddcount, evencount) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'i' was not declared in this scope
   12 |     REP(i,n) {
      |         ^
a.cc:12:5: error: 'REP' was not declared in this scope
   12 |     REP(i,n) {
      |     ^~~
a.cc:48:2: error: expected '}' at end of input
   48 | }
      |  ^
a.cc:7:16: note: to match this '{'
    7 | int main(void) {
      |                ^
Language: C++

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

int main() {
  string ans = "";
  for (int i=0; i<3; i++) {
    string str;
    cin >> str;
    ans += toupper(str[0]);
  }

  cout << ans << endl;

  return 0;
}


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

#include<cstdio>
#include<cstring>
#include<conio.h>
#include<iostream>
using namespace std;
string s1,s2,s3;
int main()
{
    cin>>s1>>s2>>s3;
    char p1=s1[0]-32;
    char p2=s2[0]-32;
    char p3=s3[0]-32;
    cout<<p1<<p2<<p3<<endl;


return 0;
}

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

#include <cstdio>
#include <cstring>
#include <ctime>
#include <cstdlib>
#include <cmath>
#include <iostream>
#include <string>
#include <queue>
#include <map>
#include <stack>
#include <vector>
#include <algorithm>
#include <set>
#include <deque>
#include <utility>
#include <chrono>
#include <sstream>
#include <iomanip>
using namespace std;
#define MOD 1000000007
#define PI 3.14159265358979
#define rep(i, n) for (int (i) = 0; (i) < (int)(n); (i)++)
#define rer(i, l, r) for (int (i) = (int)(l); (i) <= (int)(r); (i)++)
#define reu(i, l, r) for (int (i) = (int)(l); (i) < (int)(r); (i)++)
#define each(i, v) for (auto i : v)
#define D(x) cout << x << endl
#define d(x) cout << x
#define all(x) (x).begin(), (x).end()
#define pub(x) push_back(x)
#define pob() pop_back()
#define puf(x) push_front(x)
#define pof() pop_front()
#define mp(x, y) make_pair((x), (y))
#define fi first
#define se second
#define setp(x) setprecision(x)
#define mset(m, v) memset(m, v, sizeof(m))
static const int INF = 0x3f3f3f3f;
static const long long INFL = 0x3f3f3f3f3f3f3f3fLL;
typedef long long ll;
typedef vector<int> vi;
typedef vector<double> vd;
typedef vector<long long> vll;
typedef vector<string> vs;
typedef vector<bool> vb;
typedef pair<int, int> pii;
typedef pair<long, long> pll;
typedef vector<pii> vpii;
typedef vector<pll> vpll;
template<typename T, typename U> inline void amin(T &x, U y) { if (y < x) x = y; }
template<typename T, typename U> inline void amax(T &x, U y) { if (x < y) x = y; }

//static const int dx[] = {1, 0, -1, 0}, dy[] = {0, 1, 0, -1};
//#define int ll

int main() { 
        double x, y;
        char s[20], t[20], u[20];
        cin >> s >> t >> u;
        char a = 'A' + s[0] - 'a';
        char b = 'A' + t[0] - 'a';
        char c = 'A' + u[0] - 'a';
        D(a << b << c);
        return 0;
}



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

#include<stdio.h>

int main(void){
 char waiwai[3];
 int i;
 char s1[10];
 char s2[10];
 char s3[10];

 gets(s1);
 gets(s2);
 gets(s3);
 
 waiwai[0]=s1[0];
 waiwai[1]=s2[0];
 waiwai[2]=s3[0];

 for(i=0;i<3;i++){
  if(waiwai[i]>96){
   printf("%c",waiwai[i]-32);
  }else{
   printf("%c",waiwai[i]);
  }
 }
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:2: error: 'gets' was not declared in this scope; did you mean 'getw'?
   10 |  gets(s1);
      |  ^~~~
      |  getw
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n) for(int i=0;i<(n);i++)
#define VS vector<string>
#define ll long long int
int main(void) {
    string s1, s2, s3;
    cin >> s1 >> s2 >> s3;
    char c1, c2, c3;
    c1 = toupper(s1[0]);
    c2 = toupper(s2[0]);
    c3 = toupper(s3[0]);
    cout << c1 << c2 << c3 << endl;                                                                                           
}
~     

Compiler output:
a.cc:16:2: error: expected class-name at end of input
   16 | ~
      |  ^
Language: C++

#define REP(i,n) for(int i=0;i<(n);i++)
#define VS vector<string>
#define ll long long int
int main(void) {
    string s1, s2, s3;
    cin >> s1 >> s2 >> s3;
    char c1, c2, c3;
    c1 = toupper(s1[0]);
    c2 = toupper(s2[0]);
    c3 = toupper(s3[0]);
    cout << c1 << c2 << c3 << endl;
}                 

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'string' was not declared in this scope
    5 |     string s1, s2, s3;
      |     ^~~~~~
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> s1 >> s2 >> s3;
      |     ^~~
a.cc:6:12: error: 's1' was not declared in this scope
    6 |     cin >> s1 >> s2 >> s3;
      |            ^~
a.cc:6:18: error: 's2' was not declared in this scope
    6 |     cin >> s1 >> s2 >> s3;
      |                  ^~
a.cc:6:24: error: 's3' was not declared in this scope
    6 |     cin >> s1 >> s2 >> s3;
      |                        ^~
a.cc:8:10: error: 'toupper' was not declared in this scope
    8 |     c1 = toupper(s1[0]);
      |          ^~~~~~~
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << c1 << c2 << c3 << endl;
      |     ^~~~
a.cc:11:31: error: 'endl' was not declared in this scope
   11 |     cout << c1 << c2 << c3 << endl;
      |                               ^~~~
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println(a59_(sc.nextInt(),sc.nextInt(),sc.nextInt()));
    }

    static String a59_(String s, String s1, String s2) {
        s = s.substring(0, 1).toUpperCase();
        s1 = s1.substring(0, 1).toUpperCase();
        s2 = s2.substring(0, 1).toUpperCase();
        return s + s1 + s2;
    }
}


Compiler output:
Main.java:6: error: incompatible types: int cannot be converted to String
        System.out.println(a59_(sc.nextInt(),sc.nextInt(),sc.nextInt()));
                                          ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: C++

#include <iostream>
using namespace std;
 
int main(void){
  char A,B;
  cin >> A >> B;
  if((string)A.length() > (string)B.length())
    cout << "GREATER" << endl;  
  else if((string)A.length() < (string)B.length())
    cout << "LESS" << endl;
  else{
    if(+A == +B)
      cout << "EQUAL" << endl;
    else if(+A > +B)
      cout << "GREATER" << endl;
   else if(+A < +B)
     cout << "LESS" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: request for member 'length' in 'A', which is of non-class type 'char'
    7 |   if((string)A.length() > (string)B.length())
      |                ^~~~~~
a.cc:7:37: error: request for member 'length' in 'B', which is of non-class type 'char'
    7 |   if((string)A.length() > (string)B.length())
      |                                     ^~~~~~
a.cc:9:21: error: request for member 'length' in 'A', which is of non-class type 'char'
    9 |   else if((string)A.length() < (string)B.length())
      |                     ^~~~~~
a.cc:9:42: error: request for member 'length' in 'B', which is of non-class type 'char'
    9 |   else if((string)A.length() < (string)B.length())
      |                                          ^~~~~~
Language: C++

#include <iostream>
using namespace std;
 
int main(){
  int i[4];
  cin >> i[0] >> i[1];
  if(i[0] > i[1]){
    i[4] = 1;
  }else if(i[0] < i[1]){
    i[4] = 2;
  }else{
    i[4] = 3;
  }
  swicth(i[4]){
    case 1:
      cout << "GREATER" << endl;
    case 2:
      cout << "LESS" << endl;
    case 3:
      cout << "EQUAL" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: 'swicth' was not declared in this scope
   14 |   swicth(i[4]){
      |   ^~~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
 
int main(){
  string s[4];
  cin >> s[1] >> s[2] >> s[3];
  for(int i = 1; i != 4; i++){
    cout << s[i][1]
  }
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: expected ';' before '}' token
    9 |     cout << s[i][1]
      |                    ^
      |                    ;
   10 |   }
      |   ~
Language: C++

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

int main(){
  string s[4];
  cin >> s[1] >> s[2] >> s[3];
  for(int i = 1; i != 4; i++){
    cout << s[i][1]
  }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: expected ';' before '}' token
    9 |     cout << s[i][1]
      |                    ^
      |                    ;
   10 |   }
      |   ~
Language: C

main(_,c){for(;~scanf("%s",c);)putchar(*c-32);}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(_,c){for(;~scanf("%s",c);)putchar(*c-32);}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of '_' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(_,c){for(;~scanf("%s",c);)putchar(*c-32);}
      |                 ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(_,c){for(;~scanf("%s",c);)putchar(*c-32);}
main.c:1:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(_,c){for(;~scanf("%s",c);)putchar(*c-32);}
      |                 ^~~~~
main.c:1:17: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:32: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
    1 | main(_,c){for(;~scanf("%s",c);)putchar(*c-32);}
      |                                ^~~~~~~
main.c:1:32: note: include '<stdio.h>' or provide a declaration of 'putchar'
main.c:1:40: error: invalid type argument of unary '*' (have 'int')
    1 | main(_,c){for(;~scanf("%s",c);)putchar(*c-32);}
      |                                        ^~
Language: C++

#include <bits/stdc++.h>
#define SZ(v) ((int)(v).size())

using namespace std;
typedef long long ll;
typedef pair<int, int> pii;

int main(){
	char s[11], t[11], u[11];
	scanf("%s%s%s", s, t, u);
	printf("%c%c%c\n", s[0]-'a'+'A', t[0]-'a'+'A', u[0]-'a'+'A')
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:69: error: expected ';' before 'return'
   11 |         printf("%c%c%c\n", s[0]-'a'+'A', t[0]-'a'+'A', u[0]-'a'+'A')
      |                                                                     ^
      |                                                                     ;
   12 |         return 0;
      |         ~~~~~~
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#include<cctype>
#include<cstdio>
using namespace std;
#define REP(i, a, n) for(int i=0; i<n; i++)

int main()
{
	string s1, s2, s3;
	cin >> s1 >> s2 >> s3;
	
	string ans;
	ans = s1.substr(0, 1);
	char* c1 = new char[ans.size() + 1];
	strcpy(c1, ans.c_str());
	cout << c1;
	ans = s2.substr(0, 1);
	char* c2 = new char[ans.size() + 1];
	strcpy(c2, ans.c_str());
	cout << c2;
	ans = s3.substr(0, 1);
	char* c3 = new char[ans.size() + 1];
	strcpy(c3, ans.c_str());
	cout << c3 << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: 'strcpy' was not declared in this scope
   17 |         strcpy(c1, ans.c_str());
      |         ^~~~~~
a.cc:6:1: note: 'strcpy' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    5 | #include<cstdio>
  +++ |+#include <cstring>
    6 | using namespace std;
Language: Java

import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;

public class TaskA {

  public static void main(String[] args) {
      Scanner in = new Scanner(System.in);
      String s = in.nextLine();

      String[] ar = s.split(" ");
      StringBuilder sb = new StringBuilder();

      String newStr = "";
      for (int i = 0; i < ar.length; i++) {
        String temp = ar[i];
        newStr += temp.substring(0, 1);

      }

      System.out.println(newStr.toUpperCase());
  }
}


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

#include "stdafx.h"
#include <iostream>
#include <string>

using namespace std;

const int MAX_N = 1000;
char A[MAX_N], B[MAX_N];


void solve() {
	if (A > B) {
		cout << "GREATER" << endl;
	} else if(A < B) {
		cout << "LESS" << endl;
	}
	else {
		cout << "EQUAL" << endl;
	}
}

int main()
{
	//入力
	cin >> A >> B;
	solve();
    return 0;
}


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

#include<iostream>
using namespace std;
int main(){
	char a[10],b[10],c[10];
	scanf("%d %d %d,&a,&b,&c);
	printf("%c%c%c",a[0]-32,b[0]-32,c[0]-32);
	return 0;
}

Compiler output:
a.cc:5:15: warning: missing terminating " character
    5 |         scanf("%d %d %d,&a,&b,&c);
      |               ^
a.cc:5:15: error: missing terminating " character
    5 |         scanf("%d %d %d,&a,&b,&c);
      |               ^~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:49: error: expected ')' before ';' token
    6 |         printf("%c%c%c",a[0]-32,b[0]-32,c[0]-32);
      |                                                 ^
      |                                                 )
a.cc:5:14: note: to match this '('
    5 |         scanf("%d %d %d,&a,&b,&c);
      |              ^
Language: C

#include<iostream>
#include<string>

using namespace std;

int main(){
    for(int i=0;i<3;i++){
        string hoge;
        cin >> hoge;
        cout << (char)(hoge[0]-0x20);
    }
    cout << endl;

    return 0;
}


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

#include<iostream>
#include<fstream>
#include<string>
#include<algorithm>
#include<cmath>
#include<vector>
#include<stack>
#include<climits>
#include<cstring>
#include<queue>
using namespace std;

const int MAX_N = 300000;
typedef unsigned long long ull;
typedef long long ll;
const ull mod = 1000000000 + 7;
#define REP(i,n) for(int i=0;i<(int)n;++i)

int main(){
    string a,b,c;
    cin >> a >> b >> c;
    cout << char((int)a[0] - 32) << char((int)b[0] - 32) << char((int)c[0] - 32) <<endl;
    return 0;
}#include<iostream>
#include<fstream>
#include<string>
#include<algorithm>
#include<cmath>
#include<vector>
#include<stack>
#include<climits>
#include<cstring>
#include<queue>
using namespace std;

const int MAX_N = 300000;
typedef unsigned long long ull;
typedef long long ll;
const ull mod = 1000000000 + 7;
#define REP(i,n) for(int i=0;i<(int)n;++i)

int main(){
    string a,b,c;
    cin >> a >> b >> c;
    cout << char((int)a[0] - 32) << char((int)b[0] - 32) << char((int)c[0] - 32) <<endl;
    return 0;
}

Compiler output:
a.cc:24:2: error: stray '#' in program
   24 | }#include<iostream>
      |  ^
a.cc:24:3: error: 'include' does not name a type
   24 | }#include<iostream>
      |   ^~~~~~~
a.cc:36:11: error: redefinition of 'const int MAX_N'
   36 | const int MAX_N = 300000;
      |           ^~~~~
a.cc:13:11: note: 'const int MAX_N' previously defined here
   13 | const int MAX_N = 300000;
      |           ^~~~~
a.cc:39:11: error: redefinition of 'const ull mod'
   39 | const ull mod = 1000000000 + 7;
      |           ^~~
a.cc:16:11: note: 'const ull mod' previously defined here
   16 | const ull mod = 1000000000 + 7;
      |           ^~~
a.cc:42:5: error: redefinition of 'int main()'
   42 | int main(){
      |     ^~~~
a.cc:19:5: note: 'int main()' previously defined here
   19 | int main(){
      |     ^~~~
Language: C++

#include<iostream>
#include<string>
int main(){
  string s1,s2,s3;
  cin>>s1>>s2>>s3;
  int n='A'-'a';
  cout<<s1[0]+n<<s2[0]+n<<s3[0]+n<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string s1,s2,s3;
      |   ^~~~~~
a.cc:4: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:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>s1>>s2>>s3;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:8: error: 's1' was not declared in this scope
    5 |   cin>>s1>>s2>>s3;
      |        ^~
a.cc:5:12: error: 's2' was not declared in this scope
    5 |   cin>>s1>>s2>>s3;
      |            ^~
a.cc:5:16: error: 's3' was not declared in this scope
    5 |   cin>>s1>>s2>>s3;
      |                ^~
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout<<s1[0]+n<<s2[0]+n<<s3[0]+n<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout<<s1[0]+n<<s2[0]+n<<s3[0]+n<<endl;
      |                                    ^~~~
      |                                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;

string a,b,c;
int main(){
cin>>a>>b>>c;
cout<<a[0].toupper()<<b[0].toupper()<<c[0].toupper();
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: request for member 'toupper' in 'a.std::__cxx11::basic_string<char>::operator[](0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
    7 | cout<<a[0].toupper()<<b[0].toupper()<<c[0].toupper();
      |            ^~~~~~~
a.cc:7:28: error: request for member 'toupper' in 'b.std::__cxx11::basic_string<char>::operator[](0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
    7 | cout<<a[0].toupper()<<b[0].toupper()<<c[0].toupper();
      |                            ^~~~~~~
a.cc:7:44: error: request for member 'toupper' in 'c.std::__cxx11::basic_string<char>::operator[](0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
    7 | cout<<a[0].toupper()<<b[0].toupper()<<c[0].toupper();
      |                                            ^~~~~~~
Language: C++

#include <iostream>
using namespace std;

int main(void){
    string s1, s2, s3;
    cin >> s1 >> s2 >> s3;
    transform(s1.begin(), s1.end(), s1.begin(), ::toupper);
    transform(s2.begin(), s2.end(), s2.begin(), ::toupper);
    transform(s3.begin(), s3.end(), s3.begin(), ::toupper);
    cout << s1[0] << s2[0] << s3[0] << endl;
    return 0;
}


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

#include <iostream>
#include <string>
#include <queue>

using namespace std;

string a, b, c;


int main()
{
	cin.tie(0);
	ios::sync_with_stdio(false);
	
	cin >> a >> b >> c;
	transform(a.begin(), a.end(), a.begin(), toupper);
	transform(b.begin(), b.end(), b.begin(), toupper);
	transform(c.begin(), c.end(), c.begin(), toupper);

	cout << a[0] << b[0] << c[0] << "\n";
	

	return 0;
}

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

#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstdlib>
#include <cstring>
#include <cmath>

using namespace std;

#define FOR(i,a,b) for (int i = (a); i < (b); i++)
#define REP(i,n) FOR(i,0,n)

//最大公約数
long gcd(long a, long b){
	if (a%b==0){
		return b;
	}
	else{
		return gcd(b,a%b);
	}
}

//最小公倍数
long lcm(long a, long b){
	return (a*b) / gcd(a,b);
}

template<typename A, typename B> inline bool chmax(A &a, B b) { if (a < b) { a = b; return 1; } return 0; }
template<typename A, typename B> inline bool chmin(A &a, B b) { if (a > b) { a = b; return 1; } return 0; }

typedef long long ll;

const ll INF = 1ll<<29;
const ll MOD = 1000000007;
const double EPS = 1e-10;

char str[31];
char a[3];

int main(){
	gets(str);
	
	int i = 0, j = 1;
	
	a[0] = str[0];
	
	while (str[i] != '\n'){
		if (str[i] == ' '){
			a[j] = str[i+1];
			j++;
		}
		i++;
	}
	
	int p = 'A' - 'a';
	
	REP(i,3){
		printf("%c", a[i]+p);
	}
	
	cout << endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:41:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   41 |         gets(str);
      |         ^~~~
      |         getw
Language: C++

#include <iostream>
#include <algorithm>
#include <cctype>
#include <string>
#include <vector>

using namespace std;

int main()
{
	string s[3];
	string ans;
	cin>>s[0]>>s[1]>>s[2];
	for(int i=0;i<3;i++)
	{
		ans+=s[i][0];
	}
	transform(ans.begin(),ans.end(),ans.begin(),toupper);
	cout<<ans<<endl;
	return 0;
}

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

public class a{

        public static void main(String[] args){

                String firstSt = args[0].toUpperCase();
                String secandSt = args[1].toUpperCase();
                String thirdSt = args[2].toUpperCase();

                char[] first = firstSt.toCharArray();
                char[] secand = secandSt.toCharArray();
                char[] third = thirdSt.toCharArray();

                char[] answer = new char[3];
                answer[0] = first[0];
                answer[1] = secand[0];
                answer[2] = third[0];

                String ansSt = String.valueOf(answer);
                System.out.println(ansSt);
        }

}

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

#include<stdio.h>
int main(void){
	char s[3][10];
	int i;
	for(i=0;i<3;i++){
		gets(s[i]);
	}
	for(i=0;i<3;i++){
		putchar((char)((s[i][0]-'a')+'A'));
	}
	gets("");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: 'gets' was not declared in this scope; did you mean 'getw'?
    6 |                 gets(s[i]);
      |                 ^~~~
      |                 getw
a.cc:11:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   11 |         gets("");
      |         ^~~~
      |         getw
Language: C++

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

using namespace std;

int main()
{
	string s[3];
	string ans;
	cin>>s[0]>>s[1]>>s[2];
	for(int i=0;i<3;i++)
	{
		ans+=s[i][0];
	}
	transform(ans.begin(),ans.end(),ans.begin(),toupper);
	cout<<ans<<endl;
	return 0;
}

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

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

using namespace std;

int main()
{
	string s, ans;

	for (int i = 0;i < 3;i++)
	{
		cin >> s;
		transform(s.begin(), s.end(), s.begin(), toupper);
		ans.push_back(s[0]);
	}

	cout << ans << endl;

	return 0;
}


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

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

string a, b, c;

int main() {
  cin >> a >> b >> c;
  string ans = "";
  ans = a[0];
  ans += b[0];
  ans += c[0];
  transform(ans.begin(), ans.end(), ans.begin(), ::toupper);
  cout << ans << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'transform' was not declared in this scope
   13 |   transform(ans.begin(), ans.end(), ans.begin(), ::toupper);
      |   ^~~~~~~~~
Language: Java

import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.InputMismatchException;
import java.io.IOException;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author Ashish Karel rasensuriken
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        FastReader in = new FastReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskA solver = new TaskA();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskA {
        public void solve(int testNumber, FastReader in, PrintWriter out) {
            String s1 = = in.nextString();
            String s2 = in.nextString();
            String s3 = in.nextString();
            StringBuilder ans = new StringBuilder();
            ans.append(s1.charAt(0));
            ans.append(s2.charAt(0));
            ans.append(s3.charAt(0));
            out.println(ans.toString().toUpperCase());
        }

    }

    static class FastReader {
        private InputStream stream;
        private byte[] buf = new byte[1024];
        private int curChar;
        private int pnumChars;
        private FastReader.SpaceCharFilter filter;

        public FastReader(InputStream stream) {
            this.stream = stream;
        }

        public int read() {
            if (pnumChars == -1) {
                throw new InputMismatchException();
            }
            if (curChar >= pnumChars) {
                curChar = 0;
                try {
                    pnumChars = stream.read(buf);
                } catch (IOException e) {
                    throw new InputMismatchException();
                }
                if (pnumChars <= 0) {
                    return -1;
                }
            }
            return buf[curChar++];
        }

        public String nextString() {
            int c = read();
            while (isSpaceChar(c))
                c = read();
            StringBuilder res = new StringBuilder();
            do {
                res.appendCodePoint(c);
                c = read();
            } while (!isSpaceChar(c));
            return res.toString();
        }

        public boolean isSpaceChar(int c) {
            if (filter != null) {
                return filter.isSpaceChar(c);
            }
            return isWhitespace(c);
        }

        public static boolean isWhitespace(int c) {
            return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
        }

        public interface SpaceCharFilter {
            public boolean isSpaceChar(int ch);

        }

    }
}



Compiler output:
Main.java:28: error: illegal start of expression
            String s1 = = in.nextString();
                        ^
1 error