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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string b;
      |   ^~~~~~
a.cc:2:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    1 | #include<stdio.h>
  +++ |+#include <string>
    2 | using namespace std;
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>b;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:5:8: error: 'b' was not declared in this scope
    5 |   cin>>b;
      |        ^
a.cc:8:7: error: 'cout' was not declared in this scope
    8 |       cout<<"T\n"<<endl;
      |       ^~~~
a.cc:8:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:20: error: 'endl' was not declared in this scope
    8 |       cout<<"T\n"<<endl;
      |                    ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<stdio.h>
  +++ |+#include <ostream>
    2 | using namespace std;
Language: C++

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

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

  int i=0;
  int j=0;
  int k=0;

  for (i = 0; i < S.size()-1; i++) {
    if(S[i]=='A'||S[i]=='T'||S[i]=='C'||S[i]=='G'){
      j +=1;
    }
    else{
      k=max(k,j);
      j=0;
    }


    }


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

#include <iostream>
#include <algorithm>
#include <iomanip>
using namespace std;
using ll = long long;
#define pi 3.1415926

int a[3];

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


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

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

int main(){
  int b;
  cin>>b;
  if(b=="A"){
    cout<<"T"<<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(b=="A"){
      |      ~^~~~~
Language: C++

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

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 (b == "C") cout << "G" << endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: expected ';' before 'cout'
   12 |   else (b == "C") cout << "G" << endl;
      |                  ^~~~~
      |                  ;
a.cc:12:11: warning: ignoring return value of 'bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
   12 |   else (b == "C") cout << "G" << endl;
      |        ~~~^~~~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3772:5: note: declared here
 3772 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
Language: C++

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

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

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

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

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

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

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


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

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

int main(){
  string S;
  cin >> S;
  
  std::string before="ATGC";
  std::string before="TACG";
  
  char ans='A';
  
  for (int i=0;i<before.size();++i){
    if (S[0] == before[i]) ans=after[i];
  }
  cout << ans << endl;
}
//直大さんの別解その1
    


Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: redeclaration of 'std::string before'
   10 |   std::string before="TACG";
      |               ^~~~~~
a.cc:9:15: note: 'std::string before' previously declared here
    9 |   std::string before="ATGC";
      |               ^~~~~~
a.cc:15:32: error: 'after' was not declared in this scope
   15 |     if (S[0] == before[i]) ans=after[i];
      |                                ^~~~~
Language: C++

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

int main(){
  string S;
  cin >> S;
  
  string before="ATGC";
  string before="TACG";
  
  char ans='A';
  
  for (int i=0;i<before.size();++i){
    if (S[0] == before[i]) ans=after[i];
  }
  cout << ans << endl;
}
//直大さんの別解その1
    

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: redeclaration of 'std::string before'
   10 |   string before="TACG";
      |          ^~~~~~
a.cc:9:10: note: 'std::string before' previously declared here
    9 |   string before="ATGC";
      |          ^~~~~~
a.cc:15:32: error: 'after' was not declared in this scope
   15 |     if (S[0] == before[i]) ans=after[i];
      |                                ^~~~~
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:8: error: 'A' was not declared in this scope
    7 |  if(b==A){
      |        ^
a.cc:10:9: error: 'T' was not declared in this scope
   10 |   if(b==T){
      |         ^
a.cc:13:9: error: 'C' was not declared in this scope
   13 |   if(b==C){
      |         ^
a.cc:16:9: error: 'G' was not declared in this scope
   16 |   if(b==G){
      |         ^
Language: C

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

int main(){
  char *S;
  int max=0;
  int len;
  scanf("%s",S);
  for(int i = 0;S[i] != '\0';i++){
    len = 1;
    for(int j = i;S[j] ! = '\0';j++){
      if(S[j] != 'A'||S[j] != 'T'||S[j] != 'C'||S[j] != 'G') break;
      len++;
      if(max < len) max = len;
    }
  }
  printf("%d\n",max);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:23: error: expected ';' before '!' token
   12 |     for(int j = i;S[j] ! = '\0';j++){
      |                       ^~
      |                       ;
Language: C

#include<stdio.h>

int main(){
	char b[];
	scanf("%c",b);

	if(b[0]=='A'){
		printf("T");
	}else if(b[0]=='T'){
		printf("A");
	}else if(b[0]=='G'){
		printf("C");
	}else if(b[0]=='C'){
		printf("G");
	}else{
		printf("error");
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:14: error: array size missing in 'b'
    4 |         char b[];
      |              ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:30: error: 'ebdl' was not declared in this scope
    9 |   else if(a=="C") cout<<"G"<<ebdl;
      |                              ^~~~
a.cc:10:18: error: expected primary-expression before ',' token
   10 |   else cout<<"C"<,endl;
      |                  ^
Language: C++

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

int main(){
  int a;
  cin>>a;
  if(a=="A") cout<<"T"<<endl;
  else if(a=="T") cout<<"A"<<endl;
  else if(a=="C") cout<<"G"<<ebdl;
  else 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"<<ebdl;
      |           ~^~~~~
a.cc:9:30: error: 'ebdl' was not declared in this scope
    9 |   else if(a=="C") cout<<"G"<<ebdl;
      |                              ^~~~
a.cc:10:18: error: expected primary-expression before ',' token
   10 |   else cout<<"C"<,endl;
      |                  ^
Language: C++

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



int main(){
    string S;
    int A[10]={0,0,0,0,0,0,0,0,0,0}
    string T="ACGT";
    int now=0;
    int ans=0;
    cin>>S;
    for(int i=0;i<S.size();i++){
        for(int k=0;k<T.size();k++){
            if(S[i]==T[k]) A[i]=1;
        }
    }
    for(int j=0;j<10;j++){
        if(A[j]==1){
            now++;
            if(now>ans) ans=now;
        }else{
            now=0;
            
        }
    }


    cout<<ans<<endl;

    



    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected ',' or ';' before 'string'
   11 |     string T="ACGT";
      |     ^~~~~~
a.cc:16:23: error: 'T' was not declared in this scope
   16 |         for(int k=0;k<T.size();k++){
      |                       ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: expected ';' before '}' token
   13 |         ans = 'T'
      |                  ^
      |                  ;
   14 |     }else if(c=='T'){
      |     ~             
a.cc:15:17: error: expected ';' before '}' token
   15 |         ans ='A'
      |                 ^
      |                 ;
   16 |     }else if(c=='G'){
      |     ~
Language: C++

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

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

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

#include <bits/stdc++.h>
#define rep(i,a,b) for(int i=a; i< (int)(b); ++i)
using namespace std;


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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: 's' was not declared in this scope
   11 |     if(s=='A') ans='T';
      |        ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,a,b) for(int i=a; i< (int)(b); ++i)
using namespace std;


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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: 's' was not declared in this scope
   11 |     if(s=='A') ans="T";
      |        ^
a.cc:11:20: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   11 |     if(s=='A') ans="T";
      |                    ^~~
      |                    |
      |                    const char*
a.cc:12:25: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   12 |     else if(s=='C') ans="G";
      |                         ^~~
      |                         |
      |                         const char*
a.cc:13:25: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   13 |     else if(s=='G') ans="C";
      |                         ^~~
      |                         |
      |                         const char*
a.cc:14:25: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   14 |     else if(s=='T') ans="A";
      |                         ^~~
      |                         |
      |                         const char*
Language: C++

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

// typedef
//------------------------------------------
typedef pair<int, int> PII;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef vector<PII> VP;

// rep
//------------------------------------------
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(x) (x).begin(), (x).end()
#define DEBUG(x) cerr << #x << ": " << x << '\n'
#define DEBUGP(x) cerr << #x << ": " << x.first << " \t" << x.second << '\n'

string s;
signed main()
{
    cin >> s;
    if (s[0] == 'A'){
        cout << 'T' << endl;
    } else if (s[0] == 'T'){
        cout << 'A' << endl;
    } else if (s[0] == 'G'){
        cout << 'C' << endl;
    } else if (s[0] == 'C'){
        cout << 'G' << endl;
    }
    return 0;

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

#include <iostream>
#include <algorithm>
#include <iomanip>
#include <string>
#include <vector>
#include <math.h>
#include <queue>
#include <deque>
#include <map>
const int MOD = 1e9+7;
typedef long long ll;
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 (b == 'G') cout << "C" << endl;
 }



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


#include <bits/stdc++.h>

using namespace std;

void Main()
{
    char b;
    cin >> b;
    if (b == 'A' || b == 'T')
        b ^= 'A' ^ 'T';
    if (b == 'C' || b == 'G')
        b ^= 'C' ^ 'G';

    cout << ret;
}

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

    std::cout << std::fixed << std::setprecision(10);

#ifdef DEBUG_BUILD
    while (true)
    {
        Main();
        cout << std::endl;
    }
#endif

    Main();
    cout << endl;

    return 0;
}

Compiler output:
a.cc: In function 'void Main()':
a.cc:15:13: error: 'ret' was not declared in this scope
   15 |     cout << ret;
      |             ^~~
Language: C++

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

int main() {
    char 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;
      default:
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:5: error: expected primary-expression before '}' token
   21 |     }
      |     ^
Language: C++

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

int main() {
  int 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:8:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (b == "A"){
      |       ~~^~~~~~
a.cc:11:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   else if (b == "T"){
      |            ~~^~~~~~
a.cc:14:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |   else if (b == "G"){
      |            ~~^~~~~~
Language: C++

#define _GLIBCXX_DEBUG
#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 if(b == 'G') cout << 'C' << endl; 

}


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

#include<iostream>
using namespace std ;

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

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

#include<iostrean>
using namespace std;
int a;
int main()
{
  cin>>a;
  cout<<2*a;
  
  
  
  
  
  
  
}

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

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'string' was not declared in this scope
    4 |     string b;
      |     ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin >> b;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:5:12: error: 'b' was not declared in this scope
    5 |     cin >> b;
      |            ^
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout << "T";
      |         ^~~~
a.cc:7:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << "A";
      |         ^~~~
a.cc:9:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << "C";
      |         ^~~~
a.cc:11:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << "G";
      |         ^~~~
a.cc:13:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>
#include <iomanip>
#include <utility>
#include <cmath>
#include <random>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <string>
#include <algorithm>
using namespace std;

#define rep(i,n) for(int i = 0; i<n; ++i)
const int INF = 100100100;
const int MOD = (int)1e9 + 7;
typedef long long ll;

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

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

#include <bits/stdc++.h>

using namespace std;
typedef long long ll;

#define floop(i, N) for (ll i = 0; i < N; i++)
#define floop1(i, N) for (ll i = 1; i <= N; i++)
#define out(ans) cout << ans << endl
#define in(n) cin >> n

constexpr ll inf = 1e18;

void solve();

int main()
{
    solve();
}

void solve()
{
    char b;
    in(b);
    map<string, string> m;
    m["A"] = "T";
    m["T"] = "A";
    m["G"] = "C";
    m["C"] = "G";
    out(m[b]);
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:29:10: error: no match for 'operator[]' (operand types are 'std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >' and 'char')
   29 |     out(m[b]);
      |          ^
a.cc:8:26: note: in definition of macro 'out'
    8 | #define out(ans) cout << ans << endl
      |                          ^~~
In file included from /usr/include/c++/14/map:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:152,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_map.h:504:7: note: candidate: 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::__cxx11::basic_string<char>; _Tp = std::__cxx11::basic_string<char>; _Compare = std::less<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > >; mapped_type = std::__cxx11::basic_string<char>; key_type = std::__cxx11::basic_string<char>]'
  504 |       operator[](const key_type& __k)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_map.h:504:34: note:   no known conversion for argument 1 from 'char' to 'const std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >::key_type&' {aka 'const std::__cxx11::basic_string<char>&'}
  504 |       operator[](const key_type& __k)
      |                  ~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_map.h:524:7: note: candidate: 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = std::__cxx11::basic_string<char>; _Tp = std::__cxx11::basic_string<char>; _Compare = std::less<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > >; mapped_type = std::__cxx11::basic_string<char>; key_type = std::__cxx11::basic_string<char>]'
  524 |       operator[](key_type&& __k)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_map.h:524:29: note:   no known conversion for argument 1 from 'char' to 'std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >::key_type&&' {aka 'std::__cxx11::basic_string<char>&&'}
  524 |       operator[](key_type&& __k)
      |                  ~~~~~~~~~~~^~~
Language: C++

using System;
using System.Linq;
using System.Collections.Generic;

public static class P {
    public static void Main() {
        char c=Console.ReadLine()[0];
        char ans='$';
        if(c=='A')ans='T';
        if(c=='T')ans='A';
        if(c=='C')ans='G';
        if(c=='G')ans='C';
        Console.WriteLine(ans);
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Linq;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:5:1: error: expected unqualified-id before 'public'
    5 | public static class P {
      | ^~~~~~
Language: C++

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

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

Compiler output:
a.cc:11:2: error: 'Z' does not name a type
   11 | }Z
      |  ^
Language: C++

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

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

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

int main () {
    char b,c;
    c['A'] ='A';
    c['C'] ='C';
    c['G'] ='G';
    c['T'] ='T';
    
    cin >> b;
    cout << c[(int)b] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: invalid types 'char[char]' for array subscript
    6 |     c['A'] ='A';
      |      ^
a.cc:7:6: error: invalid types 'char[char]' for array subscript
    7 |     c['C'] ='C';
      |      ^
a.cc:8:6: error: invalid types 'char[char]' for array subscript
    8 |     c['G'] ='G';
      |      ^
a.cc:9:6: error: invalid types 'char[char]' for array subscript
    9 |     c['T'] ='T';
      |      ^
a.cc:12:14: error: invalid types 'char[int]' for array subscript
   12 |     cout << c[(int)b] << endl;
      |              ^
Language: C

#include <bits/stdc++.h>
#define rep(i,n) for(int64_t i=0;i < (int64_t)(n);i++)
#define invrep(i,n) for(int64_t i=n-1;i >= 0L;i--)
#define prep(i,n) for(int64_t i=1;i <= (int64_t)(n);i++)
using namespace std;

//////全探索したいときに開けよ////////
vector<vector<int>> fspattern;
vector<int> fspattern_draft;
int fspcnt = 0;

void setfspattern_core(int floor,int number,int degree){
  if(floor==degree){
    fspattern.at(fspcnt) = fspattern_draft;
    fspcnt++;
  }else{
    rep(i,number){
      fspattern_draft.at(floor) = i;
      setfspattern_core(floor+1,number,degree);
    }
  }
}

void setfspattern(int number,int degree){
  int64_t array_num = 1;
  fspcnt = 0;
  rep(i,degree){
    array_num *= number;
  }
  fspattern = vector<vector<int>>(array_num,vector<int>(degree));
  fspattern_draft = vector<int>(degree);
  setfspattern_core(0,number,degree);
}

//////nCrのmodを求めたいときに開けよ/////////
//int64_t univMod = 1000000007;
//int64_t factnum = 100000
//vector<int64_t> modfact(factnum);
//vector<int64_t> modinvfact(factnum);

/*void setmodfact(){
  for(int i=0;i<factnum;i++){
    if(i == 0){
      modfact.at(i) = 1;
    }else{
      modfact.at(i) = (modfact.at(i-1)*i)%univMod;
    }
  }
}

int64_t calcmodpower(int64_t a,int64_t n){
  int64_t res = 1;
  while(n != 0){
    if(n & 1){
      res = (res * a) % univMod;
    }
    a = (a*a) % univMod;
    n = n >> 1;
  }
  return res;
}

int64_t calcinverse(int64_t n){
	return calcmodpower(n,univMod-2);
}

void setmodinvfact(){
  for(int i=0;i<factnum;i++){
    if(i==0){
      modinvfact.at(i) = 1;
    }else{
      modinvfact.at(i) = calcmodpower(modfact.at(i),univMod-2);
    }
  }
}

int64_t calcmodcomb(int64_t n,int64_t r){
  return (((modfact.at(n)*modinvfact.at(r))%univMod)*modinvfact.at(n-r))%univMod;
}

int64_t calcmodpositive(int64_t n){
  return (n + ((abs(n)+univMod-1)/univMod)*univMod)%univMod;
}
  
    */


/*
int64_t calcGCD(int64_t a,int64_t b){
	int64_t p = a;
	int64_t q = b;
	int64_t c = a%b;
	while(c != 0){
		p = q;
		q = c;
		c = p%q;
	}
	return q;
}
*/

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

Compiler output:
main.c: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;
#define int long long

signed main(){
    
  char c;
  cin >> c;
  
  if(c=='A')cout << 'T' <<endl;
  if(c=='T')cout << 'A' << endl;
  if(c=='C')cout << 'G' << ednl;
  if(c=='G')cout << 'C' << endl;
  return 0;
}
    
  


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:19:25: error: expected '}' at end of input
   19 |     cout << ans << endl;
      |                         ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected '}' before 'else'
    8 |   else if (s == 'C') {
      |   ^~~~
a.cc:6:17: note: to match this '{'
    6 |   if (s == 'A') {
      |                 ^
a.cc:10:3: error: expected '}' before 'else'
   10 |   else if (s == 'G') {
      |   ^~~~
a.cc:8:22: note: to match this '{'
    8 |   else if (s == 'C') {
      |                      ^
a.cc:17:25: error: expected '}' at end of input
   17 |     cout << ans << endl;
      |                         ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected '}' before 'else'
    8 |   else if (s == 'C') {
      |   ^~~~
a.cc:6:17: note: to match this '{'
    6 |   if (s == 'A') {
      |                 ^
a.cc:10:3: error: expected '}' before 'else'
   10 |   else if (s == 'G') {
      |   ^~~~
a.cc:8:22: note: to match this '{'
    8 |   else if (s == 'C') {
      |                      ^
a.cc:12:3: error: expected '}' before 'else'
   12 |   else {
      |   ^~~~
a.cc:10:22: note: to match this '{'
   10 |   else if (s == 'G') {
      |                      ^
a.cc:16:25: error: expected '}' at end of input
   16 |     cout << ans << endl;
      |                         ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected '}' before 'else'
    8 |   else if (s == 'C') {
      |   ^~~~
a.cc:6:17: note: to match this '{'
    6 |   if (s == 'A') {
      |                 ^
a.cc:10:3: error: expected '}' before 'else'
   10 |   else if (s == 'G') {
      |   ^~~~
a.cc:8:22: note: to match this '{'
    8 |   else if (s == 'C') {
      |                      ^
a.cc:12:3: error: expected '}' before 'else'
   12 |   else {
      |   ^~~~
a.cc:10:22: note: to match this '{'
   10 |   else if (s == 'G') {
      |                      ^
a.cc:13:14: error: expected ';' before '}' token
   13 |     ans = 'T'
      |              ^
      |              ;
   14 |   }
      |   ~           
a.cc:16:25: error: expected '}' at end of input
   16 |     cout << ans << endl;
      |                         ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

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

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

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:14: warning: missing terminating ' character
    8 |   if(b[1] == 'A){
      |              ^
main.c:8:14: error: missing terminating ' character
    8 |   if(b[1] == 'A){
      |              ^~~~
main.c:9:16: error: expected ')' before ';' token
    9 |     printf("T");
      |                ^
      |                )
main.c:8:5: note: to match this '('
    8 |   if(b[1] == 'A){
      |     ^
main.c:10:3: error: expected expression before '}' token
   10 |   }else if(b[1] == 'C'){
      |   ^
main.c: At top level:
main.c:10:4: error: expected identifier or '(' before 'else'
   10 |   }else if(b[1] == 'C'){
      |    ^~~~
main.c:12:4: error: expected identifier or '(' before 'else'
   12 |   }else if(b[1] == 'G'){
      |    ^~~~
main.c:14:4: error: expected identifier or '(' before 'else'
   14 |   }else if(b[1] == 'T'){
      |    ^~~~
main.c:17:3: error: expected identifier or '(' before 'return'
   17 |   return 0;
      |   ^~~~~~
main.c:18:1: error: expected identifier or '(' before '}' token
   18 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [2]' to binary 'operator<<'
    9 |   else if (s=="T") count << "A";
      |                    ~~~~~~^~~~~~
Language: C++

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

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

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

#include <bits/stdc++.h>
using namespace std;
int 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 (b=='T') cout << 'A' << endl;

  
  
}

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

#include <iostream>
#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:9:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(b == "A") cout << "T" << endl;
      |        ~~^~~~~~
a.cc:10:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if(b == "T") cout << "A" << endl;
      |        ~~^~~~~~
a.cc:11:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(b == "C") cout << "G" << endl;
      |        ~~^~~~~~
a.cc:12:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if(b == "G") cout << "C" << endl;
      |        ~~^~~~~~
Language: C++

#include <iostream>

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:8:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(b == "A") cout << "T" << endl;
      |        ~~^~~~~~
a.cc:9:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(b == "T") cout << "A" << endl;
      |        ~~^~~~~~
a.cc:10:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if(b == "C") cout << "G" << endl;
      |        ~~^~~~~~
a.cc:11:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(b == "G") cout << "C" << endl;
      |        ~~^~~~~~
Language: C++

#include <iostream>

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 if(b == "G"){
        cout << "C" << endl;
    }
}

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

#include <iostream>

using namespace std;

int main(){
    char b;
    char c[128];
    c["A"] = "G";
    c["G"] = "A";
    c["C"] = "T";
    c["T"] = "C";
    cin >> b;
    cout << c[(int)b] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: invalid types 'char [128][const char [2]]' for array subscript
    8 |     c["A"] = "G";
      |      ^
a.cc:9:6: error: invalid types 'char [128][const char [2]]' for array subscript
    9 |     c["G"] = "A";
      |      ^
a.cc:10:6: error: invalid types 'char [128][const char [2]]' for array subscript
   10 |     c["C"] = "T";
      |      ^
a.cc:11:6: error: invalid types 'char [128][const char [2]]' for array subscript
   11 |     c["T"] = "C";
      |      ^
Language: C++

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


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


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

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define FOR(i,a,b) for(ll i=(a);i<(b);i++)
#define FORR(i,a,b)for(ll i=(a);i<=(b);i++)
#define repR(i,n) for(ll i=n;i>=0;i--)
#define all(v)(v).begin(),(v).end()
#define rall(v)(v).rbegin(),(v).rend()
#define F first
#define S second
#define pb push_back
#define pu push
#define COUT(x) cout<<(x)<<endl
#define PQ priority_queue<ll>
#define PQR priority_queue<ll,vector<ll>,greater<ll>>
#define YES(n) cout << ((n) ? "YES" : "NO"  ) << endl
#define Yes(n) cout << ((n) ? "Yes" : "No"  ) << endl
#define mp make_pair
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
const ll MOD = 1000000007LL;
const ll INF = 1LL << 60;
using vll = vector<ll>;
using vvll = vector<vll>;
using vstr = vector<string>;
using pll = pair<ll, ll>;
int main(){
  char q;
  cin>>q;
  if(q=='A') COUT('T');
  else if(Q=='T') COUT('A');
  else if(Q=='G') COUT('C');
  else if(Q=='C') COUT('G');
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:11: error: 'Q' was not declared in this scope
   32 |   else if(Q=='T') COUT('A');
      |           ^
Language: C++

#include<stdio.h>
int main()
{
 int b;
 scanf("%d",&b);
 if(b==A)
 {
     printf("T");
 }
 if(b==G)
 {
     printf("C");
 }
 if(b==C)
 {
     printf("G")
 }
 if(b==T)
 {
     printf("A")
 }
 return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'A' was not declared in this scope
    6 |  if(b==A)
      |        ^
a.cc:10:8: error: 'G' was not declared in this scope
   10 |  if(b==G)
      |        ^
a.cc:14:8: error: 'C' was not declared in this scope
   14 |  if(b==C)
      |        ^
a.cc:16:17: error: expected ';' before '}' token
   16 |      printf("G")
      |                 ^
      |                 ;
   17 |  }
      |  ~               
a.cc:18:8: error: 'T' was not declared in this scope
   18 |  if(b==T)
      |        ^
a.cc:20:17: error: expected ';' before '}' token
   20 |      printf("A")
      |                 ^
      |                 ;
   21 |  }
      |  ~               
a.cc:22:10: error: expected ';' before '}' token
   22 |  return 0
      |          ^
      |          ;
   23 | }
      | ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:19: error: '$b' undeclared (first use in this function); did you mean 'b'?
    4 |       scanf("%c", $b);
      |                   ^~
      |                   b
main.c:4:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#induce<stdio.h>

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

  return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #induce
    1 | #induce<stdio.h>
      |  ^~~~~~
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |   scanf("%c",&b);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #induce<stdio.h>
main.c:5:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |   scanf("%c",&b);
      |   ^~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |     printf("T");
      |     ^~~~~~
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   10 |     printf("A");
      |     ^~~~~~
main.c:10:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |     printf("G");
      |     ^~~~~~
main.c:13:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:16:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   16 |     printf("C");
      |     ^~~~~~
main.c:16:5: note: include '<stdio.h>' or provide a declaration of 'printf'
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 if if (a=='C'){printf("G");}
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:11: error: expected '(' before 'if'
    9 |   else if if (a=='C'){printf("G");}
      |           ^~
      |           (