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

import java.util.Scanner;
public class Grand032A {
	public static void main(String[] args) {
		Scanner stdin = new Scanner(System.in);
		String a,b;
		a = stdin.next();
		switch(a) {
		case "A" :System.out.print("T");break;
		case "T" :System.out.print("A");break;
		case "C" :System.out.print("G");break;
		case "G" :System.out.print("C");break;
		}
	}
}

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

import java.util.*;
 
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    char s;
    int count =0,ans = 0;
    for(int i = 0;i<S.length();i++){
      	s=charAt(i);
      	if(s=='A'||s=='T'||s=='G'||s=='C'){
			count++;
        }else{
			ans = Math.max(count,ans);
          	count = 0;
        }
    }
    
    ans = Math.max(count,ans);
    System.out.println(ans);
  }
}

Compiler output:
Main.java:10: error: cannot find symbol
      	s=charAt(i);
      	  ^
  symbol:   method charAt(int)
  location: class Main
1 error
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 == C) {
    cout << G << endl;
  }
   else if (b == G) {
    cout << C << endl;
  }
}
  

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

nclude<iostream>
using namespace std;

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

	if (b == 'A')
		cout << "T";
	else if (b == 'T')
		cout << "A";
	else if (b == 'G')
		cout << "C";
	else
		cout << "G";

}

Compiler output:
a.cc:1:1: error: 'nclude' does not name a type
    1 | nclude<iostream>
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> b;
      |         ^~~
a.cc:10:17: error: 'cout' was not declared in this scope
   10 |                 cout << "T";
      |                 ^~~~
a.cc:12:17: error: 'cout' was not declared in this scope
   12 |                 cout << "A";
      |                 ^~~~
a.cc:14:17: error: 'cout' was not declared in this scope
   14 |                 cout << "C";
      |                 ^~~~
a.cc:16:17: error: 'cout' was not declared in this scope
   16 |                 cout << "G";
      |                 ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:12:18: error: expected ')' before ';' token
   12 |     printf("A\n)";
      |           ~      ^
      |                  )
main.c:20:12: error: expected ';' before '}' token
   20 |   return 0;
      |            ^
      |            ;
   21 |            }
      |            ~
Language: C++

b = input()
ans = ''
for c in b:
    if c == 'A':
        ans += 'T'
    elif c == 'T':
        ans += 'A'
    elif c == 'G':
        ans += 'C'
    else:
        ans += 'G'
print(ans)


Compiler output:
a.cc:2:7: error: empty character constant
    2 | ans = ''
      |       ^~
a.cc:1:1: error: 'b' does not name a type
    1 | b = input()
      | ^
Language: C++

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

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

  if ((x == A)) {
    cout << "C" << endl;
  }

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

  else if (x == T) {
    cout << "A" << endl;
  }
  else  if (x == G) {
    cout << "C" << endl;
  } 

}


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

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

int main() {
  int x;
  cin >> x ;

  if ((x == A)) {
    cout << "C" << endl;
  }

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

  else if (x == T) {
    cout << "A" << endl;
  }
  else  if (x == G) {
    cout << "C" << endl;
  } 

}


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

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


Compiler output:
a.cc:14:9: error: expected unqualified-id before 'return'
   14 |         return 0;
      |         ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

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


Compiler output:
a.cc:14:9: error: expected unqualified-id before 'return'
   14 |         return 0;
      |         ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected ';' before 'if'
    6 |     printf("T")
      |                ^
      |                ;
    7 |     if(x=='C')
      |     ~~          
a.cc: At global scope:
a.cc:14:9: error: expected unqualified-id before 'return'
   14 |         return 0;
      |         ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: Java

import java.util.Scanner;

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



Compiler output:
Main.java:8: error: cannot find symbol
	if(sc.equals(A)){
	             ^
  symbol:   variable A
  location: class Main
Main.java:9: error: cannot find symbol
	    System.out.println(T);
	                       ^
  symbol:   variable T
  location: class Main
Main.java:11: error: cannot find symbol
	else if(sc.equals(G)){
	                  ^
  symbol:   variable G
  location: class Main
Main.java:12: error: cannot find symbol
	    System.out.println(C);
	                       ^
  symbol:   variable C
  location: class Main
4 errors
Language: C

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

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <studio.h>
      |         ^
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new acScanner(System.in);
		String s = sc.next();
        switch(s){
          case "A":
            System.out.println("T");
            break;
          case "T":
            System.out.println("A");
            break;
          case "G":
            System.out.println("C");
            break;
          case "C":
            System.out.println("G");
            break;
          default :
        }
	}
}

Compiler output:
Main.java:4: error: cannot find symbol
		Scanner sc = new acScanner(System.in);
		                 ^
  symbol:   class acScanner
  location: class Main
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
        switch(s){
          case "A":
            System.out.println("T");
          case "T":
            System.out.println("A");
          case "G":
            System.out.println("C");
          case "C":
            System.out.println("G");
          default :
	}
}

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

import java.io.*;

public class abc122_a
{
    public static void main(String[] args) throws IOException
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
        char c = br.readLine().charAt(0);
        switch (c)
        {
            case 'A':
                bw.write("T");
                break;
            case 'C':
                bw.write("G");
                break;
            case 'G':
                bw.write("C");
                break;
            case 'T':
                bw.write("A");
                break;
        }
        bw.close();
    }
}


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

import java.util.Scanner;

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


Compiler output:
Main.java:8: error: bad operand types for binary operator '=='
	if(sc == 'A'){
	      ^
  first type:  Scanner
  second type: char
Main.java:11: error: bad operand types for binary operator '=='
	else if(sc == 'G'){
	           ^
  first type:  Scanner
  second type: char
2 errors
Language: Java

public class Main{
    
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	
	if(sc == 'A'){
	    return 'C';
	}
	else if(sc == 'G'){
	    return 'C';
	}
    }
}



Compiler output:
Main.java:4: error: cannot find symbol
	Scanner sc = new Scanner(System.in);
	^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
	Scanner sc = new Scanner(System.in);
	                 ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: incompatible types: unexpected return value
	    return 'C';
	           ^
Main.java:10: error: incompatible types: unexpected return value
	    return 'C';
	           ^
4 errors
Language: Java

publc class Main{
    
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	
	if(sc == 'A'){
	    return 'C';
	}
	else if(sc == 'G'){
	    return 'C';
	}
    }
}



Compiler output:
Main.java:1: error: class, interface, enum, or record expected
publc class Main{
^
1 error
Language: C

#include <stdio.h>
int main(void){
  char b,inv;
  scanf("%s",&b);
  
  if(b==A)
    inv=T;
  if(b==T)
    inv=A;
  if(b==G)
    inv=C;
  if(b==C)
    inv=G;
  
  printf("%s",inv); 
  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:7:9: error: 'T' undeclared (first use in this function)
    7 |     inv=T;
      |         ^
main.c:10:9: error: 'G' undeclared (first use in this function)
   10 |   if(b==G)
      |         ^
main.c:11:9: error: 'C' undeclared (first use in this function)
   11 |     inv=C;
      |         ^
Language: C++

#define _CRT_SECURE_NO_WARNINGS
#define _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS
#include <stdio.h>
#include <algorithm>
#include <utility>
#include <functional>
#include <cstring>
#include <queue>
#include <stack>
#include <math.h>
#include <iterator>
#include <vector>
#include <string>
#include <set>
#include <math.h>
#include <iostream>
#include <random>
#include <map>
#include <fstream>
#include <iomanip>
#include <time.h>
#include <stdlib.h>
#include <list>
#include <typeinfo>
#include <list>
#include <set>
#include <assert.h>
#include <complex>
using namespace std;
#define eps 0.000000001
#define LONG_INF 10000000000000000
#define GOLD 1.61803398874989484820458
#define MAX_MOD 1000000007
#define MOD 998244353
#define seg_size 65536*2
#define REP(i,n) for(long long i = 0;i < n;++i)
unsigned long xor128(void)
{
	static unsigned long x = time(NULL), y = 362436069, z = 521288629, w = 88675123;
	unsigned long t;
	t = (x ^ (x << 11)); x = y; y = z; z = w; return(w = (w ^ (w >> 19)) ^ (t ^ (t >> 8)));
}
int main() {
	string s;
	cin >> s;
	REP(i, s.length()) {
		if (s[i] == 'A') cout << "T"
		else if (s[i] == 'T') cout << "A"
		else if (s[i] == 'G') cout << "C"
		else cout << "G"
	}
	cout << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:47:45: error: expected ';' before 'else'
   47 |                 if (s[i] == 'A') cout << "T"
      |                                             ^
      |                                             ;
   48 |                 else if (s[i] == 'T') cout << "A"
      |                 ~~~~
Language: C++

#include <iostream>
using namespace std;

void main(){
  char c;
  cin>>c;
  switch(c){
    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:4:1: error: '::main' must return 'int'
    4 | void main(){
      | ^~~~
Language: C++

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

bool C (char d){
  if(d == 'A' ||d == 'T' ||d == 'C' ||d == 'G' ) return true;
  else return false;
}
int main() {
  string s;
  int max =0;
  cin >> s ;
  for(int i =0;i<s.size()-1;i++){
    int k =i;
    int count =0;
    while(C(s[k])==true){
      count++;
      k++;
    }
    if(count > max)max =count;
  }
  cout << max << endl
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:22: error: expected ';' before 'return'
   22 |   cout << max << endl
      |                      ^
      |                      ;
   23 |   return 0;
      |   ~~~~~~
Language: C++

#include "stdafx.h"


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

    return 0;
}



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

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class App 
{
    public static void main( String[] args )
    {
    	Map<String,String> resultMap = new HashMap<String, String>();
    	resultMap.put("A", "T");
    	resultMap.put("C", "G");
    	resultMap.put("G", "C");
    	resultMap.put("T", "A");
    	Scanner scanner = new Scanner(System.in);
    	String line = scanner.next();
    	scanner.close();
    	System.out.println(resultMap.get(line));
    }}



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

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


Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
    public static void main( String[] args )
                  ^
  (use --enable-preview to enable unnamed classes)
Main.java:12: error: class, interface, enum, or record expected
    }}
     ^
2 errors
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  char s;
  cin >> s;
  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:9:3: error: 'else' without a previous 'if'
    9 |   else if(s == 'T')
      |   ^~~~
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else if(s == 'C')
      |   ^~~~
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else if(s == 'G')
      |   ^~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  string s;
  cin >> s;
  switch(s){
    case 'A':
      cout << 'T' <<endl;;
      break;
    case 'T':
      cout << 'A' <<endl;;
      break;
    case 'C':
      cout << 'G' <<endl;;
      break;
    case 'G':
      cout << 'C' <<endl;;
      break;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: switch quantity not an integer
    7 |   switch(s){
      |          ^
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
#include<cstdio>
#include<string>
using namespace std;
int main(){
  string s;
  cin >> s;
  swtich(s){
    case 'A':
      cout << 'T' <<endl;;
      break;
    case 'T':
      cout << 'A' <<endl;;
      break;
    case 'C':
      cout << 'G' <<endl;;
      break;
    case 'G':
      cout << 'C' <<endl;;
      break;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'swtich' was not declared in this scope
    8 |   swtich(s){
      |   ^~~~~~
Language: C++

#include<iostream>
#include<cstdio>
#include<string>
using namespace std;
int main(){
  string s;
  cin >> s;
  swtich(s){
    case 'A':
      cout << 'T' <<endl;;
      break;
    case 'T':
      cout << 'A' <<endl;;
      break;
    case 'C':
      cout << 'G' <<endl;;
      break;
    case 'G':
      cout << 'C' <<endl;;
      break;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'swtich' was not declared in this scope
    8 |   swtich(s){
      |   ^~~~~~
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  string s;
  cin >> s;
  swtich(s){
    case 'A':
      cout << 'T' <<endl;;
      break;
    case 'T':
      cout << 'A' <<endl;;
      break;
    case 'C':
      cout << 'G' <<endl;;
      break;
    case 'G':
      cout << 'C' <<endl;;
      break;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'swtich' was not declared in this scope
    7 |   swtich(s){
      |   ^~~~~~
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(s[0] == "A")
a.cc:9:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   else if(s[0] == "T")
a.cc:11:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   else if(s[0] == "G")
a.cc:13:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   else if(s[0] == "C")
Language: C

include <stdio.h>

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

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:11: error: 'A' undeclared (first use in this function)
    5 |   if(b == A){
      |           ^
main.c:5:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:9: error: 'T' undeclared (first use in this function)
    6 |     b = T;
      |         ^
main.c:9:23: error: 'C' undeclared (first use in this function)
    9 |         }else if(b == C){
      |                       ^
main.c:10:9: error: 'G' undeclared (first use in this function)
   10 |     b = G;
      |         ^
main.c:14:20: error: expected ';' before '}' token
   14 |     printf("error")
      |                    ^
      |                    ;
   15 |         }
      |         ~
Language: Java

    public static void main(String[] args) throws Exception {
        char c = (char)System.in.read();
        char res = '\0';
        switch (c) {
            case 'A':
                res = 'T';
                break;
            case 'T':
                res = 'A';
                break;
            case 'C':
                res = 'G';
                break;
            case 'G':
                res = 'C';
                break;
        }
        System.out.println(res);
    }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
    public static void main(String[] args) throws Exception {
                  ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

public class Main {
  public static void main(String[] args) {
  	char c = (char)System.in.read();
    char res = '\0';
    switch (c) {
      case 'A': 
        res = 'T';
        break;
      case 'T': 
        res = 'A';
        break;
      case 'C': 
        res = 'G';
        break;
      case 'G': 
        res = 'C';
        break;
    }
    System.out.println(res); 
  }
}

Compiler output:
Main.java:3: error: unreported exception IOException; must be caught or declared to be thrown
  	char c = (char)System.in.read();
  	                             ^
1 error
Language: Java

public class Main {
  public static void main(String[] args) {
  	char c = (char)System.in.read();
    char res = '';
    switch (c) {
      case 'A': 
        res = 'T';
        break;
      case 'T': 
        res = 'A';
        break;
      case 'C': 
        res = 'G';
        break;
      case 'G': 
        res = 'C';
        break;
    }
    System.out.println(res); 
  }
}

Compiler output:
Main.java:4: error: empty character literal
    char res = '';
               ^
1 error
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    9 |   if(c=='C') puts('G');
      |                   ^~~
      |                   |
      |                   char
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdio.h: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 Solution{
 	public static void main(String  args[]){
     	Scanner sc=new Scanner(System.in);
     	char a=sc.next().charAt(0);
      	if(a=='A')System.out.println('T');
      	if(a=='T')System.out.println('A');
      	if(a=='G')System.out.println('C');
      	if(a=='C')System.out.println('G');      	
    }  
}  


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

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

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

#include<iostream>
using namespace std;

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


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

#include<iostream>
using namespace std;

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


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

public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String line = reader.readLine();

        char A = line.charAt(0);

        switch (A) {
        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:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) throws Exception {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

package Contest122;

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

public class q1 {
    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String line = reader.readLine();

        char A = line.charAt(0);

        switch (A) {
        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: class q1 is public, should be declared in a file named q1.java
public class q1 {
       ^
1 error
Language: Java

import java.io.*;

public class ATGC {
    public static void main(String[] args){
        try{
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
            String line = reader.readLine();
            char b = line.charAt(0);
            switch (b){
                case 'A':
                    System.out.println("T");
                    break;
                case 'T':
                    System.out.println("A");
                    break;
                case 'G':
                    System.out.println("C");
                    break;
                case 'C':
                    System.out.println("G");
                    break;
            }
        }catch (IOException e) {
            System.out.println(e);
        }
    }
}

Compiler output:
Main.java:3: error: class ATGC is public, should be declared in a file named ATGC.java
public class ATGC {
       ^
1 error
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:9: warning: comparison between pointer and integer
    5 |   if (b == "A"){
      |         ^~
main.c:7:15: warning: comparison between pointer and integer
    7 |   }else if (b == "T"){
      |               ^~
main.c:9:15: warning: comparison between pointer and integer
    9 |   }else if (b == "C"){
      |               ^~
main.c:11:5: error: expected '}' before 'else'
   11 |     else if (b == "G"){
      |     ^~~~
main.c:11:16: warning: comparison between pointer and integer
   11 |     else if (b == "G"){
      |                ^~
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main() {
      | ^~~~
main.c: In function 'main':
main.c:5:9: warning: comparison between pointer and integer
    5 |   if (b == "A"){
      |         ^~
main.c:7:15: warning: comparison between pointer and integer
    7 |   }else if (b == "T"){
      |               ^~
main.c:9:15: warning: comparison between pointer and integer
    9 |   }else if (b == "C"){
      |               ^~
main.c:11:5: error: expected '}' before 'else'
   11 |     else if (b == "G"){
      |     ^~~~
main.c:11:16: warning: comparison between pointer and integer
   11 |     else if (b == "G"){
      |                ^~
Language: C++

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

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


  
}


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

#include <iostream>
#include <cmath>
#include <math.h>
#include <string>
#include <string.h>
#include <algorithm>
#include <vector>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <stdlib.h>
#include <deque>  
#include <iomanip>

using namespace std;

using ll = long long;
#define INF 1e9
#define MOD 1e9 + 7
#define rep(i, n) for(int i = 0; i < n; i++)
#define loop(i, a, n) for(int i = a; i < n; i++)
#define all(in) in.begin(), in.end()
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;
    return 0;

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

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

#define ll long long
#define INF 99999999
#define rep(i,n) for(int i=0,temp=(int)(n);i<temp;++i) //vec.size()がnの時等の高速化
#define all(x) (x).begin(),(x).end()
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define vint vector<int>
#define vvint vector<vector<int>>

template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
int gcd(int a,int b){return b?gcd(b,a%b):a;}


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;

  }

  return 0;
}


Compiler output:
main.c: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() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  
  char b;
  cin >> b;
  if (b == 'A') puts("T");
  else if (b == 'T') puts("A");
  else if (b == 'C') puts("G");
  else puts("C")
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: expected ';' before '}' token
   13 |   else puts("C")
      |                 ^
      |                 ;
   14 | }
      | ~
Language: Java

import java.util.Scanner;
public class DoubleHelix {
  public static void main(String args[]) {
    final Scanner scanner = new Scanner(System.in);
    final String helix = scanner.next();
    scanner.close();
    switch(helix) {
      case "A":
        System.out.println("T");
        break;
      case "T":
        System.out.println("A");
        break;
      case "C":
        System.out.println("G");
        break;
      case "G":
        System.out.println("C");
        break;
    }
  }
}

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

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

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'strcpy' was not declared in this scope
   14 |         strcpy(&pair, "T");
      |         ^~~~~~
a.cc:3:1: note: 'strcpy' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <stdlib.h>
  +++ |+#include <cstring>
    3 | #include <stdio.h>
a.cc:18:9: error: 'strcpy' was not declared in this scope
   18 |         strcpy(&pair, "G");
      |         ^~~~~~
a.cc:18:9: note: 'strcpy' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:22:9: error: 'strcpy' was not declared in this scope
   22 |         strcpy(&pair, "C");
      |         ^~~~~~
a.cc:22:9: note: 'strcpy' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:26:9: error: 'strcpy' was not declared in this scope
   26 |         strcpy(&pair, "A");
      |         ^~~~~~
a.cc:26:9: note: 'strcpy' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

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


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

#include <iostream>

struct DNA
{
	char A = 'A';
	char C = 'C';
  	char G = 'G';
    char T = 'T'; 
};

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:15: error: invalid use of non-static data member 'DNA::A'
   16 |     case DNA::A :
      |               ^
a.cc:5:14: note: declared here
    5 |         char A = 'A';
      |              ^
a.cc:17:25: error: invalid use of non-static data member 'DNA::A'
   17 |       std::cout << DNA::A << std::endl;
      |                         ^
a.cc:5:14: note: declared here
    5 |         char A = 'A';
      |              ^
a.cc:19:15: error: invalid use of non-static data member 'DNA::C'
   19 |     case DNA::C :
      |               ^
a.cc:6:14: note: declared here
    6 |         char C = 'C';
      |              ^
a.cc:20:25: error: invalid use of non-static data member 'DNA::C'
   20 |       std::cout << DNA::C << std::endl;
      |                         ^
a.cc:6:14: note: declared here
    6 |         char C = 'C';
      |              ^
a.cc:22:15: error: invalid use of non-static data member 'DNA::G'
   22 |     case DNA::G :
      |               ^
a.cc:7:14: note: declared here
    7 |         char G = 'G';
      |              ^
a.cc:23:25: error: invalid use of non-static data member 'DNA::G'
   23 |       std::cout << DNA::G << std::endl;
      |                         ^
a.cc:7:14: note: declared here
    7 |         char G = 'G';
      |              ^
a.cc:25:15: error: invalid use of non-static data member 'DNA::T'
   25 |     case DNA::T :
      |               ^
a.cc:8:10: note: declared here
    8 |     char T = 'T';
      |          ^
a.cc:26:25: error: invalid use of non-static data member 'DNA::T'
   26 |       std::cout << DNA::T << std::endl;
      |                         ^
a.cc:8:10: note: declared here
    8 |     char T = 'T';
      |          ^
Language: C++

#include <iostream>

struct DNA
{
	char A = 'A';
	char C = 'C';
  	char G = 'G';
    char T = 'T'; 
}

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


Compiler output:
a.cc:9:2: error: expected ';' after struct definition
    9 | }
      |  ^
      |  ;
a.cc: In function 'int main()':
a.cc:16:15: error: invalid use of non-static data member 'DNA::A'
   16 |     case DNA::A :
      |               ^
a.cc:5:14: note: declared here
    5 |         char A = 'A';
      |              ^
a.cc:17:25: error: invalid use of non-static data member 'DNA::A'
   17 |       std::cout << DNA::A << std::endl;
      |                         ^
a.cc:5:14: note: declared here
    5 |         char A = 'A';
      |              ^
a.cc:19:15: error: invalid use of non-static data member 'DNA::C'
   19 |     case DNA::C :
      |               ^
a.cc:6:14: note: declared here
    6 |         char C = 'C';
      |              ^
a.cc:20:25: error: invalid use of non-static data member 'DNA::C'
   20 |       std::cout << DNA::C << std::endl;
      |                         ^
a.cc:6:14: note: declared here
    6 |         char C = 'C';
      |              ^
a.cc:22:15: error: invalid use of non-static data member 'DNA::G'
   22 |     case DNA::G :
      |               ^
a.cc:7:14: note: declared here
    7 |         char G = 'G';
      |              ^
a.cc:23:25: error: invalid use of non-static data member 'DNA::G'
   23 |       std::cout << DNA::G << std::endl;
      |                         ^
a.cc:7:14: note: declared here
    7 |         char G = 'G';
      |              ^
a.cc:25:15: error: invalid use of non-static data member 'DNA::T'
   25 |     case DNA::T :
      |               ^
a.cc:8:10: note: declared here
    8 |     char T = 'T';
      |          ^
a.cc:26:25: error: invalid use of non-static data member 'DNA::T'
   26 |       std::cout << DNA::T << std::endl;
      |                         ^
a.cc:8:10: note: declared here
    8 |     char T = 'T';
      |          ^
Language: C++

#include "bits/stdc++.h"
using namespace std;
int main();
{
  char c;
  scanf("%c" , &c);
  if(c == 'T')
    puts("A");
  else if(c == 'A')
    puts("T");
  else if(c == 'C')
    puts("G");
  else if(c == 'G')
    puts("C");
}
   

Compiler output:
a.cc:4:1: error: expected unqualified-id before '{' token
    4 | {
      | ^
Language: Java

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


Compiler output:
Main.java:5: error: cannot find symbol
    String A = T;
               ^
  symbol:   variable T
  location: class Main
Main.java:6: error: cannot find symbol
    String C = G;
               ^
  symbol:   variable G
  location: class Main
Main.java:10: error: cannot find symbol
    if(N.equal(A)){
        ^
  symbol:   method equal(String)
  location: variable N of type String
Main.java:12: error: cannot find symbol
    }else if(N.equal(C)){
              ^
  symbol:   method equal(String)
  location: variable N of type String
Main.java:14: error: cannot find symbol
    }else if(N.equal(G)){
              ^
  symbol:   method equal(String)
  location: variable N of type String
Main.java:16: error: cannot find symbol
    }else if(N.equal(T)){
              ^
  symbol:   method equal(String)
  location: variable N of type String
6 errors
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String A = T;
    String C = G;
    String G = C;
    String T = A;
    String N = sc.next();
    switch(N){
      case A:
        System.out.println(A);
        break;
      case C:
        System.out.println(C);
        break;
      case G:
        System.out.println(G);
        break;
      case T:
        System.out.println(T);
        break;
    }
  }
}


Compiler output:
Main.java:5: error: cannot find symbol
    String A = T;
               ^
  symbol:   variable T
  location: class Main
Main.java:6: error: cannot find symbol
    String C = G;
               ^
  symbol:   variable G
  location: class Main
Main.java:11: error: constant string expression required
      case A:
           ^
Main.java:14: error: constant string expression required
      case C:
           ^
Main.java:17: error: constant string expression required
      case G:
           ^
Main.java:20: error: constant string expression required
      case T:
           ^
6 errors
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String A = T;
    String C = G;
    String G = C;
    String T = A;
    String N = N;
    switch(N){
      case A:
        System.out.println(A);
        break;
      case C:
        System.out.println(C);
        break;
      case G:
        System.out.println(G);
        break;
      case T:
        System.out.println(T);
        break;
    }
  }
}

Compiler output:
Main.java:5: error: cannot find symbol
    String A = T;
               ^
  symbol:   variable T
  location: class Main
Main.java:6: error: cannot find symbol
    String C = G;
               ^
  symbol:   variable G
  location: class Main
Main.java:11: error: constant string expression required
      case A:
           ^
Main.java:14: error: constant string expression required
      case C:
           ^
Main.java:17: error: constant string expression required
      case G:
           ^
Main.java:20: error: constant string expression required
      case T:
           ^
6 errors
Language: C++

import java.util.Scanner

fun main(args: Array<String>) {
  val scanner = Scanner(System.`in`)
  scanner.next()
  val s = scanner.next()
  var R = 0
  var B = 0
  for(c in s.toCharArray()) {
    if(c == 'R') R++ else B++
  }
  print(if(R > B) "Yes" else "No")
}


Compiler output:
a.cc:4:32: error: stray '`' in program
    4 |   val scanner = Scanner(System.`in`)
      |                                ^
a.cc:4:35: error: stray '`' in program
    4 |   val scanner = Scanner(System.`in`)
      |                                   ^
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'