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

process.stdin.resume();
process.stdin.setEncoding('utf8');

var lines = [];
var reader = require('readline').createInterface({
	input: process.stdin,
	output: process.stdout
});

reader.on('line', (line) => {
	lines.push(line);
});

reader.on('close', () => {
  const S = lines[0];
  let ans = {A: "T", T:"A", G:"C", C:"G"}[S]
  console.log(ans);
});

Compiler output:
a.cc:2:27: warning: multi-character character constant [-Wmultichar]
    2 | process.stdin.setEncoding('utf8');
      |                           ^~~~~~
a.cc:5:22: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    5 | var reader = require('readline').createInterface({
      |                      ^~~~~~~~~~
a.cc:10:11: warning: multi-character character constant [-Wmultichar]
   10 | reader.on('line', (line) => {
      |           ^~~~~~
a.cc:14:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
   14 | reader.on('close', () => {
      |           ^~~~~~~
a.cc:1:1: error: 'process' does not name a type
    1 | process.stdin.resume();
      | ^~~~~~~
a.cc:2:1: error: 'process' does not name a type
    2 | process.stdin.setEncoding('utf8');
      | ^~~~~~~
a.cc:4:1: error: 'var' does not name a type
    4 | var lines = [];
      | ^~~
a.cc:5:1: error: 'var' does not name a type
    5 | var reader = require('readline').createInterface({
      | ^~~
a.cc:8:2: error: expected unqualified-id before ')' token
    8 | });
      |  ^
a.cc:10:1: error: 'reader' does not name a type
   10 | reader.on('line', (line) => {
      | ^~~~~~
a.cc:12:2: error: expected unqualified-id before ')' token
   12 | });
      |  ^
a.cc:14:1: error: 'reader' does not name a type
   14 | reader.on('close', () => {
      | ^~~~~~
a.cc:18:2: error: expected unqualified-id before ')' token
   18 | });
      |  ^
Language: C++

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


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

#include<iostream>
using namespace stfd;
int main(){
  char b;
  cin>>b;
  if(b=='a')cout<<'t';
  if else(b=='t')cout<<'a';
  if else(b=='c')cout<<'g';
  if else(b=='g')cout<<'c';
}

Compiler output:
a.cc:2:17: error: 'stfd' is not a namespace-name
    2 | using namespace stfd;
      |                 ^~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>b;
      |   ^~~
      |   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:6:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   if(b=='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:7:6: error: expected '(' before 'else'
    7 |   if else(b=='t')cout<<'a';
      |      ^~~~
      |      (
a.cc:8:6: error: expected '(' before 'else'
    8 |   if else(b=='c')cout<<'g';
      |      ^~~~
      |      (
a.cc:9:6: error: expected '(' before 'else'
    9 |   if else(b=='g')cout<<'c';
      |      ^~~~
      |      (
Language: C++

#include<bits/stdc++.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>b;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     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:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     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:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     cout<<'C';
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |     cout<<'G';
      |     ^~~~
      |     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 == "A") {
                cout << "T";
        }else{
                cout << "G";
        }
}

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

#include<vector>
#include<string>
using namespace std;
int main() {
  char b;
  cin>>b;
  if(b=='A') {
    cout<<'T'<<endl;
  }
  if(b=='T') {
    cout<<'A'<<endl;
  }
  if(b=='C') {
    cout<<'G'<<endl;
  }
  if(b=='G') {
    cout<<'C'<<endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>b;
      |   ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<string>
  +++ |+#include <iostream>
    3 | using namespace std;
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:16: error: 'endl' was not declared in this scope
    8 |     cout<<'T'<<endl;
      |                ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include<string>
  +++ |+#include <ostream>
    3 | using namespace std;
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:16: error: 'endl' was not declared in this scope
   11 |     cout<<'A'<<endl;
      |                ^~~~
a.cc:11:16: 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<<'G'<<endl;
      |     ^~~~
a.cc:14:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:16: error: 'endl' was not declared in this scope
   14 |     cout<<'G'<<endl;
      |                ^~~~
a.cc:14:16: 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<<'C'<<endl;
      |     ^~~~
a.cc:17:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:16: error: 'endl' was not declared in this scope
   17 |     cout<<'C'<<endl;
      |                ^~~~
a.cc:17:16: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C

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

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


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

#include<bits/stdc++.h>
using namespace std;
int main()
{
	string s;
	getline(cin,s);
	int i;
	for(i=0;i<s.size():i++)
	{
		if(s[i]=='A')  cout<<'T';
		if(s[i]=='C')  cout<<'G';
		if(s[i]=='G')  cout<<'C';
		if(s[i]=='T')  cout<<'A';
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: warning: range-based 'for' loops with initializer only available with '-std=c++20' or '-std=gnu++20' [-Wc++20-extensions]
    8 |         for(i=0;i<s.size():i++)
      |                 ^
a.cc:8:27: error: expected ';' before ':' token
    8 |         for(i=0;i<s.size():i++)
      |                           ^
      |                           ;
a.cc:15:9: error: expected primary-expression before 'return'
   15 |         return 0;
      |         ^~~~~~
a.cc:14:10: error: expected ';' before 'return'
   14 |         }
      |          ^
      |          ;
   15 |         return 0;
      |         ~~~~~~
a.cc:15:9: error: expected primary-expression before 'return'
   15 |         return 0;
      |         ^~~~~~
a.cc:14:10: error: expected ')' before 'return'
   14 |         }
      |          ^
      |          )
   15 |         return 0;
      |         ~~~~~~
a.cc:8:12: note: to match this '('
    8 |         for(i=0;i<s.size():i++)
      |            ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         if(a=="T"){
      |            ~^~~~~
a.cc:11:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         }else if(a=="A"){
      |                  ~^~~~~
a.cc:12:32: error: expected ';' before ':' token
   12 |                 cout<<"T"<<endl:
      |                                ^
      |                                ;
a.cc:13:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |         }else if(a=="G"){
      |                  ~^~~~~
a.cc:15:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |         }else if(a=="C"){
      |                  ~^~~~~
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:8:26: error: unable to find character literal operator 'operator""endl' with 'char' argument
    8 |     else if(b=='C')cout<<'G'endl;
      |                          ^~~~~~~
Language: C++

#include <stdio.h>
int main(){
	char a;
	scanf("%c",&a);
	if(a=='A')printf('T');
	else if(a=='T')printf('A');
	else if(a=='G')printf('C');
	else printf('G');
	printf("\n");
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:26: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    5 |         if(a=='A')printf('T');
      |                          ^~~
      |                          |
      |                          char
In file included from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:6:31: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    6 |         else if(a=='T')printf('A');
      |                               ^~~
      |                               |
      |                               char
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:7:31: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    7 |         else if(a=='G')printf('C');
      |                               ^~~
      |                               |
      |                               char
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:8:21: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    8 |         else printf('G');
      |                     ^~~
      |                     |
      |                     char
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    char b = sc.nextLine();
    
    switch (b) {
      case 'A':
        System.out.println('T');
        break;
      case 'C':
        System.out.println('G');
        break;
      case 'T':
        System.out.println('A');
        break;
      case 'G':
        System.out.println('C');
        break;
    }
  }
}

Compiler output:
Main.java:6: error: incompatible types: String cannot be converted to char
    char b = sc.nextLine();
                        ^
1 error
Language: C++

#include <string>
#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    7 |   if (str == "A") return "T";
      |                          ^~~
      |                          |
      |                          const char*
a.cc:8:26: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    8 |   if (str == "G") return "C";
      |                          ^~~
      |                          |
      |                          const char*
a.cc:9:26: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    9 |   if (str == "C") return "G";
      |                          ^~~
      |                          |
      |                          const char*
a.cc:10:26: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   10 |   if (str == "T") return "A";
      |                          ^~~
      |                          |
      |                          const char*
Language: C++

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

int main(){
  char A[1],B[1];
  cin>>A[0];
  if(A[0]=='A') B[0]=T;
  else if(A[0]=='T') B[0]=A;
  else if(A[0]=='C') B[0]=G;
  else if(A[0]=='G') B[0]=C;
  cout<<B[0]<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: 'T' was not declared in this scope
   10 |   if(A[0]=='A') B[0]=T;
      |                      ^
a.cc:11:27: error: invalid conversion from 'char*' to 'char' [-fpermissive]
   11 |   else if(A[0]=='T') B[0]=A;
      |                           ^
      |                           |
      |                           char*
a.cc:12:27: error: 'G' was not declared in this scope
   12 |   else if(A[0]=='C') B[0]=G;
      |                           ^
a.cc:13:27: error: 'C' was not declared in this scope
   13 |   else if(A[0]=='G') B[0]=C;
      |                           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int 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: In function 'int main()':
a.cc:7:10: error: 'A' was not declared in this scope
    7 |   if(x = A)
      |          ^
a.cc:9:15: error: 'T' was not declared in this scope
    9 |   else if(x = T)
      |               ^
a.cc:11:15: error: 'G' was not declared in this scope
   11 |   else if(x = G)
      |               ^
a.cc:13:15: error: 'C' was not declared in this scope
   13 |   else if(x = C)
      |               ^
Language: C++

#include <utility>
#include <vector>
#include <iostream>
#include <algorithm>
#include <functional>
#include <map>
#include <set>
#include <list>
#include <string>
#define REP(i, n) for (int i = 0; i < n; i++)
using namespace std;

typedef long long ll;
typedef pair<ll, ll> Pll;

int main() {
    string b;
    cin >> b;

    string ret;
    if (b == "A") ret = "T";
    if (b == "T") ret = "A";
    if (b == "G") ret = "C";
    if (b == "C") ret = "G";
}

    cout << ret << endl;
}

void cheatsheet()
{
    // loop
    // vector<int> vec(10);
    vector<int> vecloop;
    REP(i, 10)
    {
        vecloop.push_back(i);
    }

    // swap
    int a = 1;
    int b = 5;
    swap(a, b); // -> a = 5, b = 1

    // sort
    int arr[] = {1, 2, 3, 4, 5, 6, 7, 8, 9};
    sort(arr, arr + 9, greater<int>()); // 9 8 7 6 5 4 3 2 1

    // lower
    vector<int> vec(arr, end(arr));
    sort(vec.begin(), vec.end());
    cout << lower_bound(vec.begin(), vec.end(), 2)[0]; // 2

    // map
    map<Pll, ll> m;
    m[Pll(10, 100)] = 100;
}

Compiler output:
a.cc:27:5: error: 'cout' does not name a type
   27 |     cout << ret << endl;
      |     ^~~~
a.cc:28:1: error: expected declaration before '}' token
   28 | }
      | ^
Language: C++

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

Compiler output:
a.cc:2:11: error: expected nested-name-specifier before 'namesapce'
    2 |     using namesapce std;
      |           ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:7: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |       cin >> b;
      |       ^~~
      |       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:6:19: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |       if(b =='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:7:19: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |       if(b =='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:8:19: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |       if(b =='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:9:19: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |       if(b =='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
      |                  ^~~~
a.cc:10:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |       cout << endl;
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:15: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |       cout << 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>
using namespace std;
int main(void){
    // Your code here!
    char b;
    cin>>b;
    if(b=='A')cout<<'T'<<endl;
    else if(b=='C')cout<<'G'<<endl;
    else if(b=='G')cout<<'C'<<endl;
    else (b=='T')cout<<'A'<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: expected ';' before 'cout'
   10 |     else (b=='T')cout<<'A'<<endl;
      |                  ^~~~
      |                  ;
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <stack>
#include <map>
#include <set>
#include <algorithm>
#include <numeric>
#include <math.h>
#include <stdio.h>
#include <ctype.h>
#include <ios> 
#include <iomanip>
using namespace std;

#define N_MAX   (100000)
#define LL_MAX_NUM (1LL<<60)
#define INF 1e7

typedef long long ll;
typedef long long int lli;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:34:18: error: expected ';' before '}' token
   34 |         res = 'C'
      |                  ^
      |                  ;
   35 |     }
      |     ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	string s;
	getline(cin,s);
	int i;
	for(i=0;i<s.size(),i++)
	{
		if(s[i]=='A')  cout<<'T';
		if(s[i]=='C')  cout<<'G';
		if(s[i]=='G')  cout<<'C';
		if(s[i]=='T')  cout<<'A';
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:31: error: expected ';' before ')' token
    8 |         for(i=0;i<s.size(),i++)
      |                               ^
      |                               ;
Language: C++

s=input()
if s=='A':
    ans = 'T'
elif s=='T':
    ans ='A'
elif s=='C':
    ans='G'
else:
    ans = 'C'

print(ans)

Compiler output:
a.cc:1:1: error: 's' does not name a type
    1 | s=input()
      | ^
Language: C++

print({'A': 'T',
      'C': 'G',
      'G': 'C',
      'T': 'A'}[input()])

Compiler output:
a.cc:1:6: error: expected constructor, destructor, or type conversion before '(' token
    1 | print({'A': 'T',
      |      ^
a.cc:4:16: error: expected unqualified-id before '[' token
    4 |       'T': 'A'}[input()])
      |                ^
Language: C++

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:15: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   if(b =='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:6:15: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   if(b =='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:7:15: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   if(b =='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:8:15: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   if(b =='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
      |                  ^~~~
a.cc:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   cout << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:11: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   cout << 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() {
    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:7:27: error: 'T' was not declared in this scope
    7 |     if (b == 'A') cout << T << endl;
      |                           ^
a.cc:8:32: error: 'A' was not declared in this scope
    8 |     else if (b == 'T') cout << A << endl;
      |                                ^
a.cc:9:32: error: 'C' was not declared in this scope
    9 |     else if (b == 'G') cout << C << endl;
      |                                ^
a.cc:10:18: error: 'G' was not declared in this scope
   10 |     else cout << G << endl;
      |                  ^
Language: C++

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

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


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

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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:10:29: error: expected ';' before 'else'
   10 |     else if(s=='A')cout<<'T'
      |                             ^
      |                             ;
   11 |         else if(s=='T')cout<<'A'
      |         ~~~~
Language: C++

#include <stdio.h>

int main()
{
    char input_str[1+1];

    // 入力
    scanf("%s", input_str);

    // 入力値チェック
    if( strcmp(input_str, "A") == 0 ) {
        printf("T\n");
    }
    else if( strcmp(input_str, "T") == 0 ) {
        printf("A\n");
    }
    else if( strcmp(input_str, "C") == 0 ) {
        printf("G\n");
    }
    else if( strcmp(input_str, "G") == 0 ) {
        printf("C\n");
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'strcmp' was not declared in this scope
   11 |     if( strcmp(input_str, "A") == 0 ) {
      |         ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <stdio.h>
  +++ |+#include <cstring>
    2 |
Language: Java

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String n = sc.next();
		if(n.contentEquals("A")) {
			System.out.println("T");
		}else if(n.contentEquals("T")) {
			System.out.println("A");
		}else if(n.contentEquals("C")) {
			System.out.println("G");
		}else {
			System.out.println("C");
		}
		//System.out.println(ans);
		sc.close();
	}
}


Compiler output:
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include "pch.h"
#include <iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
#include<string>
#include<map>
#include<set>
#include<vector>
#include<queue>
using namespace std;
char A[100000];
int main() {
	cin >> A;
	for (int i = 0; i < strlen(A); i++) {
		if (A[i] == 'A') {
			cout << "T";
		}
		else if (A[i] == 'T') {
			cout << "A";
		}
		else if (A[i] == 'C') {
			cout << "G";
		}
		else {
			cout << "C";
		}

	}
	return 0;
}

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

#include <stdio.h>

int main()
{
  char c;
  scanf("%c",&c);
  switch(c){
	case 'A'
      printf("T\n");
      break;
      case 'T'
      printf("A\n");
      break;
      case 'C'
      printf("G\n");
      break;
      case 'G'
      printf("C\n");
      break;
  }
}

Compiler output:
main.c: In function 'main':
main.c:9:7: error: expected ':' or '...' before 'printf'
    9 |       printf("T\n");
      |       ^~~~~~
main.c:12:7: error: expected ':' or '...' before 'printf'
   12 |       printf("A\n");
      |       ^~~~~~
main.c:15:7: error: expected ':' or '...' before 'printf'
   15 |       printf("G\n");
      |       ^~~~~~
main.c:18:7: error: expected ':' or '...' before 'printf'
   18 |       printf("C\n");
      |       ^~~~~~
main.c:9:7: warning: statement will never be executed [-Wswitch-unreachable]
    9 |       printf("T\n");
      |       ^~~~~~~~~~~~~
Language: C++

dic = {"A":"T", "C":"G", "T":"A", "G":"C"}
print(dic[input()])

Compiler output:
a.cc:1:1: error: 'dic' does not name a type
    1 | dic = {"A":"T", "C":"G", "T":"A", "G":"C"}
      | ^~~
a.cc:2:6: error: expected constructor, destructor, or type conversion before '(' token
    2 | print(dic[input()])
      |      ^
Language: C

#include<stdio.h>

int main()
{
  char b;
  scanf("%s",&b);
  if(b=='A'){
    printf("T");
    else if(b=='T'){
      printf("A");
    else if(b=='G'){
      printf("C");
     else if(b=='C'){
       printf("G");
     }
      return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:9:5: error: expected '}' before 'else'
    9 |     else if(b=='T'){
      |     ^~~~
main.c:11:5: error: expected '}' before 'else'
   11 |     else if(b=='G'){
      |     ^~~~
main.c:13:6: error: expected '}' before 'else'
   13 |      else if(b=='C'){
      |      ^~~~
Language: C++

#include "stdafx.h"

using namespace std;

int main()
{
	char s;
	cin >> s;
	switch (s) {
	case 'A':
		cout << "T" << endl;
		break;
	case 'C':
		cout << "G" << endl;
		break;
	case 'G':
		cout << "C" << endl;
		break;
	case 'T':
		cout << "A" << endl;
		break;
	}
	
	return 0;
}



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

#include <iostream>
#include <cstdio>
#include <vector>
#include <string>
#include <algorithm>

using namespace std;

using BigNum = unsigned long long;

int main() {
    string b;
    cin >> b;

    switch(b) {
        case 'A':
            cout << "T" << endl;
            break;

        case "T":
            cout << "A" << endl;
            break;

        case "C":
            cout << "G" << endl;
            break;

        case "G":
            cout << "C" << endl;
            break;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: switch quantity not an integer
   15 |     switch(b) {
      |            ^
Language: C++

void main(){
	char a;
	scanf("%c",&a);
	if(a=='A')printf('T');
	else if(a=='T')printf('A');
	else if(a=='G')printf('C');
	else printf('G');
	printf("\n");
	return 0;
}

Compiler output:
a.cc:1:1: error: '::main' must return 'int'
    1 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:3:9: error: 'scanf' was not declared in this scope
    3 |         scanf("%c",&a);
      |         ^~~~~
a.cc:4:19: error: 'printf' was not declared in this scope
    4 |         if(a=='A')printf('T');
      |                   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | void main(){
a.cc:5:24: error: 'printf' was not declared in this scope
    5 |         else if(a=='T')printf('A');
      |                        ^~~~~~
a.cc:5:24: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:6:24: error: 'printf' was not declared in this scope
    6 |         else if(a=='G')printf('C');
      |                        ^~~~~~
a.cc:6:24: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:7:14: error: 'printf' was not declared in this scope
    7 |         else printf('G');
      |              ^~~~~~
a.cc:7:14: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:8:9: error: 'printf' was not declared in this scope
    8 |         printf("\n");
      |         ^~~~~~
a.cc:8:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
    int  a,b;
    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:5:10: error: conflicting declaration 'char b'
    5 |     char b;
      |          ^
a.cc:4:12: note: previous declaration as 'int b'
    4 |     int  a,b;
      |            ^
a.cc:9:26: error: unable to find character literal operator 'operator""endl' with 'char' argument
    9 |     else if(b=='C')cout<<'G'endl;
      |                          ^~~~~~~
Language: C++

#include <algorithm>
#include <iostream>
#include <utility>
#include <iomanip>
#include <climits>
#include <cstdio>
#include <vector>
#include <queue>
#include <cmath>
#include <set>
#include <map>
    
using namespace std;

int main() {
    ios_base::sync_with_stdio(false);
    // freopen("input.txt", "r", stdin);
    // freopen("output.txt", "w", stdout);
    char s;
    cin >> s;
    if(s == 'A') {
        cout << "T";
    } else if(s == "T") {
        cout << "A";
    } else if(s == 'G') {
        cout << "C";
    } else {
        cout << "G";
    }


    return 0; 
}

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

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

int in(){
  int a;
  cin >> a;
  return a;
}//int型関数の受け取り

void forin(int* x,int y){
  for (int i=0;i<y;i++){
    cin >> x[i];
  }
}//(x,y) int型配列x[y]の受け取り

int intpow(int x,int y){
  double a=x,b=y;
  return pow(a,b);
}//(x,y) xをy乗

int intfabs(int x){
  double a=x;
  return fabs(a);
}//(x) xの絶対値

int fact(int x){
  if (x == 1) return 1;
  return x*fact(x-1);
}//(x) x!

int fib(int x){
  if (x <= 2) return x;
  int a[x];
  a[0]=1;
  a[1]=2;
  for (int i=2;i<x;i++){
    a[i]=a[i-1]+a[i-2];
  }
  return a[x-1];
}//(x) フィボナッチ数列のx番目

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

Compiler output:
a.cc:42:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   42 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:45:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   45 |   if (b=="A") cout << "T" << endl;
      |       ~^~~~~
a.cc:46:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   46 |   else if (b=="C") cout << "G" << endl;
      |            ~^~~~~
a.cc:47:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   47 |   else if (b=="G") cout << "C" << endl;
      |            ~^~~~~
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:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: Java

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		String b = sc.next();
		
		Map<String, String> map = new HashMap<String, String>();
		
		map.put("A", "T");
		map.put("T", "A");
		map.put("G", "C");
		map.put("C", "G");
		
		System.out.println(map.get(b));
	}
}

Compiler output:
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
Main.java:8: error: cannot find symbol
		Map<String, String> map = new HashMap<String, String>();
		^
  symbol:   class Map
  location: class Main
Main.java:8: error: cannot find symbol
		Map<String, String> map = new HashMap<String, String>();
		                              ^
  symbol:   class HashMap
  location: class Main
4 errors
Language: C++

#include <iostream>
#include <algorithm>
#include <string> 
#include <vector>
#include <iomanip>
#include <math.h>
#include <map>
using namespace std;
#define lol long long

int main()
{
	char 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:15:25: error: unable to find string literal operator 'operator""T' with 'const char [1]', 'long unsigned int' arguments
   15 |                 cout << ""T << endl;
      |                         ^~~
Language: C++

#include<iostream>
#include<utility>
#include<string>
#include<vector>
#include<algorithm>
#include<deque>
#include<queue>
#include<set>
#include<map>
#include<functional>

using namespace std;
#define LL long long
#define LLBIG 1999999999999999999
#define INTBIG 1111111111
#define PI pair<int,int>
#define VI vector<int>
#define VVI vector<vector<int>>


int main() {
	string s;
	cin >> s;
	for (int i = 0; i < s.size(); i++) {
		if (s[i] == 'A')
			cout << "T";
		if (s[i] == 'T')
			cout << "A";
		if (s[i] == 'G')
			cout << "C";
		if (s[i] == 'C')
			cout << "G";
	}
	cout << endl;

	return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:36:18: error: expected '}' at end of input
   36 |         return 0;
      |                  ^
a.cc:21:12: note: to match this '{'
   21 | int main() {
      |            ^
Language: C++

#include "stdafx.h"

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

using namespace std;

int main()
{
	char s;
	cin >> s;
	switch (s) {
	case 'A':
		cout << "T" << endl;
		break;
	case 'C':
		cout << "G" << endl;
		break;
	case 'G':
		cout << "C" << endl;
		break;
	case 'T':
		cout << "A" << endl;
		break;
	}
	
	return 0;
}



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

main
{
char ch;
scanf("%c",ch);
if(ch=='A')
printf("T");
else if(ch=='T')
printf("A");
else if(ch=='C')
printf("G");
else
printf("C");
}

Compiler output:
main.c:2:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    2 | {
      | ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){

    string s;
    cin>>s;
    
    for(auto &it:s){
        
        if(it=='A')
            cout<<'T';
        if(it=='T')
            cout<<"A";
        if(it=='G')
            cout<<"C";
        if(it=="C")
            cout<<"C";
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |         if(it=="C")
      |            ~~^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: expected ';' before 'else'
    6 |   if(s == 'A') a = 'T'
      |                       ^
      |                       ;
    7 |   else if(s == 'T') a = 'A';
      |   ~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
typedef pair<ll,ll> P;
#define M 1000000007
int main(){
  char a;
  cin>>a;
  cout<<(a=='A'?'T':a=='T'?'A':a=='G'?'C'?'G');
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:46: error: expected ':' before ')' token
    9 |   cout<<(a=='A'?'T':a=='T'?'A':a=='G'?'C'?'G');
      |                                              ^
      |                                              :
a.cc:9:46: error: expected primary-expression before ')' token
a.cc:9:46: error: expected ':' before ')' token
    9 |   cout<<(a=='A'?'T':a=='T'?'A':a=='G'?'C'?'G');
      |                                              ^
      |                                              :
a.cc:9:46: error: expected primary-expression before ')' token
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: expected ';' before 'if'
    7 |   if(x=='A')cout << 'T'
      |                        ^
      |                        ;
    8 |   if(x=='T')cout << 'A'
      |   ~~
Language: C++

#include "pch.h" 
#include <iostream>
#include <string>
#include <string.h>
#include <algorithm>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <cmath>
#include <stdio.h>
#include <vector>
#include <time.h>
#include <iomanip>
#include <thread>
#include <atomic>
#include <mutex>
#include <future>
#define double long double
#define int long long
#define low lower_bound
#define upp upper_bound
#define mod 1e9 + 7
#define inf 1e16
#define rep(i,n) for(int i=0;i<n;i++)
#define all(vec) vec.begin(),vec.end()
#define vsort(vec) sort(all(vec))
#define vrever(vec) reverse(all(vec));
#define vunsort(vec) vsort(vec); vrever(vec);
#define bisea binary_search
using namespace std;

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

Compiler output:
a.cc:1:10: fatal error: pch.h: No such file or directory
    1 | #include "pch.h"
      |          ^~~~~~~
compilation terminated.
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
        cout<<"C";
    return 0 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: expected ';' before '}' token
   17 |     return 0
      |             ^
      |             ;
   18 | }
      | ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long long int llint;
typedef pair<ll, ll> pa;
#define MM 1000000000
#define MOD MM+7
#define MAX 101000
#define MAP 110
#define initial_value -1
#define Pair pair<int,int>
#define chmax(a,b) (a<b ? a=b:0)
#define chmin(a,b) (a>b ? a=b:0)
#define INF (1 << 29) //536870912
int dx[4] = {-1,0,1,0};
int dy[4] = {0,-1,0,1};
int main(){
    char b; cin >> b;
    if(b == "A") cout << "T" << endl;
    if(b == "T") cout << "A" << endl;
    if(b == "C") cout << "G" << endl;
    if(b == "G") cout << "C" << endl;
}



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

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

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if (c == "A")
      |       ~~^~~~~~
a.cc:12:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   if (c == "T")
      |       ~~^~~~~~
a.cc:14:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |   if (c == "G")
      |       ~~^~~~~~
a.cc:16:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |   if (c == "C")
      |       ~~^~~~~~