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

#include <bits/stdc++.h>
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:6:9: error: could not convert 'b.std::__cxx11::basic_string<char>::operator=(((const char*)"A"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    6 |   if (b = "A") {
      |       ~~^~~~~
      |         |
      |         std::__cxx11::basic_string<char>
a.cc:9:14: error: could not convert 'b.std::__cxx11::basic_string<char>::operator=(((const char*)"T"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    9 |   else if (b = "T") {
      |            ~~^~~~~
      |              |
      |              std::__cxx11::basic_string<char>
a.cc:12:14: error: could not convert 'b.std::__cxx11::basic_string<char>::operator=(((const char*)"G"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   12 |   else if (b = "G") {
      |            ~~^~~~~
      |              |
      |              std::__cxx11::basic_string<char>
a.cc:15:14: error: could not convert 'b.std::__cxx11::basic_string<char>::operator=(((const char*)"C"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   15 |   else if (b = "C") {
      |            ~~^~~~~
      |              |
      |              std::__cxx11::basic_string<char>
Language: C++

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

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

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

#include <bits/stdc++.h>
using namespace std;
int main(){
  char a;
  cin >> a;
  char ans;
  if (a=="A") ans = "C";
  if (a=="T") ans = "T";
  if (a=="C") ans = "G";
  if (a=="G") ans = "C";
  cout << ans << 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 (a=="A") ans = "C";
      |       ~^~~~~
a.cc:7:21: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    7 |   if (a=="A") ans = "C";
      |                     ^~~
      |                     |
      |                     const char*
a.cc:8:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (a=="T") ans = "T";
      |       ~^~~~~
a.cc:8:21: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    8 |   if (a=="T") ans = "T";
      |                     ^~~
      |                     |
      |                     const char*
a.cc:9:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if (a=="C") ans = "G";
      |       ~^~~~~
a.cc:9:21: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    9 |   if (a=="C") ans = "G";
      |                     ^~~
      |                     |
      |                     const char*
a.cc:10:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if (a=="G") ans = "C";
      |       ~^~~~~
a.cc:10:21: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   10 |   if (a=="G") ans = "C";
      |                     ^~~
      |                     |
      |                     const char*
Language: C++

//templates
#include <iostream>
#include <algorithm>
#include <string>
#include <numeric>
#include <vector>
#include <unordered_map>
#include <map>
#include <cmath>
#define rep(i,n) for(int i = 0; i < (n); i++)
#define ALL(x) (x).begin(),(x).end()
#define pb push_back
#define SZ(x) ((int)(x).size())
typedef long long ll;
using namespace std;

//main
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:21:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |   if(b=="A") cout << "T" << endl;
      |      ~^~~~~
a.cc:22:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   22 |   else if(b=="T") cout<< "A" << endl;
      |           ~^~~~~
a.cc:23:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 |   else if(b=="C") cout<< "G" << endl;
      |           ~^~~~~
Language: C++

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


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

#include <iostream>
#include <algorithm>
#include <map>
using namespace std;
#define ct(string) cout << string << endl

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: expected ',' or ';' before 'char'
   14 |   char c;
      |   ^~~~
a.cc:15:10: error: 'c' was not declared in this scope
   15 |   cin >> c;
      |          ^
Language: C++

#include<iostream>
#include<string>
#include<cstdio>
#include <cstring>
#include<vector>
#include<cmath>
#include<algorithm>
#include<functional>
#include<iomanip>
#include<queue>
#include<ciso646>
#include<random>
#include<map>
#include<set>
#include<complex>
#include<bitset>
#include<stack>
#include<unordered_map>
#include<utility>
using namespace std;
typedef long long ll;
typedef unsigned int ui;
const ll mod = 1000000007;
typedef long double ld;
const ll INF = 1e+14;
typedef pair<int, int> P;
#define stop char nyaa;cin>>nyaa;
#define rep(i,n) for(int i=0;i<n;i++)
#define per(i,n) for(int i=n-1;i>=0;i--)
#define Rep(i,sta,n) for(int i=sta;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define per1(i,n) for(int i=n;i>=1;i--)
#define Rep1(i,sta,n) for(int i=sta;i<=n;i++)
typedef complex<ld> Point;
const ld eps = 1e-8;
const ld pi = acos(-1.0);
typedef pair<ld, ld> LDP;
typedef pair<ll, ll> LP;
#define fr first
#define sc second
#define all(c) c.begin(),c.end()
#define pb push_back

void Yes(){
	cout<<"Yes"<<endl;
	exit(0);
}
 
void No(){
	cout<<"No"<<endl;
	exit(0);
}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:59:17: error: 'T' was not declared in this scope
   59 |         cout << T << endl;
      |                 ^
a.cc:61:17: error: 'A' was not declared in this scope
   61 |         cout << A << endl;
      |                 ^
a.cc:63:17: error: 'C' was not declared in this scope
   63 |         cout << C << endl;
      |                 ^
a.cc:65:17: error: 'G' was not declared in this scope
   65 |         cout << G << endl;
      |                 ^
Language: C++

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

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

Compiler output:
a.cc:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:11:4: error: 'elseif' was not declared in this scope
   11 |   }elseif(b=="T"){
      |    ^~~~~~
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 if(b==c){
    cout<<"G"<<endl;
  }
}

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:10:14: error: 'T' was not declared in this scope
   10 |   else if(b==T){
      |              ^
a.cc:13:14: error: 'G' was not declared in this scope
   13 |   else if(b==G){
      |              ^
a.cc:16:14: error: 'c' was not declared in this scope
   16 |   else if(b==c){
      |              ^
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  if (b == "C") {
    cout << "G" << endl;
  }
}

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

#include <stdio.h>

 int main(void)
{

 char b;

 printf("b="); scanf("%c",&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: In function 'main':
main.c:10:9: error: 'A' undeclared (first use in this function)
   10 |   if(b==A)
      |         ^
main.c:10:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:14: error: 'T' undeclared (first use in this function)
   13 |   else if(b==T)
      |              ^
main.c:16:14: error: 'G' undeclared (first use in this function)
   16 |   else if(b==G)
      |              ^
main.c:19:14: error: 'C' undeclared (first use in this function)
   19 |   else if(b==C)
      |              ^
Language: C++

#include <iostream>
using namespace std;
 
int main() {
    char b, c[128];
    cin >> b;
  
    c['A'] = 'T'
    c['G'] = 'C'
    c['C'] = 'G'
    c['T'] = 'A'
 
    cout << c[b] << endl;
 
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expected ';' before 'c'
    8 |     c['A'] = 'T'
      |                 ^
      |                 ;
    9 |     c['G'] = 'C'
      |     ~
Language: C++

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

int main(void){
  string b;
  cin >> b;
  string ret = "";
  if(b[0] == 'A') ret += 'T';
  else if(b[0] == 'T') ret += 'A';
  else if(b[0] == 'C') ret += 'G';
  else if(b[0] == 'G') ret += 'C';
  cout << ret << endl;
  return 0;
}

Compiler output:
a.cc:3:9: error: 'll' does not name a type
    3 | typedef ll long long;
      |         ^~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 'S' was not declared in this scope
    7 |   if(S=="A"){
      |      ^
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 if(b =='G'){
    cout <<'C'<< endl;
  }

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

#include<stdio.h>
int main(void){
    char b;
    scanf("%c",&b);
    switch(b){
case A:
printf("T\n");
break;
case T:
printf("A\n");
break;
case C
printf("G\n");
break;
case G
printf("C\n");
break;
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:6: error: 'A' undeclared (first use in this function)
    6 | case A:
      |      ^
main.c:6:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:6: error: 'T' undeclared (first use in this function)
    9 | case T:
      |      ^
main.c:12:6: error: 'C' undeclared (first use in this function)
   12 | case C
      |      ^
main.c:13:1: error: expected ':' or '...' before 'printf'
   13 | printf("G\n");
      | ^~~~~~
main.c:15:6: error: 'G' undeclared (first use in this function)
   15 | case G
      |      ^
main.c:16:1: error: expected ':' or '...' before 'printf'
   16 | printf("C\n");
      | ^~~~~~
Language: C++

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

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

#include<iostream>
using namespace std;

int main()
{
  string S;
  cin>>S;
  int max = 0;
  for(int i = 0;i<=S.length();i++)
  {
    for(int j = 0;j<S.length();j++)
    {
      if(i+j>S.length())
      {
        continue;
      }
      string sub = S.substr(i,j);

      bool isACGT = true;
      for(int k = 0;k<sub.length();k++)
      {
        if(sub[k] != 'A' && sub[k] != 'C' && sub[k] != 'G' && sub[k] == 'T')
        {
          isACGT = false;
        }
      }
      if(isACGT)
      {
        if(max < sub.length())
        {
          max = sub.length();
        }
      }
    }
  }
  cout<<max<<endl:
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:18: error: expected ';' before ':' token
   36 |   cout<<max<<endl:
      |                  ^
      |                  ;
Language: C++

#Include<iostream>
using namespace std;

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;
  }
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include?
    1 | #Include<iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   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 | #Include<iostream>
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout<<'T'<<endl;
      |         ^~~~
a.cc:11:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:20: error: 'endl' was not declared in this scope
   11 |         cout<<'T'<<endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #Include<iostream>
Language: C++

// SeeAlso: 

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;

#define MAX 100000

typedef int _loop_int;
#define REP(i,n) for(int i = 0; i < n; i++)
#define FOR(i,a,b) for(_loop_int i=(_loop_int)(a);i<(_loop_int)(b);++i)
#define FORR(i,a,b) for(_loop_int i=(_loop_int)(b)-1;i>=(_loop_int)(a);--i)

#define DEBUG(x) cout<<#x<<": "<<x<<endl
#define DEBUG_VEC(v) cout<<#v<<":";REP(i,v.size())cout<<" "<<v[i];cout<<endl
#define ALL(a) (a).begin(),(a).end()

#define CHMIN(a,b) a=min((a),(b))
#define CHMAX(a,b) a=max((a),(b))

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

    char ans;
    switch (b) {
        case 'A':
            ans = 'T';
            break;
        case 'T':
            ans = 'A';
            break;
        case 'C':
            ans = 'G';
            break;            
        case 'G':
            ans = 'C';
            break;            
        default:
            ans = '';
            break;
    }
        
    cout << ans << endl;

    return 0;
}


Compiler output:
a.cc:46:19: error: empty character constant
   46 |             ans = '';
      |                   ^~
Language: C++

#include <stdio.h>

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

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

#include<stdio.h>
int main()
{
  char b;
  char a[4]={"A","T","G","C"};
  int i;
  scanf("%s",&b);
 for(i=0;i<=3;i++){
   if(a[i]==b)
     break;}
  if(i%2==0)
    i++;
  else i--;
  printf("%s",a[i])
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:18: error: excess elements in 'char[4]' initializer
    5 |   char a[4]={"A","T","G","C"};
      |                  ^~~
main.c:5:18: note: (near initialization for 'a')
main.c:5:22: error: excess elements in 'char[4]' initializer
    5 |   char a[4]={"A","T","G","C"};
      |                      ^~~
main.c:5:22: note: (near initialization for 'a')
main.c:5:26: error: excess elements in 'char[4]' initializer
    5 |   char a[4]={"A","T","G","C"};
      |                          ^~~
main.c:5:26: note: (near initialization for 'a')
main.c:14:20: error: expected ';' before 'return'
   14 |   printf("%s",a[i])
      |                    ^
      |                    ;
   15 |   return 0;
      |   ~~~~~~
Language: C

#include<stdio.h>

int main()
{
  char b;

  scanf("%c", &b);

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

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:5: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |     print("T\n");
      |     ^~~~~
      |     printf
Language: C

#include<stdio.h>
int main()
{
  char b;
  char a[4]={A,T,G,C};
  int i;
  scanf("%s",&b);
 for(i=0;i<=3;i++){
   if(a[i]==b)
     break;}
  if(i%2==0)
    i++;
  else i--;
  printf("%s",a[i])
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:14: error: 'A' undeclared (first use in this function)
    5 |   char a[4]={A,T,G,C};
      |              ^
main.c:5:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:16: error: 'T' undeclared (first use in this function)
    5 |   char a[4]={A,T,G,C};
      |                ^
main.c:5:18: error: 'G' undeclared (first use in this function)
    5 |   char a[4]={A,T,G,C};
      |                  ^
main.c:5:20: error: 'C' undeclared (first use in this function)
    5 |   char a[4]={A,T,G,C};
      |                    ^
main.c:14:20: error: expected ';' before 'return'
   14 |   printf("%s",a[i])
      |                    ^
      |                    ;
   15 |   return 0;
      |   ~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:11: error: 'G' undeclared (first use in this function)
   14 |   if(b == G)
      |           ^
main.c:14:11: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:9: error: 'A' undeclared (first use in this function)
    6 |   if(b==A)
      |         ^
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:15: error: 'T' undeclared (first use in this function)
    8 |    else if(b==T)
      |               ^
main.c:10:15: error: 'G' undeclared (first use in this function)
   10 |   else  if(b==G)
      |               ^
main.c:12:14: error: 'C' undeclared (first use in this function)
   12 |   else if(b==C)
      |              ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:9: error: 'A' undeclared (first use in this function)
    6 |   if(b==A)
      |         ^
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:15: error: 'T' undeclared (first use in this function)
    8 |    else if(b==T)
      |               ^
main.c:10:15: error: 'G' undeclared (first use in this function)
   10 |   else  if(b==G)
      |               ^
main.c:12:14: error: 'C' undeclared (first use in this function)
   12 |   else if(b==C)
      |              ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected '(' before 's'
    7 |         if s=="A" {
      |            ^
      |            (
a.cc:9:10: error: 'else' without a previous 'if'
    9 |         }else if s=="T" {
      |          ^~~~
a.cc:9:18: error: expected '(' before 's'
    9 |         }else if s=="T" {
      |                  ^
      |                  (
a.cc:11:10: error: 'else' without a previous 'if'
   11 |         }else if s=="G" {
      |          ^~~~
a.cc:11:18: error: expected '(' before 's'
   11 |         }else if s=="G" {
      |                  ^
      |                  (
a.cc:13:10: error: 'else' without a previous 'if'
   13 |         }else{
      |          ^~~~
Language: C++

#include<string>
#include<iostream>
#include<unordered_map>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: wrong number of template arguments (1, should be at least 2)
   12 |   unordered_map<char> map;
      |                     ^
In file included from /usr/include/c++/14/unordered_map:41,
                 from a.cc:3:
/usr/include/c++/14/bits/unordered_map.h:109:11: note: provided for 'template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> class std::unordered_map'
  109 |     class unordered_map
      |           ^~~~~~~~~~~~~
a.cc:13:6: error: invalid types 'int[char]' for array subscript
   13 |   map['A'] = 'T';
      |      ^
a.cc:14:6: error: invalid types 'int[char]' for array subscript
   14 |   map['T'] = 'A';
      |      ^
a.cc:15:6: error: invalid types 'int[char]' for array subscript
   15 |   map['C'] = 'G';
      |      ^
a.cc:16:6: error: invalid types 'int[char]' for array subscript
   16 |   map['G'] = 'C';
      |      ^
a.cc:19:15: error: invalid types 'int[__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}]' for array subscript
   19 |     s[i] = map[s[i]];
      |               ^
Language: C++

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

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #incluude; did you mean #include?
    2 | #incluude <string>
      |  ^~~~~~~~
      |  include
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'sitrin' was not declared in this scope; did you mean 'stdin'?
    5 |   sitrin a;
      |   ^~~~~~
      |   stdin
a.cc:6:9: error: 'a' was not declared in this scope
    6 |   cin >>a;
      |         ^
a.cc:14:15: error: expected ';' before '}' token
   14 |     cout <<"G"
      |               ^
      |               ;
   15 |   }
      |   ~
Language: C++

#include <iostream>
#include <string>
#include <math.h>
#include <map>
#include <vector>
#include <tuple>
#include <algorithm>
using namespace std;
#define lli long long int
#define vi vector<int>
#define vlli vector<lli>
#define pii pair<int, int>
#define plli pair <lli, lli>
#define F(i,n) for(lli (i)=0;(i)<(n);(i)++)
#define FR(i,n) for(lli (i)=(n)-1;(i)>=0;(i)--)
#define FSG(i,a,b) for(lli (i)=(a);(i)<(b);(i)++)
#define FSGR(i,a,b) for(lli (i)=(b)-1;(i)>=(a);(i)--)
#define VAL(n) cout << n << endl;
#define VALD(n) cout << #n << ": " << n << endl;

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


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

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

int main(){
	/*input*/
	string b;
	cin >> b;
	/*output*/
	switch(b){
		case 'A':
			cout << 'T' << endl;
		break;
		case 'C':
			cout << 'G' << endl;
		break;
		case 'G':
			cout << 'C' << endl;
		break;
		case 'T':
			cout << 'A' << endl;
	}
}


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

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

int main()
{
    char c;
    cin >> c;
    char pair;

    switch(c){
        case 'A':
            pair = 'T';
            break;
        case 'C':
            pair = 'G';
            break;
        case 'G':
            pair = 'C':
            break;
        case 'T':
            pair = 'A';
            break;
    }

    cout << pair << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:23: error: expected ';' before ':' token
   21 |             pair = 'C':
      |                       ^
      |                       ;
Language: C++

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

int main()
{
    char c;
    cin >> c;
    char pair;

    switch(){
        case 'A':
            pair = 'T';
            break;
        case 'C':
            pair = 'G';
            break;
        case 'G':
            pair = 'C':
            break;
        case 'T':
            pair = 'A';
            break;
    }

    cout << pair << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: expected primary-expression before ')' token
   13 |     switch(){
      |            ^
a.cc:21:23: error: expected ';' before ':' token
   21 |             pair = 'C':
      |                       ^
      |                       ;
Language: C++

#include<bits.stdc++.h>

using namespace std;

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'cou' was not declared in this scope; did you mean 'cos'?
    8 |     cou << 'A';
      |     ^~~
      |     cos
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define pf push_front

typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;

#define mp make_pair
#define fi first
#define se second
typedef pair<int,int> pint;
#define All(s) s.begin(),s.end()
#define rAll(s) s.rbegin(),s.rend()
#define REP(i,a,b) for(int i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)

int main()
{
 char b;
  cin >> b;
  
  if ( b = 'A') puts ('T');
    if ( b = 'T') puts ('A');
    if ( b = 'G') puts ('G');
    if ( b = 'C') puts ('C');
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:23: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   26 |   if ( b = 'A') puts ('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/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
a.cc:27:25: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   27 |     if ( b = 'T') puts ('A');
      |                         ^~~
      |                         |
      |                         char
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
a.cc:28:25: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   28 |     if ( b = 'G') puts ('G');
      |                         ^~~
      |                         |
      |                         char
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
a.cc:29:25: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   29 |     if ( b = 'C') puts ('C');
      |                         ^~~
      |                         |
      |                         char
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
Language: Java

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


Compiler output:
Main.java:5: error: incompatible types: String cannot be converted to char
      char x = sc.next();
                      ^
1 error
Language: Java

import java.util.*;
public class Main{
	public static void main{
      Scanner sc = new Scanner(System.in);
      char x = sc.next();
      if(x == 'A')System.out.println('C');
      if(x == 'C')System.out.println('A');
      if(x == 'G')System.out.println('T');
      if(x == 'T')System.out.println('G');
      sc.close();
    }
}

Compiler output:
Main.java:3: error: '(' expected
	public static void main{
	                       ^
1 error
Language: C++

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

int main(){
  char c;
  cin >> c;
  A, C, G, T が存在し、A と T、C と G
  switch(c){
    case 'A':
      cout << 'T' << endl;
      break;
    case 'T':
      cout << 'A' << endl;
      break;
    case 'C':
      cout << 'G' << endl;
      break;
    case 'G':
      cout << 'C' << endl;
      break;
  }
  return 0;
}

Compiler output:
a.cc:7:14: error: extended character 、 is not valid in an identifier
    7 |   A, C, G, T が存在し、A と T、C と G
      |              ^
a.cc:7:29: error: extended character 、 is not valid in an identifier
    7 |   A, C, G, T が存在し、A と T、C と G
      |                             ^
a.cc: In function 'int main()':
a.cc:7:3: error: 'A' was not declared in this scope
    7 |   A, C, G, T が存在し、A と T、C と G
      |   ^
a.cc:7:6: error: 'C' was not declared in this scope
    7 |   A, C, G, T が存在し、A と T、C と G
      |      ^
a.cc:7:9: error: 'G' was not declared in this scope
    7 |   A, C, G, T が存在し、A と T、C と G
      |         ^
a.cc:7:12: error: 'T' was not declared in this scope
    7 |   A, C, G, T が存在し、A と T、C と G
      |            ^
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(X == 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(X == A){
      |           ^
a.cc:10:16: error: 'T' was not declared in this scope
   10 |   else if(X == T){
      |                ^
a.cc:13:16: error: 'G' was not declared in this scope
   13 |   else if(X == G){
      |                ^
a.cc:16:13: error: 'C' was not declared in this scope
   16 |   else(X == C){
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  char X;
  cin >> X;
  if(X == A){
    cout << "T" << endl;
  }
  else if(X == T){
    cout << "A" << endl;
  }
  else if(X == G){
    cout << "C" << endl;
  }
  else(X == 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(X == A){
      |           ^
a.cc:10:16: error: 'T' was not declared in this scope
   10 |   else if(X == T){
      |                ^
a.cc:13:16: error: 'G' was not declared in this scope
   13 |   else if(X == G){
      |                ^
a.cc:16:13: error: 'C' was not declared in this scope
   16 |   else(X == C){
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  char X;
  cin >> X;
  if(X = A){
    cout << "T" << endl;
  }
  else if(X = T){
    cout << "A" << endl;
  }
  else if(X = G){
    cout << "C" << endl;
  }
  else(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:10:15: error: 'T' was not declared in this scope
   10 |   else if(X = T){
      |               ^
a.cc:13:15: error: 'G' was not declared in this scope
   13 |   else if(X = G){
      |               ^
a.cc:16:12: error: 'C' was not declared in this scope
   16 |   else(X = C){
      |            ^
Language: C++

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

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

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

	.file	"main.c"
	.text
	.section	.rodata
.LC0:
	.string	"%c"
.LC1:
	.string	"T"
.LC2:
	.string	"G"
.LC3:
	.string	"A"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-9(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-9(%rbp), %eax
	cmpb	$65, %al
	jne	.L2
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L2:
	movzbl	-9(%rbp), %eax
	cmpb	$67, %al
	jne	.L4
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L4:
	movzbl	-9(%rbp), %eax
	cmpb	$84, %al
	jne	.L5
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L5:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L3:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	xorq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0"
	.section	.note.GNU-stack,"",@progbits


Compiler output:
main.c:1:9: error: expected identifier or '(' before '.' token
    1 |         .file   "main.c"
      |         ^
main.c:14:23: error: stray '@' in program
   14 |         .type   main, @function
      |                       ^
main.c:31:31: error: stray '@' in program
   31 |         call    __isoc99_scanf@PLT
      |                               ^
main.c:36:21: error: stray '@' in program
   36 |         call    puts@PLT
      |                     ^
main.c:43:21: error: stray '@' in program
   43 |         call    puts@PLT
      |                     ^
main.c:50:21: error: stray '@' in program
   50 |         call    puts@PLT
      |                     ^
main.c:54:21: error: stray '@' in program
   54 |         call    puts@PLT
      |                     ^
main.c:60:33: error: stray '@' in program
   60 |         call    __stack_chk_fail@PLT
      |                                 ^
main.c:69:44: error: stray '@' in program
   69 |         .section        .note.GNU-stack,"",@progbits
      |                                            ^
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
      	char ch = sc.next();
      	switch(ch) {
          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:6: error: incompatible types: String cannot be converted to char
      	char ch = sc.next();
      	                 ^
1 error
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
      	char ch = Char.parseChar(sc.next());
      	switch(ch) {
          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:6: error: cannot find symbol
      	char ch = Char.parseChar(sc.next());
      	          ^
  symbol:   variable Char
  location: class Main
1 error
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 if(b=="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(b=="A"){
      |      ~^~~~~
a.cc:10:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   else if(b=="T"){
      |           ~^~~~~
a.cc:14:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |   else if(b=="C"){
      |           ~^~~~~
a.cc:18:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |   else if(b=="G"){
      |           ~^~~~~
Language: C++

#include <algorithm>
#include <deque>
#include <iostream>
#include <map>
#include <math.h>
#include <string.h>
#include <vector>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:16: error: expected primary-expression before 'int'
   17 |     cout << c[(int)] << endl;
      |                ^~~
a.cc:17:16: error: expected ')' before 'int'
   17 |     cout << c[(int)] << endl;
      |               ~^~~
      |                )
a.cc:17:29: error: expected ']' before ';' token
   17 |     cout << c[(int)] << endl;
      |                             ^
      |                             ]
Language: C++

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

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

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

#include <iostream>
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:9: 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:11:14: error: could not convert 'X.std::__cxx11::basic_string<char>::operator=(((const char*)"T"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |   else if( X = "T" ){
      |            ~~^~~~~
      |              |
      |              std::__cxx11::basic_string<char>
a.cc:14:14: error: could not convert 'X.std::__cxx11::basic_string<char>::operator=(((const char*)"C"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   14 |   else if( X ="C" ){
      |            ~~^~~~
      |              |
      |              std::__cxx11::basic_string<char>
Language: C++

#include <iostraem>
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:1:10: fatal error: iostraem: No such file or directory
    1 | #include <iostraem>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
using namespace std;

int main() {
  str 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:5:3: error: 'str' was not declared in this scope; did you mean 'std'?
    5 |   str b; cin >> b;
      |   ^~~
      |   std
a.cc:5:17: error: 'b' was not declared in this scope
    5 |   str b; cin >> b;
      |                 ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  int ans = 0;
  int tmp = 0;
  cin >> s;
  for (char si:s) {
    if(si == 'A' || si == 'C' || si == 'G' || si == 'T'){
      tmp++;
    }else{
      ans = max(ans, tmp);
      tmp = 0;
    }
  }
  ans = max(ans, tmp);
  cout << ans << endl
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:22: error: expected ';' before '}' token
   17 |   cout << ans << endl
      |                      ^
      |                      ;
   18 | }
      | ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:21: error: expected ';' before '}' token
   11 |   cout << ans <<endl
      |                     ^
      |                     ;
   12 | }
      | ~