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

import java.io.*;

public class AtCodersContest {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
       
        String s = br.readLine();
        String s1 = s.toLowerCase();
        String s2 = s1.substring(0,1).toUpperCase() + s1.substring(1);
      
       
        System.out.println("A"+s2.charAt(0)+"C");
        
    }
}


Compiler output:
Main.java:3: error: class AtCodersContest is public, should be declared in a file named AtCodersContest.java
public class AtCodersContest {
       ^
1 error
Language: Java

import java.util.*;

public class Main
{
    public static void main(String[] args)
    {
        Scanner input = new Scanner(System.in);
        String x = input.nextLine();
        String Splitt[] = x.split(" ");    
        for(String word : Splitt){
        System.out.print(word.charAt(0));
        	      
         }                 
    }
}

Compiler output:
Main.java:8: error: illegal character: '\u00a0'
       ?String x = input.nextLine();
       ^
Main.java:9: error: illegal character: '\u00a0'
        String Splitt[] = x.split(" "); ? ?
                                        ^
Main.java:9: error: illegal character: '\u00a0'
        String Splitt[] = x.split(" "); ? ?
                                          ^
Main.java:12: error: illegal character: '\u00a0'
        	 ? ? ?
        	 ^
Main.java:12: error: illegal character: '\u00a0'
        	 ? ? ?
        	   ^
Main.java:12: error: illegal character: '\u00a0'
        	 ? ? ?
        	     ^
Main.java:13: error: illegal character: '\u00a0'
         }          ? ?    
                    ^
Main.java:13: error: illegal character: '\u00a0'
         }          ? ?    
                      ^
8 errors
Language: Java

import java.util.Scanner;
public class A {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String x = in.nextLine();
        String[] arr = x.split(" ");
        for (int i = 0; i < arr.length; i++) {
            String s = arr[i];
            System.out.println(s.charAt(0));
        }
    }
}

Compiler output:
Main.java:2: error: class A is public, should be declared in a file named A.java
public class A {
       ^
1 error
Language: Java

import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner input = new Scanner(System.in);
        String Sentence = input.nextLine();
        String splitSen[] = Sentence.split(" ");    
        for(String word : splitSen){
        System.out.print(word.charAt(0));
        	      
         }     
    }
}

Compiler output:
Main.java:6: error: illegal character: '\u00a0'
       ?String Sentence = input.nextLine();
       ^
Main.java:7: error: illegal character: '\u00a0'
        String splitSen[] = Sentence.split(" "); ? ?
                                                 ^
Main.java:7: error: illegal character: '\u00a0'
        String splitSen[] = Sentence.split(" "); ? ?
                                                   ^
Main.java:10: error: illegal character: '\u00a0'
        	 ? ? ?
        	 ^
Main.java:10: error: illegal character: '\u00a0'
        	 ? ? ?
        	   ^
Main.java:10: error: illegal character: '\u00a0'
        	 ? ? ?
        	     ^
6 errors
Language: Java

import java.util.*;
class Main{
    public static void main(String[] args){
        Scanner input = new Scanner(System.in);
        String x = input.nextLine();
        String Splitt[] = x.split(" ");      
        for(String word : Splitt){
        System.out.print(word.charAt(0));
        	      
         }                     
    }
}

Compiler output:
Main.java:5: error: illegal character: '\u00a0'
       ?String x = input.nextLine();
       ^
Main.java:6: error: illegal character: '\u00a0'
        String Splitt[] = x.split(" "); ? ? ?
                                        ^
Main.java:6: error: illegal character: '\u00a0'
        String Splitt[] = x.split(" "); ? ? ?
                                          ^
Main.java:6: error: illegal character: '\u00a0'
        String Splitt[] = x.split(" "); ? ? ?
                                            ^
Main.java:9: error: illegal character: '\u00a0'
        	 ? ? ?
        	 ^
Main.java:9: error: illegal character: '\u00a0'
        	 ? ? ?
        	   ^
Main.java:9: error: illegal character: '\u00a0'
        	 ? ? ?
        	     ^
Main.java:10: error: illegal character: '\u00a0'
         }          ? ?        
                    ^
Main.java:10: error: illegal character: '\u00a0'
         }          ? ?        
                      ^
9 errors
Language: Java

import java.util.*;

class Main
{
    public static void main(String[] args)
    {
        Scanner input = new Scanner(System.in);
        String x = input.nextLine();
        String Splitt[] = x.split(" ");      
        for(String word : Splitt){
        System.out.print(word.charAt(0));
        	      
         } 
    }
}

Compiler output:
Main.java:8: error: illegal character: '\u00a0'
       ?String x = input.nextLine();
       ^
Main.java:9: error: illegal character: '\u00a0'
        String Splitt[] = x.split(" "); ? ? ?
                                        ^
Main.java:9: error: illegal character: '\u00a0'
        String Splitt[] = x.split(" "); ? ? ?
                                          ^
Main.java:9: error: illegal character: '\u00a0'
        String Splitt[] = x.split(" "); ? ? ?
                                            ^
Main.java:12: error: illegal character: '\u00a0'
        	 ? ? ?
        	 ^
Main.java:12: error: illegal character: '\u00a0'
        	 ? ? ?
        	   ^
Main.java:12: error: illegal character: '\u00a0'
        	 ? ? ?
        	     ^
7 errors
Language: Java


import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        String s;
        s = input.nextLine();
            switch (s) {
                case "AtCoder Beginner Contest":
                    System.out.println("ABC");
                    System.out.println("The contest in which you are participating now.");
                    break;
                case "AtCoder Snuke Contest":
                    System.out.println("ASC");
                    System.out.println("The contest does not actually exist.");
                    break;
                case "AtCoder X Contest":
                    System.out.println("AXC");
                    break;
            }
        }

Compiler output:
Main.java:23: error: reached end of file while parsing
        }
         ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string x, y, z;
  cin >> x >> y >> z;
  char c;
  
  c = y.at(0);
  cout << "A" + c + "C" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
   10 |   cout << "A" + c + "C" << endl;
      |           ~~~~~~~ ^ ~~~
      |               |     |
      |               |     const char [2]
      |               const char*
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string s;
  cin >> s;
  char c;
  
  c = s.at(9);
  
  cout << "A" + c + "C" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
   11 |   cout << "A" + c + "C" << endl;
      |           ~~~~~~~ ^ ~~~
      |               |     |
      |               |     const char [2]
      |               const char*
Language: C++

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

void shakespeare() {
  string a,b,c;
  cin >> a >> b >> c;
  cout << a.at(0) << b.at(0) << c.at(0) << endl;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
 string str;
 char A,C;
 char c = str at.size(0);
 cin>>str>>A>>C>>c;
 cout<< A+c+C <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char' in initialization
    6 |  char c = str at.size(0);
      |           ^~~
      |           |
      |           std::string {aka std::__cxx11::basic_string<char>}
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
 string s;
 char c = s at.size(0);
 cin>>s>>c;
 cout<< A+c+C <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char' in initialization
    5 |  char c = s at.size(0);
      |           ^
      |           |
      |           std::string {aka std::__cxx11::basic_string<char>}
a.cc:7:9: error: 'A' was not declared in this scope
    7 |  cout<< A+c+C <<endl;
      |         ^
a.cc:7:13: error: 'C' was not declared in this scope
    7 |  cout<< A+c+C <<endl;
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  char A,B,C;
  cin >> A >> B >> C;
  
  
  cout << "A"<< B.at(0) <<"C"<< endl; // a
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: request for member 'at' in 'B', which is of non-class type 'char'
    9 |   cout << "A"<< B.at(0) <<"C"<< endl; // a
      |                   ^~
Language: C++

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

int main() {
  string B;
  cin >> B;
  
  string answer = B.at(0);
  
  cout << 'A' << answer << 'C' << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    8 |   string answer = B.at(0);
      |                   ~~~~^~~
Language: C++

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

int main() {
  string B;
  cin >> B;
  
  string answer = B.st(0);
  
  cout << 'A' << answer << 'C' << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'st'; did you mean 'at'?
    8 |   string answer = B.st(0);
      |                     ^~
      |                     at
Language: C++

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

int main() {
  string S;
  getline(cin, S) ;

cout << "A" + S.at(8) + "C" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
    8 | cout << "A" + S.at(8) + "C" << endl;
      |         ~~~~~~~~~~~~~ ^ ~~~
      |             |           |
      |             const char* const char [2]
Language: C++

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

int main() {
  string S;
  getline(cin, S) ;

cout << "A" + S[8] +"C" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
    8 | cout << "A" + S[8] +"C" << endl;
      |                    ^~~~
      |                     |
      |                     const char [2]
Language: C++

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

int main() {
  string at;
  cin >> at;
  cout << A << at.at(7) << C << endl;

}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string A, X;
  cin >> A >> X;
  char x = X.at(0)
  cout << "A" + x + "C" << endl;
}

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


#include "pch.h"
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main(void) {

	string s1, s2, s3;
	cin >> s1 >> s2 >> s3;

	cout << 'A' << s2.at(0) << 'C' << endl;

 
}



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

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

int main()
{
  string words[3];
  for(int i = 0; i < 3; ++i)
  {
    cin >> words[i];
  }
  char initisls[3];
  for(int i = 0; i < 3; ++i)
  {
      initisls[i] = words[i].front();
  }
  	cout << word << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:17: error: 'word' was not declared in this scope; did you mean 'words'?
   17 |         cout << word << endl;
      |                 ^~~~
      |                 words
Language: C++

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

int main()
{
  string words[3];
  for(int i = 0; i < 3; ++i)
  {
    cin >> words[i];
  }
  char initisls[3];
  for(int i = 0; i < 3; ++i)
  {
      initisls[i] = words[i].substr(1);
  }
  	cout << word << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:36: error: cannot convert 'std::__cxx11::basic_string<char>' to 'char' in assignment
   15 |       initisls[i] = words[i].substr(1);
      |                     ~~~~~~~~~~~~~~~^~~
      |                                    |
      |                                    std::__cxx11::basic_string<char>
a.cc:17:17: error: 'word' was not declared in this scope; did you mean 'words'?
   17 |         cout << word << endl;
      |                 ^~~~
      |                 words
Language: C++

#include <iostream>
namespace std;

int main()
{
  	char word[3];
	for(int i = 0; i < 3; ++i)
	{
  		cin << word[i];
	}
  cout << word << endl;
}


Compiler output:
a.cc:2:14: error: expected '{' before ';' token
    2 | namespace std;
      |              ^
a.cc: In function 'int main()':
a.cc:9:17: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |                 cin << word[i];
      |                 ^~~
      |                 std::cin
In file included 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:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |   cout << word << 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:11:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |   cout << word << endl;
      |                   ^~~~
      |                   std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>

int main()
{
  	char word[3];
	for(int i = 0; i < 3; ++i)
	{
  		cin << word[i];
	}
  cout << word << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |                 cin << word[i];
      |                 ^~~
      |                 std::cin
In file included 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:10:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   cout << word << 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:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   cout << word << endl;
      |                   ^~~~
      |                   std::endl
In file included from /usr/include/c++/14/iostream:41:
/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 a, s, c;
  cin >> a >> s >> c;
  cout << a.at(0) << s.at(0) << c.at(0) << endls;
}

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

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

int main() {
  string a, b, c;
  cin >> a >> b >> c;
  string ans = a[0]+b[0]+c[0];

  cout << ans << endl;

  return 0;
}

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

#include<iostream>
using namespace std;
int main(){
  string first,second.third;
  cin>>first>>second>>third;
  cout<<first[0]<<second[0]<<third[0];
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:22: error: expected initializer before '.' token
    4 |   string first,second.third;
      |                      ^
a.cc:5:15: error: 'second' was not declared in this scope
    5 |   cin>>first>>second>>third;
      |               ^~~~~~
a.cc:5:23: error: 'third' was not declared in this scope
    5 |   cin>>first>>second>>third;
      |                       ^~~~~
Language: C

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


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

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

int main() {
  string s;
  cin >> AtCoder s Contest;
  cout << "A" << s.at(7) << "C" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'AtCoder' was not declared in this scope
    6 |   cin >> AtCoder s Contest;
      |          ^~~~~~~
Language: C++

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

int main() {
  string s;
  cin >> s;
  
  cout << "A" << s.at(0) << "C"

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:32: error: expected ';' before '}' token
    8 |   cout << "A" << s.at(0) << "C"
      |                                ^
      |                                ;
    9 | 
   10 | }
      | ~
Language: C++

#include <iostream>
#include <vector>
#include <range/v3/all.hpp>

int main()
{
    using namespace ranges;
    auto result = istream_view<std::string>(std::cin> | views::transform([](const auto &word){ return word[0]; }) | to<std::string>();
    std::cout << result << std::endl;
}


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string s;
  getline(cin, s);
  cout << "A" + s.at(8) + "C" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
    7 |   cout << "A" + s.at(8) + "C" << endl;
      |           ~~~~~~~~~~~~~ ^ ~~~
      |               |           |
      |               const char* const char [2]
Language: C++

// lcmとか__builtin_popcountとかはg++ -std=c++17 default.cppみたいなかんじで

#include <bits/stdc++.h>
#define mod 1000000007
#define INF LLONG_MAX
#define ll long long
#define ln cout<<endl
#define Yes cout<<"Yes"<<endl
#define NO cout<<"NO"<<endl
#define YES cout<<"YES"<<endl
#define No cout<<"No"<<endl
#define REP(i,m,n) for(ll i=(ll)(m);i<(ll)(n);i++)
#define rep(i,n) REP(i,0,n)
#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()
using namespace std;
ll dx[4]={1,0,-1,0};
ll dy[4]={0,1,0,-1};

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

    ll  a,b,c,d,e,n,k,maxi=0,f=0,mini=INF,sum=0,q;
	string str,g,ko;
    ll x,y;
    cin>>str>>g>>ko;
    cout<<"A"<<g[0]<<"C"<<endl:
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:31: error: expected ';' before ':' token
   28 |     cout<<"A"<<g[0]<<"C"<<endl:
      |                               ^
      |                               ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string s;
  cin >> s;
  cout << "A" + s.at(8) + "C" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
    7 |   cout << "A" + s.at(8) + "C" << endl;
      |           ~~~~~~~~~~~~~ ^ ~~~
      |               |           |
      |               const char* const char [2]
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  
  string a, b;
  cin >> a >> b;
    
  cout << "A" + b.at(0) + "C" << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
    9 |   cout << "A" + b.at(0) + "C" << endl;
      |           ~~~~~~~~~~~~~ ^ ~~~
      |               |           |
      |               const char* const char [2]
Language: C++

#include <bits/stdc++.h>
using ll = long long;
using namespace std;
#define rep(i,n) for(int i=0, i##_len=(int)(n); i<i##_len; i++)
#define reps(i,n) for(int i=1 , i##_len=(int)(n);i<=i##_len;i++)
#define rrep(i,n) for(int i=((int)(n)-1);i>=0;i--)
#define rreps(i,n) for(int i=((int)(n));i>0;i--)
#define repi(i,x) for(auto i=(x).begin(),i##_fin=(x).end();i!=i##_fin;i++)
#define all(x) (x).begin(), (x).end()
#define F first
#define S second
#define mp make_pair
#define pb push_back
#define solve(a) ((a)?"Yes":"No")
typedef vector<int> Vi;
typedef vector<Vi> VVi;
typedef pair<int , int> Pi;
typedef vector<Pi> VPi;
typedef vector<long long> V;
typedef vector<V> VV;
typedef pair<long long , long long> P;
typedef vector<P> VP;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1;} return 0;}
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1;} return 0;}
const long long INFLL = 1LL<<60;
const int INF = 1<<30;
const double PI=acos(-1);
int main(){
strng a,b,c;
	int ans=0;
	cin >>a>>b>>c;
	cout<<a[0]<<b[0]<<c[0]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:1: error: 'strng' was not declared in this scope
   29 | strng a,b,c;
      | ^~~~~
a.cc:31:15: error: 'a' was not declared in this scope
   31 |         cin >>a>>b>>c;
      |               ^
a.cc:31:18: error: 'b' was not declared in this scope
   31 |         cin >>a>>b>>c;
      |                  ^
a.cc:31:21: error: 'c' was not declared in this scope
   31 |         cin >>a>>b>>c;
      |                     ^
Language: C++

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

int main(){
    string x;
    string ans = "A";
    cin >> x;
    ans += x + "C"
    cout << ans << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected ';' before 'cout'
    8 |     ans += x + "C"
      |                   ^
      |                   ;
    9 |     cout << ans << endl;
      |     ~~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
	string s;
	string t={};
	int r=1;
	cin>>s;
	t[0]=s[0];
	for(int i=1;i<s.length();i++){
		if(s[i]==" "){
			t[r]==s[i+1];
			r++;
		}
	}
	cout<<t;
}

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

#include <iostream>
using namespace std;

int main(){
	string s;
	string t={};
	int r=1;
	cin>>s;
	t[0]=s[0];
	for(i=1;i<s.length();i++){
		if(s[i]==" "){
			t[r]==s[i+1];
			r++;
		}
	}
	cout<<t;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'i' was not declared in this scope
   10 |         for(i=1;i<s.length();i++){
      |             ^
Language: C++

#include <iostream>
using namespace std;

int main(){
	string s;
	string t=[];
	int r=1;
	cin>>s;
	t[0]=s[0];
	for(i=1;i<s.length();i++){
		if(s[i]==" "){
			t[r]==s[i+1];
			r++;
		}
	}
}

Compiler output:
a.cc: In lambda function:
a.cc:6:20: error: expected '{' before ';' token
    6 |         string t=[];
      |                    ^
a.cc: In function 'int main()':
a.cc:6:18: error: conversion from 'main()::<lambda()>' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    6 |         string t=[];
      |                  ^~
a.cc:10:13: error: 'i' was not declared in this scope
   10 |         for(i=1;i<s.length();i++){
      |             ^
Language: C++

#include <iostream>
using namespace std;

int main(){
	string s;
	string t=[];
	int r=1;
	t[0]=s[0];
	cin>>s;
	for(i=1;i<s.length();i++){
		if(s[i]==" "){
			t[r]==s[i+1];
			r++;
		}
	}
}

Compiler output:
a.cc: In lambda function:
a.cc:6:20: error: expected '{' before ';' token
    6 |         string t=[];
      |                    ^
a.cc: In function 'int main()':
a.cc:6:18: error: conversion from 'main()::<lambda()>' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    6 |         string t=[];
      |                  ^~
a.cc:10:13: error: 'i' was not declared in this scope
   10 |         for(i=1;i<s.length();i++){
      |             ^
Language: C++

#include<iostream>
using namespace std;

int main (){
  string s, d;
  cin >> d >> s >> d;
  cout << "A" << str[0] << "C" << '\n';
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'str' was not declared in this scope; did you mean 'std'?
    7 |   cout << "A" << str[0] << "C" << '\n';
      |                  ^~~
      |                  std
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string a, x ,b;
  cin >> a >> x >> b;
  

  
  cout << A << x.at(0) << B << endl;

  
 
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'A' was not declared in this scope
   10 |   cout << A << x.at(0) << B << endl;
      |           ^
a.cc:10:27: error: 'B' was not declared in this scope
   10 |   cout << A << x.at(0) << B << endl;
      |                           ^
Language: C++

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

int main() {
  string s;
  cin >> s;
  char x;
  s.at(0) = x;
  cout << A << x << C << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: 'A' was not declared in this scope
    9 |   cout << A << x << C << endl;
      |           ^
a.cc:9:21: error: 'C' was not declared in this scope
    9 |   cout << A << x << C << endl;
      |                     ^
Language: Java

import java.util.*;

public class Main{
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      String name = "";
      for(int i = 0;i<3;i++){
        String a = sc.next();
        name = name + a.subString(0,0);
      }
      System.out.println(name);
     	
    }
}

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

import java.util.*;

public class Main{
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      String name = "";
      for(int i = 0;i<3;i++){
        String a = sc.next();
        name += a.subString(0,0);
      }
      System.out.println(name);
     	
    }
}

Compiler output:
Main.java:9: error: cannot find symbol
        name += a.subString(0,0);
                 ^
  symbol:   method subString(int,int)
  location: variable a of type String
1 error
Language: C++

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

int main(){
  string a,b,c;
  cin>>a>>b>>c;
  stirng n="A";
  stirng m="C";
  cout<<n+b.at(0)+m<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'stirng' was not declared in this scope
    7 |   stirng n="A";
      |   ^~~~~~
a.cc:8:9: error: expected ';' before 'm'
    8 |   stirng m="C";
      |         ^~
      |         ;
a.cc:9:9: error: 'n' was not declared in this scope
    9 |   cout<<n+b.at(0)+m<<endl;
      |         ^
a.cc:9:19: error: 'm' was not declared in this scope
    9 |   cout<<n+b.at(0)+m<<endl;
      |                   ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
    7 |   cout<<"A"+b.at(0)+"C"<<endl;
      |         ~~~~~~~~~~~^~~~
      |            |        |
      |            |        const char [2]
      |            const char*
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string a,b,c;
  
  cin >> a >> b >> c;
  cout << "A"b.at(0) + "C" << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: unable to find string literal operator 'operator""b' with 'const char [2]', 'long unsigned int' arguments
    8 |   cout << "A"b.at(0) + "C" << endl;
      |           ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: unable to find character literal operator 'operator""b' with 'char' argument
    8 |   cout << 'A'b.at(0) + 'C' << endl;
      |           ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string s;
  
  cin >> s;
  cout << "A"s.at(0)"C" << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: expected ';' before string constant
    8 |   cout << "A"s.at(0)"C" << endl;
      |                     ^~~
      |                     ;
Language: C++

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

int main () {
    string Atcoder, s, Contest;
    cin >> Atcoder >>  s >> Contest;

    char p=s.at(0);

    cout << "A"+p+"C" << endl;
}
    
    
    
    


Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
   10 |     cout << "A"+p+"C" << endl;
      |             ~~~~~^~~~
      |                |  |
      |                |  const char [2]
      |                const char*
Language: C++

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

int main () {
    string s;
    cin >> Atcoder s Contest;

    char p=s.at(0);

    cout << A+p+C << endl;
}
    
    
    
    

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'Atcoder' was not declared in this scope
    6 |     cin >> Atcoder s Contest;
      |            ^~~~~~~
a.cc:10:13: error: 'A' was not declared in this scope
   10 |     cout << A+p+C << endl;
      |             ^
a.cc:10:17: error: 'C' was not declared in this scope
   10 |     cout << A+p+C << endl;
      |                 ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int s1,s2,s3;
  cin>>s1>>s2>>s3;
  cout<<s1[0]<<s2[0]<<s3[0]<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: invalid types 'int[int]' for array subscript
    7 |   cout<<s1[0]<<s2[0]<<s3[0]<<endl;
      |           ^
a.cc:7:18: error: invalid types 'int[int]' for array subscript
    7 |   cout<<s1[0]<<s2[0]<<s3[0]<<endl;
      |                  ^
a.cc:7:25: error: invalid types 'int[int]' for array subscript
    7 |   cout<<s1[0]<<s2[0]<<s3[0]<<endl;
      |                         ^
Language: C++

#include<iostream>
using namespace std;
int main();
{
  string s1,s2,s3;
  cin>>s1>>s2>>s3;
  cout<<s1[0]<<s2[0]<<s3[0]<<endl;
  return 0;
}

Compiler output:
a.cc:4:1: error: expected unqualified-id before '{' token
    4 | {
      | ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
  string s;
  cin>>s;
  cout<<s[0]<<s[8]<<s[s.length()-7<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:35: error: invalid operands of types 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout<<s[0]<<s[8]<<s[s.length()-7<<endl;
      |                       ~~~~~~~~~~~~^~~~~~
a.cc:7:41: error: expected ']' before ';' token
    7 |   cout<<s[0]<<s[8]<<s[s.length()-7<<endl;
      |                                         ^
      |                                         ]
Language: C++

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

int main(){
  string s, at;
  cin >> at >> s;
  
  cout << "A" + s.at(0) + "C" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
    8 |   cout << "A" + s.at(0) + "C" << endl;
      |           ~~~~~~~~~~~~~ ^ ~~~
      |               |           |
      |               const char* const char [2]
Language: C++

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

int main(){
  string s, at;
  cin >> at >> s;
  
  cout << A + s.at(0) + C << endl;
}

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


import java.util.*;

public class Main{
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        String c = sc.next();
        b = (String)b.charAt(0);
        
        System.out.println("A" + b + "C");
    }
}

Compiler output:
Main.java:11: error: incompatible types: char cannot be converted to String
        b = (String)b.charAt(0);
                            ^
1 error
Language: Java


import java.util.*;

public class Main{
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        String c = sc.next();
        b = b.charAt(0);
        
        System.out.println("A" + b + "C");
    }
}

Compiler output:
Main.java:11: error: incompatible types: char cannot be converted to String
        b = b.charAt(0);
                    ^
1 error
Language: Java


import java.util.*;

public class Main{
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        String a = sc.nextString();
        String b = sc.nextString();
        String c = sc.nextString();
        b = b.charAt(0);
        
        System.out.println("A" + b + "C");
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
        String a = sc.nextString();
                     ^
  symbol:   method nextString()
  location: variable sc of type Scanner
Main.java:9: error: cannot find symbol
        String b = sc.nextString();
                     ^
  symbol:   method nextString()
  location: variable sc of type Scanner
Main.java:10: error: cannot find symbol
        String c = sc.nextString();
                     ^
  symbol:   method nextString()
  location: variable sc of type Scanner
Main.java:11: error: incompatible types: char cannot be converted to String
        b = b.charAt(0);
                    ^
4 errors
Language: Java


import java.util.*;

public class Main{
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        String a = sc.nextInt();
        String b = sc.nextInt();
        String c = sc.nextInt();
        b = b.charAt(0);
        
        System.out.println("A" + b + "C");
    }
}

Compiler output:
Main.java:8: error: incompatible types: int cannot be converted to String
        String a = sc.nextInt();
                             ^
Main.java:9: error: incompatible types: int cannot be converted to String
        String b = sc.nextInt();
                             ^
Main.java:10: error: incompatible types: int cannot be converted to String
        String c = sc.nextInt();
                             ^
Main.java:11: error: incompatible types: char cannot be converted to String
        b = b.charAt(0);
                    ^
4 errors
Language: C++

#include <iostream>
using namespace std;
int main(void){
  cin >> a >> b >> c;
  cout << a[0] << b[0] << c[0] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:10: error: 'a' was not declared in this scope
    4 |   cin >> a >> b >> c;
      |          ^
a.cc:4:15: error: 'b' was not declared in this scope
    4 |   cin >> a >> b >> c;
      |               ^
a.cc:4:20: error: 'c' was not declared in this scope
    4 |   cin >> a >> b >> c;
      |                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 string S;
  cin >> S;
  char x = S.at(8);
  cout << "A" + x + "C" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
    8 |   cout << "A" + x + "C" << endl;
      |           ~~~~~~~ ^ ~~~
      |               |     |
      |               |     const char [2]
      |               const char*
Language: C++

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

int main() {
 string S;
  cin >> S;
  char x = S.at(0);
  cout << "AtCoder " + x + " Contest" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: invalid operands of types 'const char*' and 'const char [9]' to binary 'operator+'
    8 |   cout << "AtCoder " + x + " Contest" << endl;
      |           ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
      |                      |     |
      |                      |     const char [9]
      |                      const char*
Language: C++

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

int main() {
  string str1, str2 ,str3;
  cin >> str1 >> str2 >> str3;
  cout << A + str2.at(0) + C << endl;
  
}


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

int main()
{
	string A, B, C;
	string ans;

	cin >> A >> B >> C;
	ans.at(0) = A.at(0);
	ans.at(1) = B.at(0);
	ans.at(2) = C.at(0);
	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'string' was not declared in this scope
    3 |         string A, B, C;
      |         ^~~~~~
a.cc:4:15: error: expected ';' before 'ans'
    4 |         string ans;
      |               ^~~~
      |               ;
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> A >> B >> C;
      |         ^~~
a.cc:6:16: error: 'A' was not declared in this scope
    6 |         cin >> A >> B >> C;
      |                ^
a.cc:6:21: error: 'B' was not declared in this scope
    6 |         cin >> A >> B >> C;
      |                     ^
a.cc:6:26: error: 'C' was not declared in this scope
    6 |         cin >> A >> B >> C;
      |                          ^
a.cc:7:9: error: 'ans' was not declared in this scope
    7 |         ans.at(0) = A.at(0);
      |         ^~~
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << ans << endl;
      |         ^~~~
a.cc:10:24: error: 'endl' was not declared in this scope
   10 |         cout << ans << endl;
      |                        ^~~~
Language: C++

int main()
{
	string A, B, C;
	string ans;

	cin >> A >> B >> C;
	ans.at(0) = A.at(0);
	ans.at(1) = B.at(0);
	ans.at(2) = C.at(0);
	cout << ans << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'string' was not declared in this scope
    3 |         string A, B, C;
      |         ^~~~~~
a.cc:4:15: error: expected ';' before 'ans'
    4 |         string ans;
      |               ^~~~
      |               ;
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> A >> B >> C;
      |         ^~~
a.cc:6:16: error: 'A' was not declared in this scope
    6 |         cin >> A >> B >> C;
      |                ^
a.cc:6:21: error: 'B' was not declared in this scope
    6 |         cin >> A >> B >> C;
      |                     ^
a.cc:6:26: error: 'C' was not declared in this scope
    6 |         cin >> A >> B >> C;
      |                          ^
a.cc:7:9: error: 'ans' was not declared in this scope
    7 |         ans.at(0) = A.at(0);
      |         ^~~
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << ans << endl;
      |         ^~~~
a.cc:10:24: error: 'endl' was not declared in this scope
   10 |         cout << ans << endl;
      |                        ^~~~
Language: C++

int main()
{
	string A, B, C;
	string ans ;//= "000";

	cin >> A >> B >> C;
	ans.at(0) = A.at(0);
	ans.at(1) = B.at(0);
	ans.at(2) = C.at(0);
	cout << ans << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'string' was not declared in this scope
    3 |         string A, B, C;
      |         ^~~~~~
a.cc:4:15: error: expected ';' before 'ans'
    4 |         string ans ;//= "000";
      |               ^~~~
      |               ;
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> A >> B >> C;
      |         ^~~
a.cc:6:16: error: 'A' was not declared in this scope
    6 |         cin >> A >> B >> C;
      |                ^
a.cc:6:21: error: 'B' was not declared in this scope
    6 |         cin >> A >> B >> C;
      |                     ^
a.cc:6:26: error: 'C' was not declared in this scope
    6 |         cin >> A >> B >> C;
      |                          ^
a.cc:7:9: error: 'ans' was not declared in this scope
    7 |         ans.at(0) = A.at(0);
      |         ^~~
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << ans << endl;
      |         ^~~~
a.cc:10:24: error: 'endl' was not declared in this scope
   10 |         cout << ans << endl;
      |                        ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:33: error: expected ';' before 'endl'
    5 |   cout << "A" << s2.at(0) << "C" endl;
      |                                 ^~~~~
      |                                 ;
Language: C++

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

int main() {
  int A,B,C;
  cin >> A >> B >> C;
  cout << A.at(0) << B.at(0) << C.at(0) << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: request for member 'at' in 'A', which is of non-class type 'int'
    7 |   cout << A.at(0) << B.at(0) << C.at(0) << endl;
      |             ^~
a.cc:7:24: error: request for member 'at' in 'B', which is of non-class type 'int'
    7 |   cout << A.at(0) << B.at(0) << C.at(0) << endl;
      |                        ^~
a.cc:7:35: error: request for member 'at' in 'C', which is of non-class type 'int'
    7 |   cout << A.at(0) << B.at(0) << C.at(0) << endl;
      |                                   ^~
Language: C++

#include<bits/stdc++.h>
#define yes cout<<"Yes"<<endl;
#define no cout<<"No"<<endl;
#define ll long long int
using namespace std;
int main()
{
    ll tc;
    ll a,b,c,n,x,y,z,cnt=0,sum=0;
    string str,str1,str1;
    int flag;
    cin>>str>>str1>>str2;
    
    cout<<str[0]<<str1[1]<<str2[0]<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: redeclaration of 'std::string str1'
   10 |     string str,str1,str1;
      |                     ^~~~
a.cc:10:16: note: 'std::string str1' previously declared here
   10 |     string str,str1,str1;
      |                ^~~~
a.cc:12:21: error: 'str2' was not declared in this scope; did you mean 'str1'?
   12 |     cin>>str>>str1>>str2;
      |                     ^~~~
      |                     str1
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    String x = sc.next();
    String c = sc.next();
    System.out.println(a+x[0]+c);
  }
}

Compiler output:
Main.java:9: error: array required, but String found
    System.out.println(a+x[0]+c);
                          ^
1 error
Language: C++

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

int main() {
  string S,A;
  cin >> A >> S >> A;
  cout << "A" + S.at(0) + "C" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
    7 |   cout << "A" + S.at(0) + "C" << endl;
      |           ~~~~~~~~~~~~~ ^ ~~~
      |               |           |
      |               const char* const char [2]
Language: C++

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

int main() {
  string s;
  cin >> s;
  
  cout << "A" + s.at(8) + "C" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
    8 |   cout << "A" + s.at(8) + "C" << endl;
      |           ~~~~~~~~~~~~~ ^ ~~~
      |               |           |
      |               const char* const char [2]
Language: C++

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

#define rep(i,n) for(int i = 0; i < (n); ++i)
#define ll long long
const ll mod = 1e9+7;
const ll INF = 1e18;
const double pi = acos(-1);

ll modmul(ll a,ll b,ll mod){
    return a%mod * (b%mod) %mod;
}

ll modpow(ll a,ll b,ll mod){
    if(b==0) return 1;
    else if(b%2==0) return modpow(modmul(a,a,mod),b/2,mod);
    else return modmul(modpow(a,b-1,mod),a,mod);
}

ll moddiv(ll a,ll b,ll mod){
    return a%mod * modpow(b,mod-2,mod) %mod;
}

int main(void)
{
    string a,b,c; cin>>a>>b>>c;
    cour<<'A'<<b[0]<<'C'<<endl;
    return 0;
}


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

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

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

#include <iostream>
#include <algorithm>
using namespace std{
    string a, b;
    cin >> a>> b;
    cout<<"A"<<b[0]<<"C"<<endl;
}

Compiler output:
a.cc:3:20: error: expected ';' before '{' token
    3 | using namespace std{
      |                    ^
      |                    ;
a.cc:3:20: error: expected unqualified-id before '{' token
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: invalid cast from type 'std::string' {aka 'std::__cxx11::basic_string<char>'} to type 'char'
    8 |     cout << a[0] << (char)hen << c[0] << endl;
      |                     ^~~~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: expected ';' before 'cout'
    7 |     hen = (int)b[0] - 0x20
      |                           ^
      |                           ;
    8 |     cout << a[0] << (char)hen << c[0] << endl;
      |     ~~~~