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

#include<bits/stdc++.h>
using namespace std;
int main(){
  string A,B,C;
  cin>>A>>B>>C;
  string ANS="ANS";
  ANS.at(0)=A.at(0);
  ANS.at(1)=B.at(0);
  ANS.at(2)=C.at(0);
  transform(ANS.begin(),ANS.end(),ANS.begin(),toupper);
  cout<<ANS<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: 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>)'
   10 |   transform(ANS.begin(),ANS.end(),ANS.begin(),toupper);
      |   ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
 4209 |     transform(_InputIterator __first, _InputIterator __last,
      |     ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note:   template argument deduction/substitution failed:
a.cc:10:12: note:   couldn't deduce template parameter '_UnaryOperation'
   10 |   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<bits/stdc++.h>
using namespace std;

int main(void) {
    string a, b, c;
    cin >> a >> b >> c;
    int god = 'a' - 'A';
    cout <<(a[0] - d) << (b[0] - d) <<(c[0] - d) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: 'd' was not declared in this scope
    8 |     cout <<(a[0] - d) << (b[0] - d) <<(c[0] - d) << endl;
      |                    ^
Language: C++

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

int main(){
  string X,Y,Z;
  cin >> X >> Y >> Z;
  int god = 'a' - 'A';
  cout << X[0]god+Y[0]god+Z[0]god <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: expected ';' before 'god'
    8 |   cout << X[0]god+Y[0]god+Z[0]god <<endl;
      |               ^~~
      |               ;
Language: C++

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

int main(){
  string X,Y,Z;
  cin >> X >> Y >> Z;
  int god = 'a' - 'A';
  cout << godX[0]+godY[0]+godZ[0] <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'godX' was not declared in this scope; did you mean 'god'?
    8 |   cout << godX[0]+godY[0]+godZ[0] <<endl;
      |           ^~~~
      |           god
a.cc:8:19: error: 'godY' was not declared in this scope; did you mean 'god'?
    8 |   cout << godX[0]+godY[0]+godZ[0] <<endl;
      |                   ^~~~
      |                   god
a.cc:8:27: error: 'godZ' was not declared in this scope; did you mean 'god'?
    8 |   cout << godX[0]+godY[0]+godZ[0] <<endl;
      |                           ^~~~
      |                           god
Language: Java

import java.util.*;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String a = sc.next().toUpperCase();
        String b = sc.next().toUpperCase();
        String c = sc.next().toUpperCase();

        System.out.println(a.charAt(0)+""+b.charAt(0)+""+charAt(0));


    }

}


Compiler output:
Main.java:9: error: cannot find symbol
        System.out.println(a.charAt(0)+""+b.charAt(0)+""+charAt(0));
                                                         ^
  symbol:   method charAt(int)
  location: class Main
1 error
Language: Java

import java.util.*;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        String c = sc.next();

        System.out.println(a.charAt(0).toUpperCase()+""+b.charAt(0).toUpperCase()+""+c.charAt(0).toUpperCase());


    }

}


Compiler output:
Main.java:9: error: char cannot be dereferenced
        System.out.println(a.charAt(0).toUpperCase()+""+b.charAt(0).toUpperCase()+""+c.charAt(0).toUpperCase());
                                      ^
Main.java:9: error: char cannot be dereferenced
        System.out.println(a.charAt(0).toUpperCase()+""+b.charAt(0).toUpperCase()+""+c.charAt(0).toUpperCase());
                                                                   ^
Main.java:9: error: char cannot be dereferenced
        System.out.println(a.charAt(0).toUpperCase()+""+b.charAt(0).toUpperCase()+""+c.charAt(0).toUpperCase());
                                                                                                ^
3 errors
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: 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>)'
    9 |   transform(res.begin(), res.end(), res.begin(), toupper);
      |   ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
 4209 |     transform(_InputIterator __first, _InputIterator __last,
      |     ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note:   template argument deduction/substitution failed:
a.cc:9:12: note:   couldn't deduce template parameter '_UnaryOperation'
    9 |   transform(res.begin(), res.end(), res.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 <bits/stdc++.h>
#include <algorithm>
using namespace std;

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'toupper'
    8 |   res.toupper();
      |       ^~~~~~~
Language: C++

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

int main() {
  string a, b, c;
  cin >> a >> b >> c;
  string res = a.substr(0, 1) + b.substr(0, 1) + c.substr(0, 1);
  res.makeupper();
  cout << res << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'makeupper'
    8 |   res.makeupper();
      |       ^~~~~~~~~
Language: C++

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

int main() {
  string a, b, c;
  cin >> a >> b >> c;
  string res = a.substr(0, 1) + b.substr(0, 1) + c.substr(0, 1);
  res.MakeUpper();
  cout << res << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'MakeUpper'
    8 |   res.MakeUpper();
      |       ^~~~~~~~~
Language: C++

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

int main() {
  string a, b, c;
  cin >> a >> b >> c;
  string res = a.substr(0, 1) + b.substr(0, 1) + c.substr(0, 1);
  res.MakeUpper;
  cout << res << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'MakeUpper'
    8 |   res.MakeUpper;
      |       ^~~~~~~~~
Language: C++

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

int main() {
  string a, b, c;
  cin >> a >> b >> c;
  string res = str(a.at(0)) + str(b.at(0)) + str(c.at(0));
  res.MakeUpper;
  cout << res << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: 'str' was not declared in this scope; did you mean 'std'?
    7 |   string res = str(a.at(0)) + str(b.at(0)) + str(c.at(0));
      |                ^~~
      |                std
a.cc:8:7: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'MakeUpper'
    8 |   res.MakeUpper;
      |       ^~~~~~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: 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>)'
    8 |   transform(res.begin(), res.end(), res.begin(), toupper);
      |   ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
 4209 |     transform(_InputIterator __first, _InputIterator __last,
      |     ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note:   template argument deduction/substitution failed:
a.cc:8:12: note:   couldn't deduce template parameter '_UnaryOperation'
    8 |   transform(res.begin(), res.end(), res.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 <bits/stdc++.h>
using namespace std;

int main() {
	string s1,s2,s3;
	cin >> s1 >> s2 >> s3;
  	cout << to_upper(s1.at(0)) << to_upper(s2.at(0)) << to_upper(s3.at(0)) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'to_upper' was not declared in this scope; did you mean 'towupper'?
    7 |         cout << to_upper(s1.at(0)) << to_upper(s2.at(0)) << to_upper(s3.at(0)) << endl;
      |                 ^~~~~~~~
      |                 towupper
Language: C++

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

int main() {
	string s1,s2,s3;
	cin >> s1 >> s2 >> s3;
  	cout << to_uppder(s1.at(0)) << to_uppder(s2.at(0)) << to_uppder(s3.at(0)) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'to_uppder' was not declared in this scope; did you mean 'towupper'?
    7 |         cout << to_uppder(s1.at(0)) << to_uppder(s2.at(0)) << to_uppder(s3.at(0)) << endl;
      |                 ^~~~~~~~~
      |                 towupper
Language: C++

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

int main(){
  char s1,s2,s3;
  cin >> s1 >> s2 >> s3;
  cout << s1[0].toupper << s2[0].toupper << s3[0].toupper << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: invalid types 'char[int]' for array subscript
    8 |   cout << s1[0].toupper << s2[0].toupper << s3[0].toupper << endl;
      |             ^
a.cc:8:30: error: invalid types 'char[int]' for array subscript
    8 |   cout << s1[0].toupper << s2[0].toupper << s3[0].toupper << endl;
      |                              ^
a.cc:8:47: error: invalid types 'char[int]' for array subscript
    8 |   cout << s1[0].toupper << s2[0].toupper << s3[0].toupper << endl;
      |                                               ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: request for member 'toupper' in 's1.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'}
    8 |   cout << s1[0].toupper << s2[0].toupper << s3[0].toupper << endl;
      |                 ^~~~~~~
a.cc:8:34: error: request for member 'toupper' in 's2.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'}
    8 |   cout << s1[0].toupper << s2[0].toupper << s3[0].toupper << endl;
      |                                  ^~~~~~~
a.cc:8:51: error: request for member 'toupper' in 's3.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'}
    8 |   cout << s1[0].toupper << s2[0].toupper << s3[0].toupper << endl;
      |                                                   ^~~~~~~
Language: C++

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

int main(){
  string s1,s2,s3;
  cin >> s1 >> s2 >> s3;
  cout << s1[0].upper << s2[0].upper << s3[0].upper << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: request for member 'upper' in 's1.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'}
    8 |   cout << s1[0].upper << s2[0].upper << s3[0].upper << endl;
      |                 ^~~~~
a.cc:8:32: error: request for member 'upper' in 's2.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'}
    8 |   cout << s1[0].upper << s2[0].upper << s3[0].upper << endl;
      |                                ^~~~~
a.cc:8:47: error: request for member 'upper' in 's3.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'}
    8 |   cout << s1[0].upper << s2[0].upper << s3[0].upper << endl;
      |                                               ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
string A,B,C;
  cin>>A>>B>>C;
  string a = A ;
    transform(str.begin(), str.end(), str.begin(), ::toupper);

    string b = B ;
    transform(str.begin(), str.end(), str.begin(), ::toupper);
  
  string c = C ;
    transform(str.begin(), str.end(), str.begin(), ::toupper);

  cout<<a.at(0)<<b.at(0)<<c.at(0)<<endl;

 

  
  
  
  
  

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'str' was not declared in this scope; did you mean 'std'?
    7 |     transform(str.begin(), str.end(), str.begin(), ::toupper);
      |               ^~~
      |               std
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
string A,B,C;
  cin>>A>>B>>C;
  char di='A'-'a'
    cout<<A.at(0)+di<<B.at(0)+di<<C.at(0)+di<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected ',' or ';' before 'cout'
    7 |     cout<<A.at(0)+di<<B.at(0)+di<<C.at(0)+di<<endl;
      |     ^~~~
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

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

			var word = "";
			for(var i = 0; i < words.Length; i++)
			{
				word += (char)(words[i][0] - ('a' - 'A'));
			}

			Console.WriteLine(word);
		}
	}
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:10:34: error: 'string' has not been declared
   10 |                 static void Main(string[] args)
      |                                  ^~~~~~
a.cc:10:43: error: expected ',' or '...' before 'args'
   10 |                 static void Main(string[] args)
      |                                           ^~~~
a.cc:22:10: error: expected ';' after class definition
   22 |         }
      |          ^
      |          ;
a.cc: In static member function 'static void AtCoder::Program::Main(int*)':
a.cc:12:25: error: 'var' was not declared in this scope
   12 |                         var words = Console.ReadLine().Split(' ');
      |                         ^~~
a.cc:14:29: error: expected ';' before 'word'
   14 |                         var word = "";
      |                             ^~~~
a.cc:15:33: error: expected ';' before 'i'
   15 |                         for(var i = 0; i < words.Length; i++)
      |                                 ^
a.cc:15:40: error: 'i' was not declared in this scope
   15 |                         for(var i = 0; i < words.Length; i++)
      |                                        ^
a.cc:15:44: error: 'words' was not declared in this scope
   15 |                         for(var i = 0; i < words.Length; i++)
      |                                            ^~~~~
a.cc:17:33: error: 'word' was not declared in this scope
   17 |                                 word += (char)(words[i][0] - ('a' - 'A'));
      |                                 ^~~~
a.cc:20:25: error: 'Console' was not declared in this scope
   20 |                         Console.WriteLine(word);
      |                         ^~~~~~~
a.cc:20:43: error: 'word' was not declared in this scope
   20 |                         Console.WriteLine(word);
      |                                           ^~~~
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(){
   string s1,s2,s3;
   cin>>s1>>s2>>s3;
    printf( "%c\n", toupper(s1[1]);)
    printf( "%c\n", toupper(s2[1] );)
    printf( "%c\n", toupper(s3[1] );)

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:35: error: expected ')' before ';' token
    9 |     printf( "%c\n", toupper(s1[1]);)
      |           ~                       ^
      |                                   )
a.cc:9:36: error: expected primary-expression before ')' token
    9 |     printf( "%c\n", toupper(s1[1]);)
      |                                    ^
a.cc:10:37: error: expected primary-expression before ')' token
   10 |     printf( "%c\n", toupper(s2[1] );)
      |                                     ^
a.cc:11:37: error: expected primary-expression before ')' token
   11 |     printf( "%c\n", toupper(s3[1] );)
      |                                     ^
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(){
   string s1,s2,s3;
   cin>>s1>>s2>>s3;
    printf( "%c\n", toupper(s1[1]) );
    printf( "%c\n", toupper(s2[1] );
    printf( "%c\n", toupper(s3[1] );

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:36: error: expected ')' before ';' token
   10 |     printf( "%c\n", toupper(s2[1] );
      |           ~                        ^
      |                                    )
a.cc:11:36: error: expected ')' before ';' token
   11 |     printf( "%c\n", toupper(s3[1] );
      |           ~                        ^
      |                                    )
Language: C++

#include<bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define rep2(i, m, n) for(int i = (int)(m); i < (int)(n); i++)
#define rep_inv(i, n, m) for(int i = (int)(n); i > (int)(m); i--)
using namespace std;
using ll = long long;
using vl = vector<ll>;
using vc = vector<char>;
using vvl = vector<vl>;
using vvc = vector<vc>;
using pll = pair<ll, ll>;
using vpll = vector<pll>;

int main(){
  ll s1, s2, s3;
  cin >> s1 >> s2 >> s3;
  
  cout << (char)(s1[0] - 32);
  cout << (char)(s2[0] - 32);
  cout << (char)(s3[0] - 32) << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:20: error: invalid types 'll {aka long long int}[int]' for array subscript
   18 |   cout << (char)(s1[0] - 32);
      |                    ^
a.cc:19:20: error: invalid types 'll {aka long long int}[int]' for array subscript
   19 |   cout << (char)(s2[0] - 32);
      |                    ^
a.cc:20:20: error: invalid types 'll {aka long long int}[int]' for array subscript
   20 |   cout << (char)(s3[0] - 32) << endl;
      |                    ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
  string s1,s2,s3;
  cin>>s1>>s2>>s3;
  string str;
  str+=toupper(s1[0])
    str+=toupper(s2[0]);
  str+=toupper(s3[0]);
  cout<<str;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ';' before 'str'
    8 |   str+=toupper(s1[0])
      |                      ^
      |                      ;
    9 |     str+=toupper(s2[0]);
      |     ~~~
Language: C++

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

using ll=long long;
const ll MOD=1000000007;

int main() {
  vector<string> s(3)
  cin >> s[0] >> s[1] >> s[2];
  string ALP="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  string alp="abcdefghijklmnopqrstuvwxyz";
  for(int i=0;i<3;i++){
    for(int j=0;j<26;j++){
      if(s[i][0]==alp[j]){
        cout << alp[j];
      }
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'cin'
    9 |   cin >> s[0] >> s[1] >> s[2];
      |   ^~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
    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:8:5: error: 'transform' was not declared in this scope
    8 |     transform(s1.begin(), s1.end(), s1.begin(), ::toupper);
      |     ^~~~~~~~~
Language: C++

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

int main() {
    string a,b,c;
    cin >> a >> b >> c;
    char x = a[0],y = b[0],z = c[0];
    x = 'A'+(x-'a');
    y = 'A'+(y-'a');
    z = 'A'+(z-'a');
    printf("%c%c%c",x,y,z)
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:27: error: expected ';' before '}' token
   13 |     printf("%c%c%c",x,y,z)
      |                           ^
      |                           ;
   14 | }
      | ~
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:29: error: expected ';' before 'ans'
    8 |         ans += toupper(a[0])
      |                             ^
      |                             ;
    9 |     ans += toupper(b[0])
      |     ~~~
Language: C++


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:43: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    8 | string ans = toupper(a[0]) +toupper(b[0]) + toupper(c[0]);
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
Language: C++

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

int main() {
	string s1,s2,s3;
    cin >> s1 >> s2 >> s3;
    string s = {s1.at(0),s2.at(0),s3.at(0)};
    transform(s.cbegin(),s.cend(),s.begin(),toupper);
    cout << s << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
    8 |     transform(s.cbegin(),s.cend(),s.begin(),toupper);
      |     ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
 4209 |     transform(_InputIterator __first, _InputIterator __last,
      |     ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note:   template argument deduction/substitution failed:
a.cc:8:14: note:   couldn't deduce template parameter '_UnaryOperation'
    8 |     transform(s.cbegin(),s.cend(),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>
#include <cctype>

using namespace std;

int main()
{
    string s1, s2, s3;

    cin >> s1 >> s2 >> s3

    char ch1 = toupper(s1[0]);
    char ch2 = toupper(s2[0]);
    char ch3 = toupper(s3[0]);
    
    cout << ch1 << ch2 << ch3 << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:26: error: expected ';' before 'char'
   11 |     cin >> s1 >> s2 >> s3
      |                          ^
      |                          ;
   12 | 
   13 |     char ch1 = toupper(s1[0]);
      |     ~~~~                  
a.cc:17:13: error: 'ch1' was not declared in this scope; did you mean 'ch3'?
   17 |     cout << ch1 << ch2 << ch3 << endl;
      |             ^~~
      |             ch3
Language: C++

def abc(a,b,c):
    return (a[0] + b[0] + c[0]).upper()
 
def main():
    a , b , c = map(str, input().split())
    print(abc(a , b , c))
 
if __name__ == '__main__':
    main()

Compiler output:
a.cc:8:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    8 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:1:1: error: 'def' does not name a type
    1 | def abc(a,b,c):
      | ^~~
Language: C++

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

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


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

#include <iostream>
#include <string>
 
int main() {
  std::string a,b,c;
  std::cin>>a>>b>>c;
  
  std::transform(a.begin(), a.end(), a.begin(), std::toupper);
  std::transform(b.begin(), b.end(), b.begin(), std::toupper);
  std::transform(c.begin(), c.end(), c.begin(), std::toupper);
  
  cout<<a.substr(0,1)<<b.substr(0,1)<<c.substr(0,1);
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'transform' is not a member of 'std'
    8 |   std::transform(a.begin(), a.end(), a.begin(), std::toupper);
      |        ^~~~~~~~~
a.cc:9:8: error: 'transform' is not a member of 'std'
    9 |   std::transform(b.begin(), b.end(), b.begin(), std::toupper);
      |        ^~~~~~~~~
a.cc:10:8: error: 'transform' is not a member of 'std'
   10 |   std::transform(c.begin(), c.end(), c.begin(), std::toupper);
      |        ^~~~~~~~~
a.cc:12:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   cout<<a.substr(0,1)<<b.substr(0,1)<<c.substr(0,1);
      |   ^~~~
      |   std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

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

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

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

int main() {

	int a,b,c;
	cin>>a>>b>>c;
	
  cout<<(char)toupper(a.at(0))<<(char)toupper(b.at(0))<<(char)toupper(c.at(0))<<endl;
	
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: request for member 'at' in 'a', which is of non-class type 'int'
    9 |   cout<<(char)toupper(a.at(0))<<(char)toupper(b.at(0))<<(char)toupper(c.at(0))<<endl;
      |                         ^~
a.cc:9:49: error: request for member 'at' in 'b', which is of non-class type 'int'
    9 |   cout<<(char)toupper(a.at(0))<<(char)toupper(b.at(0))<<(char)toupper(c.at(0))<<endl;
      |                                                 ^~
a.cc:9:73: error: request for member 'at' in 'c', which is of non-class type 'int'
    9 |   cout<<(char)toupper(a.at(0))<<(char)toupper(b.at(0))<<(char)toupper(c.at(0))<<endl;
      |                                                                         ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
	string a, b, c;
	cin >> a >> b >> c;
	cout << (char)toupper(a[0]) << (char)toupper(b[0]) << (char)toupper(c[0]) << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:6:91: error: expected '}' at end of input
    6 |         cout << (char)toupper(a[0]) << (char)toupper(b[0]) << (char)toupper(c[0]) << endl;
      |                                                                                           ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main() {
	string a, b, c;
	cin >> a >> b >> c;
	cout << (char)toupper(a[0]) << (char)toupper(b[0]) << (char)toupper(c[0]) << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:8:91: error: expected '}' at end of input
    8 |         cout << (char)toupper(a[0]) << (char)toupper(b[0]) << (char)toupper(c[0]) << endl;
      |                                                                                           ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

#include<bits/stdc++.h>
#include<algorithm>
using namespace std;
int main(){
  string c1,c2,c3;
  cin >> c1 >> c2 >> c3;
  string str = c1.at(0)+c2.at(0)+c3.at(0);
  transform(str.begin(), str.end(), str.begin(), ::toupper);
  cout << str << endl;
}

  

Compiler output:
a.cc: In function 'int main()':
a.cc:7:33: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    7 |   string str = c1.at(0)+c2.at(0)+c3.at(0);
      |                ~~~~~~~~~~~~~~~~~^~~~~~~~~
Language: C++

#include <bits/stdc++>
using namespace std;
int main(){
string a, b, c;
cin >> a >> b >> c;
char dif=’A’ - ’a’;
printf("%c%c%c\n", a[0] + dif, b[0] + dif, c[0] + dif);
return 0;
}

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

import java.util.*;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   String s1 = sc.next();
   String s2 = sc.next();
   String s3 = sc.next();
   
   String anslow = s1.substring(0,1)+s2.substring(0,1)+s3.substring(0,1);
   anslow = amslow.toUpperCase();
   System.out.println(anslow);
 }
}

Compiler output:
Main.java:10: error: cannot find symbol
   anslow = amslow.toUpperCase();
            ^
  symbol:   variable amslow
  location: class Main
1 error
Language: Java

import java.util.*;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   String s1 = sc.next();
   String s2 = sc.next();
   String s3 = sc.next();
   
   String anslow = s1.substring(0,1)+s2.substring(0,1)+s3.substring(0,1);
   anslow = toUpperCase(anslow)
   System.out.println(anslow);
 }
}

Compiler output:
Main.java:10: error: ';' expected
   anslow = toUpperCase(anslow)
                               ^
1 error
Language: Java

import java.util.*;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   String s1 = sc.next();
   String s2 = sc.next();
   String s3 = sc.next();
   
   String anslow = s1.substring(0,1)+s2.substring(0,1)+s3.substring(0,1);
   anslow = String.toUpperCase(anslow);
   System.out.println(anslow);
 }
}

Compiler output:
Main.java:10: error: incompatible types: String cannot be converted to Locale
   anslow = String.toUpperCase(anslow);
                               ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: Java

import java.util.*;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   String s1 = sc.next();
   String s2 = sc.next();
   String s3 = sc.next();
   
   String anslow = s1.substring(0,1)+s2.substring(0,1)+s3.substring(0,1);
   anslow = String.toUpperCase(anslow)
   System.out.println(anslow);
 }
}

Compiler output:
Main.java:10: error: ';' expected
   anslow = String.toUpperCase(anslow)
                                      ^
1 error
Language: Java

import java.util.*;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   String s1 = sc.next();
   String s2 = sc.next();
   String s3 = sc.next();
   
   System.out.println(String.toUpperCase(s1.substring(0,1)+s2.substring(0,1)+s3.substring(0,1)));
 }
}

Compiler output:
Main.java:9: error: incompatible types: String cannot be converted to Locale
   System.out.println(String.toUpperCase(s1.substring(0,1)+s2.substring(0,1)+s3.substring(0,1)));
                                                                            ^
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()
 
{
 
string s1,s2,s3;
 
cin>>s1>>s2>>s3;
 
if(s1[0]>='a'&&s1[0]<='z'){
    s1[0]-=32;
}
if(s2[0]>='a'&&s2[0]<='z'){
    s2[0]-=32;
}
if(s3[0]>='a'&&s3[0]<='z'){
    s3[0]-=32;
}
cout<<s1[0]<<s2[0]<<s3[0]<<endl;
 
 
 
 
return 0;
 

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

#include<iostream>

using namespace std;
int main()

{

string s1,s2,s3;

cin>>s1>>s2>>s3;

if(s1[0]>='a'&&1[0]<='z'){
    s1[0]-=32;
}
if(s2[0]>='a'&&s2[0]<='z'){
    s2[0]-=32;
}
if(s3[0]>='a'&&s3[0]<='z'){
    s3[0]-=32;
}
cout<<s1[0]<<s2[0]<<s3[0]<<endl;




return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: invalid types 'int[int]' for array subscript
   12 | if(s1[0]>='a'&&1[0]<='z'){
      |                 ^
Language: Java

import java.util.*;

public class Main{

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s1 = sc.next();
		String s2 = sc.next();
		String s3 = sc.next();
		
		String st1 = s1.substring(0,1).toUpperCase();
		String st2 = s2.substring(0,1).toUpperCase();
		String st3 = s3.substring(0,1).toUpperCase();
		
		System.out.println(st1 + st2 + st3);
	}


Compiler output:
Main.java:16: error: reached end of file while parsing
	}
	 ^
1 error
Language: Java

import java.util.*;

public class Main{

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s1 = sc.next();
		String s2 = sc.next();
		String s3 = sc.next();
		
		String s1 = s1.substring(0,1);
		String s2 = s2.substring(0,1);
		String s3 = s3.substring(0,1);
		
		System.out.println(s1 + s2 + s3);
	}
}

Compiler output:
Main.java:11: error: variable s1 is already defined in method main(String[])
		String s1 = s1.substring(0,1);
		       ^
Main.java:12: error: variable s2 is already defined in method main(String[])
		String s2 = s2.substring(0,1);
		       ^
Main.java:13: error: variable s3 is already defined in method main(String[])
		String s3 = s3.substring(0,1);
		       ^
3 errors
Language: C++

#include <bits/stdc++.h>
#define rep(i,m,n) for(int i=m; i<n; i++)
#define co(n) cout << n << endl
using namespace std;
int main(){
  string a, b, c;
  cin >> a >> b >> c;
  char dif 'A' - 'a';
  cout << a[0]+dif << b[0]+dif << c[0]+dif << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected initializer before 'A'
    8 |   char dif 'A' - 'a';
      |            ^~~
a.cc:9:16: error: 'dif' was not declared in this scope; did you mean 'div'?
    9 |   cout << a[0]+dif << b[0]+dif << c[0]+dif << endl;
      |                ^~~
      |                div
Language: C++

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

int main()
{
	string str1,str2,str3;
	cin>> str1 >>str2 >>str3;
	str1[0]-= 32;
	str2[0]-= 32;
	str3[0]-= 32;
	cout << str1[0]<<str2[0]<<str3[0]<<endl;
	return 0:
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: expected ';' before ':' token
   13 |         return 0:
      |                 ^
      |                 ;
a.cc:13:17: error: expected primary-expression before ':' token
Language: C

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

int main()
{
	string str1,str2,str3;
	cin>> str1 >>str2 >>str3;
	str1[0]-= 32;
	str2[0]-= 32;
	str3[0]-= 32;
	cout << str1[0]<<str2[0]<<str3[0]<<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 <bits/stdc++.h>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8: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>)'
    8 |                 transform(s.begin(), s.end(), s.begin(), toupper);
      |                 ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
 4209 |     transform(_InputIterator __first, _InputIterator __last,
      |     ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note:   template argument deduction/substitution failed:
a.cc:8:26: note:   couldn't deduce template parameter '_UnaryOperation'
    8 |                 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