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

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


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

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

#include<cstdio>
#include<iostream>

using namespace std;

int main(void) {

	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] << "\n";

	return 0;
}


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

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

int main(){
  string x, y, z;
  cin >> x >> y >> z;
  cout << x.at(0) << y.at(0) << z.at(0)
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:40: error: expected ';' before '}' token
    7 |   cout << x.at(0) << y.at(0) << z.at(0)
      |                                        ^
      |                                        ;
    8 | }
      | ~
Language: C++

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

int main(){
  string a,b,c;
  cin >> a >> b >> c;
  cout << transform(a.at(0)) << transform(b.at(0)) << transform(c.at(0)) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'transform' was not declared in this scope
    8 |   cout << transform(a.at(0)) << transform(b.at(0)) << transform(c.at(0)) << endl;
      |           ^~~~~~~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  string a,b,c;
  cin >> a >> b >> c;
  cout << transform(a.at(0)) << transform(b.at(0)) << transform(c.at(0)) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'transform' was not declared in this scope
    7 |   cout << transform(a.at(0)) << transform(b.at(0)) << transform(c.at(0)) << endl;
      |           ^~~~~~~~~
Language: C++

#define _USE_MATH_DEFINES
#include<iostream>
#include<cstdlib>
#include<algorithm>
#include<cmath>
#include<string>
#include<set>
#include<map>
#include<stdbool.h>
#include<math.h>
#include<sstream>
#include<math.h>
#include<vector>
#include<functional>
#include<queue>
#include<utility>
typedef long long ll;
#define N (1000000000+7)
#define INF 1e10
using namespace std;
typedef pair<ll, ll> P;
int dx[4] = { 1,0,-1,0 };
int dy[4] = { 0,1,0,-1 };

int dp[100010] = { INF };

int main(void) {
	string s1, s2, s3;
	cin >> s1 >> s2 >> s3;
	string s = "";
	s += toupper(s1[0]);
	s += toupper(s2[0]);
	s += toupper(s3[0]);
	cout << s << endl;
	return 0;
}

Compiler output:
a.cc:19:13: error: narrowing conversion of '1.0e+10' from 'double' to 'int' [-Wnarrowing]
   19 | #define INF 1e10
      |             ^~~~
a.cc:25:20: note: in expansion of macro 'INF'
   25 | int dp[100010] = { INF };
      |                    ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main () {
  string a,b,c;
  char s1,s2,s3;
  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);
  
  s1=a.at(0)
  s2=b.at(0)
  s3=c.at(0)
    
  cout << s1 << s2 << s3;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: expected ';' before 's2'
   13 |   s1=a.at(0)
      |             ^
      |             ;
   14 |   s2=b.at(0)
      |   ~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main () {
  string a,b,c;
  char s1,s2,s3;
  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)
  
  s1=a.at(0)
  s2=b.at(0)
  s3=c.at(0)
    
  cout << s1 << s2 << s3;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:51: error: expected ';' before 'transform'
    9 |   transform(a.begin(),a.end(),a.begin(),::toupper)
      |                                                   ^
      |                                                   ;
   10 |   transform(b.begin(),b.end(),b.begin(),::toupper)
      |   ~~~~~~~~~
Language: C++

int main () {
  string S;
  string ans;
  cin >> S;
  
  for(int i = 0; i<3;i++){
    transform(S.begin(),S.end(),S.begin(),::toupper);
    ans += S.at(i);
  }
  cout << ans ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:3: error: 'string' was not declared in this scope
    2 |   string S;
      |   ^~~~~~
a.cc:3:9: error: expected ';' before 'ans'
    3 |   string ans;
      |         ^~~~
      |         ;
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> S;
      |   ^~~
a.cc:4:10: error: 'S' was not declared in this scope
    4 |   cin >> S;
      |          ^
a.cc:7:45: error: '::toupper' has not been declared
    7 |     transform(S.begin(),S.end(),S.begin(),::toupper);
      |                                             ^~~~~~~
a.cc:7:5: error: 'transform' was not declared in this scope
    7 |     transform(S.begin(),S.end(),S.begin(),::toupper);
      |     ^~~~~~~~~
a.cc:8:5: error: 'ans' was not declared in this scope
    8 |     ans += S.at(i);
      |     ^~~
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout << ans ;
      |   ^~~~
a.cc:10:11: error: 'ans' was not declared in this scope
   10 |   cout << ans ;
      |           ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main () {
  string S;
  string ans;
  cin >> S;
  
  for(int i = 0; i<3;i++){
    cin >> S;
    trasform(S.begin(),S.end(),S.begin(),::toupper);
    ans += S.at(i);
  }
  cout << ans ;
}

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

#include<bits/stdc++.h>
using namespace std;
 
int main () {
  string S;
  string ans;
  cin >> S;
  
  for(int i = 0; i<3;i++){
    trasform(S.begin(),S.end(),S.begin(),::toupper);
    ans += S.at(i);
  }
  cout << ans ;
}

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

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

int main () {
  string S;
  string ans;
  cin >> S;
  
  for(int i = 0; i<3;i++){
    trasform(S.begin(),S.end(),S.begin(),::toupper);
    ans += S.at(i)
  }
  cout << ans ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'trasform' was not declared in this scope
   10 |     trasform(S.begin(),S.end(),S.begin(),::toupper);
      |     ^~~~~~~~
a.cc:11:19: error: expected ';' before '}' token
   11 |     ans += S.at(i)
      |                   ^
      |                   ;
   12 |   }
      |   ~
Language: C

include<stdio.h>

int main(void)
{
        char a[11],b[11],c[11];

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

        printf("%c%c%c\n",a[0]-0x20,b[0]-0x20,c[0]-0x20);

        return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: invalid operands of types '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} and 'const char [3]' to binary 'operator-'
    5 |   cout<<a[0]-"32"<<b[0]-"32"<c[0]-"32";}
a.cc:5:24: error: invalid operands of types '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} and 'const char [3]' to binary 'operator-'
    5 |   cout<<a[0]-"32"<<b[0]-"32"<c[0]-"32";}
a.cc:5:34: error: invalid operands of types '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} and 'const char [3]' to binary 'operator-'
    5 |   cout<<a[0]-"32"<<b[0]-"32"<c[0]-"32";}
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:56: error: expected ')' before ';' token
    7 |         printf("%c%c%c\n", a[0] + d, b[0] + d, c[0] + d;)
      |               ~                                        ^
      |                                                        )
a.cc:7:57: error: expected primary-expression before ')' token
    7 |         printf("%c%c%c\n", a[0] + d, b[0] + d, c[0] + d;)
      |                                                         ^
Language: C++

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

int main() {
	vector<string> s(3);
	int offset = 'A'-'a';
	rep(i,3)cin>>s[i];
	rep(i,3){
		char a = s[i][0]+offset;
		cout<<a;
	}
	cout<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'i' was not declared in this scope
    7 |         rep(i,3)cin>>s[i];
      |             ^
a.cc:7:9: error: 'rep' was not declared in this scope
    7 |         rep(i,3)cin>>s[i];
      |         ^~~
Language: C

#include <stdio.h>
int main (){
char a,b,c;
  int h;
  scanf ("%s%s%s",a,b,c);
h='A'-'a';
printf ("%c%c%c",a[0]+h,b[0]+h,c[0]+h);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:19: error: subscripted value is neither array nor pointer nor vector
    7 | printf ("%c%c%c",a[0]+h,b[0]+h,c[0]+h);
      |                   ^
main.c:7:26: error: subscripted value is neither array nor pointer nor vector
    7 | printf ("%c%c%c",a[0]+h,b[0]+h,c[0]+h);
      |                          ^
main.c:7:33: error: subscripted value is neither array nor pointer nor vector
    7 | printf ("%c%c%c",a[0]+h,b[0]+h,c[0]+h);
      |                                 ^
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main(void){
    string s1;
    string s2;
    string s3;
    string tmp1;
    string tmp2;
    string tmp3;
    string ans;

    cin >> s1 >> s2 >> s3;

    tmp1=s1[0];
    tmp2=s2[0];
    tmp3=s3[0];

    ans=tmp1+tmp2+tmp3;

    transform(ans.cbegin(),ans.cend(),ans.begin(),::toupper);

    cout << ans << endl;

    return 0;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:29: error: expected primary-expression before 'char'
   10 |   cout<<char(a[0]+'A'-'a')<<char(b[0]+'A'-'a'}<<char(c[0]+'A'-'a')<<endl;
      |                             ^~~~
a.cc: At global scope:
a.cc:10:47: error: expected unqualified-id before '<<' token
   10 |   cout<<char(a[0]+'A'-'a')<<char(b[0]+'A'-'a'}<<char(c[0]+'A'-'a')<<endl;
      |                                               ^~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <algorithm>
#include <string>
#include <sstream>
#include <complex>
#include <vector>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
#include <array>
#include <tuple>
#include <random>

using namespace std;
typedef long long int ll;

#define _overload3(_1, _2, _3, name, ...) name
#define _rep(i, n) repi(i, 0, n)
#define repi(i, a, b) for(int i = int(a); i < int(b); i++)
#define rep(...) _overload3(__VA_ARGS__, repi, _rep,)(__VA_ARGS__)
#define all(x) (x).begin(), (x).end()

#define inf 10000000000

int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);

    string s1, s2, s3;
    cin >> s1 >> s2 >> s3;
    char diff = 'A' - 'a'
    cout << s1[0] + diff << s2[0] + diff << s3[0] + diff << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:39:5: error: expected ',' or ';' before 'cout'
   39 |     cout << s1[0] + diff << s2[0] + diff << s3[0] + diff << endl;
      |     ^~~~
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<cmath>
#include<cstdio>
using namespace std;
int main()
{
	string a, b, c;
	cin >> a >> b >> c;
	char dif = 'A' - 'a';
	printf("%c%c%c",a[0] + dif,b[0] + dif,c[0] + dif;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:57: error: expected ')' before ';' token
   13 |         printf("%c%c%c",a[0] + dif,b[0] + dif,c[0] + dif;
      |               ~                                         ^
      |                                                         )
Language: C++

#include<stdio.h>
#include<string.h>
int main()
{
    char a[1000],b[5];
    gets(a);
    int len,i,j;
    len=strlen(a);
    printf("%d\n",len);
    for(i=0; i<len; i++)
    {
        if(i==0)
            printf("%c",a[0]-32);
        if(a[i]==' ')
            printf("%c",a[i+1]-32);
    }

    return 0;
}


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

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

int main(){

  string a,b,c;

  cin >> a >> b >> c;

  char  org_str[] = {a[0],b[0],c[0]};
  string str(org_str, end(org_str));
  
  transform(str.begin(),str.end(),str.begin(), ::toupper);
  
  cout << str  << 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(str.begin(),str.end(),str.begin(), ::toupper);
      |   ^~~~~~~~~
Language: C++

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

int main(){

  string a,b,c;

  cin >> a >> b >> c;

  string str = {a[0],b[0],c[0]};
  transform(str.begin(),str.end(),str.begin(), ::toupper);
  
  cout << str  << endl;

  return 0;
}


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: invalid use of member function 'std::__cxx11::basic_string<char>::at' (did you forget the '()' ?)
    7 | A.at(0)-="a"-"A"; B.at-="a"-"A"; C-="a"-"A";
      |                   ~~^~
a.cc:7:35: error: no match for 'operator-=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'long int')
    7 | A.at(0)-="a"-"A"; B.at-="a"-"A"; C-="a"-"A";
      |                                  ~^~~~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:5: error: 'string' was not declared in this scope
    2 |     string a,b,c;
      |     ^~~~~~
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> a >> b >> c;
      |     ^~~
a.cc:3:12: error: 'a' was not declared in this scope
    3 |     cin >> a >> b >> c;
      |            ^
a.cc:3:17: error: 'b' was not declared in this scope
    3 |     cin >> a >> b >> c;
      |                 ^
a.cc:3:22: error: 'c' was not declared in this scope
    3 |     cin >> a >> b >> c;
      |                      ^
a.cc:5:5: error: 'cout' was not declared in this scope
    5 |     cout << (char) (a[0] - x) << (char) (b[0] - x) << (char) (c[0] - x) << endl;
      |     ^~~~
a.cc:5:76: error: 'endl' was not declared in this scope
    5 |     cout << (char) (a[0] - x) << (char) (b[0] - x) << (char) (c[0] - x) << endl;
      |                                                                            ^~~~
Language: C++

#include <bits/stdc++.h>
#define repd(i,a,b) for (int i=(a);i<(b);i++)
#define rep(i,n) repd(i,0,n)
typedef long long ll;
using namespace std;
const int MOD = 1000000007;
const int INF = 1010000000;
const double EPS = 1e-10;

int h,w,x;
char s[1000][1000];
bool visited [1000][1000];
pair<int,int> start,goal;
queue<pair<int,pair<int,int>>> q;
vector<pair<int,int>> ino;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:19:19: error: 'str' was not declared in this scope; did you mean 'std'?
   19 |   cout<<transform(str.begin(), str.end(), str.begin(), a[0])<<transform(str.begin(), str.end(), str.begin(), b[0])<<transform(str.begin(), str.end(), str.begin(), c[0]);
      |                   ^~~
      |                   std
Language: C++

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

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


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

#include<iostream>
#include<algorithm>
#include<cmath>
#include<cstdlib>
#include<string>
#include<vector>
using namespace std;

int main(void) {
	string s, t, u;
	cin >> s >> t >> u;
	char toupper(s[0]);
	char toupper(t[0]);
	char toupper(u[0]);
	cout << s[0] << t[0] << u[0];
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: redeclaration of 'char toupper'
   13 |         char toupper(t[0]);
      |              ^~~~~~~
a.cc:12:14: note: 'char toupper' previously declared here
   12 |         char toupper(s[0]);
      |              ^~~~~~~
a.cc:14:14: error: redeclaration of 'char toupper'
   14 |         char toupper(u[0]);
      |              ^~~~~~~
a.cc:12:14: note: 'char toupper' previously declared here
   12 |         char toupper(s[0]);
      |              ^~~~~~~
Language: C++

include<bits/stdc++.h>

using namespace std;

#define PI 3.1415926535897932

int main(){
    char a[102],b[102];
    scanf("%s",a);
    scanf("%s",b);
    if (strlen(a)>strlen(b)) {
        printf("GREATER\n");
        return 0;
    } else if (strlen(a)<strlen(b)) {
        printf("LESS\n");
        return 0;
    }
    for (int i=0;i<strlen(a);i++) {
        if (a[i]-0>b[i]-0) {
            printf("GREATER\n");
            return 0;
        } else if (a[i]-0<b[i]-0) {
            printf("LESS\n");
            return 0;
        }
    }
    printf("EQUAL\n");
    return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:5: error: 'scanf' was not declared in this scope
    9 |     scanf("%s",a);
      |     ^~~~~
a.cc:11:9: error: 'strlen' was not declared in this scope
   11 |     if (strlen(a)>strlen(b)) {
      |         ^~~~~~
a.cc:1:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
  +++ |+#include <cstring>
    1 | include<bits/stdc++.h>
a.cc:12:9: error: 'printf' was not declared in this scope
   12 |         printf("GREATER\n");
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | include<bits/stdc++.h>
a.cc:15:9: error: 'printf' was not declared in this scope
   15 |         printf("LESS\n");
      |         ^~~~~~
a.cc:15:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:18:20: error: 'strlen' was not declared in this scope
   18 |     for (int i=0;i<strlen(a);i++) {
      |                    ^~~~~~
a.cc:18:20: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:20:13: error: 'printf' was not declared in this scope
   20 |             printf("GREATER\n");
      |             ^~~~~~
a.cc:20:13: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:23:13: error: 'printf' was not declared in this scope
   23 |             printf("LESS\n");
      |             ^~~~~~
a.cc:23:13: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:27:5: error: 'printf' was not declared in this scope
   27 |     printf("EQUAL\n");
      |     ^~~~~~
a.cc:27:5: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C

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

char s1[10], s2[10], s3[10];

int main(void) {

	scanf_s("%s", s1, 10);
	scanf_s("%s", s2, 10);
	scanf_s("%s", s3, 10);

	printf("%c%c%c\n", s1[0] - 32, s2[0] - 32, s3[0] - 32);

	
	return 0;

}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    8 |         scanf_s("%s", s1, 10);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <bits/stdc++.h>
using namespace std;
string s1, s2, s3;

int main() {
	cin >> s1 >> s2 >> s3;
	int tmp = 'a' - 'A'
	cout << s1[0] - tmp << s2[0] - tmp << s3[0] - tmp << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected ',' or ';' before 'cout'
    8 |         cout << s1[0] - tmp << s2[0] - tmp << s3[0] - tmp << endl;
      |         ^~~~
Language: C++

#include <stdio.h>
#include <tchar.h>
#include <iostream>
#include <iostream>
#include <cstdlib>
#include <iomanip>
#include <cmath>
#include <vector>
#include <string>
#include <algorithm>
#include <cstdlib>
#include <limits>
#include <numeric>

using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef vector<int> vi;

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

	return 0;
}

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

#include <iostream>
#include <cstdlib>
#include <iomanip>
#include <cmath>
#include <vector>
#include <string>
#include <algorithm>
#include <cstdlib>
#include <limits>
#include <numeric>

using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef vector<int> vi;

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
   22 |         transform(ans.begin(), ans.end(),toupper);
      |         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:7:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
 4209 |     transform(_InputIterator __first, _InputIterator __last,
      |     ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note:   candidate expects 4 arguments, 3 provided
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
 4247 |     transform(_InputIterator1 __first1, _InputIterator1 __last1,
      |     ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note:   candidate expects 5 arguments, 3 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, 3 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, 3 provided
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
	srting s, t, u;
	cin >> s >> t >> u;
	cout << s[0] << t[0] << u[0];
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'srting' was not declared in this scope
    4 |         srting s, t, u;
      |         ^~~~~~
a.cc:5:16: error: 's' was not declared in this scope
    5 |         cin >> s >> t >> u;
      |                ^
a.cc:5:21: error: 't' was not declared in this scope; did you mean 'tm'?
    5 |         cin >> s >> t >> u;
      |                     ^
      |                     tm
a.cc:5:26: error: 'u' was not declared in this scope
    5 |         cin >> s >> t >> u;
      |                          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define dump(x) cout << (x) << endl
typedef long long ll;
typedef pair<int, int> pi;
typedef vector<int> V;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:65: error: 'front' was not declared in this scope
   11 |   cout << toupper(a.front()) << toupper(b.front()) << toupper(c,front()) << endl;
      |                                                                 ^~~~~
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(n);i++)
const int MOD=(int)1e9+7;
using namespace std;
int main(){
    string a,b,c;
    cin>>a>>b>>c;
    cout<<toupper(a.at(0))<<b.toupper(0)<<c.toupper(0)<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:31: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'toupper'
    8 |     cout<<toupper(a.at(0))<<b.toupper(0)<<c.toupper(0)<<endl;
      |                               ^~~~~~~
a.cc:8:45: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'toupper'
    8 |     cout<<toupper(a.at(0))<<b.toupper(0)<<c.toupper(0)<<endl;
      |                                             ^~~~~~~
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(n);i++)
const int MOD=(int)1e9+7;
using namespace std;
int main(){
    string a,b,c;
    cin>>a>>b>>c;
    cout<<a.toupper(0)<<b.toupper(0)<<c.toupper(0)<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'toupper'
    8 |     cout<<a.toupper(0)<<b.toupper(0)<<c.toupper(0)<<endl;
      |             ^~~~~~~
a.cc:8:27: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'toupper'
    8 |     cout<<a.toupper(0)<<b.toupper(0)<<c.toupper(0)<<endl;
      |                           ^~~~~~~
a.cc:8:41: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'toupper'
    8 |     cout<<a.toupper(0)<<b.toupper(0)<<c.toupper(0)<<endl;
      |                                         ^~~~~~~
Language: C++

#include <iostream>

int main()
{
  	std::string s1. s2. s3;
  	std::cin >> s1 >> s2 >> s3;
  	std::cout << s1.at(1) + 32 << s2.at(1) + 32 << s3.at(1) + 32;
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:23: error: expected initializer before '.' token
    5 |         std::string s1. s2. s3;
      |                       ^
a.cc:6:21: error: 's1' was not declared in this scope
    6 |         std::cin >> s1 >> s2 >> s3;
      |                     ^~
a.cc:6:27: error: 's2' was not declared in this scope
    6 |         std::cin >> s1 >> s2 >> s3;
      |                           ^~
a.cc:6:33: error: 's3' was not declared in this scope
    6 |         std::cin >> s1 >> s2 >> s3;
      |                                 ^~
Language: C++

#include <iostream>

int main()
{
  	string s1. s2. s3;
  	std::cin >> s1 >> s2 >> s3;
  	std::cout << s1.at(1) + 32 << s2.at(1) + 32 << s3.at(1) + 32;
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'string' was not declared in this scope
    5 |         string s1. s2. s3;
      |         ^~~~~~
a.cc:5:9: 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:6:21: error: 's1' was not declared in this scope
    6 |         std::cin >> s1 >> s2 >> s3;
      |                     ^~
a.cc:6:27: error: 's2' was not declared in this scope
    6 |         std::cin >> s1 >> s2 >> s3;
      |                           ^~
a.cc:6:33: error: 's3' was not declared in this scope
    6 |         std::cin >> s1 >> s2 >> s3;
      |                                 ^~
Language: C++

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

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


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

#include<bits/stdc++.h>
using namespace std;
#define rp(i,n) for(int i=0;i<n;i++)
#define rep(i,m,n) for(int i=m;i<=n;i++)
#define lrp(i,n) for(long long i=0;i<n;i++)
#define lrep(i,m,n) for(long long i=m;i<=n;i++)
#define ll long long
#define sort(a) sort(a.begin(),a.end())
#define reverse(a) reverse(a.begin(),a.end())
#define vi vector<int>
#define vl vector<long long>
#define pb push_back
#define abs(a,b) (a-b>0?a-b:b-a)

int main(){
    char a,b,c;
    cin >> a >> b >> c;
    char dif='A'-'a';
    cout << a.at(0)+dif << b.at(0)+dif << c.at(0)+dif << endl;
    return 0;
}








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

#include<bits/stdc++.h>
using namespace std;
#define rp(i,n) for(int i=0;i<n;i++)
#define rep(i,m,n) for(int i=m;i<=n;i++)
#define lrp(i,n) for(long long i=0;i<n;i++)
#define lrep(i,m,n) for(long long i=m;i<=n;i++)
#define ll long long
#define sort(a) sort(a.begin(),a.end())
#define reverse(a) reverse(a.begin(),a.end())
#define vi vector<int>
#define vl vector<long long>
#define pb push_back
#define abs(a,b) (a-b>0?a-b:b-a)

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








Compiler output:
a.cc: In function 'int main()':
a.cc:19:14: error: invalid types 'char[int]' for array subscript
   19 |     cout << a[0]+dif << b[0]+dif << c[0]+dif << endl;
      |              ^
a.cc:19:26: error: invalid types 'char[int]' for array subscript
   19 |     cout << a[0]+dif << b[0]+dif << c[0]+dif << endl;
      |                          ^
a.cc:19:38: error: invalid types 'char[int]' for array subscript
   19 |     cout << a[0]+dif << b[0]+dif << c[0]+dif << endl;
      |                                      ^
Language: C++

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

int main(){
string ans = “”;
for(int i = 0; i < 3; i++){
string s;
cin >> s;
char a;
a = s[0];
a -+ 32;
ans += a;
}
cout << ans << endl;
return 0;


Compiler output:
a.cc:5:14: error: extended character “ is not valid in an identifier
    5 | string ans = “”;
      |              ^
a.cc:5:14: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:5:14: error: '\U0000201c\U0000201d' was not declared in this scope
    5 | string ans = “”;
      |              ^~
a.cc:15:10: error: expected '}' at end of input
   15 | return 0;
      |          ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
string ans = “”;
for(int i = 0; i < 3; i++){
string s;
cin >> s;
char a;
a = s[0];
a -+ 32;
ans += a;
}
cout << ans << endl;
return 0;

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

#include <iostream>
#include <string>
using namespace std;
int main(){
  string a,b,c;
  cin>>a>>b>>c;
  a[0]=a[0]-32
  b[0]=b[0]-32
  c[0]=c[0]-32
  cout<<a[0]<<b[0]<<c[0]<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected ';' before 'b'
    7 |   a[0]=a[0]-32
      |               ^
      |               ;
    8 |   b[0]=b[0]-32
      |   ~
Language: C++

s1, s2, s3 = map(str, input().split())

print(s1[0].upper() + s2[0].upper() + s3[0].upper())

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected ',' or ';' before 'cout'
    7 |   cout<<(char)(a[0]+d)<<(char)(b[0]+d)<<(char)(c[0]+d)<<endl;
      |   ^~~~
Language: C++

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

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

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

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

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

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

  std::string s;
  s.push_back( a[ 0 ] );
  s.push_back( b[ 0 ] );
  s.push_back( c[ 0 ] );

  std::transform( s.cbegin(), s.cend(), s.begin(), toupper );

  std::cout << s << std::endl;
  return 0;
}


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

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

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

  std::string s;
  s.push_back( a[ 0 ] );
  s.push_back( b[ 0 ] );
  s.push_back( c[ 0 ] );

  std::transform( s.cbegin(), s.cend(), s.begin(), toupper );

  std::cout << s << std::endl;
  return 0;
}



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

using namespace std;

int main()
{
    string a,b,c,d,f,g;
    cin>>a>>b>>c;
    d = a[0] - 32;
    f = b[0] - 32;
    g = c[0] - 32;
    cout<<d<<f<<g<<endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'string' was not declared in this scope
    5 |     string a,b,c,d,f,g;
      |     ^~~~~~
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:5: 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:10: error: 'a' was not declared in this scope
    6 |     cin>>a>>b>>c;
      |          ^
a.cc:6:13: error: 'b' was not declared in this scope
    6 |     cin>>a>>b>>c;
      |             ^
a.cc:6:16: error: 'c' was not declared in this scope
    6 |     cin>>a>>b>>c;
      |                ^
a.cc:7:5: error: 'd' was not declared in this scope
    7 |     d = a[0] - 32;
      |     ^
a.cc:8:5: error: 'f' was not declared in this scope
    8 |     f = b[0] - 32;
      |     ^
a.cc:9:5: error: 'g' was not declared in this scope
    9 |     g = c[0] - 32;
      |     ^
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout<<d<<f<<g<<endl;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:20: error: 'endl' was not declared in this scope
   10 |     cout<<d<<f<<g<<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 <iostream>
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:
a.cc: In function 'int main()':
a.cc:6:9: error: 'transform' was not declared in this scope
    6 |         transform(a.begin(),a.end(),a.begin(), ::toupper);
      |         ^~~~~~~~~
Language: C++

#include <iostream>
#include <algorithm> 
#include <cctype>
#include <clocale>
using namespace std;

int main(){
  vector<string> s(3);
  for(int i = 0; i < 3; i++){
    cin >> s[i];
  }
  string ans;
  for(int i = 0; i < 3; i++){
    char c = s[i][0];
    ans += (char)(c-32);
  }
  cout << ans;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'vector' was not declared in this scope
    8 |   vector<string> s(3);
      |   ^~~~~~
a.cc:5:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    4 | #include <clocale>
  +++ |+#include <vector>
    5 | using namespace std;
a.cc:8:16: error: expected primary-expression before '>' token
    8 |   vector<string> s(3);
      |                ^
a.cc:8:18: error: 's' was not declared in this scope
    8 |   vector<string> s(3);
      |                  ^
Language: C++

#include <iostream>
#include <algorithm> 
#include <ctype>
#include <clocale>
using namespace std;

int main(){
  vector<string> s(3);
  for(int i = 0; i < 3; i++){
    cin >> s[i];
  }
  string ans;
  for(int i = 0; i < 3; i++){
    char c = s[i][0];
    ans += (char)(c-32);
  }
  cout << ans;
  return 0;
}

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

#include<cstdio>
int main(){
char a[10]={};
char b[10]={};
char c[10]={};
scanf("%s%s%s",a,b,c);
char s[3]={};
s[0]=a[0]+’A'-'a';
s[1]=b[0]+'A'-'a';
s[2]=c[0]+'A'-'a';
printf("%s",s);
return 0;
}

Compiler output:
a.cc:8:11: error: extended character ’ is not valid in an identifier
    8 | s[0]=a[0]+’A'-'a';
      |           ^
a.cc:8:17: warning: missing terminating ' character
    8 | s[0]=a[0]+’A'-'a';
      |                 ^
a.cc:8:17: error: missing terminating ' character
    8 | s[0]=a[0]+’A'-'a';
      |                 ^~
a.cc: In function 'int main()':
a.cc:8:11: error: '\U00002019A' was not declared in this scope
    8 | s[0]=a[0]+’A'-'a';
      |           ^~
Language: C++

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {
    String s1, s2, s3;

    public static void main(String args[]) {
        new Main().run();
    }

    void run() {
        FastReader sc = new FastReader();
        s1 = sc.next();
        s2 = sc.next();
        s3 = sc.next();
        solve();
    }

    void solve() {
        System.out.println(s1.substring(0, 1).toUpperCase() +
                s2.substring(0, 1).toUpperCase() +
                s3.substring(0, 1).toUpperCase());
    }

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements())
            {
                try
                {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException e)
                {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt()
        {
            return Integer.parseInt(next());
        }

        long nextLong()
        {
            return Long.parseLong(next());
        }

        double nextDouble()
        {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try
            {
                str = br.readLine();
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
            return str;
        }
    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.BufferedReader;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.IOException;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.io.InputStreamReader;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import java.util.StringTokenizer;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: expected unqualified-id before 'public'
    6 | public class Main {
      | ^~~~~~
Language: C++

#include<algorithm>
#include <bits/stdc++.h>
using namespace std;
int main(void){
	char ans[4],s[3][10],a[]="ABCDEFGHIJKLMNOPQRSTUVWXYZ",b[]="abcdefghijklmnopqrstuvwxyz";
	cin>>s[0]>>s[1]>>s[2];
	for(int i=0;i<a.size();i++){
      if(s[0][0]==b[i]) ans[0]=a[i];
      if(s[1][0]==b[i]) ans[1]=a[i];
      if(s[2][0]==b[i]) ans[2]=a[i];
    }
  	cout<<ans<<endl;
  	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: request for member 'size' in 'a', which is of non-class type 'char [27]'
    7 |         for(int i=0;i<a.size();i++){
      |                         ^~~~
Language: C++

#include<algorithm>
#include <bits/stdc++.h>
using namespace std;
int main(void){
	char ans[4],s[3][10],a[]="ABCDEFGHIJKLMNOPQRSTUVWXYZ",b[]="abcdefghijklmnopqrstuvwxyz";
	cin>>s[0]>>s[1]>>s[2];
	for(int i=0;i<a.size();i++){
      if(s[0][0]==b[i]) ans[0]=a[i];
      if(s[1][0]==b[i]) ans[1]=a[i];
      if(s[2][0]==b[i]) ans[2]=a[i];
    }
  	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: request for member 'size' in 'a', which is of non-class type 'char [27]'
    7 |         for(int i=0;i<a.size();i++){
      |                         ^~~~