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

public class Helix{

 public static void main(String[] args){
 　Scanner sc = new Scanner(System.in);
 　String b = sc.next();
   if(b == "A"){
   System.out.print("T");
   }else if(b == "T"){
   System.out.print("A");
   }else if(b == "C"){
   System.out.print("G");
   }else if(b == "G"){
   System.out.print("C");
   }else{
     System.out.print("Input Error");
   }
 }
}

Compiler output:
Main.java:4: error: illegal character: '\u3000'
 ?Scanner sc = new Scanner(System.in);
 ^
Main.java:5: error: illegal character: '\u3000'
 ?String b = sc.next();
 ^
2 errors
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: could not convert 'x.std::__cxx11::basic_string<char>::operator=(((const char*)"A"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    8 |   if(x ="A"){
      |      ~~^~~~
      |        |
      |        std::__cxx11::basic_string<char>
a.cc:12:8: error: could not convert 'x.std::__cxx11::basic_string<char>::operator=(((const char*)"T"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   12 |   if(x ="T"){
      |      ~~^~~~
      |        |
      |        std::__cxx11::basic_string<char>
a.cc:16:8: error: could not convert 'x.std::__cxx11::basic_string<char>::operator=(((const char*)"C"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   16 |   if(x ="C"){
      |      ~~^~~~
      |        |
      |        std::__cxx11::basic_string<char>
a.cc:20:8: error: could not convert 'x.std::__cxx11::basic_string<char>::operator=(((const char*)"G"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   20 |   if(x ="G"){
      |      ~~^~~~
      |        |
      |        std::__cxx11::basic_string<char>
Language: C

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

int atcg(char *a,int i);

int main() {
	char *a;
	scanf("%s\n", a);
	const int len = strlen(a);
	int count[len];
	int num = 0;
	for (int i = 0; i < len; i++) {
		if(atcg(a, i) > num)num = atcg(a, i, count[i]) > num;
	}
	printf("%d\n", num);
}

int atcg(char *a,int i) {
	int count;
	for (int j = i + 1; j < strlen(a); j++) {
		if (a[i] != 'A' && a[i] != 'T' && a[i] != 'C' && a[i] != 'G')return count = 0;
		else {
			if (a[j] == 'A' || a[j] == 'T' || a[j] == 'C' || a[j] == 'G')count++;
			else return count;
		}
	}
	return -1;
}

Compiler output:
main.c: In function 'main':
main.c:13:43: error: too many arguments to function 'atcg'
   13 |                 if(atcg(a, i) > num)num = atcg(a, i, count[i]) > num;
      |                                           ^~~~
main.c:4:5: note: declared here
    4 | int atcg(char *a,int i);
      |     ^~~~
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:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(x == "A")
      |      ~~^~~~~~
a.cc:9:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   else if(x == "T")
      |           ~~^~~~~~
a.cc:11:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   else if(x == "G")
      |           ~~^~~~~~
a.cc:13:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   else if(x == "C")
      |           ~~^~~~~~
Language: C++

std::cout<<'T';

Compiler output:
a.cc:1:6: error: 'cout' in namespace 'std' does not name a type
    1 | std::cout<<'T';
      |      ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | std::cout<<'T';
Language: Java

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

Compiler output:
Main.java:9: error: unclosed character literal
    if(s.charAt(0)=='A)
                    ^
Main.java:11: error: unclosed character literal
    if(s.charAt(0)=='T)
                    ^
2 errors
Language: C++

#include <iostream>
#include <cstdio>

int main(){
    char input;
    std::cin>>input;
    switch(input){
        case 'A':
        printf('T');
        break;
        case 'T':
        printf('A');
        break;
        case 'C':
        printf('G');
        break;
        case 'G':
        printf('C');
        break;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    9 |         printf('T');
      |                ^~~
      |                |
      |                char
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 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,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 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:12:16: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   12 |         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:15:16: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   15 |         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, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:18:16: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   18 |         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, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

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

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



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

#include <iostream.h>
using namespace std;

int main()
{
	char b, pair;
	
	cin >> b;
	
	switch (b) {
	case 'A':
		pair = 'T';
		break;
	case 'C':
		pair = 'G';
		break;
	case 'G':
		pair = 'C';
		break;
	case 'T':
		pair = 'A';
		break;
	}
	
	cout << pair << endl;
}

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

#include <iostream>
#include <cassert>
#include <climits>
#include <bitset>
#include <stack>
#include <queue>
#include <iomanip>
#include <limits>
#include <string>
#include <cmath>
#include <set>
#include <map>
#include <math.h>
#include <algorithm>
#include <vector>
#include <string.h>

using namespace std;

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

long long int INF = 3e18;
double Pi = 3.1415926535897932384626;

vector<ll> G[500005];
vector<P> tree[500010];
priority_queue <ll> pql;
priority_queue <P> pqp;
//big priority queue
priority_queue <ll,vector<ll>,greater<ll> > pqls;
priority_queue <P,vector<P>,greater<P> > pqps;
//small priority queue
//top pop

int dx[8]={1,0,-1,0,1,1,-1,-1};
int dy[8]={0,1,0,-1,1,-1,-1,1};
char dir[] = "DRUL";
//ll bit[500005];
//↓,→,↑,←


#define p(x) cout<<x<<endl;
#define el cout<<endl;
#define pe(x) cout<<x<<" ";
#define ps(x) cout<<fixed<<setprecision(15)<<x<<endl;
#define pu(x) cout<<x;
#define re(i,n) for(i=0;i<n;i++);
#define pb push_back
#define lb lower_bound
#define ub upper_bound
#define deba(x) cout<< #x << " = " << x <<endl


long long int mod = 4294967296;
ll rui(ll number1,ll number2){
    //abcのbed乗を計算する
    if(number2 == 0){return 1;}
    else{
        ll number3 = rui(number1,number2/2);
        number3 *= number3;
        number3 %= mod;
        if(number2 % 2 == 1){number3 *= number1; number3 %= mod;}
        return number3;
    }
}
ll gcd(ll number1,ll number2){
    if(number1 > number2){
        swap(number1,number2);
    }
    if(number1 == 0 || number1 == number2){
        return number2;
    }else{
        return gcd(number2 % number1,number1);
    }
}
void YES(bool condition){
    if(condition){
        p("YES");
    }else{
        p("NO");
    }
    return;
}
void Yes(bool condition){
    if(condition){
        p("Yes");
    }else{
        p("No");
    }
    return;
}

ll n,m,num,sum,ans,a,b,c,d,e,f,g,h,i,j,k,w,ok,ng,res,q;


int main(){
    cin >> s;
	if(s[0] == 'A')p("T");
	if(s[0] == 'T')p("A");
	if(s[0] == 'C')p("G");
	if(s[0] == 'G')p("C");
	return 0;
}

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

#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
using namespace std;
int main(){
  char s;
  cin >> s;
  if(s=="A"){
    cout << "T" << endl;
  }else if(s=="C"){
    cout << "G" <<endl;
  }else if(s=="T"){
    cout << "A" <<endl;
  }else if(s=="G")
    cout << "C" <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if(s=="A"){
      |      ~^~~~~
a.cc:11:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   }else if(s=="C"){
      |            ~^~~~~
a.cc:13:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   }else if(s=="T"){
      |            ~^~~~~
a.cc:15:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |   }else if(s=="G")
      |            ~^~~~~
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 == 'G') cout << C << endl;
  if(b == 'C') cout << G << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: 'T' was not declared in this scope
    7 |   if(b == 'A') cout << T << endl;
      |                        ^
a.cc:8:24: error: 'A' was not declared in this scope
    8 |   if(b == 'T') cout << A << endl;
      |                        ^
a.cc:9:24: error: 'C' was not declared in this scope
    9 |   if(b == 'G') cout << C << endl;
      |                        ^
a.cc:10:24: error: 'G' was not declared in this scope
   10 |   if(b == 'C') cout << G << endl;
      |                        ^
Language: C++

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

int main(){
  string 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;
  return 0;
}


Compiler output:
a.cc:1:25: warning: extra tokens at end of #include directive
    1 | #include <bits/stdc++ h>;
      |                         ^
a.cc:1:10: fatal error: bits/stdc++ h: No such file or directory
    1 | #include <bits/stdc++ h>;
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

int main(){
  string 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;
  return 0;
}

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

import java.util.*;

public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        String b = sc.next();
        
        switch(b){
            case "A":
                System.out.println("T");
                break;
            case "T":
                System.out.println("A");
                break;
            case "G":
                System.out.println("C");
                break;
            case "C":
                System.out.println("G");
                break;
            default:
                System.out.println("You Wrong");
                break;
        
    }
        
        
    }

Compiler output:
Main.java:33: error: reached end of file while parsing
    }
     ^
1 error
Language: Java

import java.util.*;

public class AtCoder {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        String b = sc.next();
        
        switch(b){
            case "A":
                System.out.println("T");
                break;
            case "T":
                System.out.println("A");
                break;
            case "G":
                System.out.println("C");
                break;
            case "C":
                System.out.println("G");
                break;
            default:
                System.out.println("You Wrong");
            	break;
                
        
    }
        
        
    }

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

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: could not convert 'b.std::__cxx11::basic_string<char>::operator=(A)' from 'std::__cxx11::basic_string<char>' to 'bool'
    8 |    if(b = A){
      |       ~~^~~
      |         |
      |         std::__cxx11::basic_string<char>
a.cc:10:15: error: could not convert 'b.std::__cxx11::basic_string<char>::operator=(T)' from 'std::__cxx11::basic_string<char>' to 'bool'
   10 |    }else if(b = T){
      |             ~~^~~
      |               |
      |               std::__cxx11::basic_string<char>
a.cc:12:17: error: expected ';' before '{' token
   12 |    }else (b = C){
      |                 ^
      |                 ;
a.cc:14:5: error: 'else' without a previous 'if'
   14 |    }else (b = G){
      |     ^~~~
a.cc:14:17: error: expected ';' before '{' token
   14 |    }else (b = G){
      |                 ^
      |                 ;
Language: C

#include <stdio.h>

int main(){
  char in;
  scanf("%s",in);
  if(in=='A'){
    	printf("%s",'T');
  }else if(in=='T'){
    	printf("%s",'A');
  }else if(in=='C'){
    	printf("%s",'G');
  }else if(in=='G'){
    	printf("%s",'C');
  }
  return 0;
}
提出情報

Compiler output:
main.c:17:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
   17 | 提出情報
      | ^~~~~~~~
Language: C

#include <stdio.h>

int main(void)
{
	char b;
	scanf_s("%c", &b);
	if (b == 'A')
	{
		printf("T");
	}
	else if (b == 'T')
	{
		printf("A");
	}
	else if (b == 'G')
	{
		printf("C");
	}
	else if (b == 'C')
	{
		printf("G");
	}
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanf_s("%c", &b);
      |         ^~~~~~~
      |         scanf
Language: Java

public class AtCoder {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        String b = sc.next();
        
        switch(b){
            case "A":
                System.out.println("T");
                break;
            case "T":
                System.out.println("A");
                break;
            case "G":
                System.out.println("C");
                break;
            case "C":
                System.out.println("G");
            	break;
                
        
    }
        
        
    }

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

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

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

Compiler output:
main.c:19:5: error: redefinition of 'main'
   19 | int main(){
      |     ^~~~
main.c:3:5: note: previous definition of 'main' with type 'int()'
    3 | int main(){
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'A' was not declared in this scope
    8 |    if(b = A){
      |           ^
a.cc:9:12: error: 'T' was not declared in this scope
    9 |    cout << T <<endl;
      |            ^
a.cc:10:17: error: 'T' was not declared in this scope
   10 |    }else if(b = T){
      |                 ^
a.cc:12:15: error: 'C' was not declared in this scope
   12 |    }else (b = C){
      |               ^
a.cc:14:5: error: 'else' without a previous 'if'
   14 |    }else (b = G){
      |     ^~~~
a.cc:14:15: error: 'G' was not declared in this scope
   14 |    }else (b = G){
      |               ^
Language: Java

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

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

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

int main() {
  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:5:7: error: 'b' was not declared in this scope
    5 |   if (b=="A") {
      |       ^
a.cc:8:7: error: 'b' was not declared in this scope
    8 |   if (b=="T") {
      |       ^
a.cc:11:7: error: 'b' was not declared in this scope
   11 |   if (b=="C") {
      |       ^
a.cc:14:7: error: 'b' was not declared in this scope
   14 |   if (b=="G") {
      |       ^
Language: Java

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        String b = sc.next();
        
        switch(b){
            case "A":
                System.out.println("T");
                break;
            case "T":
                System.out.println("A");
                break;
            case "G":
                System.out.println("C");
                break;
            case "C":
                System.out.println("G");
            default:
                System.out.println("You Wrong");
                
        
    }
        
        
    }

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

#include <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 == C) {
    cout << "G" << endl;
  }
 
  else {
    cout << "C" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'A' was not declared in this scope
    8 |   if (x == A) {
      |            ^
a.cc:12:16: error: 'T' was not declared in this scope
   12 |   else if (x = T) {
      |                ^
a.cc:16:17: error: 'C' was not declared in this scope
   16 |   else if (x == C) {
      |                 ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<vector<int>> vvi;
typedef vector<vector<ll>> vvl;

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  char c;
  cin >> c;
  if (c == 'A')
    cout << 'T';
  else if (c == 'T')
    cout << 'A';
  else if (C == 'C')
    cout << 'G';
  else
    cout << 'C';
  cout << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:12: error: 'C' was not declared in this scope
   20 |   else if (C == 'C')
      |            ^
Language: C++

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

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

#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
#define R cin>>
#define Z class
#define ll long long
#define ln cout<<'\n'
#define in(a) insert(a)
#define pb(a) push_back(a)
#define pd(a) printf("%.10f\n",a)
#define mem(a) memset(a,0,sizeof(a))
#define all(c) (c).begin(),(c).end()
#define iter(c) __typeof((c).begin())
#define rrep(i,n) for(ll i=(ll)(n)-1;i>=0;i--)
#define REP(i,m,n) for(ll i=(ll)(m);i<(ll)(n);i++)
#define rep(i,n) REP(i,0,n)
#define tr(it,c) for(iter(c) it=(c).begin();it!=(c).end();it++)
template<Z A>void pr(A a){cout<<a;ln;}
template<Z A,Z B>void pr(A a,B b){cout<<a<<' ';pr(b);}
template<Z A,Z B,Z C>void pr(A a,B b,C c){cout<<a<<' ';pr(b,c);}
template<Z A,Z B,Z C,Z D>void pr(A a,B b,C c,D d){cout<<a<<' ';pr(b,c,d);}
template<Z A>void PR(A a,ll n){rep(i,n){if(i)cout<<' ';cout<<a[i];}ln;}
ll check(ll n,ll m,ll x,ll y){return x>=0&&x<n&&y>=0&&y<m;}
const ll MAX=1e9+7,MAXL=1LL<<61,dx[4]={-1,0,1,0},dy[4]={0,1,0,-1};
typedef pair<ll,ll> P;

void Main() {
  char c;
  R ;
  if(c=='A') c='T';
  else if(c=='T') c='A';
  else if(c=='G') c='C';
  else c='G';
  pr(c);
}

int main(){ios::sync_with_stdio(0);cin.tie(0);Main();return 0;}


Compiler output:
a.cc: In function 'void Main()':
a.cc:30:5: error: expected primary-expression before ';' token
   30 |   R ;
      |     ^
Language: Java

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

/**
 * Created by bi16060 on 2019/03/24.
 */
public class DoubleHelix {
    public static void main(String args[]) throws Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String enki = br.readLine();

        String pair = "";
        switch(enki){
            case("A"):
                pair = "T"; break;
            case("T"):
                pair = "A"; break;
            case("G"):
                pair = "C"; break;
            case("C"):
                pair = "G"; break;
        }

        System.out.println(pair);
    }

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

#include <iostream>
#include <string>
#include <vector>
#include <climits>
#include <set>
#include <algorithm>
#include <unordered_map>
#include <queue>
#include <iomanip>
#include <map>
#include <utility>
#include <numeric>
#include <chrono>
#include <ctime>
#include <bitset>
#include <iterator>
#include <cmath>
#include <stack>
#include <random>

#define rep(i,n) for(int i=0; i<(int)(n); i++)
#define debug(x) cerr << #x << ": " << x << ", "
#define debugln(x) cerr << #x << ": " << x << '\n'

template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

using namespace std;
using ll = long long;
using P = pair<ll, ll>;

constexpr ll mod = 998244353;
const double PI = acos(-1.0);
mt19937_64 engine(chrono::steady_clock::now().time_since_epoch().count());

signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);

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


Compiler output:
a.cc: In function 'int main()':
a.cc:43:11: error: 'T' was not declared in this scope
   43 |     ans = T;
      |           ^
a.cc:45:11: error: 'A' was not declared in this scope
   45 |     ans = A;
      |           ^
a.cc:47:11: error: 'G' was not declared in this scope
   47 |     ans = G;
      |           ^
a.cc:49:11: error: 'C' was not declared in this scope
   49 |     ans = C;
      |           ^
Language: C++

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


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

#include<iostream>
using namespace std;

int main() {
        char a;
        cin >> a;

        if (a == 'A') {
                cout << 'T';
        }else if (a == 'G'{
                cout << 'C';
        }else if (a == 'T') {
                cout << 'A';
        }else if (a == 'C') {
                cout << 'G';
        }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:27: error: expected ')' before '{' token
   10 |         }else if (a == 'G'{
      |                  ~        ^
      |                           )
a.cc:18:1: error: expected primary-expression before '}' token
   18 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:19: error: statement cannot resolve address of overloaded function
   18 |               endl;
      |                   ^
Language: C++

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

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

#include<iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'A' was not declared in this scope
    8 |   if(b == A){
      |           ^
a.cc:10:17: error: 'T' was not declared in this scope
   10 |   }else if(b == T){
      |                 ^
a.cc:12:17: error: 'G' was not declared in this scope
   12 |   }else if(b == G){
      |                 ^
a.cc:14:17: error: 'C' was not declared in this scope
   14 |   }else if(b == C){
      |                 ^
Language: C++

#include<iostream>
using namespace std;

int main() {
        char a;
        cin >> a;

        if (a == 'A') {
                cout << 'T';
        }else if (a == 'G'{
                cout << 'C';
        }else if (a == 'T') {
                cout << 'A';
                }else{
                cout << 'G';
                }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:27: error: expected ')' before '{' token
   10 |         }else if (a == 'G'{
      |                  ~        ^
      |                           )
a.cc:18:1: error: expected primary-expression before '}' token
   18 | }
      | ^
Language: C++

a = input()

if a == "A":
	a = "T"
elif a == "T":
	a = "A"
elif a == "G":
	a = "C"
elif a == "C":
	a = "G"
print(a)

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

#include<bits/stdc++.h>
#include<string>
#include<iostream>
#include<cmath>
#include<set>
#include<stack>
#include<queue>
#include<windows.h>
#include<unistd.h>
#include<stdio.h>
#include<cstring>
#define random(a,b) (rand()%(b-a+1)+a)
using namespace std;

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |           if(a == "A"){
      |              ~~^~~~~~
a.cc:10:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |           if(a == "T"){
      |              ~~^~~~~~
a.cc:13:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |            if(a == "G"){
      |               ~~^~~~~~
a.cc:15:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |           } if(a == "C"){
      |                ~~^~~~~~
a.cc:18:15: error: statement cannot resolve address of overloaded function
   18 |           endl;
      |               ^
Language: C++

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

int main() {
  string 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:13: error: 'A' was not declared in this scope
    7 |   if ( b == A ) {
      |             ^
a.cc:10:15: error: 'T' was not declared in this scope
   10 |     if ( b == T ) {
      |               ^
a.cc:13:15: error: 'C' was not declared in this scope
   13 |     if ( b == C ){
      |               ^
a.cc:16:13: error: 'G' was not declared in this scope
   16 |   if ( b == G) {
      |             ^
Language: C

#include <stdio.h>  

int main(void){ 

int b;
scanf("%s", b);

if ( b = 'A') {
    printf("T\n");
}

else if ( b = 'T') {
    printf("A\n");
}

else if ( b = 'G') {
    printf("C\n");
}

else if ( b = 'C') {
    printf("G\n");
}

return 0; 
}

Compiler output:
main.c:1:19: warning: extra tokens at end of #include directive
    1 | #include <stdio.h>  
      |                   ^
main.c: In function 'main':
main.c:3:16: error: stray '\342' in program
    3 | int main(void){<U+2029>
      |                ^~~~~~~~
main.c:24:10: error: stray '\342' in program
   24 | return 0;<U+2029>
      |          ^~~~~~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
string s;
  cin>>s;
  if(s[0]=="A")cout<<"T"<<endl;
  if(s[0]=="T")cout<<"A"<<endl;
  if(s[0]=="C")cout<<"G"<<endl;
  if(s[0]=="G")cout<<"C"<<endl;
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'A' was not declared in this scope
    7 |       if(a == A){
      |               ^
a.cc:10:15: error: 'T' was not declared in this scope
   10 |       if(a == T){
      |               ^
a.cc:13:16: error: 'G' was not declared in this scope
   13 |        if(a == G){
      |                ^
a.cc:15:17: error: 'C' was not declared in this scope
   15 |       } if(a == C){
      |                 ^
a.cc:18:11: error: statement cannot resolve address of overloaded function
   18 |       endl;
      |           ^
Language: C

#include<stdio.h>

int main(){
char b;
char16_t p;
scanf("%c",&b)
if(b=='A'){
p='T';
}else if(b=='T'){
p='A';
}else if(b=='C'){
p='G';
}else{
    p='C';
}
printf("%c",p);
}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: unknown type name 'char16_t'
    5 | char16_t p;
      | ^~~~~~~~
main.c:6:15: error: expected ';' before 'if'
    6 | scanf("%c",&b)
      |               ^
      |               ;
    7 | if(b=='A'){
      | ~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string x,A,T,G,C;
  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:8: error: could not convert 'x.std::__cxx11::basic_string<char>::operator=(A)' from 'std::__cxx11::basic_string<char>' to 'bool'
    7 |   if(x = A)
      |      ~~^~~
      |        |
      |        std::__cxx11::basic_string<char>
a.cc:9:13: error: could not convert 'x.std::__cxx11::basic_string<char>::operator=(T)' from 'std::__cxx11::basic_string<char>' to 'bool'
    9 |   else if(x = T)
      |           ~~^~~
      |             |
      |             std::__cxx11::basic_string<char>
a.cc:11:13: error: could not convert 'x.std::__cxx11::basic_string<char>::operator=(G)' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |   else if(x = G)
      |           ~~^~~
      |             |
      |             std::__cxx11::basic_string<char>
a.cc:13:13: error: could not convert 'x.std::__cxx11::basic_string<char>::operator=(C)' from 'std::__cxx11::basic_string<char>' to 'bool'
   13 |   else if(x = C)
      |           ~~^~~
      |             |
      |             std::__cxx11::basic_string<char>
Language: C++

#include "stdafx.h"
#include<iostream>
#include<string>
#include<algorithm>
#include<functional>
#define MIN -1000000
using namespace std;
typedef long long ll;
typedef pair <int, int> pll;
bool visited[100005];
const int max_N = 1e5 + 10;

char b;
char b2;


int main(void) {
	cin >> b;
	if (b == 'A') {
		b2 = 'T';
	}
	else if(b=='T'){
		b2 = 'A';
	}
	else if (b == 'G') {
		b2 = 'C';
	}
	else if (b == 'C') {
		b2 = 'G';
	}

	cout << b2 << endl;
	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>
using namespace std;
int main(){
string s;
  cin>>s;
  if(s[0]=="A")cout<<"T"<<endl;
  if(s[0]=="T")cout<<"A"<<endl;
  if(s[0]=="C")cout<<"G"<<endl;
  if(s[0]=="G")cout<<"C"<<endl;
}


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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'A' was not declared in this scope
    7 |   if(a == A){
      |           ^
a.cc:10:11: error: 'T' was not declared in this scope
   10 |   if(a == T){
      |           ^
a.cc:13:12: error: 'G' was not declared in this scope
   13 |    if(a == G){
      |            ^
a.cc:15:13: error: 'C' was not declared in this scope
   15 |   } if(a == C){
      |             ^
a.cc:17:4: error: expected '}' at end of input
   17 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main() {
  string 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:11: error: 'A' was not declared in this scope
    7 |   if ( b==A ) {
      |           ^
a.cc:10:13: error: 'T' was not declared in this scope
   10 |     if ( b==T ) {
      |             ^
a.cc:13:14: error: 'C' was not declared in this scope
   13 |     if ( b ==C ){
      |              ^
a.cc:16:11: error: 'G' was not declared in this scope
   16 |   if ( b==G) {
      |           ^
Language: C++

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

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

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

b=int(input())

e_dict={
  'A':'T',
  'T':'A',
  'G':'C',
  'C':'G'
}

print(e_dict[b])
 

Compiler output:
a.cc:1:1: error: 'b' does not name a type
    1 | b=int(input())
      | ^
a.cc:10:6: error: expected constructor, destructor, or type conversion before '(' token
   10 | print(e_dict[b])
      |      ^
Language: C++

#include<iostream>
using namespace std;
int main(){
string n;
  cin>>n;
  if(s[0]=="A")cout<<"T"<<endl;
  if(s[0]=="T")cout<<"A"<<endl;
  if(s[0]=="C")cout<<"G"<<endl;
  if(s[0]=="G")cout<<"C"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: 's' was not declared in this scope
    6 |   if(s[0]=="A")cout<<"T"<<endl;
      |      ^
a.cc:7:6: error: 's' was not declared in this scope
    7 |   if(s[0]=="T")cout<<"A"<<endl;
      |      ^
a.cc:8:6: error: 's' was not declared in this scope
    8 |   if(s[0]=="C")cout<<"G"<<endl;
      |      ^
a.cc:9:6: error: 's' was not declared in this scope
    9 |   if(s[0]=="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);

    String s = sc.nextLine();

    if ("A".equals(s)) {
      System.out.println("T");
    } else if ("C".equals(s)) {
      ystem.out.println("G");
    } else if ("G".equals(s)) {
      System.out.println("C");
    } else if ("T".equals(s)) {
      System.out.println("A");
    }
    

  }

}


Compiler output:
Main.java:13: error: package ystem does not exist
      ystem.out.println("G");
           ^
1 error
Language: C++

#include<bits/stc++.gh>
using namespace std;
int main ( )
{
	string a;
	cin>>a;
	if(a="A")
	cout<<"T";
	if(a="T")
	cout<<"A";
	if(a="C")
	cout<<"G";
	if(a="G")
	cout<<"C";
	return 0;
}

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

#include<iostream>
using namespace std;
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: In function 'int main()':
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>
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: 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<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:13:11: error: 'G' was not declared in this scope
   13 |     cout<<G<<endl;
      |           ^
a.cc:16:11: error: 'C' was not declared in this scope
   16 |     cout<<C<<endl;
      |           ^
Language: C

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

int main() {
	char a, b;
	cin >> a ;
	switch (a) {
	    case'A':
			b = 'T';
			break;
		case'T':
			b = 'A';
			break;
		case'G':
			b = 'C';
			break;
		case'C':
			b = 'G';
			break;
	}
	
	cout << b;
	return 0;
}

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

#include<iostream>
using namespace stf;
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: 'stf' is not a namespace-name
    2 | using namespace stf;
      |                 ^~~
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<stdio.h>

int main(){
int b;
string p;
scanf("%s",&b)
if(b=="A"){
p="T";
}else if(b=="T"){
p="A";
}else if(b=="C"){
p="G";
}else{
    p="C";
}
printf("%s",p);
}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: unknown type name 'string'; did you mean 'stdin'?
    5 | string p;
      | ^~~~~~
      | stdin
main.c:6:15: error: expected ';' before 'if'
    6 | scanf("%s",&b)
      |               ^
      |               ;
    7 | if(b=="A"){
      | ~~