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

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

#define rep(i, n) for(int i = 0; i < (int)n; ++i)
#define repf(i, f, l) for(int i = f; i < (int)l; ++i)
#define repit(it, t) for(__typeof((t).begin()) it = (t).begin(); it != (t).end(); it++)
#define endl "\n"
#define pb emplace_back
#define lb lower_bound
#define int long long
#define ul unsigned long
#define ull unsigned long long
#define ll long long
#define INF 1000000007
#define MOD 1000000007
#define fs first
#define sd second
#define DBG0(x) { cout << #x << ": " << x << "\t"; }
#define DBG(x) {DBG0(x); cout << endl;}
#define DBG2(x, y) {DBG0(x); DBG(y);}
#define DBG3(x, y, z) {DBG0(x); DBG2(y, z);}
#define DBG4(w, x, y, z) {DBG0(w); DBG3(x, y, z);}

typedef vector<int> vint;
typedef vector<ll> vll;
typedef vector<ul> vul;
typedef vector<ull> vull;
typedef vector<bool> vbl;
typedef pair<int, int> pii;

int memo[1000];
int st(int n) {
    if (memo[n] != -1) return memo[n];

    int ans = 1;
    repf(i, 1, n + 1) {
        ans *= i;
        ans %= MOD;
    }
    return memo[n] = ans;
}

int solve(int x, vint s, int sz) {
    bool flg = true;
    rep (i, s.size()) {
        flg &= x < s[i];
    }
    if (flg) {
        return (st(sz) * x) % MOD;
    }

    int ans = 0;
    rep (i, s.size()) {
        vint ss;
        int new_x = x % s[i];
        if (new_x == x) {
            ans += x * st(sz - 1);
            ans %= MOD;
            continue;
        }
        rep(j, s.size()) {
            if (i != j && s[j] <= new_x) 
                ss.push_back(s[j]);
        }
        ans += solve(new_x, ss, sz - 1);
        ans %= MOD;
    }
    return ans;
}


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 <iostream>
#include <map>
#include <vector>

using namespace std;

int main() {
    long long MOD = 1000000007LL;
    int n, x;
    cin >> n >> x;
    vector <int> s;
    for (int i = 0; i < n; i++) {
        int t;
        cin >> t;
        s.push_back(t);
    }
    sort(s.begin(), s.end());

    map <int, long long> m1;
    m1[x] = 1;
    map <int, long long>::iterator it;
    for (int i = 0; i < n; i++) {
        map <int, long long> m2;
        for (it = m1.begin(); it != m1.end(); it++) {
            int m = it->first;
            long long t = it->second;
            for (int j = 0; j < s.size() - i; j++) {
                int v = m % s[j];
                m2[v] = (m2[v] + t) % MOD;
            }
        }
        m1 = m2;
    }
    long long ret = 0;
    for (it = m1.begin(); it != m1.end(); it++) {
        int m = it->first;
        long long t = it->second;
        ret = (ret + m * t) % MOD;
    }
    cout << ret << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   17 |     sort(s.begin(), s.end());
      |     ^~~~
      |     short
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#define lli long long int
#define ll long long
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
using namespace std;



ll facctorialMethod(ll k){
    int sum = 1;
    for (int i = 1; i <= k; ++i)
    {
        sum *= i;
    }
    return sum;
}

int main(){
	ll N, X;
	ll sum = X;
	ll ans = 0;
	cin >> N >> X;
  ll n = facctorialMethod(X);
	string s;
  for(int i = 0; i < N; i++){
   cin >> s[i];
  }
  for(ll j = 0; j < n; j++){
    string str = s.substr(j, N);
    for(int i = 0; i < N; i++){
      sum = sum % str[i];
    }
  ans += sum;
  }
  cout << ans % ((10e + 9) + 7);
	return 0;
}

Compiler output:
a.cc:38:19: error: exponent has no digits
   38 |   cout << ans % ((10e + 9) + 7);
      |                   ^~~
Language: C++

#include <cstdint>

template <std::uint_fast64_t mod> class modint {
  using u64 = std::uint_fast64_t;

public:
  u64 v;

  constexpr modint(const u64 x = 0) noexcept : v(x % mod) {}
  constexpr modint operator+(const modint rhs) const noexcept {
    return modint(*this) += rhs;
  }
  constexpr modint operator-(const modint rhs) const noexcept {
    return modint(*this) -= rhs;
  }
  constexpr modint operator*(const modint rhs) const noexcept {
    return modint(*this) *= rhs;
  }
  constexpr modint operator/(const modint rhs) const noexcept {
    return modint(*this) /= rhs;
  }
  constexpr modint &operator+=(const modint rhs) noexcept {
    v += rhs.v;
    if (v >= mod)
      v -= mod;
    return *this;
  }
  constexpr modint &operator-=(const modint rhs) noexcept {
    if (v < rhs.v)
      v += mod;
    v -= rhs.v;
    return *this;
  }
  constexpr modint &operator*=(const modint rhs) noexcept {
    v = v * rhs.v % mod;
    return *this;
  }
  constexpr modint &operator/=(modint rhs) noexcept {
    u64 exp = mod - 2;
    while (exp != 0) {
      if (exp % 2 != 0)
        *this *= rhs;
      rhs *= rhs;
      exp /= 2;
    }
    return *this;
  }
};

#include <utility>

template <class T, class U> constexpr T power(T x, U exp) {
  T ret = 1;
  while (exp != 0) {
    if (exp % 2 != 0)
      ret *= x;
    exp /= 2;
    x *= x;
  }
  return ret;
}

#include <iostream>
#include <vector>

int main() {
  using mint = modint<1000000007>;

  int b, w;
  std::cin >> b >> w;
  int n = b + w;

  std::vector<mint> fact(n);
  fact[0] = 1;
  for (int i = 1; i < n; ++i) {
    fact[i] = fact[i - 1] * i;
  }
  const auto comb = [&fact](int n, int r) {
    return fact[n] / fact[r] / fact[n - r];
  };

  mint p = 0, q = 0;

  for (int i = 1; i <= n; ++i) {
    std::cout << ((mint(1) - p + q) / 2).value() << std::endl;

    if (i >= b) {
      p += comb(i - 1, b - 1) / power(mint(2), i);
    }
    if (i >= w) {
      q += comb(i - 1, w - 1) / power(mint(2), i);
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:85:42: error: 'class modint<1000000007>' has no member named 'value'
   85 |     std::cout << ((mint(1) - p + q) / 2).value() << std::endl;
      |                                          ^~~~~
Language: C++

#include <bits/stdc++.h>
#include "../lib/math/comb.hpp"

using namespace std;

#define SZ(x) (int)(x.size())

using ll = long long;
using ld = long double;
using P = pair<int, int>;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using vll = vector<ll>;
using vvll = vector<vector<ll>>;
const double eps = 1e-10;
const ll MOD = 1000000007;
const int INF = 1000000000;
const ll LINF = 1ll<<50;

template<typename T>
void printv(const vector<T>& s) {
  for(int i=0;i<(int)(s.size());++i) {
    cout << s[i];
    if(i == (int)(s.size())-1) cout << endl;
    else cout << " ";
  }
}

template<typename T1, typename T2>
ostream& operator<<(ostream &os, const pair<T1, T2> p) {
  os << p.first << ":" << p.second;
  return os;
}

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout << fixed << setprecision(10);

  ll b, w; cin >> b >> w;
  Combination<MOD> comb(b+w+10);
  vll p1(b+w+2), p2(b+w+2);

  ll po = 1;
  for(int i=0;i<=b+w;++i) {
    
    po *= comb.getinv(2);
    po %= MOD;
    if(i >= b-1) p1[i+1] = p1[i] + po * comb.C(i, b-1) % MOD;
    p1[i+1] %= MOD;

    if(i >= w-1) p2[i+1] = p2[i] + po * comb.C(i, w-1) % MOD;
    p2[i+1] %= MOD;
  }

  for(int i=0;i<b+w;++i) {
    cout << comb.getinv(2) * (1 + MOD - p1[i] + p2[i]) % MOD << endl;
  }


}


Compiler output:
a.cc:2:10: fatal error: ../lib/math/comb.hpp: No such file or directory
    2 | #include "../lib/math/comb.hpp"
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <cassert>
#include <cstdint>
#include <limits>
#include <utility>

class montgomery_fp {
  using Self = montgomery_fp;

  using u64 = std::uint64_t;
  using u32 = std::uint32_t;
  using i32 = std::int32_t;

  static u32 mod;
  static u32 inv;
  static u32 r2;

  static u32 reduce(const u64 x) noexcept {
    const u32 y = u32(x >> 32) - u32(u64(u32(x) * inv) * mod >> 32);
    return i32(y) < 0 ? y + mod : y;
  }

  u32 v;

public:
  montgomery_fp(const u32 x = 0) noexcept : v(reduce(u64(x) * r2)) {}

  u32 get() const noexcept { return reduce(v); }

  Self operator+(const Self r) const noexcept { return Self(*this) += r; }
  Self operator-(const Self r) const noexcept { return Self(*this) -= r; }
  Self operator*(const Self r) const noexcept { return Self(*this) *= r; }
  Self operator/(const Self r) const noexcept { return Self(*this) /= r; }

  Self &operator+=(const Self r) noexcept {
    v += r.v;
    if (v >= mod)
      v -= mod;
    return *this;
  }
  Self &operator-=(const Self r) noexcept {
    if (v < r.v)
      v += mod;
    v -= r.v;
    return *this;
  }
  Self &operator*=(const Self r) noexcept {
    v = reduce(u64(v) * r.v);
    return *this;
  }
  Self &operator/=(const Self r) noexcept {
    u32 a = mod;
    u32 b = reduce(r.v);
    u32 s = 0;
    u32 t = 1;
    while (b != 1) {
      const u32 q = a / b;
      std::swap(a -= q * b, b);
      std::swap(s -= q * t, t);
    }
    if (i32(t) < 0)
      t += mod;
    v = v * t % mod;
    return *this;
  }

  static void set_mod(const u32 m) noexcept {
    assert(m < u32(1) << 31);
    assert(m % 2 == 1);
    mod = m;
    inv = m;
    for (u32 i = 0; i != 4; i += 1)
      inv *= u32(2) - inv * m;
    r2 = -u64(m) % m;
  }
  static u32 get_mod() noexcept { return mod; }
};
typename montgomery_fp::u32 montgomery_fp::mod;
typename montgomery_fp::u32 montgomery_fp::inv;
typename montgomery_fp::u32 montgomery_fp::r2;

#include <utility>

template <class T, class U> constexpr T power(T x, U exp) {
  T ret = static_cast<T>(1);
  while (exp) {
    if (exp % static_cast<U>(2) == static_cast<U>(1))
      ret *= x;
    exp /= static_cast<U>(2);
    x *= x;
  }
  return ::std::move(ret);
}

#include <iostream>
#include <vector>

int main() {
  using mint = montgomery_fp;
  mint::set_mod(1000000007);

  int b, w;
  std::cin >> b >> w;
  int n = b + w;

  std::vector<mint> fact(n);
  fact[0] = 1;
  for (int i = 1; i < n; ++i) {
    fact[i] = fact[i - 1] * i;
  }
  const auto comb = [&fact](int n, int r) {
    return fact[n] / fact[r] / fact[n - r];
  };

  mint p = 0, q = 0;

  for (int i = 1; i <= n; ++i) {
    std::cout << ((mint(1) - p + q) / 2).value() << std::endl;

    if (i >= b) {
      p += comb(i - 1, b - 1) / power(mint(2), i);
    }
    if (i >= w) {
      q += comb(i - 1, w - 1) / power(mint(2), i);
    }
  }

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:117:42: error: 'using montgomery_fp::Self = class montgomery_fp' {aka 'class montgomery_fp'} has no member named 'value'
  117 |     std::cout << ((mint(1) - p + q) / 2).value() << std::endl;
      |                                          ^~~~~
Language: C++

#include <bits/stdc++.h>


using namespace std;



const int MAXN = 200 * 1000 + 23, D = 1000 * 1000 * 1000 + 7;



int b, w, f[MAXN], in[MAXN], se[MAXN], si[MAXN], itp[MAXN];

int inv(int x) {
    int y = D - 2, res = 1;
    for (; y; y >>= 1, x = 1ll * x * x % D)
        if (y & 1)
            res = 1ll * res * x % D;
    return res;
}
int ch(int x, int y) { return f[y] * in[x] % D * in[y - x] % D; }








//pend
int main() {
    cin >> b >> w;
    f[0] = 1;
    for (int i = 1; i < MAXN; i++)
        f[i] = 1ll * f[i - 1] * i % D, ;
    in[MAXN - 1] = inv(f[MAXN - 1]);
    for (int i = MAXN - 2; ~i; i--)
        in[i] = 1ll * in[i + 1] * (i + 1) % D;
    for (int i = 1; i <= b + w; i++)
        se[i] = se[i - 1] + ch() * % D, si[i] = si[i - 1] + ch() * % D;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:40: error: expected primary-expression before ';' token
   35 |         f[i] = 1ll * f[i - 1] * i % D, ;
      |                                        ^
a.cc:40:31: error: too few arguments to function 'int ch(int, int)'
   40 |         se[i] = se[i - 1] + ch() * % D, si[i] = si[i - 1] + ch() * % D;
      |                             ~~^~
a.cc:21:5: note: declared here
   21 | int ch(int x, int y) { return f[y] * in[x] % D * in[y - x] % D; }
      |     ^~
a.cc:40:36: error: expected primary-expression before '%' token
   40 |         se[i] = se[i - 1] + ch() * % D, si[i] = si[i - 1] + ch() * % D;
      |                                    ^
a.cc:40:63: error: too few arguments to function 'int ch(int, int)'
   40 |         se[i] = se[i - 1] + ch() * % D, si[i] = si[i - 1] + ch() * % D;
      |                                                             ~~^~
a.cc:21:5: note: declared here
   21 | int ch(int x, int y) { return f[y] * in[x] % D * in[y - x] % D; }
      |     ^~
a.cc:40:68: error: expected primary-expression before '%' token
   40 |         se[i] = se[i - 1] + ch() * % D, si[i] = si[i - 1] + ch() * % D;
      |                                                                    ^
Language: C++

#include<algorithm>
#include<iostream>
#include<vector>
#include<string>
#define int long long
#define vel vector<long long>
using namespace std;
int pr = 1000000007;
int rui(int a, int n, int p) {
	if (n == 0) {
		return 1;
	}
	int x = rui(a, n / 2, p);
	x *= x;
	x = x % p;
	int bai = 1;
	if (n % 2 == 1) {
		bai = a % p;
	}
	x *= bai;
	x = x % p;
	return x;
}
int inv(int a, int p) {
	a = a % p;
	return rui(a, p - 2, p);
}
int inpe(int n, int r, vel &kai,vel &ink) {
	if (0 <= r and r <= n) {
		int ans = kai[n-r];
		return (ans*(ink[n])) % pr;
	}
	return 0;
}
int per(int n, int r, vel &kai, vel &ink) {
	if (0 <= r and r <= n) {
		int ans = kai[n];
		return (ans*(ink[n - r])) % pr;
	}
	return 0;
}
int comb(int n, int r, vel &kai, vel &ink) {
	if (0 <= r and r <= n) {
		int ans = (kai[n]*ink[r]);
		return (ans*(ink[n - r])) % pr;
	}
	return 0;
}
void ref(int &x) { x= (x + pr) % pr; }
signed main() {
	int dz = 200000+100;
	int pr = 1000;
	vel kai(dz + 1,1);
	vel ink(dz + 1,1);
	vel ru(dz + 1, 1);
	vel r(dz + 1, 1);
	int b, w; cin >> b >> w;
	int sum = b + w;
	pr *= pr * pr;
	pr += 7;
	for (int i = 1; i <= dz; i++) {
		kai[i] = (kai[i - 1] * i) % pr;
	}
	for (int i = 1; i <= dz; i++) {
		ink[i] = inv(kai[i], pr);
	}
	for (int i = 1; i <= dz; i++) {
		ru[i] = (ru[i - 1] * ink[2]) % pr;
		r[i] = (r[i - 1] * 2) % pr;
	}
	int bl = 0;
	int wh = 0;
	for (int n = 1; n <= sum+1; n++) {
		bl *= 2;
		bl += comb(n, b, kai, ink);
		bl = bl % pr;
		wh *= 2;
		wh += comb(n, w, kai, ink);
		wh = wh % pr;
		int ans = r[i]-bl - wh;
		ans = ans % pr; ref(ans);
		ans *= ru[n+1];
		ans = ans % pr;
		cout << ans << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:80:29: error: 'i' was not declared in this scope
   80 |                 int ans = r[i]-bl - wh;
      |                             ^
Language: C++

4 5 4 EEWW NSNNS 4 1 1 4 1 3 1 2 4 2 3 2 3 3 3 5

Compiler output:
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 4 5 4 EEWW NSNNS 4 1 1 4 1 3 1 2 4 2 3 2 3 3 3 5
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  char b;
  cin >> b;
    if(b == 'A')b = 'T'; 
    else if(b == 'T')b = 'A';
    else if(b == 'C')b = 'G';
    else if(b == 'G')b = 'C';
  cout << b << endl;
  }
}


Compiler output:
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  char b;
  cin >> b;
    if(b == 'A')b = 'T'; 
    else if(b == 'T')b = 'A';
    else if(b == 'C')b = 'G';
    else if(b == 'G')b = 'C';
  cout << b << endl;
  }
}//こんな感じか


Compiler output:
a.cc:12:1: error: expected declaration before '}' token
   12 | }//こんな感じか
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main {
  stiring b;
  cin >> b;
  for(int i=0; i < b.at(); i++){
    if(b.at(i) == A){b.at(i) = T;}
    if(b.at(i) == T){b.at(i) = A;}
    if(b.at(i) == C){b.at(i) = G;}
    if(b.at(i) == G){b.at(i) = C;}
  }
}//こんな感じか

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main {
      |     ^~~~
a.cc:4:3: error: 'stiring' was not declared in this scope; did you mean 'stdin'?
    4 |   stiring b;
      |   ^~~~~~~
      |   stdin
a.cc:4:11: error: expected '}' before 'b'
    4 |   stiring b;
      |           ^
a.cc:3:10: note: to match this '{'
    3 | int main {
      |          ^
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin >> b;
      |   ^~~
a.cc:6:3: error: expected unqualified-id before 'for'
    6 |   for(int i=0; i < b.at(); i++){
      |   ^~~
a.cc:6:16: error: 'i' does not name a type
    6 |   for(int i=0; i < b.at(); i++){
      |                ^
a.cc:6:28: error: 'i' does not name a type
    6 |   for(int i=0; i < b.at(); i++){
      |                            ^
a.cc:12:1: error: expected declaration before '}' token
   12 | }//こんな感じか
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  char s;
  cin >> s;
  
  if (s == "A"){
    cout << "T";
  }else if (s == "T"){
    cout << "A";
  }else if (s == "C"){
    cout << "G";
  }else{
    cout << "C";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (s == "A"){
      |       ~~^~~~~~
a.cc:10:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   }else if (s == "T"){
      |             ~~^~~~~~
a.cc:12:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   }else if (s == "C"){
      |             ~~^~~~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
  char a;
  cin>>a;
  if(a=="A")
    cout<<"T";
  else if(a=="C")
    cout<<"G";
  else if(a=="T")
    cout<<"A";
  else 
    cout<<"C";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if(a=="A")
      |      ~^~~~~
a.cc:8:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   else if(a=="C")
      |           ~^~~~~
a.cc:10:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   else if(a=="T")
      |           ~^~~~~
Language: C++

#include <iostream> 
using namespace std;
int main () {
	char b;
	cin>> b;
    if(b==C){
    cout<<'G';
    }
    else if(b==G){
    cout<<'C';
    }
 	else if(b==A){
    cout<<'T';
    }
 	else {
    cout<<'A';
    }
return 0 ;
}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'C' was not declared in this scope
    6 |     if(b==C){
      |           ^
a.cc:9:16: error: 'G' was not declared in this scope
    9 |     else if(b==G){
      |                ^
a.cc:12:20: error: 'A' was not declared in this scope
   12 |         else if(b==A){
      |                    ^
Language: C++

#include <iostream>

int main()
{
  std::string s;
  std::cin >> s;
  if(s == "A") cout << "T";
  if(s == "T") cout << "A";
  if(s == "C") cout << "G";
  if(s == "G") cout << "C";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   if(s == "A") cout << "T";
      |                ^~~~
      |                std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:16: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   if(s == "T") cout << "A";
      |                ^~~~
      |                std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:16: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   if(s == "C") cout << "G";
      |                ^~~~
      |                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:16: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   if(s == "G") cout << "C";
      |                ^~~~
      |                std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>

int main()
{
  string s;
  cin >> s;
  if(s == "A") cout << "T";
  if(s == "T") cout << "A";
  if(s == "C") cout << "G";
  if(s == "G") cout << "C";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string s;
      |   ^~~~~~
a.cc:5:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> s;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:10: error: 's' was not declared in this scope
    6 |   cin >> s;
      |          ^
a.cc:7:16: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   if(s == "A") cout << "T";
      |                ^~~~
      |                std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:16: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   if(s == "T") cout << "A";
      |                ^~~~
      |                std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:16: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   if(s == "C") cout << "G";
      |                ^~~~
      |                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:16: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   if(s == "G") cout << "C";
      |                ^~~~
      |                std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>
using namespace std;
int main()
{
  char a;
  cin>>a;
  if(a=='T'){cout<<"A"}
  if(a=='A'){cout<<"T"}
  if(a=='G'){cout<<"C"}
  if(a=='C'){cout<<"G"}
  return 1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: expected ';' before '}' token
    7 |   if(a=='T'){cout<<"A"}
      |                       ^
      |                       ;
a.cc:8:23: error: expected ';' before '}' token
    8 |   if(a=='A'){cout<<"T"}
      |                       ^
      |                       ;
a.cc:9:23: error: expected ';' before '}' token
    9 |   if(a=='G'){cout<<"C"}
      |                       ^
      |                       ;
a.cc:10:23: error: expected ';' before '}' token
   10 |   if(a=='C'){cout<<"G"}
      |                       ^
      |                       ;
Language: Java

import java.util.Scanner;
public class Main {
  	public static void main (String [] args){
      	Scanner sc = new Scanner (System.in);
      	char in = sc.nextInt().charAt(0);
      	if (in == 'A')
          	System.out.println('T');
      	else if (in == 'T')
          	System.out.println('A');
      	else if (in == 'C')
          	System.out.println('G');
      	else
          	System.out.println('C');
    }
}

Compiler output:
Main.java:5: error: int cannot be dereferenced
      	char in = sc.nextInt().charAt(0);
      	                      ^
1 error
Language: C++

#include <iostream>
using namespace std;
int main(void){
    
    char C;
    cin >> C;
    
    if(C == "A") cout << "T" << endl;
    if(C == "T") cout << "A" << endl;
    if(C == "C") cout << "G" << endl;
    if(C == "G") cout << "C" << endl;



}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(C == "A") cout << "T" << endl;
      |        ~~^~~~~~
a.cc:9:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(C == "T") cout << "A" << endl;
      |        ~~^~~~~~
a.cc:10:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if(C == "C") cout << "G" << endl;
      |        ~~^~~~~~
a.cc:11:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(C == "G") cout << "C" << endl;
      |        ~~^~~~~~
Language: Java

import java.util.Scanner;
public class Main {
  	public static void main (String [] args){
      	Scanner sc = new Scanner (System.in);
      	char in = sc.nextInt().charAt(0);
      	if (in == A)
          	System.out.println('T');
      	else if (in == 'T')
          	System.out.println('A');
      	else if (in == 'C')
          	System.out.println('G');
      	else
          	System.out.println('C');
    }
}

Compiler output:
Main.java:5: error: int cannot be dereferenced
      	char in = sc.nextInt().charAt(0);
      	                      ^
Main.java:6: error: cannot find symbol
      	if (in == A)
      	          ^
  symbol:   variable A
  location: class Main
2 errors
Language: Java

import java.util.Scanner;
public class Main {
  	public static void main (String [] args){
      	Scanner sc = new Scanner (System.in);
      	char in = sc.nextInt().charAt(0);
      	if (in == A)
          	System.out.println("T");
      	else if (in == 'T')
          	System.out.println('A');
      	else if (in == 'C')
          	System.out.println('G');
      	else
          	System.out.println('C');
    }
}

Compiler output:
Main.java:5: error: int cannot be dereferenced
      	char in = sc.nextInt().charAt(0);
      	                      ^
Main.java:6: error: cannot find symbol
      	if (in == A)
      	          ^
  symbol:   variable A
  location: class Main
2 errors
Language: Java

public class Main {
  	public static void main (String [] args){
      	Scanner sc = new Scanner (System.in);
      	char in = sc.nextInt().charAt(0);
      	if (in == A)
          	System.out.println("T");
      	else if (in == 'T')
          	System.out.println("A");
      	else if (in == 'C')
          	System.out.println('G');
      	else
          	System.out.println('C');
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
      	Scanner sc = new Scanner (System.in);
      	^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
      	Scanner sc = new Scanner (System.in);
      	                 ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
      	if (in == A)
      	          ^
  symbol:   variable A
  location: class Main
3 errors
Language: Java

import java.util.*;
import java.io.*;

public class AnotherAnotherMain3 {

	public static void main(String[] args)throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		StringTokenizer st = new StringTokenizer(br.readLine());
		int A = Integer.parseInt(st.nextToken());
		int Q = Integer.parseInt(st.nextToken());
		String S = br.readLine();
		int []PrefixSumArr = new int[S.length() + 1];
		for(int i =1; i<S.length(); i++) {
			if(S.charAt(i-1)=='A' && S.charAt(i) == 'C') {
				PrefixSumArr[i]++;
			}
		}
		
		for(int i = 1; i<=S.length(); i++) PrefixSumArr[i] += PrefixSumArr[i-1];
		for(int i =0; i<Q; i++) {
			st = new StringTokenizer(br.readLine());
			int length = Integer.parseInt(st.nextToken());
			int row = Integer.parseInt(st.nextToken());
			int counter = PrefixSumArr[row-1] - PrefixSumArr[length-1];
			System.out.println(counter);
		}
			
		
	}

}


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

import java.util.*;
public class main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String b = sc.next();
		if (b.charAt(0)=='A'){
			System.out.println('T');
		}else if (b.charAt(0)=='C'){
			System.out.println('G');
		}else if (b.charAt(0)=='G'){
			System.out.println('C');
		}else{
			System.out.println('A');
		}
	}

}


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

import java.util.*;
public class double_helix {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String b = sc.next();
		if (b.charAt(0)=='A'){
			System.out.println('T');
		}else if (b.charAt(0)=='C'){
			System.out.println('G');
		}else if (b.charAt(0)=='G'){
			System.out.println('C');
		}else{
			System.out.println('A');
		}
	}

}


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

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

public class Qabc122adoublehelix
{
	public static void main(String[] Arguments) throws IOException 
	{
		BufferedReader BR = new BufferedReader(new InputStreamReader(System.in));
		char C = BR.readLine().charAt(0);
		switch (C)
		{
		case 'A':
			System.out.println("T");
			break;
		case 'T':
			System.out.println("A");
			break;
		case 'C':
			System.out.println("G");
			break;
		case 'G':
			System.out.println("C");
			break;
		}
	}
}


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

import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        char b = scan.next();
        if(b.equals("A")) System.out.println("T");
        else if(b.equals("T")) System.out.println("A");
        else if(b.equals("C")) System.out.println("G");
        else System.out.println("C");
        scan.close();
    }
}

Compiler output:
Main.java:6: error: incompatible types: String cannot be converted to char
        char b = scan.next();
                          ^
Main.java:7: error: char cannot be dereferenced
        if(b.equals("A")) System.out.println("T");
            ^
Main.java:8: error: char cannot be dereferenced
        else if(b.equals("T")) System.out.println("A");
                 ^
Main.java:9: error: char cannot be dereferenced
        else if(b.equals("C")) System.out.println("G");
                 ^
4 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  char b;
  cin >> b;
  if(b=='A'){
    cout << 'T' << endl;
  }
  else if(b=='T'){
    cout << 'A' << endl;
  }
  else if(b=='G'){
    cout << 'C' << endl;
  }
  else {
    cout << 'G' << endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:17:4: error: expected '}' at end of input
   17 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

/A/{print "T"}
/T/{print "A"}
/C/{print "G"}
/G/{print "C"}


Compiler output:
a.cc:1:1: error: expected unqualified-id before '/' token
    1 | /A/{print "T"}
      | ^
a.cc:2:1: error: expected unqualified-id before '/' token
    2 | /T/{print "A"}
      | ^
a.cc:3:1: error: expected unqualified-id before '/' token
    3 | /C/{print "G"}
      | ^
a.cc:4:1: error: expected unqualified-id before '/' token
    4 | /G/{print "C"}
      | ^
Language: C++

#include <iostream>
#include <vector>
#include <cmath>
#include <iomanip>
#include <algorithm>
#include <queue>
using namespace std;
#define rep(i,n) for(int i=0; i<(n); i++)
#define all(x) (x).begin(), (x).end()

int main() {
    char a;
    cin>>a;
    if(a=='A')cout<<'T';
    if(a=='T')cout<<"A";
    if(a=='G')cout<<"C";
    if(a=="C")cout<<"G";
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |     if(a=="C")cout<<"G";
      |        ~^~~~~
Language: C++

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

int main(){
  char c;
  cin>>c;
  if(c=='A') cout<<"T"<<endl;
  if(c=='T') cout<<'A'<<endl;
  if(c=='G') cout<<'C'<<ednl;
  else cout<<'G'<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: 'ednl' was not declared in this scope
    9 |   if(c=='G') cout<<'C'<<ednl;
      |                         ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
#define REP2(i, n) for (int i = 1; i <= (int)(n); i++)
#define FOR(i, m, n) for (int i = m; i n; i++)
#define SORT(x) sort(x.begin(), x.end())
#define REVE(x) reverse(x.begin(), x.end())
#define all(x) (x).begin(), (x).end()
struct initon
{
    initon()
    {
        cin.tie(0);
        ios::sync_with_stdio(false);
    };
};
int k=0,n=0, m=0, l=0,a=0, b=0, c=0, d=0,e=0,ans=0,ans2=0,x=0,y=0;
string s,t,S;
signed main() {
    vector<int> A(5);
    //cin >> x >> y;
    //cin >> s >> t;
  cin>>s;
  if(s=="A"){
  cout << "T";
  }else if(s=="C"){
    cout<<"G";
}else if(s=="G"){
  cout << "C";
}else{A
  cout <<"G";
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:8: error: expected ';' before 'cout'
   31 | }else{A
      |        ^
      |        ;
   32 |   cout <<"G";
      |   ~~~~
Language: C++

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

int main() {
	int b;
  	cin>>b;
  
  if(b==A){
  	cout<<"T"<<endl;
  }
  if(b==T){
  	cout<<"A"<<endl;
  }  

  if(b==G){
  	cout<<"C"<<endl;
  }  

  if(b==C){
  	cout<<"G"<<endl;
  }    
  
  
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'A' was not declared in this scope
   10 |   if(b==A){
      |         ^
a.cc:13:9: error: 'T' was not declared in this scope
   13 |   if(b==T){
      |         ^
a.cc:17:9: error: 'G' was not declared in this scope
   17 |   if(b==G){
      |         ^
a.cc:21:9: error: 'C' was not declared in this scope
   21 |   if(b==C){
      |         ^
Language: C++

#include<algorithm>//sort,二分探索,など
#include<bitset>//固定長bit集合
#include<cmath>//pow,logなど
#include<complex>//複素数
#include<deque>//両端アクセスのキュー
#include<functional>//sortのgreater
#include<iomanip>//setprecision(浮動小数点の出力の誤差)
#include<iostream>//入出力
#include<iterator>//集合演算(積集合,和集合,差集合など)
#include<map>//map(辞書)
#include<numeric>//iota(整数列の生成),gcdとlcm(c++17)
#include<queue>//キュー
#include<set>//集合
#include<stack>//スタック
#include<string>//文字列
#include<unordered_map>//イテレータあるけど順序保持しないmap
#include<unordered_set>//イテレータあるけど順序保持しないset
#include<utility>//pair
#include<vector>//可変長配列

// vectorの重複削除
// std::sort(test.begin(), test.end());
// test.erase(std::unique(test.begin(), test.end()), test.end());

using namespace std;
using ll = long long;
using P = pair<int, int>; // vector<P> ba(n); みたいな感じですぐ使える ba[i] = P(a, b); make_pairをしなくてもいい
// typedef vector<int> v;
template <class T>ostream &operator<<(ostream &o,const vector<T>&v){o<<"{";for(int i=0;i<(int)v.size();i++)o<<(i>0?", ":"")<<v[i];o<<"}";return o;}
#define debug(v) {cerr<<"\033[1;36m[debug]\033[m "<<#v<<" : "<<v<<endl;}
#define rep(i, c) for(int i = 0; i < int(c); i++)
#define ALL(x) (x).begin(), (x).end() //sort(ALL(obj))みたいな
#define SIZE(x) ((ll)(x).size()) //sizeをsize_tからllに直しておく
#define MAX(x) *max_element(ALL(x)) //最大値
#define pb push_back //
// const int MOD = 1000000007;
// string alpha="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
// printf("%.20f\n", ans); あれ
// const double PI = 3.141592653589793238462643383;

int main() {
  //std::vector<int> v(5);
  char n; cin>>n;
  if (n == 'A') {
    cout << 'T' << endl;
    return ;
  }
  if (n == 'T') {
    cout << 'A' << endl;
    return ;
  }
  if (n == 'C') {
    cout << 'G' << endl;
    return ;
  }
  if (n == 'G') {
    cout << 'C' << endl;
    return ;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:46:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   46 |     return ;
      |     ^~~~~~
a.cc:50:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   50 |     return ;
      |     ^~~~~~
a.cc:54:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   54 |     return ;
      |     ^~~~~~
a.cc:58:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   58 |     return ;
      |     ^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){	
	string s;
  	cin>>s;
  	if(s.at(0 == 'A'){
    	cout<<"T"<<"\n";
    }
       else if(s.at(0 == 'T')
    	{
    	cout<<"A"<<"\n";
    }
    else if(s.at(0 == 'G'){
    	cout<<"C"<<"\n";
    }
       else if(s.at(0 == 'C')
    	{
    	cout<<"G"<<"\n";
    }


	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:26: error: expected ')' before '{' token
    6 |         if(s.at(0 == 'A'){
      |           ~              ^
      |                          )
Language: C++

#include<bits/stdc+++.h>
using namespace std;
int main(){	
	string s;
  	cin>>s;
  	if(s.at(0 == 'A'){
    	cout<<"T"<<"\n";
    }
       else if(s.at(0 == 'T')
    	{
    	cout<<"A"<<"\n";
    }
    else if(s.at(0 == 'G'){
    	cout<<"C"<<"\n";
    }
       else if(s.at(0 == 'C')
    	{
    	cout<<"G"<<"\n";
    }


	return 0;
}

Compiler output:
a.cc: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() {
  chat c;cin>>c;
  if (c == 'A') cout << 'T' << endl;
  else if (c == 'T') cout << 'A' << endl;
  else if (c == 'G') cout << 'C' << endl;
  else if (c == 'C') cout << 'G' << endl;
  return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
#define rep(i,N) for(int i=0; i<N; i++){    ;
int main() {
 char b;
 cin>>b;
 if(b=='A'){
     cout<<"T"<<endl;
 }
 else if(b=='T'){
     cout<<"A"<<endl;
 }
 else if(b=='C'){
     cout<<G<<endl;
 }
 else if(b=='G'){
     cout<<"C"<<endl;
 }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: 'G' was not declared in this scope
   15 |      cout<<G<<endl;
      |            ^
Language: C++

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

int main(){
    char C;
    cin >> C;
    if(C == 'A'){
        cout << "T";
    }else if(C == 'T'){
        cout << "A";
    }else if(C == 'C'){
        cout << "G";
    }else if(C == 'G'){
        cout << "C"
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:20: error: expected ';' before '}' token
   14 |         cout << "C"
      |                    ^
      |                    ;
   15 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;

#define MOD (int)1e9+7
#define rep(i,a,b) for(int i=a;i<b;++i)
#define rrep(i,a,b) for(int i=a;i>b;--i)
#define vi vector<int>
#define vl vector<ll>
#define ld long double
#define vvi vector<vector<int>>
#define vvl vector<vector<long long>>
#define pii pair<int,int>
#define pll pair<long,long>
#define vpii vector<pii>
#define vpll vector<pll>
#define ff first
#define ss second
#define pb push_back
#define mp make_pair
#define PI 3.1415926535897932384626433832795
#define fix(f,n) fixed<<setprecision(n)<<f
#define all(x) x.begin(),x.end()

ll powM(ll a,ll b,ll m )
{ 
  a%=m;
  ll ans=1;
  while(b>0)
  {
    if(b&1)ans=ans*a%m;
    a=a*a%m;
    b>>=1;
  }

return ans;
}



int main()
{


char x;cin>>x;

if(x=='A')cout<<"T"<<"\n";
else if(x=='T')cout<<"A"<<"\n";
else if(x=='G')cout<<"C"<<<"\n";
else cout<<"G"<<"\n";

return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:51:27: error: expected primary-expression before '<' token
   51 | else if(x=='G')cout<<"C"<<<"\n";
      |                           ^
Language: C++

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

int main() {
	char a; cin >> a;
	if(a=='A') cout << 'T' << endl;
	else if(a=='T') cout << 'A' << endl;
	else if(a=='C') cout << 'D' << endl;
	else cout << 'C' << endl;
}

Compiler output:
a.cc:4:7: error: expected nested-name-specifier before 'long'
    4 | using long long  = ll;
      |       ^~~~
Language: C++

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

int main(){
  string x;
  cin >> x;
  if(x == "A"){
    cout << "T" << endl;
  }
  else if(x == "T"){
    cout << "A" << endl;
  }
  else if(x == "G"){
    cout << "C" << endl;
  }
  else if(x == "C"){
    cout << "G" << endl;
  }
  
}
  
  

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inckude; did you mean #include?
    1 | #inckude <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string x;
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #inckude <bits/stdc++.h>
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> x;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inckude <bits/stdc++.h>
a.cc:6:10: error: 'x' was not declared in this scope
    6 |   cin >> x;
      |          ^
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << "T" << endl;
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:20: error: 'endl' was not declared in this scope
    8 |     cout << "T" << endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inckude <bits/stdc++.h>
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << "A" << endl;
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:20: error: 'endl' was not declared in this scope
   11 |     cout << "A" << endl;
      |                    ^~~~
a.cc:11:20: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout << "C" << endl;
      |     ^~~~
a.cc:14:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:20: error: 'endl' was not declared in this scope
   14 |     cout << "C" << endl;
      |                    ^~~~
a.cc:14:20: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:17:5: error: 'cout' was not declared in this scope
   17 |     cout << "G" << endl;
      |     ^~~~
a.cc:17:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:20: error: 'endl' was not declared in this scope
   17 |     cout << "G" << endl;
      |                    ^~~~
a.cc:17:20: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

string my_pair(string S) {
  if (S == "A") return "T";
  if (S == "T") return "A";
  if (S == "C") return "G";
  if (S == "G") return "C";

int main(){
  string T;
  cin >> T;
  
  cout << my_pair(T) << endl;

}

Compiler output:
a.cc: In function 'std::string my_pair(std::string)':
a.cc:13:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   13 | int main(){
      |         ^~
a.cc:13:9: note: remove parentheses to default-initialize a variable
   13 | int main(){
      |         ^~
      |         --
a.cc:13:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:13:11: error: a function-definition is not allowed here before '{' token
   13 | int main(){
      |           ^
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:7:26: note: to match this '{'
    7 | string my_pair(string S) {
      |                          ^
a.cc:19:2: warning: control reaches end of non-void function [-Wreturn-type]
   19 | }
      |  ^
Language: C++

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

int main(){
  char b;
  cin >> b;
  if(b == 'A'){
    cout << 'T'<<endl;
  }
  else if (b == 'T') {
    cout << 'A' << endl
  }
  else if (b == 'C') {
    cout << 'G' << endl;
  }
  else {
  cout << 'C' <<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: expected ';' before '}' token
   11 |     cout << 'A' << endl
      |                        ^
      |                        ;
   12 |   }
      |   ~
Language: C++

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

signed main() {
    string a;
    cin >> a;
    if (a == "A") {
        cout << "T" << endl;
        return 0;
    }
    if (a == "T") {
        cout << "A" << endl;;
        return 0;
    }
    if (a == "C") {
        cout << "G" << endl;
        return 0;
    }
    cout << "C" << endl
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:24: error: expected ';' before '}' token
   20 |     cout << "C" << endl
      |                        ^
      |                        ;
   21 | }
      | ~
Language: C++

#include<iostream>
using namespace std;
int main(void){
  string b;
  cin>>b;
  switch(b){
    case 'A':
      cout<<"T\n"<<endl;
      break;
    case 'T':
      cout<<"A\n"<<endl;
      break;
    case 'G':
      cout<<"C\n"<<endl;
      break;
    case 'C':
      cout<<"G\n"<<endl;
      break;
    default:
      break;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: switch quantity not an integer
    6 |   switch(b){
      |          ^