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

#include <bits/stdc++.h>
#define REP(i, n) for(ll i = 0; i < (ll)n; i++)
#define FOR(i, a, b) for(ll i = (a); i < (ll)b; i++)
#define ALL(obj) (obj).begin(), (obj).end()
#define INF (1ll << 60)
#define sz(x) int(x.size())
using namespace std;
typedef long long ll;
typedef double db;
typedef string str;
typedef pair<ll, ll> p;
constexpr int MOD = 1000000007;
using ll = long long;
template <class T> inline bool chmin(T &a, T b) {
    if(a > b) {
        a = b;
        return true;
    }
    return false;
}
template <class T> inline bool chmax(T &a, T b) {
    if(a < b) {
        a = b;
        return true;
    }
    return false;
}

void print(const std::vector<int> &v) {
    std::for_each(v.begin(), v.end(), [](int x) { std::cout << x << " "; });
    std::cout << std::endl;
}

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

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

#include <stdio.h>

int yomisute(char str[],int i)
{
	while(str[i] != ' ')
	{
		i++;
	}
	i++;
	return i;
}

int main(void)
{
	int b_num,c_num;
	char a,b,c;
	char str[72];
	
	fgets(str,sizeof(str),stdin);
	a = str[0];
	
	b_num = yomisute(str,0);
	b = str[b_num];
	
	c_num = yomisute(str.b_num);
	c = str[c_num];
	
	printf("%c%c%c",a-32,b-32,c-32);
	
	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:25:29: error: request for member 'b_num' in something not a structure or union
   25 |         c_num = yomisute(str.b_num);
      |                             ^
main.c:25:17: error: too few arguments to function 'yomisute'
   25 |         c_num = yomisute(str.b_num);
      |                 ^~~~~~~~
main.c:3:5: note: declared here
    3 | int yomisute(char str[],int i)
      |     ^~~~~~~~
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <cmath>
#include <iomanip>
#include <algorithm>
using namespace std;
using ll = long long;

int main(){
    string s1, s2, s3;
    cin >> s1 >> s2 >> s3;
    transform(s1.cbegin(), s1.cend(), s1.begin(), towupper);
    transform(s2.cbegin(), s2.cend(), s2.begin(), towupper);
    transform(s3.cbegin(), s3.cend(), s3.begin(), towupper);
    cout << s1[0] << s2[0] << s3[0] << endl;
    return 0;
}
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <cmath>
#include <iomanip>
#include <algorithm>
using namespace std;
using ll = long long;

int main(){
    string s1, s2, s3;
    cin >> s1 >> s2 >> s3;
    transform(s1.cbegin(), s1.cend(), s1.begin(), towupper);
    transform(s2.cbegin(), s2.cend(), s2.begin(), towupper);
    transform(s3.cbegin(), s3.cend(), s3.begin(), towupper);
    cout << s1[0] << s2[0] << s3[0] << endl;
    return 0;
}


Compiler output:
a.cc:36:5: error: redefinition of 'int main()'
   36 | int main(){
      |     ^~~~
a.cc:14:5: note: 'int main()' previously defined here
   14 | 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';
    cout<a[0]+dif<<b[0]+dif<<c[0]+dif<<endl;
}


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

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

    char ans1=a[0]-32;
    char ans2=b[0]-32;
    char ans3=c[0]-32;
    
    cout<<x<<y<<z<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:11: error: 'x' was not declared in this scope
   15 |     cout<<x<<y<<z<<endl;
      |           ^
a.cc:15:14: error: 'y' was not declared in this scope
   15 |     cout<<x<<y<<z<<endl;
      |              ^
a.cc:15:17: error: 'z' was not declared in this scope
   15 |     cout<<x<<y<<z<<endl;
      |                 ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 'capitalize' was not declared in this scope; did you mean 'canonicalize'?
    7 | capitalize a.at(0), b.at(0), c.at(0);
      | ^~~~~~~~~~
      | canonicalize
Language: C++

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

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

Compiler output:
a.cc:7:9: error: extended character ’ is not valid in an identifier
    7 | int dif=’A’ - ’a’;
      |         ^
a.cc:7:9: error: extended character ’ is not valid in an identifier
a.cc:7:15: error: extended character ’ is not valid in an identifier
    7 | int dif=’A’ - ’a’;
      |               ^
a.cc:7:15: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:9: error: '\U00002019A\U00002019' was not declared in this scope
    7 | int dif=’A’ - ’a’;
      |         ^~~
a.cc:7:15: error: '\U00002019a\U00002019' was not declared in this scope
    7 | int dif=’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: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<stdio.h>
int main(){
  double a,b;
  scanf("%lf %lf", &a &b);
  if(a>b)
    printf("GREATER\n");

  else if(b>a)
    printf("LESS\n");

  else
    printf("EQUAL\n");

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:23: error: invalid operands to binary & (have 'double *' and 'double')
    4 |   scanf("%lf %lf", &a &b);
      |                    ~~ ^
      |                    |
      |                    double *
Language: C++

#include<bits/stdc++.h>
#include<boost/algorithm/string.hpp>
using namespace std;
 
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
string a, b, c;
cin >> a >> b >> c;
cout << boost::to_upper(a[0]) << boost::to_upper(b[0]) << boost::to_upper(c[0]) << "\n";
return 0;
}


Compiler output:
a.cc:2:9: fatal error: boost/algorithm/string.hpp: No such file or directory
    2 | #include<boost/algorithm/string.hpp>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
#include<boost>
using namespace std;
 
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
string a, b, c;
cin >> a >> b >> c;
cout << boost::to_upper(a[0]) << boost::to_upper(b[0]) << boost::to_upper(c[0]) << "\n";
return 0;
}


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

#include<bits/stdc++.h>
using namespace std;
 
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
string a, b, c;
cin >> a >> b >> c;
cout << boost::to_upper(a[0]) << boost::to_upper(b[0]) << boost::to_upper(c[0]) << "\n";
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'boost' has not been declared
   10 | cout << boost::to_upper(a[0]) << boost::to_upper(b[0]) << boost::to_upper(c[0]) << "\n";
      |         ^~~~~
a.cc:10:34: error: 'boost' has not been declared
   10 | cout << boost::to_upper(a[0]) << boost::to_upper(b[0]) << boost::to_upper(c[0]) << "\n";
      |                                  ^~~~~
a.cc:10:59: error: 'boost' has not been declared
   10 | cout << boost::to_upper(a[0]) << boost::to_upper(b[0]) << boost::to_upper(c[0]) << "\n";
      |                                                           ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
string a, b, c;
cin >> a >> b >> c;
cout << to_upper(a[0]) << to_upper(b[0]) << to_upper(c[0]) << "\n";
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'to_upper' was not declared in this scope; did you mean 'towupper'?
   10 | cout << to_upper(a[0]) << to_upper(b[0]) << to_upper(c[0]) << "\n";
      |         ^~~~~~~~
      |         towupper
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
 string a,b,c;
 cher d,e,f;
 cin>>a>>b>>c;
 cout<<a.at(0)<<b.at(0)<<c.at(0)<<endl;
 d=a.at(0)-0x20;
 e=b.at(0)-0x20;
 f=c.at(0)-0x20;
cout<<d<<e<<f<<endl;
}

		

Compiler output:
a.cc: In function 'int main()':
a.cc:5:2: error: 'cher' was not declared in this scope; did you mean 'char'?
    5 |  cher d,e,f;
      |  ^~~~
      |  char
a.cc:8:2: error: 'd' was not declared in this scope
    8 |  d=a.at(0)-0x20;
      |  ^
a.cc:9:2: error: 'e' was not declared in this scope
    9 |  e=b.at(0)-0x20;
      |  ^
a.cc:10:2: error: 'f' was not declared in this scope
   10 |  f=c.at(0)-0x20;
      |  ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'd' was not declared in this scope
    6 |   d=a.at(0)-0x20;
      |   ^
a.cc:7:3: error: 'e' was not declared in this scope
    7 |   e=b.at(0)-0x20;
      |   ^
a.cc:8:3: error: 'f' was not declared in this scope
    8 |   f=c.at(0)-0x20;
      |   ^
Language: C++

#include <stdio.h>
#include <string.h>
#include <iostream>
#include <sstream>
using namespace std;
int main(void){
    string words[3];
    for(int i=0; i<3; i++){
        cin >> words[i];
        transform(words[i].begin(), words[i].end(), words[i].begin(), ::toupper);
        cout << words[i][0];
    }
}

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

#include <stdio.h>
#include <string.h>
#include <iostream>
using namespace std;
int main(void){
    string words[3];
    for(int i=0; i<3; i++){
        cin >> words[i];
        transform(words[i].begin(), words[i].end(), words[i].begin(), ::toupper);
        cout << words[i][0];
    }
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s1,s2,s3;
  cin >>s1>>s2>>s3;
  string s="";
  s=s+s1[0]+s2[0]+s3[0];
  transform (s.begin (), s.end (), s.begin (), toupper);
  cout << s << endl;
}


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: invalid types 'char[int]' for array subscript
    6 | cout <<toupper (s1[0])<<toupper (s2[0])<<toupper (s3[0]);
      |                   ^
a.cc:6:36: error: invalid types 'char[int]' for array subscript
    6 | cout <<toupper (s1[0])<<toupper (s2[0])<<toupper (s3[0]);
      |                                    ^
a.cc:6:53: error: invalid types 'char[int]' for array subscript
    6 | cout <<toupper (s1[0])<<toupper (s2[0])<<toupper (s3[0]);
      |                                                     ^
Language: C++

string n,Z;
int M;
getline(cin,n);
char c=' ';
for(int i=0;i<n.length();i++){
	if(i==0){
	n[i]=toupper(n[i]);
	M=1;
	cout<<n[i];}
	if(M==1){
		break;
	}
}
	for(int i=0;i<n.length();i++){
	if(n[i]==c){
	n[i+1]=toupper(n[i+1]);
cout<<n[i+1];}
}
}

Compiler output:
a.cc:1:1: error: 'string' does not name a type
    1 | string n,Z;
      | ^~~~~~
a.cc:3:8: error: expected constructor, destructor, or type conversion before '(' token
    3 | getline(cin,n);
      |        ^
a.cc:5:1: error: expected unqualified-id before 'for'
    5 | for(int i=0;i<n.length();i++){
      | ^~~
a.cc:5:13: error: 'i' does not name a type
    5 | for(int i=0;i<n.length();i++){
      |             ^
a.cc:5:26: error: 'i' does not name a type
    5 | for(int i=0;i<n.length();i++){
      |                          ^
a.cc:14:9: error: expected unqualified-id before 'for'
   14 |         for(int i=0;i<n.length();i++){
      |         ^~~
a.cc:14:21: error: 'i' does not name a type
   14 |         for(int i=0;i<n.length();i++){
      |                     ^
a.cc:14:34: error: 'i' does not name a type
   14 |         for(int i=0;i<n.length();i++){
      |                                  ^
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    char s[100];
    char c[100],l[100];
    cin>>c>>s>>l;
    if(c[0]>='a' && c[0]<='z')
    c[0]-=32;
    if(s[0]>='a' && s[0]<='z')
    s[0]-=32;
    if(l[0]>='a' &&l[0]<='z')
    l[0]-=32;
    cout<<c[0]<<s[0]<<v[0];
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:23: error: 'v' was not declared in this scope
   14 |     cout<<c[0]<<s[0]<<v[0];
      |                       ^
Language: C++

#include<iostream>
#include<string>
#include<afx.h>
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);*/
  a.MakeUpper();
  b.MakeUpper();
  c.MakeUpper();
  cout<<a.at(0)<<b.at(0)<<c.at(0)<<endl;
}

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

#include<bits/stdc++.h>
#include<afx.h>
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);*/
  a.MakeUpper();
  b.MakeUpper();
  c.MakeUpper();
  cout<<a.at(0)<<b.at(0)<<c.at(0)<<endl;
}

Compiler output:
a.cc:2:9: fatal error: afx.h: No such file or directory
    2 | #include<afx.h>
      |         ^~~~~~~
compilation terminated.
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.begin(),toupper);
  transform(b.begin(),b.end(),b.begin(),toupper);
  transform(c.begin(),c.end(),c.begin(),toupper);*/
  a.MakeUpper();
  b.MakeUpper();
  c.MakeUpper();
  cout<<a.at(0)<<b.at(0)<<c.at(0)<<endl;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'toupr' was not declared in this scope; did you mean 'toupper'?
    7 |   cout<<toupr(a.at(0))<<toupr(b.at(0))<<toupr(c.at(0))<<endl;
      |         ^~~~~
      |         toupper
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    char s[100];
    char c[100],r[100];
    cin>>c>>s>>r;
    if(c[0]>='a' && c[0]<='z')
    c[0]-=32;
    if(s[0]>='a' && s[0]<='z')
    s[0]-=32;
    if(r[0]>='a' && r[0]<='z')
    v[0]-=32;
    cout<<c[0]<<s[0]<<r[0];
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'v' was not declared in this scope
   13 |     v[0]-=32;
      |     ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:42: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |     cout<<s1[0]+=32<<s2[0]+=32<<s3[0]+=32<<endl;
      |                                        ~~^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:33: error: expected primary-expression before 'char'
    6 |         cout<<(char)(s1[0]-32)<<char)(s2[0]-32)<<char)(s3[0]-32);
      |                                 ^~~~
Language: C++

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:4:10: error: extended character ’ is not valid in an identifier
    4 | char dif=’A’ - ’a’;
      |          ^
a.cc:4:10: error: extended character ’ is not valid in an identifier
a.cc:4:16: error: extended character ’ is not valid in an identifier
    4 | char dif=’A’ - ’a’;
      |                ^
a.cc:4:16: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:2:1: error: 'string' was not declared in this scope
    2 | string a, b, c;
      | ^~~~~~
a.cc:3:1: error: 'cin' was not declared in this scope
    3 | cin >> a >> b >> c;
      | ^~~
a.cc:3:8: error: 'a' was not declared in this scope
    3 | cin >> a >> b >> c;
      |        ^
a.cc:3:13: error: 'b' was not declared in this scope
    3 | cin >> a >> b >> c;
      |             ^
a.cc:3:18: error: 'c' was not declared in this scope
    3 | cin >> a >> b >> c;
      |                  ^
a.cc:4:10: error: '\U00002019A\U00002019' was not declared in this scope
    4 | char dif=’A’ - ’a’;
      |          ^~~
a.cc:4:16: error: '\U00002019a\U00002019' was not declared in this scope
    4 | char dif=’A’ - ’a’;
      |                ^~~
a.cc:5:1: error: 'printf' was not declared in this scope
    5 | printf("%c%c%c\n", a[0] + dif, b[0] + dif, c[0] + dif);
      | ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
Language: C++

#include<bits/stdc++.h>
1;5202;0cusing namespace std;
#define REP(i, n) for(int i = 0; i < (int)n; i++)
const int MOD = 1000000007;
// long long a;
int main(){
  string a,b,c;
  cin >> a>>b>>c;
  a[0] -= 32;
  b[0] -= 32;
  c[0] -= 32;
  cout << a[0] << b[0] << c[0] << endl;
}


Compiler output:
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 1;5202;0cusing namespace std;
      | ^
a.cc:2:3: error: expected unqualified-id before numeric constant
    2 | 1;5202;0cusing namespace std;
      |   ^~~~
a.cc:2:8: error: expected unqualified-id before numeric constant
    2 | 1;5202;0cusing namespace std;
      |        ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'string' was not declared in this scope
    7 |   string a,b,c;
      |   ^~~~~~
a.cc:7:3: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 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/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin >> a>>b>>c;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:10: error: 'a' was not declared in this scope
    8 |   cin >> a>>b>>c;
      |          ^
a.cc:8:13: error: 'b' was not declared in this scope
    8 |   cin >> a>>b>>c;
      |             ^
a.cc:8:16: error: 'c' was not declared in this scope
    8 |   cin >> a>>b>>c;
      |                ^
a.cc:12:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   cout << a[0] << b[0] << c[0] << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:35: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |   cout << a[0] << b[0] << c[0] << endl;
      |                                   ^~~~
      |                                   std::endl
In file included from /usr/include/c++/14/istream:41,
                 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:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: no matching function for call to 'transform(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, <unresolved overloaded function type>)'
    8 |   transform(s1.at(0),s2.at(0),s3.at(0),toupper);
      |   ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
 4209 |     transform(_InputIterator __first, _InputIterator __last,
      |     ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note:   template argument deduction/substitution failed:
a.cc:8:12: note:   couldn't deduce template parameter '_UnaryOperation'
    8 |   transform(s1.at(0),s2.at(0),s3.at(0),toupper);
      |   ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
 4247 |     transform(_InputIterator1 __first1, _InputIterator1 __last1,
      |     ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note:   candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
  156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
      | ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note:   candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
  162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
      | ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note:   candidate expects 6 arguments, 4 provided
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected unqualified-id before '(' token
    8 |   transform(s1.(0),s2.(0),s3.(0),toupper);
      |                ^
a.cc:8:23: error: expected unqualified-id before '(' token
    8 |   transform(s1.(0),s2.(0),s3.(0),toupper);
      |                       ^
a.cc:8:30: error: expected unqualified-id before '(' token
    8 |   transform(s1.(0),s2.(0),s3.(0),toupper);
      |                              ^
a.cc:9:12: error: expected unqualified-id before '(' token
    9 |   cout<<s1.(0)<<s2(0)<<s3(0)<<endl;
      |            ^
a.cc:9:19: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
    9 |   cout<<s1.(0)<<s2(0)<<s3(0)<<endl;
      |                 ~~^~~
a.cc:9:26: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
    9 |   cout<<s1.(0)<<s2(0)<<s3(0)<<endl;
      |                        ~~^~~
Language: C++

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

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


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

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string s;
      |   ^~~~~~
a.cc:4:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> s;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:10: error: 's' was not declared in this scope
    6 |   cin >> s;
      |          ^
a.cc:7:3: error: 'transform' was not declared in this scope
    7 |   transform (s.begin (), s.end (), s.begin (), toupper);
      |   ^~~~~~~~~
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout << s[0];
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   cout << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:11: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   cout << endl;
      |           ^~~~
      |           std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string s1, s2 , s3;
  cin >> s1 >> s2 >> s3;

  string str1 = s1;
  string str2 = s2;
  string str3 = s3;
  
  char a = str1.at(0);
  char b = str2.at(0);
  char c = str3.at(0);
  
  transform(str1.at(0),atr2.at(0),str3.at(0), troupper)
  
	cout << str1.at(0) << str2.at(0) << str3.at(0) << endl;
	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:24: error: 'atr2' was not declared in this scope; did you mean 'str2'?
   16 |   transform(str1.at(0),atr2.at(0),str3.at(0), troupper)
      |                        ^~~~
      |                        str2
a.cc:16:47: error: 'troupper' was not declared in this scope; did you mean 'toupper'?
   16 |   transform(str1.at(0),atr2.at(0),str3.at(0), troupper)
      |                                               ^~~~~~~~
      |                                               toupper
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string s1, s2 , s3;
  cin >> s1 >> s2 >> s3;

  string str1 = s1;
  string str2 = s2;
  string str3 = s3;
  
  char a = str1.at(0)
  char b = str2.at(0)
  char c = str3.at(0)
  
	cout << str1.at(0) << str2.at(0) << s3.at(0) << endl;
	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: expected ',' or ';' before 'char'
   13 |   char b = str2.at(0)
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string s1, s2 , s3;
  cin >> s1 >> s2 >> s3;

	
  transform (s1.at(0), s2.at(0), s3.at(0), toupper);
  
	cout << s1.at(0)<<s2.at(0)<<s3.at(0)<< endl;
	
}

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

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

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

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

int main() {
  string a, b, c;
  cin >> a >> b >> c;
  vector<char> s = {'a','b','c','d','e','f','g','h','i','j','k','l','m'
    ,'n','o','p','q','r','s','t','u','v','w','x','y','z'};
  vector<char> S = {'A','B','C','D','E','F','G','H','I','J','K','L','M'
    ,'N','O','P','Q','R''S','T','U','V','W','X','Y','Z'};
  
  for (int i = 0; i < 25; i++) {
  	if (a[0] == s[i]) {
    	a = S[i];
        break;
    }      
  }
  for (int i = 0; i < 25; i++) {
  	if (b[0] == s[i]) {
    	b = S[i];
        break;
    }
  }
    for (int i = 0; i < 25; i++) {
  	if (c[0] == s[i]) {
    	c = S[i];
        break;
    }
  }
  cout << a + b + c << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: expected '}' before 'S'
   10 |     ,'N','O','P','Q','R''S','T','U','V','W','X','Y','Z'};
      |                         ^~~
a.cc:9:20: note: to match this '{'
    9 |   vector<char> S = {'A','B','C','D','E','F','G','H','I','J','K','L','M'
      |                    ^
a.cc:10:25: error: expected ',' or ';' before 'S'
   10 |     ,'N','O','P','Q','R''S','T','U','V','W','X','Y','Z'};
      |                         ^~~
a.cc: At global scope:
a.cc:12:3: error: expected unqualified-id before 'for'
   12 |   for (int i = 0; i < 25; i++) {
      |   ^~~
a.cc:12:19: error: 'i' does not name a type
   12 |   for (int i = 0; i < 25; i++) {
      |                   ^
a.cc:12:27: error: 'i' does not name a type
   12 |   for (int i = 0; i < 25; i++) {
      |                           ^
a.cc:18:3: error: expected unqualified-id before 'for'
   18 |   for (int i = 0; i < 25; i++) {
      |   ^~~
a.cc:18:19: error: 'i' does not name a type
   18 |   for (int i = 0; i < 25; i++) {
      |                   ^
a.cc:18:27: error: 'i' does not name a type
   18 |   for (int i = 0; i < 25; i++) {
      |                           ^
a.cc:24:5: error: expected unqualified-id before 'for'
   24 |     for (int i = 0; i < 25; i++) {
      |     ^~~
a.cc:24:21: error: 'i' does not name a type
   24 |     for (int i = 0; i < 25; i++) {
      |                     ^
a.cc:24:29: error: 'i' does not name a type
   24 |     for (int i = 0; i < 25; i++) {
      |                             ^
a.cc:30:3: error: 'cout' does not name a type
   30 |   cout << a + b + c << endl;
      |   ^~~~
a.cc:31:1: error: expected declaration before '}' token
   31 | }
      | ^
Language: C++

#include<bits/stdc++.h>
#include <math.h>
#include<iostream>
#include <string>
using namespace std;
typedef long long ll;
#define pb pushback
#define fr(i,n) for(int i=0;i<n;i++)
#define ifr(i,n) for(int i=n-1;i>=0;i--)


int main() {
    string x,y,z;
	cin >> x>> y>> z;
    string ans="";
  　ans += x[0]-32;
    ans += y[0]-32;
    ans += z[0]-32;
    
    cout << ans << endl;
}


Compiler output:
a.cc:16:3: error: extended character 　 is not valid in an identifier
   16 |   　ans += x[0]-32;
      |   ^
a.cc: In function 'int main()':
a.cc:16:3: error: '\U00003000ans' was not declared in this scope
   16 |   　ans += x[0]-32;
      |   ^~~~~
Language: C++

#include<bits/stdc++.h>
#include <math.h>
#include<iostream>
#include <string>
using namespace std;
typedef long long ll;
#define pb pushback
#define fr(i,n) for(int i=0;i<n;i++)
#define ifr(i,n) for(int i=n-1;i>=0;i--)


int main() {
    int x,y,z;
	cin >> x>> y>> z;
    string ans;
    
    cout << x[0]-32 <<y[0]-32 <<z[0]-32 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:14: error: invalid types 'int[int]' for array subscript
   17 |     cout << x[0]-32 <<y[0]-32 <<z[0]-32 << endl;
      |              ^
a.cc:17:24: error: invalid types 'int[int]' for array subscript
   17 |     cout << x[0]-32 <<y[0]-32 <<z[0]-32 << endl;
      |                        ^
a.cc:17:34: error: invalid types 'int[int]' for array subscript
   17 |     cout << x[0]-32 <<y[0]-32 <<z[0]-32 << endl;
      |                                  ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb pushback
#define fr(i,n) for(int i=0;i<n;i++)
#define ifr(i,n) for(int i=n-1;i>=0;i--)

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