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

#include<stdio.h>
int main(void){
	char s[3][10];
	for(int i=0;i<3;i++){
		for(int j=0;;j++){
			Scanf("%c",&s[i][j]);
			if(s[i][j]=='\0'){
				break;
			}
		}
	}
	printf("%s%s%s",&s[0][0]-32,&s[1][0]-32,&s[2][0]-32);
	
	return 0;
} 

Compiler output:
main.c: In function 'main':
main.c:6:25: error: implicit declaration of function 'Scanf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |                         Scanf("%c",&s[i][j]);
      |                         ^~~~~
      |                         scanf
Language: C++

using namespace std;

int main(){

 string a,b,c;
 cin >> a >> b >> c;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:2: error: 'string' was not declared in this scope
    5 |  string a,b,c;
      |  ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:6:2: error: 'cin' was not declared in this scope
    6 |  cin >> a >> b >> c;
      |  ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:6:9: error: 'a' was not declared in this scope
    6 |  cin >> a >> b >> c;
      |         ^
a.cc:6:14: error: 'b' was not declared in this scope
    6 |  cin >> a >> b >> c;
      |              ^
a.cc:6:19: error: 'c' was not declared in this scope
    6 |  cin >> a >> b >> c;
      |                   ^
a.cc:8:6: error: 'toupper' was not declared in this scope
    8 |  a = toupper(a.at(0));
      |      ^~~~~~~
a.cc:11:2: error: 'cout' was not declared in this scope
   11 |  cout <<a <<b<<c  << endl;
      |  ^~~~
a.cc:11:2: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:22: error: 'endl' was not declared in this scope
   11 |  cout <<a <<b<<c  << endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C

#include<stdio.h>
#include<string.h>

void main()
{
char c[100];
int l,i,j=0;
clrscr();
printf("enter the string\n");
gets(c);
l=strlen(c);
for(i=0;i<l;i++)
{
if(c[i]==' '|| i==l-1)
{
if(( c[j]=='t' && c[j+1]=='h' && c[j+2]=='e' && c[j+3]==' ') || (c[j] == 'o'&& c[j+1]== 'f' && c[j+2]== ' ') || (c[j]=='f' && c[j+1]=='o' && c[j+2]=='r'))
{


j=i+1;

}
else
{
if(c[j]>=97 || c[j]<=122)
{
c[j]=c[j]-32;
}
printf("%c",c[j]);
j=i+1;
}
}
}

getch();
}


Compiler output:
main.c: In function 'main':
main.c:8:1: error: implicit declaration of function 'clrscr' [-Wimplicit-function-declaration]
    8 | clrscr();
      | ^~~~~~
main.c:10:1: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   10 | gets(c);
      | ^~~~
      | fgets
main.c:35:1: error: implicit declaration of function 'getch'; did you mean 'getc'? [-Wimplicit-function-declaration]
   35 | getch();
      | ^~~~~
      | getc
Language: C

#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char c[100];
int l,i,j=0;
clrscr();
printf("enter the string\n");
gets(c);
l=strlen(c);
for(i=0;i<l;i++)
{
if(c[i]==' '|| i==l-1)
{
if(( c[j]=='t' && c[j+1]=='h' && c[j+2]=='e' && c[j+3]==' ') || (c[j] == 'o'&& c[j+1]== 'f' && c[j+2]== ' ') || (c[j]=='f' && c[j+1]=='o' && c[j+2]=='r'))
{


j=i+1;

}
else
{
if(c[j]>=97 || c[j]<=122)
{
c[j]=c[j]-32;
}
printf("%c",c[j]);
j=i+1;
}
}
}

getch();
}


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

#include<stdio.h>
#include<conio.h>
#include<string.h>
int main()
{
char c[100];
int l,i,j=0;
printf("enter the string\n");
gets(c);
l=strlen(c);
for(i=0;i<l;i++)
{
if(c[i]==' '|| i==l-1)
{
if(( c[j]=='t' && c[j+1]=='h' && c[j+2]=='e' && c[j+3]==' ') || (c[j] == 'o'&& c[j+1]== 'f' && c[j+2]== ' ') || (c[j]=='f' && c[j+1]=='o' && c[j+2]=='r'))
{


j=i+1;

}
else
{
if(c[j]>=97 || c[j]<=122)
{
c[j]=c[j]-32;
}
printf("%c",c[j]);
j=i+1;
}
}
}

getch();
}


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

#include<stdio.h>
#include<conio.h>
#include<string.h>
int main()
{
char c[100];
int l,i,j=0;
printf("enter the string\n");
gets(c);
l=strlen(c);
for(i=0;i<l;i++)
{
if(c[i]==' '|| i==l-1)
{
if(( c[j]=='t' && c[j+1]=='h' && c[j+2]=='e' && c[j+3]==' ') || (c[j] == 'o'&& c[j+1]== 'f' && c[j+2]== ' ') || (c[j]=='f' && c[j+1]=='o' && c[j+2]=='r'))
{


j=i+1;

}
else
{
if(c[j]>=97 || c[j]<=122)
{
c[j]=c[j]-32;
}
printf("%c",c[j]);
j=i+1;
}
}
}

getch();
}


Compiler output:
a.cc:2:9: fatal error: conio.h: No such file or directory
    2 | #include<conio.h>
      |         ^~~~~~~~~
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 ans = s1.charAt(0) + s2.charAt(0);
        ans += s3.charAt(0);
        System.out.println(ans.toUpperCase());
    }
}

Compiler output:
Main.java:12: error: incompatible types: int cannot be converted to String
        String ans = s1.charAt(0) + s2.charAt(0);
                                  ^
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 ans = s1.charAt(0) + s2.charAt(0) + s3.charAt(0);
        System.out.println(ans.toUpperCase());
    }
}

Compiler output:
Main.java:12: error: incompatible types: int cannot be converted to String
        String ans = s1.charAt(0) + s2.charAt(0) + s3.charAt(0);
                                                 ^
1 error
Language: C++

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

//type
#define ll long long
typedef pair<int, int> P;
//定数
#define INF 1000000000000 //10^12:∞
#define MOD 1000000007    //10^9+7:合同式の法
#define MAXR 100000       //10^5:配列の最大のrange
//略記
#define PB push_back //挿入
#define MP make_pair //pairのコンストラクタ
#define F first      //pairの一つ目の要素
#define S second     //pairの二つ目の要素
#define Z class
// OTHER
// xの二乗を返す (関数テンプレート版)
template <typename T>
T square(T x) { return x * x; }
#define chmax(x, y) (x = max(x, y))
#define chmin(x, y) (x = min(x, y))
// loop
#define rep(i, n) for (int i = 0; i < (n); i++)
#define REPD(i, n) for (ll i = n - 1; i >= 0; i--)
#define FOR(i, a, b) for (ll i = a; i <= ll(b); i++)
#define FORD(i, a, b) for (ll i = a; i >= ll(b); i--)
#define FORA(i, I) for (const auto &i : I)

// vector
#define ALL(x) x.begin(), x.end()

// output
#define YES() printf("YES\n")
#define NO() printf("NO\n")
#define isYES(x) printf("%s\n", (x) ? "YES" : "NO")
#define Yes() printf("Yes\n")
#define No() printf("No\n")
#define ln cout << '\n'
template <Z A>
void pr(A a)
{
  cout << a;
  ln;
}
template <Z A, Z B>
void pr(A a, B b)
{
  cout << a << ' ';
}

int ans = 0;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

int main()
{
  string a, b, c, n, x, y;
  cin >> a >> b >> c;
  // cin >> a >> b >> c;
  cout << a[i] << b[i] << c[i];
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:61:13: error: 'i' was not declared in this scope
   61 |   cout << a[i] << b[i] << c[i];
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll =long long;
#define all(v) v.begin(),v.end()
 
int main() {
  string s,t,u;
  cin>>s>>t>>u;
  string S,T;
  S="abcdefghijklmnopqrstuvwxyz";
  T="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  for(ll i=0;i<26;i++) {
if(S[i]==s[0]) {
cout<<T[i];
}
     for(ll i=0;i<26;i++) {
if(S[i]==t[0]) {
cout<<T[i];
}
        for(ll i=0;i<26;i++) {
if(S[i]==u[0]) {
cout<<T[i];
}
          
          cout<<endl;
        }

Compiler output:
a.cc: In function 'int main()':
a.cc:26:10: error: expected '}' at end of input
   26 |         }
      |          ^
a.cc:16:27: note: to match this '{'
   16 |      for(ll i=0;i<26;i++) {
      |                           ^
a.cc:26:10: error: expected '}' at end of input
   26 |         }
      |          ^
a.cc:12:24: note: to match this '{'
   12 |   for(ll i=0;i<26;i++) {
      |                        ^
a.cc:26:10: error: expected '}' at end of input
   26 |         }
      |          ^
a.cc:6:12: note: to match this '{'
    6 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
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:7:10: error: extended character ’ is not valid in an identifier
    7 | char dif=’A’ - ’a’;
      |          ^
a.cc:7:10: error: extended character ’ is not valid in an identifier
a.cc:7:16: error: extended character ’ is not valid in an identifier
    7 | char dif=’A’ - ’a’;
      |                ^
a.cc:7:16: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:10: error: '\U00002019A\U00002019' was not declared in this scope
    7 | char dif=’A’ - ’a’;
      |          ^~~
a.cc:7:16: error: '\U00002019a\U00002019' was not declared in this scope
    7 | char dif=’A’ - ’a’;
      |                ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  string A, B, C, X, atoA;
  cin >> A >> B >> C;
  X.at(0) = A.at(0);
  X.at(1) = B.at(0);
  X.at(2) = C.at(0);
  atoA = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
  for(int i = 0; i < 26; i++) {
    if(X.at(0) == atoA.at(i)) {
      X.at(0) == atoA.at(i + 26);
    }
  }
  for(int i = 0; i < 26; i++) {
    if(X.at(1) == atoA.at(i)) {
      X.at() == atoA.at(i + 26);
    }
  }
  for(int i = 0; i < 26; i++) {
    if(X.at(2) == atoA.at(i)) {
      X.at(2) == atoA.at(i + 26);
    }
  }
  cout << X << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:11: error: no matching function for call to 'std::__cxx11::basic_string<char>::at()'
   17 |       X.at() == atoA.at(i + 26);
      |       ~~~~^~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:1287:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::at(size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; const_reference = const char&; size_type = long unsigned int]'
 1287 |       at(size_type __n) const
      |       ^~
/usr/include/c++/14/bits/basic_string.h:1287:7: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/basic_string.h:1309:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::at(size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; reference = char&; size_type = long unsigned int]'
 1309 |       at(size_type __n)
      |       ^~
/usr/include/c++/14/bits/basic_string.h:1309:7: note:   candidate expects 1 argument, 0 provided
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  string A, B, C, X, atoA;
  cin >> A >> B >> C;
  X.at(0) = A.at(0);
  X.at(1) = B.at(0);
  X.at(2) = C.at(0);
  atoA = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
  for(int i = 0, i < 26; i++) {
    if(X.at(0) == atoA.at(i)) {
      X.at(0) == atoA.at(i + 26);
    }
  }
  for(int i = 0, i < 26; i++) {
    if(X.at(1) == atoA.at(i)) {
      X.at() == atoA.at(i + 26);
    }
  }
  for(int i = 0, i < 26; i++) {
    if(X.at(2) == atoA.at(i)) {
      X.at(2) == atoA.at(i + 26);
    }
  }
  cout << X << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: expected ';' before '<' token
   10 |   for(int i = 0, i < 26; i++) {
      |                   ^~
      |                   ;
a.cc:10:20: error: expected primary-expression before '<' token
   10 |   for(int i = 0, i < 26; i++) {
      |                    ^
a.cc:15:19: error: expected ';' before '<' token
   15 |   for(int i = 0, i < 26; i++) {
      |                   ^~
      |                   ;
a.cc:15:20: error: expected primary-expression before '<' token
   15 |   for(int i = 0, i < 26; i++) {
      |                    ^
a.cc:17:11: error: no matching function for call to 'std::__cxx11::basic_string<char>::at()'
   17 |       X.at() == atoA.at(i + 26);
      |       ~~~~^~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:1287:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::at(size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; const_reference = const char&; size_type = long unsigned int]'
 1287 |       at(size_type __n) const
      |       ^~
/usr/include/c++/14/bits/basic_string.h:1287:7: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/basic_string.h:1309:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::at(size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; reference = char&; size_type = long unsigned int]'
 1309 |       at(size_type __n)
      |       ^~
/usr/include/c++/14/bits/basic_string.h:1309:7: note:   candidate expects 1 argument, 0 provided
a.cc:20:19: error: expected ';' before '<' token
   20 |   for(int i = 0, i < 26; i++) {
      |                   ^~
      |                   ;
a.cc:20:20: error: expected primary-expression before '<' token
   20 |   for(int i = 0, i < 26; i++) {
      |                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
#define rep(i, from, to) for (int i = from; i < (to); ++i)
#define mp(x,y) make_pair(x,y)
#define all(x) (x).begin(),(x).end()
#define pb push_back
using ll = long long;
using vin=vector<int>;
using vll=vector<ll>;
using vst=vector<string>;
using P = pair<int, int>;
const int inf=1e9+7;
const ll INF=1e18;
template <typename T> void chmin(T &a, T b) { a = min(a, b); }
template <typename T> void chmax(T &a, T b) { a = max(a, b); }
template<class T> inline void Yes(T condition){ if(condition) cout << "Yes" << endl; else cout << "No" << endl; }
template<class T> inline void YES(T condition){ if(condition) cout << "YES" << endl; else cout << "NO" << endl; }
const int dx[4] = { 1, 0, -1, 0 };
const int dy[4] = { 0, 1, 0, -1 };


int main(){cout<<fixed<<setprecision(10);
		   string s[3];
           rep(i,0,3)cin>>s[i];
           rep(i,0,3){
            cout<<c[0]+'A'-'a'<<endl; 
           }
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:33: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'bgin'; did you mean 'begin'?
    6 |   transform(a.begin(),a.end(),a.bgin(),toupper);
      |                                 ^~~~
      |                                 begin
a.cc:7:33: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'bgin'; did you mean 'begin'?
    7 |   transform(b.begin(),b.end(),b.bgin(),toupper);
      |                                 ^~~~
      |                                 begin
a.cc:8:33: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'bgin'; did you mean 'begin'?
    8 |   transform(c.begin(),c.end(),c.bgin(),toupper);
      |                                 ^~~~
      |                                 begin
Language: C++

program prob1
    implicit none
    character(1) :: a, b, c
    character(3) :: s
    read(*,*) a, b, c

    s = achar(iachar('A') + iachar(a) - iachar('a'))
    s = s(1:1) // achar(iachar('A') + iachar(b) - iachar('a'))
    s = s(1:2) // achar(iachar('A') + iachar(c) - iachar('a'))
    write(*,'(a)') s

    stop
contains
end program prob1

Compiler output:
a.cc:10:13: warning: multi-character character constant [-Wmultichar]
   10 |     write(*,'(a)') s
      |             ^~~~~
a.cc:1:1: error: 'program' does not name a type
    1 | program prob1
      | ^~~~~~~
Language: Java

import java.util.*;
import java.math.BigInteger;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		BigInteger a = scn.nextBigInteger();
		BigInteger b = scn.nextBigInteger();
      	if(a.subtract(b)>0){
          System.out.println("GREATER");
        }else if(a.subtract(b)<0){
          System.out.println("LESS");
        }else{
          System.out.println("EQUAL");
        }
	}
}


Compiler output:
Main.java:9: error: bad operand types for binary operator '>'
      	if(a.subtract(b)>0){
      	                ^
  first type:  BigInteger
  second type: int
Main.java:11: error: bad operand types for binary operator '<'
        }else if(a.subtract(b)<0){
                              ^
  first type:  BigInteger
  second type: int
2 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
  {
  string s1,s2,s3;
  cin>>s1>>s2>>s3;
  cout<<s1[0]-'a'+A<<s2[0]-'a'+A<<s3[0]-'a'+A;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: 'A' was not declared in this scope
    7 |   cout<<s1[0]-'a'+A<<s2[0]-'a'+A<<s3[0]-'a'+A;
      |                   ^
Language: C++

#include<stdio.h>
#include<iostream>
#include<vector>
#include<math.h>
#include<queue>
#include<map>
#include<algorithm>
#include<string.h>
#include<functional>
#include<limits.h>
#include<stdlib.h>
#include<string>
#include<unordered_map>
using namespace std;
 
#define intmax INT_MAX
#define lmax LONG_MAX
#define uintmax UINT_MAX
#define ulmax ULONG_MAX
#define llmax LLONG_MAX
#define ll long long
#define rep(i,a,N) for((i)=(a);(i)<(N);(i)++)
#define rrp(i,N,a) for((i)=(N)-1;(i)>=(a);(i)--)
#define llfor ll i,j,k
#define sc(a) cin>>a
#define pr(a) cout<<a<<endl
#define pY puts("YES")
#define pN puts("NO")
#define py puts("Yes")
#define pn puts("No")
#define pnn printf("\n")
#define sort(a) sort(a.begin(),a.end())
#define push(a,b) (a).push_back(b)
#define llvec vector<vector<ll>>
#define charvec vector<vector<char>>
#define sizeoof(a,b) (a,vector<ll>(b))
#define llpvec vector<pair<ll,ll>>
/*繰り上げ除算*/ll cei(ll x,ll y){ll ans=x/y;if(x%y!=0)ans++;return ans;}
/*最大公約数*/ll gcd(ll x,ll y){return y?gcd(y,x%y):x;}
/*最小公倍数*/ll lcm(ll x,ll y){return x/gcd(x,y)*y;}
/*n乗*/ll llpow(ll x,ll n){ll i,ans=1;rep(i,0,n)ans*=x;return ans;}
/*階乗*/ll fact(ll x){ll i,ans=1;rep(i,0,x)ans*=(x-i);return ans;}
/*nCr*/ll ncr(ll n,ll r){return fact(n)/fact(r)/fact(n-r);}
/*nPr*/ll npr(ll n,ll r){return fact(n)/fact(n-r);}
/*primejudge*/bool prime(ll a){if(a<=1)return false;ll i;for(i=2;i*i<=a;i++){if(a%i==0)return false;}return true;}
ll ans=0;llfor;///////////////////////////////////////////////////////////
int main(){
  string S,T,U;
  cin>>S>>T>>U;
  X=(S[0]+'25')+(T[0]+'25')+(U[0]+'25');
  cout<<X;
return 0;}

Compiler output:
a.cc:50:11: warning: multi-character character constant [-Wmultichar]
   50 |   X=(S[0]+'25')+(T[0]+'25')+(U[0]+'25');
      |           ^~~~
a.cc:50:23: warning: multi-character character constant [-Wmultichar]
   50 |   X=(S[0]+'25')+(T[0]+'25')+(U[0]+'25');
      |                       ^~~~
a.cc:50:35: warning: multi-character character constant [-Wmultichar]
   50 |   X=(S[0]+'25')+(T[0]+'25')+(U[0]+'25');
      |                                   ^~~~
a.cc: In function 'int main()':
a.cc:50:3: error: 'X' was not declared in this scope
   50 |   X=(S[0]+'25')+(T[0]+'25')+(U[0]+'25');
      |   ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:29: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    8 |     string str = s1[0]+s2[0]+s3[0];
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: expected ';' before 'A'
    7 |   a[0]'A'-'a';
      |       ^~~
      |       ;
a.cc:7:6: warning: ignoring return value of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator[](size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; reference = char&; size_type = long unsigned int]', declared with attribute 'nodiscard' [-Wunused-result]
    7 |   a[0]'A'-'a';
      |      ^
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:1265:7: note: declared here
 1265 |       operator[](size_type __pos)
      |       ^~~~~~~~
a.cc:8:7: error: expected ';' before 'A'
    8 |   b[0]'A'-'a';
      |       ^~~
      |       ;
a.cc:8:6: warning: ignoring return value of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator[](size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; reference = char&; size_type = long unsigned int]', declared with attribute 'nodiscard' [-Wunused-result]
    8 |   b[0]'A'-'a';
      |      ^
/usr/include/c++/14/bits/basic_string.h:1265:7: note: declared here
 1265 |       operator[](size_type __pos)
      |       ^~~~~~~~
a.cc:9:7: error: expected ';' before 'A'
    9 |   c[0]'A'-'a';
      |       ^~~
      |       ;
a.cc:9:6: warning: ignoring return value of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator[](size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; reference = char&; size_type = long unsigned int]', declared with attribute 'nodiscard' [-Wunused-result]
    9 |   c[0]'A'-'a';
      |      ^
/usr/include/c++/14/bits/basic_string.h:1265:7: note: declared here
 1265 |       operator[](size_type __pos)
      |       ^~~~~~~~
Language: C++

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

int main() {
  string s, t, u;
  cin >> s >> t >> u;

  cout << toupper(s.at(0)) << toupper(t.at(0))<< toupper(u.at(0)) endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:66: error: expected ';' before 'endl'
    8 |   cout << toupper(s.at(0)) << toupper(t.at(0))<< toupper(u.at(0)) endl;
      |                                                                  ^~~~~
      |                                                                  ;
Language: C++

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

signed main(){
	string  s1, s2, s3, d = 'A' - 'a';
	cin >> s1 >> s2 >> s3;
	printf("%c%c%c\n", s1[0] + d, s2[0] + d, s3[0] + d);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:37: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    5 |         string  s1, s2, s3, d = 'A' - 'a';
      |                                 ~~~~^~~~~
Language: C++

#include <bits/stdc++.h>
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:7:12: error: extended character ’ is not valid in an identifier
    7 | char dif = ’A ’ - ’a ’;
      |            ^
a.cc:7:15: error: extended character ’ is not valid in an identifier
    7 | char dif = ’A ’ - ’a ’;
      |               ^
a.cc:7:19: error: extended character ’ is not valid in an identifier
    7 | char dif = ’A ’ - ’a ’;
      |                   ^
a.cc:7:22: error: extended character ’ is not valid in an identifier
    7 | char dif = ’A ’ - ’a ’;
      |                      ^
a.cc: In function 'int main()':
a.cc:7:12: error: '\U00002019A' was not declared in this scope
    7 | char dif = ’A ’ - ’a ’;
      |            ^~
a.cc:8:9: warning: unknown escape sequence: '\040'
    8 | printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif );
      |         ^~~~~~~~~~~~~~~~~~
Language: C

#include <bits/stdc++.h>
#include <cstdlib>
using namespace std;
int main() {
  string a, b, c;
  cin >> a >> b >> c;
  transform(a.begin(), a.end(), a.begin(), ::toupper);
  transform(b.begin(), b.end(), b.begin(), ::toupper);
  transform(c.begin(), c.end(), c.begin(), ::toupper);
  cout << a[0] << b[0] << c[0] << endl;
  return 0;
}

Compiler output:
main.c:1:10: 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(){
  string a,b,c;
  cin >> a >> b >> c;
  int A=a.at(0);
  int B=b.at(0);
  int C=c.at(0);
  cout << A-32(char) << B-32(char) << C-32(char) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected primary-expression before 'char'
   10 |   cout << A-32(char) << B-32(char) << C-32(char) << endl;
      |                ^~~~
a.cc:10:20: error: expression cannot be used as a function
   10 |   cout << A-32(char) << B-32(char) << C-32(char) << endl;
      |                    ^
a.cc:10:30: error: expected primary-expression before 'char'
   10 |   cout << A-32(char) << B-32(char) << C-32(char) << endl;
      |                              ^~~~
a.cc:10:34: error: expression cannot be used as a function
   10 |   cout << A-32(char) << B-32(char) << C-32(char) << endl;
      |                                  ^
a.cc:10:44: error: expected primary-expression before 'char'
   10 |   cout << A-32(char) << B-32(char) << C-32(char) << endl;
      |                                            ^~~~
a.cc:10:48: error: expression cannot be used as a function
   10 |   cout << A-32(char) << B-32(char) << C-32(char) << endl;
      |                                                ^
Language: C++

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

int main(){
  string a,b,c;
  cin >> a >> b >> c;
  int A=a.at(0);
  int B=b.at(0);
  int C=c.at(0);
  cout << A-32(char) << B-32(char) << C-32(char) << endl;
}


Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include bits/stdc++.h>
      |          ^~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string a,b,c;
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #include bits/stdc++.h>
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include bits/stdc++.h>
a.cc:6:10: error: 'a' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |          ^
a.cc:6:15: error: 'b' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |               ^
a.cc:6:20: error: 'c' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |                    ^
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout << A-32(char) << B-32(char) << C-32(char) << endl;
      |   ^~~~
a.cc:10:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:16: error: expected primary-expression before 'char'
   10 |   cout << A-32(char) << B-32(char) << C-32(char) << endl;
      |                ^~~~
a.cc:10:20: error: expression cannot be used as a function
   10 |   cout << A-32(char) << B-32(char) << C-32(char) << endl;
      |                    ^
a.cc:10:30: error: expected primary-expression before 'char'
   10 |   cout << A-32(char) << B-32(char) << C-32(char) << endl;
      |                              ^~~~
a.cc:10:34: error: expression cannot be used as a function
   10 |   cout << A-32(char) << B-32(char) << C-32(char) << endl;
      |                                  ^
a.cc:10:44: error: expected primary-expression before 'char'
   10 |   cout << A-32(char) << B-32(char) << C-32(char) << endl;
      |                                            ^~~~
a.cc:10:48: error: expression cannot be used as a function
   10 |   cout << A-32(char) << B-32(char) << C-32(char) << endl;
      |                                                ^
a.cc:10:53: error: 'endl' was not declared in this scope
   10 |   cout << A-32(char) << B-32(char) << C-32(char) << endl;
      |                                                     ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #include bits/stdc++.h>
Language: C++

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

int main(){
  string a,b,c;
  cin >> a >> b >> c;
  int A=a.at(0);
  int B=b.at(0);
  int C=c.at(0);
  cout << A-32(char) << B-32(char) << C-32(char) << endl;
}

Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include bits/stdc++.h>
      |          ^~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string a,b,c;
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #include bits/stdc++.h>
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include bits/stdc++.h>
a.cc:6:10: error: 'a' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |          ^
a.cc:6:15: error: 'b' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |               ^
a.cc:6:20: error: 'c' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |                    ^
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout << A-32(char) << B-32(char) << C-32(char) << endl;
      |   ^~~~
a.cc:10:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:16: error: expected primary-expression before 'char'
   10 |   cout << A-32(char) << B-32(char) << C-32(char) << endl;
      |                ^~~~
a.cc:10:20: error: expression cannot be used as a function
   10 |   cout << A-32(char) << B-32(char) << C-32(char) << endl;
      |                    ^
a.cc:10:30: error: expected primary-expression before 'char'
   10 |   cout << A-32(char) << B-32(char) << C-32(char) << endl;
      |                              ^~~~
a.cc:10:34: error: expression cannot be used as a function
   10 |   cout << A-32(char) << B-32(char) << C-32(char) << endl;
      |                                  ^
a.cc:10:44: error: expected primary-expression before 'char'
   10 |   cout << A-32(char) << B-32(char) << C-32(char) << endl;
      |                                            ^~~~
a.cc:10:48: error: expression cannot be used as a function
   10 |   cout << A-32(char) << B-32(char) << C-32(char) << endl;
      |                                                ^
a.cc:10:53: error: 'endl' was not declared in this scope
   10 |   cout << A-32(char) << B-32(char) << C-32(char) << endl;
      |                                                     ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #include bits/stdc++.h>
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    char a[100],b[100];
    long long int i,c=0;
    gets(a);
    b[c]=a[0];
    c++;
    for(i=0;i<(sizeof(a));i++)
    {
        if(isspace(a[i]))
            {
                b[c]=a[i+1];
                c++;
            }
    }
    strupr(b);
    puts(b);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |     gets(a);
      |     ^~~~
      |     getw
a.cc:18:5: error: 'strupr' was not declared in this scope; did you mean 'strstr'?
   18 |     strupr(b);
      |     ^~~~~~
      |     strstr
Language: C++

#include<iostream>
#include<cstring>
#include<cstdio>
using namespace std;
int main()
{
    char a[100],b[100];
    long long int i,c=0;
    gets(a);
    b[c]=a[0];
    c++;
    for(i=0;i<(sizeof(a));i++)
    {
        if(isspace(a[i]))
            {
                b[c]=a[i+1];
                c++;
            }
    }
    strupr(b);
    puts(b);
}


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

#include<stdio.h>
#include<string.h>
#define N 10

int main()
{
    char s1[10],s2[10],s3[10];
    gets(s1);
    gets(s2);
    gets(s3);
    char dif = 'A'-'a';

    printf("%c%c%c",s1[0]+dif,s2[0]+dif,s3[0]+dif);
    return 0;
}


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

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

int main(){
  string a,b,c;
  int a.at(0)-=32;
  int b.at(0)-=32;
  int c.at(0)-=32;
  cout << a.at(0)(char) << b.at(0)(char) << c.at(0)(char) <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: expected initializer before '.' token
    6 |   int a.at(0)-=32;
      |        ^
a.cc:7:8: error: expected initializer before '.' token
    7 |   int b.at(0)-=32;
      |        ^
a.cc:8:8: error: expected initializer before '.' token
    8 |   int c.at(0)-=32;
      |        ^
a.cc:9:19: error: expected primary-expression before 'char'
    9 |   cout << a.at(0)(char) << b.at(0)(char) << c.at(0)(char) <<endl;
      |                   ^~~~
a.cc:9:23: error: expression cannot be used as a function
    9 |   cout << a.at(0)(char) << b.at(0)(char) << c.at(0)(char) <<endl;
      |                       ^
a.cc:9:36: error: expected primary-expression before 'char'
    9 |   cout << a.at(0)(char) << b.at(0)(char) << c.at(0)(char) <<endl;
      |                                    ^~~~
a.cc:9:40: error: expression cannot be used as a function
    9 |   cout << a.at(0)(char) << b.at(0)(char) << c.at(0)(char) <<endl;
      |                                        ^
a.cc:9:53: error: expected primary-expression before 'char'
    9 |   cout << a.at(0)(char) << b.at(0)(char) << c.at(0)(char) <<endl;
      |                                                     ^~~~
a.cc:9:57: error: expression cannot be used as a function
    9 |   cout << a.at(0)(char) << b.at(0)(char) << c.at(0)(char) <<endl;
      |                                                         ^
Language: C++

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

int main(){
  for(int i=0;i<3;i++){
  string a
  a.at(0)+='A'-'a';
  cout << a.at(0);
  }
  cout << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'a'
    7 |   a.at(0)+='A'-'a';
      |   ^
a.cc:8:11: error: 'a' was not declared in this scope
    8 |   cout << a.at(0);
      |           ^
Language: C++

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

int main(){
  const string s=abcdefghijklmnopqrstuvwxyz;
  const string S=ABCDEFGHIJKLMNOPQRSTUVWXYZ;
  string ss[3];
  cin>>ss[0]>>ss[1]>>ss[2];
  string ans;
  for(int i=0;i<3;i++){
    for(int j=0;j<26;j++){
      if(ss[i].at(0)==s[j]){
        ans+=S[j];
      }
    }
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: 'abcdefghijklmnopqrstuvwxyz' was not declared in this scope
    5 |   const string s=abcdefghijklmnopqrstuvwxyz;
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:6:18: error: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' was not declared in this scope
    6 |   const string S=ABCDEFGHIJKLMNOPQRSTUVWXYZ;
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
const string s=abcdefghijklmnopqrstuvwxyz;
const string S=ABCDEFGHIJKLMNOPQRSTUVWXYZ;
int main(){
  string ss[3];
  cin>>ss[0]>>ss[1]>>ss[2];
  string ans;
  for(int i=0;i<3;i++){
    for(int j=0;j<26;j++){
      if(ss[i].at(0)==s[j]){
        ans+=S[j];
      }
    }
  }
  cout<<ans<<endl;
}

Compiler output:
a.cc:3:16: error: 'abcdefghijklmnopqrstuvwxyz' was not declared in this scope
    3 | const string s=abcdefghijklmnopqrstuvwxyz;
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:4:16: error: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' was not declared in this scope
    4 | const string S=ABCDEFGHIJKLMNOPQRSTUVWXYZ;
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

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

int main() {
   vector<string> s(3);
   rep(i, 3) {
       cin >> s[i];
       transform(s[i].begin(), s[i].end(), s[i].begin(), toupper());
   }

   cout << s[0][0] << s[1][0] << s[2][0] << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:65: error: no matching function for call to 'toupper()'
   11 |        transform(s[i].begin(), s[i].end(), s[i].begin(), toupper());
      |                                                          ~~~~~~~^~
In file included from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/istream:40,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127,
                 from a.cc:1:
/usr/include/c++/14/bits/locale_facets.h:2687:5: note: candidate: 'template<class _CharT> _CharT std::toupper(_CharT, const locale&)'
 2687 |     toupper(_CharT __c, const locale& __loc)
      |     ^~~~~~~
/usr/include/c++/14/bits/locale_facets.h:2687:5: note:   candidate expects 2 arguments, 0 provided
In file included from /usr/include/c++/14/cctype:42,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:35:
/usr/include/ctype.h:125:12: note: candidate: 'int toupper(int)'
  125 | extern int toupper (int __c) __THROW;
      |            ^~~~~~~
/usr/include/ctype.h:125:12: note:   candidate expects 1 argument, 0 provided
Language: C++

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

int main(){
  int a[13],b[13],c[13];

  scanf("%s %s %s", a, b, c);

  printf("%c%c%c\n", a[0] - 'a' + 'A', b[0] - 'a' + 'A', c[0] - 'a' + 'A')
  
  return 0;
}


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

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

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.at(0) << s2.at(0) << s3.at(0) << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:49: error: '__toupper' was not declared in this scope; did you mean '_toupper'?
   10 |     transform(s1.begin(), s1.end(), s1.begin(), __toupper);
      |                                                 ^~~~~~~~~
      |                                                 _toupper
Language: C++

s1, s2, s3 = gets.chomp.split(" ").map(&:upcase)
puts s1[0] + s2[0] + s3[0]


Compiler output:
a.cc:1:1: error: 's1' does not name a type
    1 | s1, s2, s3 = gets.chomp.split(" ").map(&:upcase)
      | ^~
Language: C++

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

int main() {
  string x , y , z ;
  cin >> x >> y >> z ; 
  
  X = x[0] + 26 ;
  Y = y[0] + 26 ;
  Z = z[0] + 26 ;
  
  cout << x << y << z << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'X' was not declared in this scope
    8 |   X = x[0] + 26 ;
      |   ^
a.cc:9:3: error: 'Y' was not declared in this scope
    9 |   Y = y[0] + 26 ;
      |   ^
a.cc:10:3: error: 'Z' was not declared in this scope
   10 |   Z = z[0] + 26 ;
      |   ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'X' was not declared in this scope
    8 |   X = x[0] + (A-a) ;
      |   ^
a.cc:8:15: error: 'A' was not declared in this scope
    8 |   X = x[0] + (A-a) ;
      |               ^
a.cc:8:17: error: 'a' was not declared in this scope
    8 |   X = x[0] + (A-a) ;
      |                 ^
a.cc:9:3: error: 'Y' was not declared in this scope
    9 |   Y = y[0] + (A-a) ;
      |   ^
a.cc:10:3: error: 'Z' was not declared in this scope
   10 |   Z = z[0] + (A-a) ;
      |   ^
a.cc:12:11: error: 'xyz' was not declared in this scope
   12 |   cout << xyz << endl;
      |           ^~~
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