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

#include<bits/stdc++.h>
#include <algorithm>
#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--)
template <typename T_char>
T_char ToUpper (T_char cX) { return toupper(cX); }

int main() {
    string x,y,z;
	cin >> x>> y>> z;
    string ans;
  　transform (x.begin (), x.end (), x.begin (), ToUpper<char>);
    transform (y.begin (), y.end (), y.begin (), ToUpper<char>);
    transform (z.begin (), z.end (), z.begin (), ToUpper<char>);
      cout <<x.substr(0, 1) <<y.substr(0, 1)<<z.substr(0, 1) << endl;
}


Compiler output:
a.cc:16:3: error: extended character 　 is not valid in an identifier
   16 |   　transform (x.begin (), x.end (), x.begin (), ToUpper<char>);
      |   ^
a.cc: In function 'int main()':
a.cc:16:3: error: '\U00003000transform' was not declared in this scope
   16 |   　transform (x.begin (), x.end (), x.begin (), ToUpper<char>);
      |   ^~~~~~~~~~~
Language: C

#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
 
using namespace std;
 
int main(){
    int n;
    cin >> n;
    long long a[n];
    for(int i = 0; i < n; i++)cin >> a[i];
    
 
    long long sum = a[0];
    long long ans = 0;
    if(sum == 0){
        sum = 1;
        ans++;
    }
    for(int i = 1; i < n; i++){
        long long  tmp = sum + a[i];
        if(sum > 0 && tmp > 0){
            ans += tmp+1;
            sum = -1;
        }
        else if(sum < 0 && tmp < 0){
            ans += -tmp+1;
            sum = 1;
        }
        else if(tmp == 0){
            ans++;
            if(sum < 0)sum = 1;
            else sum = -1;
        }
        else sum = tmp;
    }

    sum = a[0];
    long long ans2 = 0;
    if(sum == 0){
        sum = 1;
        ans2++;
    }
    else {
        sum = -1*a[0]/abs(a[0]);
        ans2 = abs(a[0])+1;
    }

    for(int i = 1; i < n; i++){
        long long  tmp = sum + a[i];
        if(sum > 0 && tmp > 0){
            ans2 += tmp+1;
            sum = -1;
        }
        else if(sum < 0 && tmp < 0){
            ans2 += -tmp+1;
            sum = 1;
        }
        else if(tmp == 0){
            ans2++;
            if(sum < 0)sum = 1;
            else sum = -1;
        }
        else sum = tmp;
    }
 
 
    
    cout << min(ans2, ans);
}

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

#include <iostream>
#include <string>
#include <iomanip>
#include <ios>
using namespace std;
int main(void){
  string a,b,c;
  cin >> a >> b >> c;
  
  cout << a[0].upcase << b[0].upcase << c[0].upcase << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: request for member 'upcase' in 'a.std::__cxx11::basic_string<char>::operator[](0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
   10 |   cout << a[0].upcase << b[0].upcase << c[0].upcase << endl;
      |                ^~~~~~
a.cc:10:31: error: request for member 'upcase' in 'b.std::__cxx11::basic_string<char>::operator[](0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
   10 |   cout << a[0].upcase << b[0].upcase << c[0].upcase << endl;
      |                               ^~~~~~
a.cc:10:46: error: request for member 'upcase' in 'c.std::__cxx11::basic_string<char>::operator[](0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
   10 |   cout << a[0].upcase << b[0].upcase << c[0].upcase << endl;
      |                                              ^~~~~~
Language: C++

#include<iostream>
#include<string>
#include<typeinfo>
#include<vector>
#include<algorithm>
#include<map>
#include<iomanip>
using namespace std;
int main()
{
	string a,b,c;
  	cin >> a >> b >> c;
    char dif = ’A ’ - ’a ’;
  	cout << a+dif << b+dif << c+dif << endl;
	return 0;
}

Compiler output:
a.cc:13:16: error: extended character ’ is not valid in an identifier
   13 |     char dif = ’A ’ - ’a ’;
      |                ^
a.cc:13:19: error: extended character ’ is not valid in an identifier
   13 |     char dif = ’A ’ - ’a ’;
      |                   ^
a.cc:13:23: error: extended character ’ is not valid in an identifier
   13 |     char dif = ’A ’ - ’a ’;
      |                       ^
a.cc:13:26: error: extended character ’ is not valid in an identifier
   13 |     char dif = ’A ’ - ’a ’;
      |                          ^
a.cc: In function 'int main()':
a.cc:13:16: error: '\U00002019A' was not declared in this scope
   13 |     char dif = ’A ’ - ’a ’;
      |                ^~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  string a, b, c;
  cin >> a >> b >> c;
  cout << toupper(a[0]) << touppe(b[0]) << toupper(c[0]) << '\n';
  return 0;
}

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

#include<bits/stdc++>
using namespace std;
int main() {
	string s1, s2, s3;
	cin >> s1 >> s2 >> s3;
	printf("%c%c%c", toupper(s1[0]), toupper(s2[0]), toupper(s3[0]));

}

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

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


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

int main(void){
  char S1[11];
  char S2[11];
  char S3[11];
  scanf("%s %s %s",S1,S2,S3);
  printf("%c%c%c",S1[0]-0x20,S2[0]-0x20,S3[0]-0x20);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'scanf' was not declared in this scope
    5 |   scanf("%s %s %s",S1,S2,S3);
      |   ^~~~~
a.cc:6:3: error: 'printf' was not declared in this scope
    6 |   printf("%c%c%c",S1[0]-0x20,S2[0]-0x20,S3[0]-0x20);
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void){
Language: C++

#include<iostream>
#include<string>
using namespace std;
string a, b, c;
int main(){
  cin >> a >> b >> c;
  cout << toupper(*a.begin())
    << toupper(*b.begin())
    << toupper(*c.behin())
    << endl;
  return 0;
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'behin'; did you mean 'begin'?
    9 |     << toupper(*c.behin())
      |                   ^~~~~
      |                   begin
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++

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"
using namespace std;

int main(){
  str a,b,c;
  char x,y,z;
  cin >> a >> b >> c;
  x=a.front();
  y=b.front();
  z=c.front();
  cout << x-32 << y-32 << z-32 << endl;
}

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

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

int main(){
  str a,b,c;
  char x,y,z;
  cin >> a >> b >> c;
  x=a.front();
  y=b.front();
  z=c.front();
  cout << x-0x20 << y-0x20 << z-0x20 << endl;
}

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

#include "bits/stdc++.h"
using namespace std;
int main(void){
  char a[10],b[10],c[10],r[3];
  cin >> a >> b >> c;
  r[0] = a[0];
  r[1] = b[0];
  r[2] = c[0];
    r = toupper(r);
  cout << r << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: no matching function for call to 'toupper(char [3])'
    9 |     r = toupper(r);
      |         ~~~~~~~^~~
In file included from /usr/include/c++/14/cctype:42,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:35,
                 from a.cc:1:
/usr/include/ctype.h:125:12: note: candidate: 'int toupper(int)' (near match)
  125 | extern int toupper (int __c) __THROW;
      |            ^~~~~~~
/usr/include/ctype.h:125:12: note:   conversion of argument 1 would be ill-formed:
a.cc:9:17: error: invalid conversion from 'char*' to 'int' [-fpermissive]
    9 |     r = toupper(r);
      |                 ^
      |                 |
      |                 char*
In file included from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/istream:40,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/bits/locale_facets.h:2687:5: note: candidate: 'template<class _CharT> _CharT std::toupper(_CharT, const locale&)'
 2687 |     toupper(_CharT __c, const locale& __loc)
      |     ^~~~~~~
/usr/include/c++/14/bits/locale_facets.h:2687:5: note:   candidate expects 2 arguments, 1 provided
Language: C++

#include "bits/stdc++.h"
using namespace std;
int main(void){
  char a[10],b[10],c[10],r[3];
  cin >> a >> b >> c;
  r[0] = a[0];
  r[1] = b[0];
  r[2] = c[0];
  for (int i = 0;i < 3;i++){
    StrToUpper(r[i]);
  }
  cout << r << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'StrToUpper' was not declared in this scope; did you mean 'toupper'?
   10 |     StrToUpper(r[i]);
      |     ^~~~~~~~~~
      |     toupper
Language: C++

#include "bits/stdc++.h"
using namespace std;
int main(void){
  char a[10],b[10],c[10],r[3];
  cin >> a >> b >> c;
  r[0] = a[0];
  r[1] = b[0];
  r[2] = c[0];
  StrToUpper(r);
  cout << r << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'StrToUpper' was not declared in this scope; did you mean 'toupper'?
    9 |   StrToUpper(r);
      |   ^~~~~~~~~~
      |   toupper
Language: C++

#include "bits/stdc++.h"
using namespace std;
int main(void){
  char a[10],b[10],c[10],r[3];
  cin >> a >> b >> c;
  r[0] = a[0];
  r[1] = b[0];
  r[2] = c[0];
  for (int i = 0;i < 3;i++){
    StrToUpper(char r[i]);
  }
  cout << r << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected primary-expression before 'char'
   10 |     StrToUpper(char r[i]);
      |                ^~~~
a.cc:10:5: error: 'StrToUpper' was not declared in this scope; did you mean 'toupper'?
   10 |     StrToUpper(char r[i]);
      |     ^~~~~~~~~~
      |     toupper
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  string a,b,c;
  cin>>a>>b>>c;
  char i=toupper(a[0]),j=toupper(b[0]),k=toupper(c[0])
  cout<<i<<j<<k;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'cout'
    8 |   cout<<i<<j<<k;
      |   ^~~~
Language: C++

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

int main() {
	int 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.at(0) << b.at(0) << c.at(0) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: request for member 'begin' in 'a', which is of non-class type 'int'
    9 |         transform(a.begin(), a.end(), a.begin() ,::toupper);
      |                     ^~~~~
a.cc:9:32: error: request for member 'end' in 'a', which is of non-class type 'int'
    9 |         transform(a.begin(), a.end(), a.begin() ,::toupper);
      |                                ^~~
a.cc:9:41: error: request for member 'begin' in 'a', which is of non-class type 'int'
    9 |         transform(a.begin(), a.end(), a.begin() ,::toupper);
      |                                         ^~~~~
a.cc:10:21: error: request for member 'begin' in 'b', which is of non-class type 'int'
   10 |         transform(b.begin(), b.end(), b.begin() ,::toupper);
      |                     ^~~~~
a.cc:10:32: error: request for member 'end' in 'b', which is of non-class type 'int'
   10 |         transform(b.begin(), b.end(), b.begin() ,::toupper);
      |                                ^~~
a.cc:10:41: error: request for member 'begin' in 'b', which is of non-class type 'int'
   10 |         transform(b.begin(), b.end(), b.begin() ,::toupper);
      |                                         ^~~~~
a.cc:11:21: error: request for member 'begin' in 'c', which is of non-class type 'int'
   11 |         transform(c.begin(), c.end(), c.begin() ,::toupper);
      |                     ^~~~~
a.cc:11:32: error: request for member 'end' in 'c', which is of non-class type 'int'
   11 |         transform(c.begin(), c.end(), c.begin() ,::toupper);
      |                                ^~~
a.cc:11:41: error: request for member 'begin' in 'c', which is of non-class type 'int'
   11 |         transform(c.begin(), c.end(), c.begin() ,::toupper);
      |                                         ^~~~~
a.cc:13:19: error: request for member 'at' in 'a', which is of non-class type 'int'
   13 |         cout << a.at(0) << b.at(0) << c.at(0) << endl;
      |                   ^~
a.cc:13:30: error: request for member 'at' in 'b', which is of non-class type 'int'
   13 |         cout << a.at(0) << b.at(0) << c.at(0) << endl;
      |                              ^~
a.cc:13:41: error: request for member 'at' in 'c', which is of non-class type 'int'
   13 |         cout << a.at(0) << b.at(0) << c.at(0) << endl;
      |                                         ^~
Language: C++

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

int main() {
	string s1, s2, s3;
	cin >> s1 >> s2 >> s3;
	
	string result =s1.substr(0,1)+s2.substr(1,1)+s3.substr(2,1);
	
	transform(result.begin(), result.end(), result.begin(), ::toupper);
	cout << result;
	cout << endl;
	
	return 0;
}

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

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

int main() {
	string s1, s2, s3;
	cin >> s1 >> s2 >> s3;
	
	string result =s1.substr(0,1)+s2.(1,1)+s3.substr(2,1);
	
	transform(result.begin(), result.end(), result.begin(), ::toupper);
	cout << result;
	cout << endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:42: error: expected unqualified-id before '(' token
    9 |         string result =s1.substr(0,1)+s2.(1,1)+s3.substr(2,1);
      |                                          ^
a.cc:11:9: error: 'transform' was not declared in this scope
   11 |         transform(result.begin(), result.end(), result.begin(), ::toupper);
      |         ^~~~~~~~~
Language: C++

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

int main() {
	string s1, s2, s3;
	cin >> s1 >> s2 >> s3;
	
	string result =s1.substr(0,1)+s2.substr(1,1)+s3.substr(2,1);
	
	transform(result.begin(), result.end(), result.begin(), ::toupper)
	cout << result;
	cout << endl;
	
	return 0;
}

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

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

int main() {
	string s1, s2, s3;
	cin >> s1 >> s2 >> s3;
	
	string result =s1.substr(0,1)+s2.(1,1)+s3.substr(2,1);
	
	transform(result.begin(), result.end(), result.begin(), ::toupper)
	cout << result;
	cout << endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:42: error: expected unqualified-id before '(' token
    9 |         string result =s1.substr(0,1)+s2.(1,1)+s3.substr(2,1);
      |                                          ^
a.cc:11:9: error: 'transform' was not declared in this scope
   11 |         transform(result.begin(), result.end(), result.begin(), ::toupper)
      |         ^~~~~~~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < n; ++i)
#define repR(i, n) for(int i = n; i >= 0; ++i)
#define FDS(i, n) for(int i = 0; i < n; ++i)
#define FDSR(i, n) for(int i = n; i >= 0; ++i)
#define FOR(i, m, n) for(int i = m; i < n; ++i)
#define FORR(i, m, n) for(int i = m;i >= n;--i)
#define VSORT(v) sort(v.begin(), v.end());
#define INF 999999999
#define itn int
#define ednl endl
using namespace std;
typedef long long ll;
int main(){
	string a,b,c;
	cin>>a>>b>>c;
	char A,B,C;
	A=a.[0]+('A'-'a');
	B=b.[0]+('A'-'a');
	C=a.[0]+('A'-'a');
	cout<<A<<B<<C<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:13: error: expected unqualified-id before '[' token
   18 |         A=a.[0]+('A'-'a');
      |             ^
a.cc:19:13: error: expected unqualified-id before '[' token
   19 |         B=b.[0]+('A'-'a');
      |             ^
a.cc:20:13: error: expected unqualified-id before '[' token
   20 |         C=a.[0]+('A'-'a');
      |             ^
Language: C++

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

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:6:1: error: 'string' was not declared in this scope
    6 | string a , b , c ;
      | ^~~~~~
a.cc:6:1: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:7:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 | cin >> a >> b >> c ;
      | ^~~
      | std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:8: error: 'a' was not declared in this scope
    7 | cin >> a >> b >> c ;
      |        ^
a.cc:7:13: error: 'b' was not declared in this scope
    7 | cin >> a >> b >> c ;
      |             ^
a.cc:7:18: error: 'c' was not declared in this scope
    7 | cin >> a >> b >> c ;
      |                  ^
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 <iostream>
#include <algorithm>

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:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <algorithm>

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

Compiler output:
a.cc:7:12: error: extended character ’ is not valid in an identifier
    7 | char dif = ’A ’ - ’a ’;
      |            ^
a.cc:7:15: error: extended character ’ is not valid in an identifier
    7 | char dif = ’A ’ - ’a ’;
      |               ^
a.cc:7:19: error: extended character ’ is not valid in an identifier
    7 | char dif = ’A ’ - ’a ’;
      |                   ^
a.cc:7:22: error: extended character ’ is not valid in an identifier
    7 | char dif = ’A ’ - ’a ’;
      |                      ^
a.cc: In function 'int main()':
a.cc:5:1: error: 'string' was not declared in this scope
    5 | string a , b , c ;
      | ^~~~~~
a.cc:5:1: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin >> a >> b >> c ;
      | ^~~
      | std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:8: 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:18: error: 'c' was not declared in this scope
    6 | cin >> a >> b >> c ;
      |                  ^
a.cc:7:12: error: '\U00002019A' was not declared in this scope
    7 | char dif = ’A ’ - ’a ’;
      |            ^~
a.cc:8:9: warning: unknown escape sequence: '\040'
    8 | printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif );
      |         ^~~~~~~~~~~~~~~~~~
Language: C

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:
main.c: In function 'main':
main.c:2:1: error: unknown type name 'string'
    2 | string a , b , c ;
      | ^~~~~~
main.c:3:1: error: 'cin' undeclared (first use in this function)
    3 | cin >> a >> b >> c ;
      | ^~~
main.c:3:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:12: error: stray '\342' in program
    4 | char dif = <U+2019>A <U+2019> - <U+2019>a <U+2019>;
      |            ^~~~~~~~
main.c:4:15: error: stray '\342' in program
    4 | char dif = <U+2019>A <U+2019> - <U+2019>a <U+2019>;
      |                      ^~~~~~~~
main.c:4:13: error: 'A' undeclared (first use in this function)
    4 | char dif = ’A ’ - ’a ’;
      |             ^
main.c:4:19: error: stray '\342' in program
    4 | char dif = <U+2019>A <U+2019> - <U+2019>a <U+2019>;
      |                                 ^~~~~~~~
main.c:4:22: error: stray '\342' in program
    4 | char dif = <U+2019>A <U+2019> - <U+2019>a <U+2019>;
      |                                           ^~~~~~~~
main.c:5:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 | printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif );
      | ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | int main (){
main.c:5:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    5 | printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif );
      | ^~~~~~
main.c:5:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:28: warning: unknown escape sequence: '\040'
    5 | printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif );
      |                            ^
main.c:5:32: error: subscripted value is neither array nor pointer nor vector
    5 | printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif );
      |                                ^
main.c:5:46: error: subscripted value is neither array nor pointer nor vector
    5 | printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif );
      |                                              ^
main.c:5:60: error: subscripted value is neither array nor pointer nor vector
    5 | printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif );
      |                                                            ^
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:12: error: extended character ’ is not valid in an identifier
    4 | char dif = ’A ’ - ’a ’;
      |            ^
a.cc:4:15: error: extended character ’ is not valid in an identifier
    4 | char dif = ’A ’ - ’a ’;
      |               ^
a.cc:4:19: error: extended character ’ is not valid in an identifier
    4 | char dif = ’A ’ - ’a ’;
      |                   ^
a.cc:4:22: error: extended character ’ is not valid in an identifier
    4 | char dif = ’A ’ - ’a ’;
      |                      ^
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:12: error: '\U00002019A' was not declared in this scope
    4 | char dif = ’A ’ - ’a ’;
      |            ^~
a.cc:5:9: warning: unknown escape sequence: '\040'
    5 | printf ("% c % c % c \ n " , a [0] + dif , b [0] + dif , c [0] + dif );
      |         ^~~~~~~~~~~~~~~~~~
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: Java

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

Compiler output:
Main.java:16: error: int cannot be dereferenced
        System.out.print((s1.charAt(0) + s2.charAt(0) + s3.charAt(0)).toUpperCase());
                                                                     ^
1 error
Language: C++

#include <stdio.h>
#include <string>
#include <algorithm>
#include <map>
#include <iostream>
#include<math.h>
using namespace std;

int main() {
	long long n,a[100001], ans1 = 0,ans2=0;
	cin >> n;
	for (int i = 0; i < n; i++)cin >> a[i];

	long long sum1=a[0],sum2=a[0];
	for (int i = 1; i < n;i++) {
		sum2 += a[i];
		if (sum2 >= 0 && sum1 >= 0) {
			ans1 += abs(sum2) + 1;
			sum2 = sum2 - abs(sum2) - 1;
		}
		if (sum2 <= 0 && sum1 < 0) {
			ans1 += abs(sum2) + 1;
			sum2 = sum2 + abs(sum2) + 1;
		}
		sum1 = sum2;
	}
	long long sum1 = a[0], sum2 = a[0];
	for (int i = 1; i < n; i++) {
		sum2 += a[i];
		if (sum2 >= 0 && sum1 > 0) {
			ans2 += abs(sum2) + 1;
			sum2 = sum2 - abs(sum2) - 1;
		}
		if (sum2 <= 0 && sum1 <= 0) {
			ans2 += abs(sum2) + 1;
			sum2 = sum2 + abs(sum2) + 1;
		}
		sum1 = sum2;
	}
	cout << min(ans1,ans2) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:19: error: redeclaration of 'long long int sum1'
   27 |         long long sum1 = a[0], sum2 = a[0];
      |                   ^~~~
a.cc:14:19: note: 'long long int sum1' previously declared here
   14 |         long long sum1=a[0],sum2=a[0];
      |                   ^~~~
a.cc:27:32: error: redeclaration of 'long long int sum2'
   27 |         long long sum1 = a[0], sum2 = a[0];
      |                                ^~~~
a.cc:14:29: note: 'long long int sum2' previously declared here
   14 |         long long sum1=a[0],sum2=a[0];
      |                             ^~~~
Language: C++

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

	int main(){
      string a,b;
      cin >> a >> b;
      list<string>  S;
      S={a,b};
      S.sort();
      list<string>::iterator i;
      i=S.begin()
      if (*i==a){
        i++;
        if (*i==a){
          cout << "EQUAL" << endl;
        }
        else{
          cout << "LESS" << endl;
        }
      }
      else{
        cout << "GREATER" << endl;
      }
    }


Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: expected ';' before 'if'
   11 |       i=S.begin()
      |                  ^
      |                  ;
   12 |       if (*i==a){
      |       ~~          
a.cc:21:7: error: 'else' without a previous 'if'
   21 |       else{
      |       ^~~~
Language: C++

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

	int main(){
      string a,b;
      cin >> a >> b;
      list<string>  S;
      S={a,b};
      S.sort();
      list<string>::iterator i;
      i=S.begin()
      if (*i==a){
        i++;
        if (*i==a){
          cout << "EQUAL" << endl;
        }
        else{
          cout << "GREATER" << endl;
        }
      }
      else{
        cout << "LESS" << endl;
      }
    }


Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: expected ';' before 'if'
   11 |       i=S.begin()
      |                  ^
      |                  ;
   12 |       if (*i==a){
      |       ~~          
a.cc:21:7: error: 'else' without a previous 'if'
   21 |       else{
      |       ^~~~
Language: C++

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

	int main(){
      long long a,b;
      cin >> a >> b;
      if (a>b){
        cont << "GREATER" << endl;
      }
      if (a==b){
        cont << "EQUAL" << endl;
      }
      if (a<b){
        cont << "LESS" << endl;
      }
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'cont' was not declared in this scope; did you mean 'const'?
    8 |         cont << "GREATER" << endl;
      |         ^~~~
      |         const
a.cc:11:9: error: 'cont' was not declared in this scope; did you mean 'const'?
   11 |         cont << "EQUAL" << endl;
      |         ^~~~
      |         const
a.cc:14:9: error: 'cont' was not declared in this scope; did you mean 'const'?
   14 |         cont << "LESS" << endl;
      |         ^~~~
      |         const
Language: C++

#include <iostream>
using namespace std;
typedef long long unsigned int ll;
 
int main() {
 
  string a,b,c,d;
  cin >> a;
  cin >>b;
  cin >>c;
  int a;
  a='A'-'a';
  cout << a[0]+a<< b[0]+a<<c[0]+a<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: conflicting declaration 'int a'
   11 |   int a;
      |       ^
a.cc:7:10: note: previous declaration as 'std::string a'
    7 |   string a,b,c,d;
      |          ^
Language: C++

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

int main(void){
    char s[3];
    for(int i=0;i<3;i++)
        cin>>s[1];

    for(int i=0;i<3;i++){
        s[i]+='A'-'a';
        cout<<s[i];
    }

    cout<<endl;
    return 0;
}


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespac'
    2 | using namespac std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin>>s[1];
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |         cout<<s[i];
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |     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:14:11: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |     cout<<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 <iostream>
 
using namespace std;
 
int main(){
  int S1, S2, S3;
  cin >> S1 >> S2 >> S3;
  cout << S1[0] - 'a' + 'A' << S2[0] - 'a' + 'A' << S3[0] - 'a' + 'A' << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: invalid types 'int[int]' for array subscript
    8 |   cout << S1[0] - 'a' + 'A' << S2[0] - 'a' + 'A' << S3[0] - 'a' + 'A' << endl;
      |             ^
a.cc:8:34: error: invalid types 'int[int]' for array subscript
    8 |   cout << S1[0] - 'a' + 'A' << S2[0] - 'a' + 'A' << S3[0] - 'a' + 'A' << endl;
      |                                  ^
a.cc:8:55: error: invalid types 'int[int]' for array subscript
    8 |   cout << S1[0] - 'a' + 'A' << S2[0] - 'a' + 'A' << S3[0] - 'a' + 'A' << endl;
      |                                                       ^
Language: C++

#include <iostream>
using namespace std;

int main(){
  string a,b,c;
  cin >> a >> b >> c;
  string small="abcdefghijklmnopqrstuvwxyz";
  string big="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  for(int i=0;i<26;i++){
    if(a.at(0)==small.at(i)){
      cout << big(i);
    }
  }
 for(int i=0;i<26;i++){
    if(b.at(0)==small.at(i)){
      cout << big(i);
    }
  } 
  for(int i=0;i<26;i++){
    if(a.at(0)==small.at(i)){
      cout << big(i);
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int&)'
   11 |       cout << big(i);
      |               ~~~^~~
a.cc:16:18: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int&)'
   16 |       cout << big(i);
      |               ~~~^~~
a.cc:21:18: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int&)'
   21 |       cout << big(i);
      |               ~~~^~~
Language: C++

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

int main(){
  string a,b,c;
  cin>>a>>b>>c;
  char dif=’A’ - ’a’;
  cout<<a+dif<<b+dif<<c+dif<<endl;
}


Compiler output:
a.cc:10:12: error: extended character ’ is not valid in an identifier
   10 |   char dif=’A’ - ’a’;
      |            ^
a.cc:10:12: error: extended character ’ is not valid in an identifier
a.cc:10:18: error: extended character ’ is not valid in an identifier
   10 |   char dif=’A’ - ’a’;
      |                  ^
a.cc:10:18: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:10:12: error: '\U00002019A\U00002019' was not declared in this scope
   10 |   char dif=’A’ - ’a’;
      |            ^~~
a.cc:10:18: error: '\U00002019a\U00002019' was not declared in this scope
   10 |   char dif=’A’ - ’a’;
      |                  ^~~
Language: C++

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

int main(){
  string a,b,c;
  cin>>a>>b>>c;
  char dif=’A’ - ’a’;
  cout<<a+dif<<b+dif<<c+dif<<endl;
}

Compiler output:
a.cc:9:12: error: extended character ’ is not valid in an identifier
    9 |   char dif=’A’ - ’a’;
      |            ^
a.cc:9:12: error: extended character ’ is not valid in an identifier
a.cc:9:18: error: extended character ’ is not valid in an identifier
    9 |   char dif=’A’ - ’a’;
      |                  ^
a.cc:9:18: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:9:12: error: '\U00002019A\U00002019' was not declared in this scope
    9 |   char dif=’A’ - ’a’;
      |            ^~~
a.cc:9:18: error: '\U00002019a\U00002019' was not declared in this scope
    9 |   char dif=’A’ - ’a’;
      |                  ^~~
Language: Java

import java.util.*;
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
	char a = sc.next().charAt(0);
	char b = sc.next().charAt(0);
	char c = sc.next().charAt(0);
        else System.out.println((char)(a-'a'+'A') + (char)(c-'a'+'A') + (char)(c-'a'+'A'));
    }
}

Compiler output:
Main.java:8: error: 'else' without 'if'
        else System.out.println((char)(a-'a'+'A') + (char)(c-'a'+'A') + (char)(c-'a'+'A'));
        ^
1 error
Language: C++

main(a){for(;a>33||putchar((a=getchar())<0?10:a-32)>10;a=getchar());}

Compiler output:
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
    1 | main(a){for(;a>33||putchar((a=getchar())<0?10:a-32)>10;a=getchar());}
      |     ^
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
int A,B,C,D,E,N,M,x,y,i,j,cou=0,cou2,cou3,v[1000000],w[1000000],min_i,en=0;
    char S[100],W[100],s[100],X,Y;
    scanf("%s %s %s",&S,&W,&s);
    if(S[i]>=97&&S[i]<=122)
      S[i]=S[i]-32;
  }
  if(W[i]>=97&&W[i]<=122)
      W[i]=W[i]-32;
  }
  if(s[i]>=97&&s[i]<=122)
      s[i]=s[i]-32;
  }
    printf("%c%c%c",S[0],W[0],s[0]);
}

Compiler output:
main.c:10:3: error: expected identifier or '(' before 'if'
   10 |   if(W[i]>=97&&W[i]<=122)
      |   ^~
main.c:12:3: error: expected identifier or '(' before '}' token
   12 |   }
      |   ^
main.c:13:3: error: expected identifier or '(' before 'if'
   13 |   if(s[i]>=97&&s[i]<=122)
      |   ^~
main.c:15:3: error: expected identifier or '(' before '}' token
   15 |   }
      |   ^
main.c:16:12: error: expected declaration specifiers or '...' before string constant
   16 |     printf("%c%c%c",S[0],W[0],s[0]);
      |            ^~~~~~~~
main.c:16:21: error: unknown type name 'S'
   16 |     printf("%c%c%c",S[0],W[0],s[0]);
      |                     ^
main.c:16:26: error: unknown type name 'W'
   16 |     printf("%c%c%c",S[0],W[0],s[0]);
      |                          ^
main.c:16:31: error: unknown type name 's'
   16 |     printf("%c%c%c",S[0],W[0],s[0]);
      |                               ^
main.c:17:1: error: expected identifier or '(' before '}' token
   17 | }
      | ^
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <ctype.h>
#include <map>
#include <set>
using namespace std;
int main() {
  string a, b, c;
  cin >> a >> b >> c;
  a[0] -= 32;
  b[0] -= 32;
  c[0] -= 32;
  cout << topupper(a[0]) << topupper(b[0]) << topupper(c[0]) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:11: error: 'topupper' was not declared in this scope; did you mean 'towupper'?
   15 |   cout << topupper(a[0]) << topupper(b[0]) << topupper(c[0]) << endl;
      |           ^~~~~~~~
      |           towupper
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <ctype.h>
#include <map>
#include <set>
using namespace std;
int main() {
  string a, b, c;
  cin >> a >> b >> c;
  a -= 32;
  b -= 32;
  c -= 32;
  cout << topupper(a[0]) << topupper(b[0]) << topupper(c[0]) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: no match for 'operator-=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
   12 |   a -= 32;
      |   ~~^~~~~
a.cc:13:5: error: no match for 'operator-=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
   13 |   b -= 32;
      |   ~~^~~~~
a.cc:14:5: error: no match for 'operator-=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
   14 |   c -= 32;
      |   ~~^~~~~
a.cc:15:11: error: 'topupper' was not declared in this scope; did you mean 'towupper'?
   15 |   cout << topupper(a[0]) << topupper(b[0]) << topupper(c[0]) << endl;
      |           ^~~~~~~~
      |           towupper
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <ctype.h>
#include <map>
#include <set>
using namespace std;
int main() {
  string a, b, c;
  cin >> a >> b >> c;
  cout << topupper(a[0]) << topupper(b[0]) << topupper(c[0]) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: 'topupper' was not declared in this scope; did you mean 'towupper'?
   12 |   cout << topupper(a[0]) << topupper(b[0]) << topupper(c[0]) << endl;
      |           ^~~~~~~~
      |           towupper
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <map>
#include <set>
using namespace std;
int main() {
  string a, b, c;
  cin >> a >> b >> c;
  cout << topupper(a[0]) << topupper(b[0]) << topupper(c[0]) << endl;
}


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

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <map>
#include <set>
using namespace std;
int main() {
  string a, b, c;
  cin >> a >> b >> c;
  cout << a[0].topupper << b[0].topupper << c[0].topupper << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: request for member 'topupper' in 'a.std::__cxx11::basic_string<char>::operator[](0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
   11 |   cout << a[0].topupper << b[0].topupper << c[0].topupper << endl;
      |                ^~~~~~~~
a.cc:11:33: error: request for member 'topupper' in 'b.std::__cxx11::basic_string<char>::operator[](0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
   11 |   cout << a[0].topupper << b[0].topupper << c[0].topupper << endl;
      |                                 ^~~~~~~~
a.cc:11:50: error: request for member 'topupper' in 'c.std::__cxx11::basic_string<char>::operator[](0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
   11 |   cout << a[0].topupper << b[0].topupper << c[0].topupper << endl;
      |                                                  ^~~~~~~~
Language: C++

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

int main(){
    char s1[10], s2[10], s3[10];
  cin >> s1 >> s2 >> s3;
  x == toupper(s1[0]);
  y == toupper(s2[1]);
  z == toupper(s3[0]);
  cout << x << y << z << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'x' was not declared in this scope
    7 |   x == toupper(s1[0]);
      |   ^
a.cc:8:3: error: 'y' was not declared in this scope; did you mean 'yn'?
    8 |   y == toupper(s2[1]);
      |   ^
      |   yn
a.cc:9:3: error: 'z' was not declared in this scope
    9 |   z == toupper(s3[0]);
      |   ^