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

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

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: 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>)'
   12 |     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:12:14: note:   couldn't deduce template parameter '_UnaryOperation'
   12 |     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 <algorithm>
#include <string>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: 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>)'
   12 |     transform(S.begin(), S.end(), S.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:12:14: note:   couldn't deduce template parameter '_UnaryOperation'
   12 |     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 <algorithm>
#include <string>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: 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>)'
   12 |     transform(S.begin(), S.end(), S.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:12:14: note:   couldn't deduce template parameter '_UnaryOperation'
   12 |     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: Java

import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
  String[] s = new String[3];
  for(int i = 0;i < 3;i++){
    s[i] = sc.next();
  }
  String[] t = new String[3];
for(int i = 0;i < 3;i++){
  t[i] = s[i].toUpperCase();
}
  String u = (t[0].charAt(0),t[1].charAt(0),t[2].charAt(0));
  System.out.println(u);
}
}


Compiler output:
Main.java:13: error: ')' expected
  String u = (t[0].charAt(0),t[1].charAt(0),t[2].charAt(0));
                            ^
Main.java:13: error: ']' expected
  String u = (t[0].charAt(0),t[1].charAt(0),t[2].charAt(0));
                               ^
Main.java:13: error: ';' expected
  String u = (t[0].charAt(0),t[1].charAt(0),t[2].charAt(0));
                                           ^
Main.java:13: error: ';' expected
  String u = (t[0].charAt(0),t[1].charAt(0),t[2].charAt(0));
                                                          ^
4 errors
Language: Java

import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
  String[] s = new String[3];
  for(int i = 0;i < 3;i++){
    s[i] = sc.next();
  }
  String[] t = new String[3];
for(int i = 0;i < 3;i++){
  t[i] = s[i].toUpperCase();
}
  String u = {t[0].charAt(0),t[1].charAt(0),t[2].charAt(0)};
  System.out.println(u);
}
}


Compiler output:
Main.java:13: error: illegal initializer for String
  String u = {t[0].charAt(0),t[1].charAt(0),t[2].charAt(0)};
             ^
1 error
Language: C++

#include <string>
using namespace std;

int main() {
	string s1, s2, s3;
	cin >> s1 >> s2 >> s3;
	char d = 'A' - 'a';

	cout << (char)(s1[0]+d);
	cout << (char)(s2[0]+d);
	cout << (char)(s3[0]+d);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> s1 >> s2 >> s3;
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <string>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << (char)(s1[0]+d);
      |         ^~~~
a.cc:9:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: expected primary-expression before 'int'
    7 |         cout << int toupper(int a[0]) << int toupper(int b[0]) << int toupper(int c[0]) << endl;
      |                 ^~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expected primary-expression before 'int'
    8 |         cout << int toupper(int a[0]) << int toupper(int b[0]) << int toupper(int c[0]) << endl;
      |                 ^~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  str a, b, c;
  char dif = 'A' - 'a';
  cin >> a >> b >> c;
  cout << a[0] + dif << b[0] + dif << c[0] + dif;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'str' was not declared in this scope; did you mean 'std'?
    5 |   str a, b, c;
      |   ^~~
      |   std
a.cc:7:10: error: 'a' was not declared in this scope
    7 |   cin >> a >> b >> c;
      |          ^
a.cc:7:15: error: 'b' was not declared in this scope
    7 |   cin >> a >> b >> c;
      |               ^
a.cc:7:20: error: 'c' was not declared in this scope
    7 |   cin >> a >> b >> c;
      |                    ^
Language: C++

#include <iostream>
using namespace std;

int main(){
  str a, b, c;
  char def = 'A' - 'a';
  cin >> a >> b >> c;
  cout << a[0] + def << b[0] + def << c[0] + def;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'str' was not declared in this scope; did you mean 'std'?
    5 |   str a, b, c;
      |   ^~~
      |   std
a.cc:7:10: error: 'a' was not declared in this scope
    7 |   cin >> a >> b >> c;
      |          ^
a.cc:7:15: error: 'b' was not declared in this scope
    7 |   cin >> a >> b >> c;
      |               ^
a.cc:7:20: error: 'c' was not declared in this scope
    7 |   cin >> a >> b >> c;
      |                    ^
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main() {
	string a, b, c,x;
	cin >> a >> b >> c;
	a = a[0];
	b = b[0];
	c = c[0];
	x = a + b + c;
	transform(x.begin(), x.end(), x.begin(), toupper);
	cout << x << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12: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>)'
   12 |         transform(x.begin(), x.end(), x.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:12:18: note:   couldn't deduce template parameter '_UnaryOperation'
   12 |         transform(x.begin(), x.end(), x.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 "libstdc++.h"

#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define rep(i,j,n) for(int (i)=(j);(i)<(n);(i)++)

using namespace std;

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

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

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

#define FOR(i,a,b)  for(int i = a; i < b; ++i)
#define FORR(i,a,b) for(int i = a; i <= b; ++i)
//#define LOCAL_DEFINE
using namespace std;

#define maxn 1234
double dist[maxn];
map<string, int>mp;
struct Edge {
    int src, dest;
    double weight;
};

struct Graph {
    int V, E;
    struct Edge* edge;
};

struct Graph* createGraph(int V, int E){
    struct Graph* graph = new Graph;
    graph->V = V;
    graph->E = E;
    graph->edge = new Edge[E];
    return graph;
};

bool flag;

bool BellmanFord(Graph* graph, int src){
    for (int i = 0; i <= graph->V - 1; ++i) {
        for (int j = 0; j < graph->E; ++j) {
            if(dist[graph->edge[j].src] * graph->edge[j].weight > dist[graph->edge[j].dest])
            dist[graph->edge[j].dest] = dist[graph->edge[j].src] * graph->edge[j].weight;
        }
    }
    for (int j = 0; j < graph->E; ++j) {
        if(dist[graph->edge[j].src] * graph->edge[j].weight > dist[graph->edge[j].dest])
            //cout << "exist negative weight cycle" <<endl;
            return true;
    }
    return false;
}

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    //cin.precision(10);
    //cout << fixed;g

#ifdef LOCAL_DEFINE
    freopen("input.txt", "r", stdin);
#endif
    string a, b, c;
    cin>>a>>b>>c;
    string s = "";
    s += a[0] + b[0] + c[0];
    cout << std::uppercase << s << '\n';

    return 0;
}

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

fun main(args: Array<String>) 
{
    val ans = readLine()!!.split(" ").map{x -> x.toList().first()}.joinToString("").toUpperCase()
    println(ans)
}


Compiler output:
a.cc:1:1: error: 'fun' does not name a type
    1 | fun main(args: Array<String>)
      | ^~~
Language: C++

#include<bits/stdc++.h>
using namespce std;
int main(){
char s1[11], s2[11], s3[11];
scanf("%s %s %s", s1, s2, s3);
printf("%c%c%c\n", s1[0] + 'A' - 'a', s2[0] + 'A' - 'a', s3[0] + 'A' - 'a');
return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespce'
    2 | using namespce std;
      |       ^~~~~~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main(){
        string s1,s2,s3;
        cin >> s1 >> s2;
        int len1,len2;
        len1 = s1.size();
        len2 = s2.size();
        if(len1 > len2){
                cout << "GREATER" << endl;
                return 0;
        }else if(len < len2){
                cout << "LESS" << endl;
        }else{
                for(int i = 0;i<len;i++){
                        if(s1[i] > s2[i]){
                                cout << "GREATER" << endl;
                                return 0;
                        }else if(s1[i] < s2[i]){
                                cout << "LESS" <<endl;
                                return 0;
                        }
                }
                cout << "EQUAL" << endl;
        }
        return 0;
        }

Compiler output:
a.cc: In function 'int main()':
a.cc:15:18: error: 'len' was not declared in this scope; did you mean 'len2'?
   15 |         }else if(len < len2){
      |                  ^~~
      |                  len2
Language: C++

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

int main()
{
  std::string a,b,c;
  std::string ryk;

  cin >> a >> b >> c;

  std::ryk=a[0]+b[0]+c[0];

  std::transform(ryk.begin(), ryk.end(), ryk.begin(), ::toupper);

  cout << ryk << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: 'ryk' is not a member of 'std'
   13 |   std::ryk=a[0]+b[0]+c[0];
      |        ^~~
Language: C++

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

int main()
{
  std::string a,b,c;
  std::string ryk;

  cin >> a >> b >> c;

  ryk=a[0]+b[0]+c[0];

  transform(ryk.begin(), ryk.end(), ryk.begin(), toupper);

  cout << ryk << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15: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>)'
   15 |   transform(ryk.begin(), ryk.end(), ryk.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:12: note:   couldn't deduce template parameter '_UnaryOperation'
   15 |   transform(ryk.begin(), ryk.end(), ryk.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;

int main()
{
  std::string a,b,c;
  std::string ryk;

  cin >> a >> b >> c;

  ryk=a[0]+b[0]+c[0];

  transform(ryk.begin(), ryk.end(), ryk.begin(), toupper);

  cout << ryk << endl;

  return 0;
}

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

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

int main()
{
  std::string a,b,c;
  std::string ryk;

  cin >> a >> b >> c;

  ryk=a[0]+b[0]+c[0];

  transform(ryk.begin(), ryk.end(), s.begin(), toupper);

  cout << ryk << endl;

  return 0;
}

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

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;

const int MAXN = 1e5+10;

int n;
ll arr[ MAXN ];

int g( ll x ) {
	if( x < 0 ) return -1;
	if( x == 0 ) return 0;
	return 1;
}

ll f( ll s ) {
	ll r = 0, acc = 0;
	for( int i = 0; i < n; ++i ) {
		acc += arr[i];
		if( g(acc) != sgn ) {
			r += abs(sgn-acc);
			acc = sgn;
		}
	}
	return r;
}

int main( ) {

	ios_base::sync_with_stdio( 0 );
	cin.tie( 0 );

#ifdef LOCAL
	freopen( "input", "r", stdin );
#endif

	while( cin >> n ) {
		ll ans = 0;
		for( int i = 0; i < n; ++i ) {
			cin >> arr[i];
		}
		ans = min( f(1), f(-1) );
		cout << ans << '\n';
	}


	return 0;
}


Compiler output:
a.cc: In function 'll f(ll)':
a.cc:22:31: error: 'sgn' was not declared in this scope; did you mean 'sin'?
   22 |                 if( g(acc) != sgn ) {
      |                               ^~~
      |                               sin
Language: Java

import java.util.Scanner;
2.import java.util.Random;
3.import java.util.Arrays;
4. 
5.class Main {
6.	
7.	public static void main(String[] args) {
8.		Scanner sc = new Scanner(System.in);
9.		String a = sc.next();
10.		String b = sc.next();
11.		String c = sc.next();
12.		
13.		String str = a.substring(0,1) + b.substring(0,1) + c.substring(0,1);
14.    	System.out.println(str.toUpperCase());
15.}
16.}


Compiler output:
Main.java:2: error: class, interface, enum, or record expected
2.import java.util.Random;
^
Main.java:3: error: class, interface, enum, or record expected
3.import java.util.Arrays;
^
Main.java:4: error: class, interface, enum, or record expected
4. 
^
Main.java:6: error: illegal start of type
6.	
^
Main.java:8: error: not a statement
8.		Scanner sc = new Scanner(System.in);
^
Main.java:8: error: ';' expected
8.		Scanner sc = new Scanner(System.in);
  ^
Main.java:9: error: not a statement
9.		String a = sc.next();
^
Main.java:9: error: ';' expected
9.		String a = sc.next();
  ^
Main.java:10: error: not a statement
10.		String b = sc.next();
^
Main.java:10: error: ';' expected
10.		String b = sc.next();
   ^
Main.java:11: error: not a statement
11.		String c = sc.next();
^
Main.java:11: error: ';' expected
11.		String c = sc.next();
   ^
Main.java:12: error: not a statement
12.		
^
Main.java:12: error: ';' expected
12.		
   ^
Main.java:14: error: not a statement
14.    	System.out.println(str.toUpperCase());
^
Main.java:14: error: ';' expected
14.    	System.out.println(str.toUpperCase());
   ^
Main.java:15: error: not a statement
15.}
^
Main.java:15: error: ';' expected
15.}
   ^
Main.java:16: error: illegal start of type
16.}
^
19 errors
Language: C++

#include<iostream>
#include<string.h>
usingnamespace std;

int main()
{
string a, b, c;
cin>>a>>b>>c;
cout<<a.[0]-'a'+'A'<<' '<<b.[0]-'a'+'A'<<b.[0]-'a'+'A';
return 0;}

Compiler output:
a.cc:3:1: error: 'usingnamespace' does not name a type
    3 | usingnamespace std;
      | ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:1: error: 'string' was not declared in this scope
    7 | string a, b, c;
      | ^~~~~~
a.cc:7:1: 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:8:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 | cin>>a>>b>>c;
      | ^~~
      | std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:6: error: 'a' was not declared in this scope
    8 | cin>>a>>b>>c;
      |      ^
a.cc:8:9: error: 'b' was not declared in this scope
    8 | cin>>a>>b>>c;
      |         ^
a.cc:8:12: error: 'c' was not declared in this scope
    8 | cin>>a>>b>>c;
      |            ^
a.cc:9:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | cout<<a.[0]-'a'+'A'<<' '<<b.[0]-'a'+'A'<<b.[0]-'a'+'A';
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:9: error: expected unqualified-id before '[' token
    9 | cout<<a.[0]-'a'+'A'<<' '<<b.[0]-'a'+'A'<<b.[0]-'a'+'A';
      |         ^
a.cc:9:29: error: expected unqualified-id before '[' token
    9 | cout<<a.[0]-'a'+'A'<<' '<<b.[0]-'a'+'A'<<b.[0]-'a'+'A';
      |                             ^
a.cc:9:44: error: expected unqualified-id before '[' token
    9 | cout<<a.[0]-'a'+'A'<<' '<<b.[0]-'a'+'A'<<b.[0]-'a'+'A';
      |                                            ^
Language: C++

#include <iostream>
using namespace std;
int main(){
    string s1;
    string s2;
    string 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;
}

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 <iostream>
#include <algorithm>
using namespace std;

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:60: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |     cout << toupper(a[0]) << toupper(b[0] << toupper(c[0]) << endl;
Language: C++

int main(){
	char s1, s2, s3;
	
	cin >> s1 >> s2 >> s3;
	 
	s1 = char(s1 - 'a' + 'A');
	s2 = char(s2 - 'a' + 'A');
	s3 = char(s3 - 'a' + 'A');
	cout << s1 << s2 << s3 << endl;
	return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> s1 >> s2 >> s3;
      |         ^~~
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << s1 << s2 << s3 << endl;
      |         ^~~~
a.cc:9:35: error: 'endl' was not declared in this scope
    9 |         cout << s1 << s2 << s3 << endl;
      |                                   ^~~~
Language: C++

int main(){
	string s1, s2, s3, ans1, ans2, ans3;
	char dif = 'A' -' a';
	cin >> s1 >> s2 >> s3;
	ans1 = s1[0] + dif;
	ans2 = s2[0] + dif;
	ans3 = s3[0] + dif;
	cout << ans1 << ans2 << ans3 << endl;
	return 0;
} 

Compiler output:
a.cc:3:25: warning: multi-character character constant [-Wmultichar]
    3 |         char dif = 'A' -' a';
      |                         ^~~~
a.cc: In function 'int main()':
a.cc:2:9: error: 'string' was not declared in this scope
    2 |         string s1, s2, s3, ans1, ans2, ans3;
      |         ^~~~~~
a.cc:3:24: warning: overflow in conversion from 'int' to 'char' changes value from '-8224' to '-32' [-Woverflow]
    3 |         char dif = 'A' -' a';
      |                    ~~~~^~~~~
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> s1 >> s2 >> s3;
      |         ^~~
a.cc:4:16: error: 's1' was not declared in this scope
    4 |         cin >> s1 >> s2 >> s3;
      |                ^~
a.cc:4:22: error: 's2' was not declared in this scope
    4 |         cin >> s1 >> s2 >> s3;
      |                      ^~
a.cc:4:28: error: 's3' was not declared in this scope
    4 |         cin >> s1 >> s2 >> s3;
      |                            ^~
a.cc:5:9: error: 'ans1' was not declared in this scope
    5 |         ans1 = s1[0] + dif;
      |         ^~~~
a.cc:6:9: error: 'ans2' was not declared in this scope
    6 |         ans2 = s2[0] + dif;
      |         ^~~~
a.cc:7:9: error: 'ans3' was not declared in this scope
    7 |         ans3 = s3[0] + dif;
      |         ^~~~
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << ans1 << ans2 << ans3 << endl;
      |         ^~~~
a.cc:8:41: error: 'endl' was not declared in this scope
    8 |         cout << ans1 << ans2 << ans3 << endl;
      |                                         ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
string a;
int i;
for(i=0;i<3;i++)
{
cin>>a;
cout<<a[0]-'a'+'A'
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: expected ';' before '}' token
   10 | cout<<a[0]-'a'+'A'
      |                   ^
      |                   ;
   11 | }
      | ~
Language: C++

import sys

if __name__ == '__main__':
    string = raw_input().split()

    for strLine in string:
        sys.stdout.write(strLine[0].upper())
    print


Compiler output:
a.cc:3:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    3 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

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

Compiler output:
a.cc:10:1: error: extended character 　 is not valid in an identifier
   10 | 　　  printf("%c%c%c\n", a[0]+x, b[0]+x, c[0]+x);
      | ^
a.cc:10:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:10:1: error: '\U00003000\U00003000' was not declared in this scope
   10 | 　　  printf("%c%c%c\n", a[0]+x, b[0]+x, c[0]+x);
      | ^~~~
Language: Java

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		
		Scanner scan = new Scanner(System.in);
		String a = scan.next();
		String b = scan.next();

		if(a.length() > b.length()){
			System.out.println("GREATER");
		} else if(a.length() < b.length()){
			System.out.println("LESS");
		} else {
			for(int i = 0 ; i < a.length() ; i++){
				if(a.charAt(i) > b.charAt(i)){
					System.out.println("GREATER");
					break;
				} else if(a.charAt(i) > b.charAt(i)){
					System.out.println("LESS");
					break;
				} else {
					if(i == a.length - 1){
						System.out.println("EQUAL");
					}
				}
			}
		}
	}
}


Compiler output:
Main.java:23: error: cannot find symbol
					if(i == a.length - 1){
					         ^
  symbol:   variable length
  location: variable a of type String
1 error
Language: Java

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		
		Scanner scan = new Scanner(System.in);
		String a = scan.next();
		String b = scan.next();

		if(a.length() > b.length()){
			System.out.println("GREATER");
			break;
		} else if(a.length() < b.length()){
			System.out.println("LESS");
			break;
		} else {
			for(int i = 0 ; i < a.length() ; i++){
				if(a.charAt(i) > b.charAt(i)){
					System.out.println("GREATER");
					break;
				} else if(a.charAt(i) > b.charAt(i)){
					System.out.println("LESS");
					break;
				} else {
					if(i == a.length - 1){
						System.out.println("EQUAL");
					}
				}
			}
		}
	}
}


Compiler output:
Main.java:12: error: break outside switch or loop
			break;
			^
Main.java:15: error: break outside switch or loop
			break;
			^
Main.java:25: error: cannot find symbol
					if(i == a.length - 1){
					         ^
  symbol:   variable length
  location: variable a of type String
3 errors
Language: Java

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		
		Scanner scan = new Scanner(System.in);


		String a = scan.next();
		String b = scan.next();
		String c = scan.next();

		String str = (a.chatAt(0)).ToString();
		str += b.charAt(0);
		str += c.charAt(0);

		System.out.println(str);
	}
}


Compiler output:
Main.java:13: error: cannot find symbol
		String str = (a.chatAt(0)).ToString();
		               ^
  symbol:   method chatAt(int)
  location: variable a of type String
1 error
Language: Java

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		
		Scanner scan = new Scanner(System.in);


		String a = scan.next();
		String b = scan.next();
		String c = scan.next();

		String str = a.chatAt(0);
		str += b.charAt(0);
		str += c.charAt(0);

		System.out.println(str);
	}
}


Compiler output:
Main.java:13: error: cannot find symbol
		String str = a.chatAt(0);
		              ^
  symbol:   method chatAt(int)
  location: variable a of type String
1 error
Language: Java

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		
		Scanner scan = new Scanner(System.in);


		String a = scan.next();
		String b = scan.next();
		String c = scan.next();

		String str = "";

		str += a.chatAt(0);
		str += b.charAt(0);
		str += c.charAt(0);

		System.out.println(str);
	}
}


Compiler output:
Main.java:15: error: cannot find symbol
		str += a.chatAt(0);
		        ^
  symbol:   method chatAt(int)
  location: variable a of type String
1 error
Language: Java

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		
		Scanner scan = new Scanner(System.in);


		String a = scan.next();
		String b = scan.next();
		String c = scan.next();

		String str = "";

		str = (a.chatAt(0) + b.chatAt(0) + c.chatAt(0)) + "";

		System.out.println(str);
	}
}


Compiler output:
Main.java:15: error: cannot find symbol
		str = (a.chatAt(0) + b.chatAt(0) + c.chatAt(0)) + "";
		        ^
  symbol:   method chatAt(int)
  location: variable a of type String
Main.java:15: error: cannot find symbol
		str = (a.chatAt(0) + b.chatAt(0) + c.chatAt(0)) + "";
		                      ^
  symbol:   method chatAt(int)
  location: variable b of type String
Main.java:15: error: cannot find symbol
		str = (a.chatAt(0) + b.chatAt(0) + c.chatAt(0)) + "";
		                                    ^
  symbol:   method chatAt(int)
  location: variable c of type String
3 errors
Language: Java

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		
		Scanner scan = new Scanner(System.in);


		String a = scan.next();
		String b = scan.next();
		String c = scan.next();

		String str = "";

		str = a.chatAt(0) + b.chatAt(0) + c.chatAt(0);

		Syste.out.println(str);
	}
}


Compiler output:
Main.java:15: error: cannot find symbol
		str = a.chatAt(0) + b.chatAt(0) + c.chatAt(0);
		       ^
  symbol:   method chatAt(int)
  location: variable a of type String
Main.java:15: error: cannot find symbol
		str = a.chatAt(0) + b.chatAt(0) + c.chatAt(0);
		                     ^
  symbol:   method chatAt(int)
  location: variable b of type String
Main.java:15: error: cannot find symbol
		str = a.chatAt(0) + b.chatAt(0) + c.chatAt(0);
		                                   ^
  symbol:   method chatAt(int)
  location: variable c of type String
Main.java:17: error: package Syste does not exist
		Syste.out.println(str);
		     ^
4 errors
Language: Java

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		
		Scanner scan = new Scanner(System.in);


		String a = scan.next();
		String b = scan.next();
		String c = scan.next();

		String str = "";

		str += a.chatAt(0) + b.chatAt(0) + c.chatAt(0);

		Syste.out.println(str);
	}
}


Compiler output:
Main.java:15: error: cannot find symbol
		str += a.chatAt(0) + b.chatAt(0) + c.chatAt(0);
		        ^
  symbol:   method chatAt(int)
  location: variable a of type String
Main.java:15: error: cannot find symbol
		str += a.chatAt(0) + b.chatAt(0) + c.chatAt(0);
		                      ^
  symbol:   method chatAt(int)
  location: variable b of type String
Main.java:15: error: cannot find symbol
		str += a.chatAt(0) + b.chatAt(0) + c.chatAt(0);
		                                    ^
  symbol:   method chatAt(int)
  location: variable c of type String
Main.java:17: error: package Syste does not exist
		Syste.out.println(str);
		     ^
4 errors
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
string a,b,c;
char d;
cin>>a;

	cout<<a[1]-31<<endl;
	for(int i=0;i<a.size();i++){
		if(a[i]==" "){
			cout<<a[i+1]-31<<endl;
		}
	
	}
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |                 if(a[i]==" "){
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
string a,b,c;
char d;
cin>>a;

	cout<<a[1]-31<<endl;
	for(int i=0;i<a.size;i++){
		if(a[i]==' '){
			cout<<a[i+1]-31<<endl;
		}
	
	}
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   10 |         for(int i=0;i<a.size;i++){
      |                       ~~^~~~
      |                             ()
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
string a,b,c;
char d;
cin>>a;

	cout<<a[1]-31<<endl;
	for(int i=0;i<a.size;i++){
		if(a[i]==" "){
			cout<<a[i+1]-31<<endl;
		}
	
	}
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   10 |         for(int i=0;i<a.size;i++){
      |                       ~~^~~~
      |                             ()
a.cc:11:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |                 if(a[i]==" "){
Language: C++

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

using namespace std;

int main() {
	//------------入力------------
	//string型文字列a,b,cを定義
	string a, b, c;
	//a,b,cを入力
	cin >> a >> b >> c;

	//------------出力------------
	//int型文字d,e,fを定義
	int d, e, f;
	//入力された文字列a,b,cの先頭を各々大文字に変換
	d = toupper(a[0]);
	e = toupper(b[0]);
	f = toupper(c[0]);
	//変換後の文字をつなげて出力
	printf("%c", d);
	printf("%c", e);
	printf("%c", f);

	return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:17: error: expected ';' before '}' token
   26 |         return 0
      |                 ^
      |                 ;
   27 | }
      | ~
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define MP make_pair
#define PB push_back
typedef long long LL;
typedef pair<int,int> PII;
const double eps=1e-8;
const double pi=acos(-1.0);
const int K=1e6+7;
const int mod=1e9+7;


LL ansa,ansb,sum,ls,n,x,a[K];
int main(void)
{
    std::ios::sync_with_stdio(false);
    std::cin.tie(0);
    cin>>n;
    for(int i=1;i<=n;i++)
        cin>>a[i];
    ls=1,sum=0
    for(int i=1;i<=n;i++)
    {
        sum+=x;
        if(sum==0&&ls>0)
            sum=ls=-1,ansa+=1;
        else if(sum==0&&ls<0)
            sum=ls=1,ansa+=1;
        else if(sum>0&&ls>0)
            ansa+=sum+1,sum=ls=-1;
        else if(sum<0&&ls<0)
            ansa+=1-sum,ls=sum=1;
        else
            ls=sum;
    }
    ls=-1,sum=0;
    for(int i=1;i<=n;i++)
    {
        sum+=x;
        if(sum==0&&ls>0)
            sum=ls=-1,ansb+=1;
        else if(sum==0&&ls<0)
            sum=ls=1,ansb+=1;
        else if(sum>0&&ls>0)
            ansb+=sum+1,sum=ls=-1;
        else if(sum<0&&ls<0)
            ansb+=1-sum,ls=sum=1;
        else
            ls=sum;
    }
    cout<<min(ansa,ansb)<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:15: error: expected ';' before 'for'
   23 |     ls=1,sum=0
      |               ^
      |               ;
   24 |     for(int i=1;i<=n;i++)
      |     ~~~        
a.cc:24:17: error: 'i' was not declared in this scope
   24 |     for(int i=1;i<=n;i++)
      |                 ^
Language: Java

import java.io.File;
import java.util.Scanner;


public class ABC {
	 public static void main(String args[]){
			Scanner sc = new Scanner(System.in);
			// 整数の入力
			String input1 = sc.next();
			String input2 = sc.next();
			int a = new Integer(input1).intValue();
			int b = new Integer(input2).intValue();
			
				if(a == b) System.out.println("EQUAL");
				if(a>b)System.out.println("GREATER");
				if(a<b)System.out.println("LESS");
		  }

}


Compiler output:
Main.java:5: error: class ABC is public, should be declared in a file named ABC.java
public class ABC {
       ^
Main.java:11: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal
			int a = new Integer(input1).intValue();
			        ^
Main.java:12: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal
			int b = new Integer(input2).intValue();
			        ^
1 error
2 warnings
Language: C++

# -*- coding: utf-8 -*-
import sys

inputs = []
for line in sys.stdin:
    inputs.append(line.split())

for i in range(len(inputs)):
    print "{0}{1}{2}".format(inputs[i][0][0].upper(),inputs[i][0][0].upper(),inputs[i][0][0].upper())

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8 -*-
      |   ^
a.cc:2:1: error: 'import' does not name a type
    2 | import sys
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
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], str2[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:8:21: error: expected ';' before ':' token
    8 |   str3[1]=str3[1]-32:
      |                     ^
      |                     ;