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

#include<cstdio>
#include<string>
#include<vector>
#include<algorithm>
#include<cstring>
using namespace std;
int main(){

    char pat[5]="ACGT";
    string s;
    int count=0;
    int result=0;
    bool flg=false;
    scanf("%s",s);
    for(int i=0;i<strlen(s); i++)
	{
        for(int j=0;j<5;j++)
            if(s[i]==pat[j])
                flg=true;
        if(flg)
            count++;
		else if(result<count)
		{
            result=count;
            count=0;
        }
        flg=false;
    }
    if(result<count)
        result=count;
    cout<<result<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:26: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   15 |     for(int i=0;i<strlen(s); i++)
      |                          ^
      |                          |
      |                          std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from a.cc:5:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
a.cc:31:5: error: 'cout' was not declared in this scope
   31 |     cout<<result<<endl;
      |     ^~~~
a.cc:6:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    5 | #include<cstring>
  +++ |+#include <iostream>
    6 | using namespace std;
a.cc:31:19: error: 'endl' was not declared in this scope
   31 |     cout<<result<<endl;
      |                   ^~~~
a.cc:6:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    5 | #include<cstring>
  +++ |+#include <ostream>
    6 | using namespace std;
Language: Java

import java.util.Scanner;

public class ATCORDER {
	public static void main(String args[]) {
		Scanner bui = new Scanner(System.in);
		String s = bui.next();


		int max=0;
		int count = 0;
		String maxs="";
		for(int i=0;i<s.length();i++) {
			switch(s.charAt(i)) {
			case'A':
				count++;
				break;
			case'C':
				count++;
				break;
			case'G':
				count++;
				break;
			case'T':
				count++;
				break;
			default:
				if(max<count) {
					max = count;
					maxs = s.substring(i-count, i);
				}
				count=0;

				break;
			}



		}
		if(maxs.length()!=0) {
		System.out.println(max);
		}else {
			System.out.println(0);
		}
	}
}


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

import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
		String S = sc.nextLine();
		int i = 0;	
		int j = 0;
		int max = 0
		String T1 = "A";
		String T2 = "C";
		String T3 = "G";
		String T4 = "T";
		for(i = 0; i< S.length(); i++){
		   if(S.substring(i,i).equals(T1) || S.substring(i,i).equals(T2)||S.substring(i,i).equals(T3)||S.substring(i,i)=.equals(T4)){
		   	j += 1;
		   }
		   if(max < j){
		   	max = j;
		   }
		   if(!(S.substring(i,i).equals(T1)) ||!( S.substring(i,i).equals(T2))||!(S.substring(i,i).equals(T3))||!(S.substring(i,i)=.equals(T4))){
		   	j = 0
		   }
		{ 
		System.out.println(max);  
    }	
}

Compiler output:
Main.java:9: error: ';' expected
		int max = 0
		           ^
Main.java:15: error: illegal start of expression
		   if(S.substring(i,i).equals(T1) || S.substring(i,i).equals(T2)||S.substring(i,i).equals(T3)||S.substring(i,i)=.equals(T4)){
		                                                                                                                ^
Main.java:15: error: ';' expected
		   if(S.substring(i,i).equals(T1) || S.substring(i,i).equals(T2)||S.substring(i,i).equals(T3)||S.substring(i,i)=.equals(T4)){
		                                                                                                                           ^
Main.java:21: error: illegal start of expression
		   if(!(S.substring(i,i).equals(T1)) ||!( S.substring(i,i).equals(T2))||!(S.substring(i,i).equals(T3))||!(S.substring(i,i)=.equals(T4))){
		                                                                                                                           ^
Main.java:21: error: illegal start of expression
		   if(!(S.substring(i,i).equals(T1)) ||!( S.substring(i,i).equals(T2))||!(S.substring(i,i).equals(T3))||!(S.substring(i,i)=.equals(T4))){
		                                                                                                                                       ^
Main.java:22: error: ';' expected
		   	j = 0
		   	     ^
Main.java:27: error: reached end of file while parsing
}
 ^
7 errors
Language: C++

#include<iostream>
#include<string>
using namespace std;
 
  
 
int main()
{
  string S;
  cin >> S;
 
  int count=0;
  int max;
  
  for(int i=0;i<S.length();i++){
    if(S[i]=='A' || S[i]=='T' || S[i] == 'G' || S[i]=='C'){
      count++;
      max = count;
    }
    
    else {if (count > max) {
            max = count; count = 0;
           }
          else {
            max = max; count =0;
           }
         }
  }
  
  cout << max << endl;


Compiler output:
a.cc: In function 'int main()':
a.cc:30:23: error: expected '}' at end of input
   30 |   cout << max << endl;
      |                       ^
a.cc:8:1: note: to match this '{'
    8 | {
      | ^
Language: C++

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

using namespace std;

int main(){
  char s[10]={};
  const char ACGT[4]={"A","C","G","T"};
  int h=0;
  for(int i=0;i<10;i++){
    cin>>s[i];
  }
  for(int i=0;i<10;i++){
    int j=0;
    for(;j<9&&strstr(ACGT,s[i+j])!=NULL;j++);
    if(j>h){
      h=j;
    }
  }
  cout<<h;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:38: error: too many initializers for 'const char [4]'
    8 |   const char ACGT[4]={"A","C","G","T"};
      |                                      ^
a.cc:15:32: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   15 |     for(;j<9&&strstr(ACGT,s[i+j])!=NULL;j++);
      |                           ~~~~~^
      |                                |
      |                                char
In file included from a.cc:2:
/usr/include/string.h:332:64: note:   initializing argument 2 of 'const char* strstr(const char*, const char*)'
  332 | extern const char *strstr (const char *__haystack, const char *__needle)
      |                                                    ~~~~~~~~~~~~^~~~~~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
 
  
 
int main()
{
  string S;
  cin >> S;
 
  int count=0;
  int max;
  
  for(int i=0;i<S.length();i++){
    if(S[i]=='A' || S[i]=='T' || S[i] == 'G' || S[i]=='C'){
      count++;
      max = count;
    }
    
    else {if (count > max) {
            max = count;　count = 0;
           }
          else {
            max = max; count =0;
           }
         }
  }
  
  cout << max << endl;
}

Compiler output:
a.cc:22:25: error: extended character 　 is not valid in an identifier
   22 |             max = count;　count = 0;
      |                         ^
a.cc: In function 'int main()':
a.cc:22:25: error: '\U00003000count' was not declared in this scope; did you mean 'count'?
   22 |             max = count;　count = 0;
      |                         ^~~~~~~
      |                         count
Language: C++

#include<stdio.h>
int main(){
char *c[20];
  int m,n;
  scanf("%s",&c);
  for(int i=0;i<11;i++){
    if(c[i]=='A'||c[i]=='T'||c[i]=='C'||c[i]=='G'){
       n=1;
	while(true){
    if(c[i]!='A'&&c[i]!='T'&&c[i]!='C'&&c[i]!='G')break;
      n++;
    }
      if(m<n)m=n;
    }
  }
  printf("%d\n",m);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |     if(c[i]=='A'||c[i]=='T'||c[i]=='C'||c[i]=='G'){
      |        ~~~~^~~~~
a.cc:7:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |     if(c[i]=='A'||c[i]=='T'||c[i]=='C'||c[i]=='G'){
      |                   ~~~~^~~~~
a.cc:7:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |     if(c[i]=='A'||c[i]=='T'||c[i]=='C'||c[i]=='G'){
      |                              ~~~~^~~~~
a.cc:7:45: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |     if(c[i]=='A'||c[i]=='T'||c[i]=='C'||c[i]=='G'){
      |                                         ~~~~^~~~~
a.cc:10:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if(c[i]!='A'&&c[i]!='T'&&c[i]!='C'&&c[i]!='G')break;
      |        ~~~~^~~~~
a.cc:10:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if(c[i]!='A'&&c[i]!='T'&&c[i]!='C'&&c[i]!='G')break;
      |                   ~~~~^~~~~
a.cc:10:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if(c[i]!='A'&&c[i]!='T'&&c[i]!='C'&&c[i]!='G')break;
      |                              ~~~~^~~~~
a.cc:10:45: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if(c[i]!='A'&&c[i]!='T'&&c[i]!='C'&&c[i]!='G')break;
      |                                         ~~~~^~~~~
Language: C++

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

using namespace std;

int main(){
  char s[10]={};
  const char ACGT[4]="ACGT";
  int h=0;
  for(int i=0;i<10;i++){
    cin>>s[i];
  }
  for(int i=0;i<10;i++){
    int j=0;
    for(;j<9&&strstr(ACGT,s[i+j])!=NULL;j++);
    if(j>h){
      h=j;
    }
  }
  cout<<h;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: initializer-string for 'const char [4]' is too long [-fpermissive]
    8 |   const char ACGT[4]="ACGT";
      |                      ^~~~~~
a.cc:15:32: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   15 |     for(;j<9&&strstr(ACGT,s[i+j])!=NULL;j++);
      |                           ~~~~~^
      |                                |
      |                                char
In file included from a.cc:2:
/usr/include/string.h:332:64: note:   initializing argument 2 of 'const char* strstr(const char*, const char*)'
  332 | extern const char *strstr (const char *__haystack, const char *__needle)
      |                                                    ~~~~~~~~~~~~^~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string str1, str2, str3, str4, str5;
  str1 = "A";
  str2 = "T";
  str3 = "G";
  str4 = "C";
  int X;
  X = 0;
  cin >> str5;
  for (int i = 1; i < str5.size + 1; i++) {
   if (str5.at(i) = str1) {
   X++;
}
   if (str5.at(i) = str2) {
   X++;
} 
   if (str5.at(i) = str3) {
   X++;
}
   if (str5.at(i) = str4) {
   X++;
}
}
  cout << str5.size - X << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:28: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   13 |   for (int i = 1; i < str5.size + 1; i++) {
      |                       ~~~~~^~~~
      |                                ()
a.cc:14:21: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} in assignment
   14 |    if (str5.at(i) = str1) {
      |                     ^~~~
      |                     |
      |                     std::string {aka std::__cxx11::basic_string<char>}
a.cc:17:21: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} in assignment
   17 |    if (str5.at(i) = str2) {
      |                     ^~~~
      |                     |
      |                     std::string {aka std::__cxx11::basic_string<char>}
a.cc:20:21: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} in assignment
   20 |    if (str5.at(i) = str3) {
      |                     ^~~~
      |                     |
      |                     std::string {aka std::__cxx11::basic_string<char>}
a.cc:23:21: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} in assignment
   23 |    if (str5.at(i) = str4) {
      |                     ^~~~
      |                     |
      |                     std::string {aka std::__cxx11::basic_string<char>}
a.cc:27:16: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   27 |   cout << str5.size - X << endl;
      |           ~~~~~^~~~
      |                    ()
Language: C++

#include "pch.h"
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int lenght(char* str) {
	int i = 0;
	while (str[i]) {
		i++;
	}
	return i;
}


int main(){
	char a[10];
	int b = 0;
	int c = 0;
	cin >> a;
	int d = lenght(a);

	for (int i = 0; i < d; i++) {
		if (a[i] == 'A' || a[i] ==  'T' || a[i] ==  'G' || a[i] ==  'C') {
			c++;
		}
		else {
			if (c > b) {
				b = c;
			}
			c = 0;
		}
    }
	cout << b;
	return 0;
}

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

#include<iostream>
#include<string>
using namespace std;
 
  
 
int main()
{
  string S;
  cin >> S;
 
  int count=0;
  int max;
  
  for(int i=0;i<S.length();i++){
    if(S[i]=='A' || S[i]=='T' || S[i] == 'G' || S[i]=='C'){
      count++;
      max = count;
    }
    
    else {if (count > max) {
                 max = count　count = 0;
           }
          else {
            max = max; count =0;
           }
         }
  }
  
  cout << max << endl;
}

Compiler output:
a.cc:22:24: error: extended character 　 is not valid in an identifier
   22 |                  max = count　count = 0;
      |                        ^
a.cc: In function 'int main()':
a.cc:22:24: error: 'count\U00003000count' was not declared in this scope
   22 |                  max = count　count = 0;
      |                        ^~~~~~~~~~~~
Language: C

#include<stdio.h>
int main(){
char c[20];
  int m,n;
  scanf("%s",&c);
  for(int i=0;i<11;i++){
    if(c[i]=='A'||c[i]=='T'||c[i]=='C'||c[i]=='G'){
       n=1;
	while(true){
    if(c[i]!='A'&&c[i]!='T'&&c[i]!='C'&&c[i]!='G')break;
      n++;
    }
      if(m<n)m=n;
    }
  }
  printf("%d\n",m);
}

Compiler output:
main.c: In function 'main':
main.c:9:15: error: 'true' undeclared (first use in this function)
    9 |         while(true){
      |               ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 | int main(){
main.c:9:15: note: each undeclared identifier is reported only once for each function it appears in
    9 |         while(true){
      |               ^~~~
Language: C++

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

  

int main()
{
  string S;
  cin >> S;
 
  int count=0;
  int max;
  
  for(int i=0;i<S.length();i++){
    if(S[i]=="A" || S[i]=="T" || S[i] == "G" || S[i]=="C"){
      count++;
      max = count;
    }
    
    else {if (count > max) max = count;
          else max = max;
         }
    count = 0;
  }
  
  cout << max << endl;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:16:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |     if(S[i]=="A" || S[i]=="T" || S[i] == "G" || S[i]=="C"){
a.cc:16:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |     if(S[i]=="A" || S[i]=="T" || S[i] == "G" || S[i]=="C"){
a.cc:16:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |     if(S[i]=="A" || S[i]=="T" || S[i] == "G" || S[i]=="C"){
a.cc:16:53: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |     if(S[i]=="A" || S[i]=="T" || S[i] == "G" || S[i]=="C"){
Language: C++

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

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

  int count = 0;
  for (int i = 0; i < S.size(); i++) {
    if (S.at(i) == 'C') {
      S.at(i) = 'A';
    }
    else if (S.at(i) == 'G') {
      S.at(i) = 'A';
    }
    else if (S.at(i) == 'T') {
      S.at(i) = 'A';
    }
  }
  int N;
  N == S.size();
  vector<int> vec(N);
  for (int i = 0; i < S.size(); i++) {
     if (S.at(i) == 'A') {
       int count = 0;
       for (int j = i; j < S.size(); j++) {
         if (S.at(j) == 'A') {
           count++;
         }
         else {
           return;
         }
       }
       vec.at(i) = count;
     }
     else {
       vec.at(i) =0;
     }
  }
  int M;
  M = vec.at(0);
  for (int i = 0; i < S.size(); i++) {
    if (M <vec.at(i)) {
      M = vec.at(i); 
    }
  }
  cout << M << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:12: error: return-statement with no value, in function returning 'int' [-fpermissive]
   31 |            return;
      |            ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
  int main () {
  string A = "A";
  string T = "T";
  string C = "C";
  string G = "G";
     vector <string> vec(10) ;
    for (int i = 0; i < 10; i++) {
    cin >> vec.at(i);
    }
      vector <int> unti(10);
      while (i<10){  
      if ( vec.at(i) == A || vec.at(i) ==T || vec.at(i) ==C || vec.at(i) ==G){
        unti.at(i) = unti.at(i-1) +1 ;
      }
      else{
        unti.at(i) = 0  ;
      }
      }
        int N ;
      while (i<10){
       if(N>= unti.at(i)){
         N = N ;
       }
           else {
             N = unti.at(i) ;
           }
      }
      cout << N << endl ;
    
    }
  
    


Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: 'i' was not declared in this scope
   13 |       while (i<10){
      |              ^
a.cc:22:14: error: 'i' was not declared in this scope
   22 |       while (i<10){
      |              ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
  int main () {
  string A = "A";
  string T = "T";
  string C = "C";
  string G = "G";
     vector <string> vec(10) ;
    for (int i = 0; i < 10; i++) {
    cin >> vec.at(i);
    }
      vector <int> unti(10);
        
      if ( vec.at(i) == A || vec.at(i) ==T || vec.at(i) ==C || vec.at(i) ==G){
        unti.at(i) = unti.at(i-1) +1 ;
      }
      else{
        unti.at(i) = 0  ;
      }
      int N ;
      while (i<10){
       if(N>= unti.at(i)){
         N = N ;
       }
           else {
             N = unti.at(i) ;
           }
      }
      cout << N << endl ;
    
    }
  
    


Compiler output:
a.cc: In function 'int main()':
a.cc:14:19: error: 'i' was not declared in this scope
   14 |       if ( vec.at(i) == A || vec.at(i) ==T || vec.at(i) ==C || vec.at(i) ==G){
      |                   ^
a.cc:21:14: error: 'i' was not declared in this scope
   21 |       while (i<10){
      |              ^
Language: C

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

int atcg(char *a,int i);

int main() {
	char a[20];
	scanf("%s\n", a);
	const int len = strlen(a);
	int count[len];
	int num[len];
	for (int i = 0; i < len; i++) {
		num[i] = 0;
	}
	for (int i = 0; i < len; i++) {
		if((a[i] == 'A' || a[i] == 'T' || a[i] == 'C' || a[i] == 'G') && (atcg(a, i) > num[i])) num[i] = atcg(a, i);
	}
	int num = 0;
	for (int i = 0; i < len; i++) {
		if (num[i] > num) num = num[i];
	}
	printf("%d\n", num);
	return 0;
}

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

Compiler output:
main.c: In function 'main':
main.c:18:13: error: conflicting types for 'num'; have 'int'
   18 |         int num = 0;
      |             ^~~
main.c:11:13: note: previous declaration of 'num' with type 'int[len]'
   11 |         int num[len];
      |             ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string str1, str2, str3, str4, str5;
  str1 = "A";
  str2 = "T";
  str3 = "G";
  str4 = "C";
  int X;
  cin >> str5;
  X = str5.size;
  for (int i = 0; i < str5.size; i++) {
   if (str.at(i) != str1) {
   X-1;
}
   if (str.at(i) != str2) {
   X-1;
} 
   if (str.at(i) != str3) {
   X-1;
}
   if (str.at(i) != str4) {
   X-1;
}
}
  cout << X << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: cannot convert 'std::__cxx11::basic_string<char>::size' from type 'std::__cxx11::basic_string<char>::size_type (std::__cxx11::basic_string<char>::)() const noexcept' {aka 'long unsigned int (std::__cxx11::basic_string<char>::)() const noexcept'} to type 'int'
   12 |   X = str5.size;
      |            ^~~~
a.cc:13:28: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   13 |   for (int i = 0; i < str5.size; i++) {
      |                       ~~~~~^~~~
      |                                ()
a.cc:14:8: error: 'str' was not declared in this scope; did you mean 'str5'?
   14 |    if (str.at(i) != str1) {
      |        ^~~
      |        str5
a.cc:17:8: error: 'str' was not declared in this scope; did you mean 'str5'?
   17 |    if (str.at(i) != str2) {
      |        ^~~
      |        str5
a.cc:20:8: error: 'str' was not declared in this scope; did you mean 'str5'?
   20 |    if (str.at(i) != str3) {
      |        ^~~
      |        str5
a.cc:23:8: error: 'str' was not declared in this scope; did you mean 'str5'?
   23 |    if (str.at(i) != str4) {
      |        ^~~
      |        str5
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string str1, str2, str3, str4, str5;
  str1 = "A";
  str2 = "T";
  str3 = "G";
  str4 = "C";
  int X;
  cin >> str1;
  X = str1.size;
  for (int i = 0; i < str.size; i++) {
   if (str.at(i) != str1) {
   X-1;
}
   if (str.at(i) != str2) {
   X-1;
} 
   if (str.at(i) != str3) {
   X-1;
}
   if (str.at(i) != str4) {
   X-1;
}
}
  cout << X << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: cannot convert 'std::__cxx11::basic_string<char>::size' from type 'std::__cxx11::basic_string<char>::size_type (std::__cxx11::basic_string<char>::)() const noexcept' {aka 'long unsigned int (std::__cxx11::basic_string<char>::)() const noexcept'} to type 'int'
   12 |   X = str1.size;
      |            ^~~~
a.cc:13:23: error: 'str' was not declared in this scope; did you mean 'str5'?
   13 |   for (int i = 0; i < str.size; i++) {
      |                       ^~~
      |                       str5
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string str1, str2, str3, str4, str5;
  str1 = "A";
  str2 = "T";
  str3 = "G";
  str4 = "C";
  int X;
  cin >> str1;
  X = str.size;
  for (int i = 0; i < str.size; i++) {
   if (str.at(i) != str1) {
   X-1;
}
   if (str.at(i) != str2) {
   X-1;
} 
   if (str.at(i) != str3) {
   X-1;
}
   if (str.at(i) != str4) {
   X-1;
}
}
  cout << X << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: 'str' was not declared in this scope; did you mean 'str5'?
   12 |   X = str.size;
      |       ^~~
      |       str5
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string str1, str2, str3, str4, str5;
  str1 = "A";
  str2 = "T";
  str3 = "G";
  str4 = "C";
  int X;
  X = str.size;
  cin >> str1; 
  for (int i = 0; i < str.size; i++) {
   if (str.at(i) != str1) {
   X-1;
}
   if (str.at(i) != str2) {
   X-1;
} 
   if (str.at(i) != str3) {
   X-1;
}
   if (str.at(i) != str4) {
   X-1;
}
}
  cout << X << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: 'str' was not declared in this scope; did you mean 'str5'?
   11 |   X = str.size;
      |       ^~~
      |       str5
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string str1, str2, str3, str4, str5;
  str1 = "A";
  str2 = "T";
  str3 = "G";
  str4 = "C";
  int X;
  X = str.size;
  cin >> str1; 
  for (int i = 0; i < str.size; i++) {
   if (str.at(i) !== str1) {
   X-1;
}
   if (str.at(i) !== str2) {
   X-1;
} 
   if (str.at(i) !== str3) {
   X-1;
}
   if (str.at(i) !== str4) {
   X-1;
}
}
  cout << X << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: 'str' was not declared in this scope; did you mean 'str5'?
   11 |   X = str.size;
      |       ^~~
      |       str5
a.cc:14:20: error: expected primary-expression before '=' token
   14 |    if (str.at(i) !== str1) {
      |                    ^
a.cc:17:20: error: expected primary-expression before '=' token
   17 |    if (str.at(i) !== str2) {
      |                    ^
a.cc:20:20: error: expected primary-expression before '=' token
   20 |    if (str.at(i) !== str3) {
      |                    ^
a.cc:23:20: error: expected primary-expression before '=' token
   23 |    if (str.at(i) !== str4) {
      |                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string str1;
  int X;
  X = str.size;
  cin >> str1; 
  for (int i = 0; i < str.size; i++) {
   if (i !== A) {
   X-1;
}
   if (i !== T) {
   X-1;
} 
   if (i !== G) {
   X-1;
}
   if (i !== C) {
   X-1;
}
}
  cout << X << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'str' was not declared in this scope; did you mean 'str1'?
    7 |   X = str.size;
      |       ^~~
      |       str1
a.cc:10:12: error: expected primary-expression before '=' token
   10 |    if (i !== A) {
      |            ^
a.cc:10:14: error: 'A' was not declared in this scope
   10 |    if (i !== A) {
      |              ^
a.cc:13:12: error: expected primary-expression before '=' token
   13 |    if (i !== T) {
      |            ^
a.cc:13:14: error: 'T' was not declared in this scope
   13 |    if (i !== T) {
      |              ^
a.cc:16:12: error: expected primary-expression before '=' token
   16 |    if (i !== G) {
      |            ^
a.cc:16:14: error: 'G' was not declared in this scope
   16 |    if (i !== G) {
      |              ^
a.cc:19:12: error: expected primary-expression before '=' token
   19 |    if (i !== C) {
      |            ^
a.cc:19:14: error: 'C' was not declared in this scope
   19 |    if (i !== C) {
      |              ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
  int main () {
  string A = "A";
  string T = "T";
  string C = "C";
  string G = "G";
     vector <string> vec(10) ;
    for (int i = 0; i < 10; i++) {
    cin >> vec.at(i);
     
      vector <int> unti(10);
        
      if ( vec.at(i) == A || vec.at(i) ==T || vec.at(i) ==C || vec.at(i) ==G){
        unti.at(i) = unti.at(i-1) +1 ;
      }
      else{
        unti.at(i) = 0  ;
      }
      int N ;
      while (i<10){
       if(N>= unti.at(i)){
         N = N ;
       }
           else {
             N = unti.at(i) ;
           }
      }
      cout << N << endl ;
    
    }
  
    

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

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

int main()
{
  int kazoe=0;
  int hikaku=0;
  string S;
  cin>>S;
  for(int i=0;i>S.size();i++){
    if(S.at(i)=='A'||S.at(i)=='T'||S.at(i)=='C'||S.at(i)=='G')
      kazoe++;
    else{
      if(hikaku<kazoe){
        hikaku=kazoe;
        kazoe=0;}
      else
        kazoe=0
   		}
  	}
      cout<<hikaku<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:16: error: expected ';' before '}' token
   18 |         kazoe=0
      |                ^
      |                ;
   19 |                 }
      |                 ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string str1;
  int X;
  X = str.size
  cin >> str1; 
  for (int i = 0; i < str.size; i++) {
   if (i != A) {
   X-1
}
   if (i != T) {
   X-1
} 
   if (i != G) {
   X-1
}
   if (i != C) {
   X-1
}
}
  cout << X << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'str' was not declared in this scope; did you mean 'str1'?
    7 |   X = str.size
      |       ^~~
      |       str1
a.cc:10:13: error: 'A' was not declared in this scope
   10 |    if (i != A) {
      |             ^
a.cc:11:7: error: expected ';' before '}' token
   11 |    X-1
      |       ^
      |       ;
   12 | }
      | ~      
a.cc:13:13: error: 'T' was not declared in this scope
   13 |    if (i != T) {
      |             ^
a.cc:14:7: error: expected ';' before '}' token
   14 |    X-1
      |       ^
      |       ;
   15 | }
      | ~      
a.cc:16:13: error: 'G' was not declared in this scope
   16 |    if (i != G) {
      |             ^
a.cc:17:7: error: expected ';' before '}' token
   17 |    X-1
      |       ^
      |       ;
   18 | }
      | ~      
a.cc:19:13: error: 'C' was not declared in this scope
   19 |    if (i != C) {
      |             ^
a.cc:20:7: error: expected ';' before '}' token
   20 |    X-1
      |       ^
      |       ;
   21 | }
      | ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
  int main () {
  string A = "A";
  string T = "T";
  string C = "C";
  string G = "G";
     vector <string> vec(10) ;
    for (int i = 0; i < 10; i++) {
    cin >> vec.at(i);
     
      vector <int> unti(10);
        
      if ( vec.at(i) == A || vec.at(i) ==T || vec.at(i) ==C || vec.at(i) ==G){
        unti.at(i) = unti.at(i-1) +1 ;
      }
      else{
        unti.at(i) = 0  ;
      }
      int N ;
      while (i<10){
       if(N>= unti.at(i)){
         N = N ;
       }
           else {
             N = unti.at(i) ;
           }
      }
      cout << N << endl ;
    return 0;
    }
  
    

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

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

 int Max(int a, int b) {
	if (a > b) {
		return a;
	}
	else {
		return b;
	}
}

int main(){
  char S[11];
  cin >> S;
  int c = 0;
  int max = 0;
  for(int i = 0 ; i <＝ 10 ; i++){
      if(S[i] == 'A' || S[i] == 'C' || S[i] == 'G' || S[i] == 'T') {
        c++;
      }
      else{
          max = Max(c,max);
          c = 0;
      }
  }
  cout << max << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:22: error: '\U0000ff1d' was not declared in this scope
   19 |   for(int i = 0 ; i <＝ 10 ; i++){
      |                      ^~
a.cc:19:24: error: expected ';' before numeric constant
   19 |   for(int i = 0 ; i <＝ 10 ; i++){
      |                        ^~~
      |                        ;
a.cc:19:27: error: expected ')' before ';' token
   19 |   for(int i = 0 ; i <＝ 10 ; i++){
      |      ~                    ^~
      |                           )
a.cc:19:30: error: 'i' was not declared in this scope
   19 |   for(int i = 0 ; i <＝ 10 ; i++){
      |                              ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string str1;
  int X;
  X = str.size
  cin >> str1; 
  for (int i = 0; i < str.size; i++) {
   if (i !== A) {
   X-1
}
   if (i !== T) {
   X-1
} 
   if (i !== G) {
   X-1
}
   if (i !== C) {
   X-1
}
}
  cout << X << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'str' was not declared in this scope; did you mean 'str1'?
    7 |   X = str.size
      |       ^~~
      |       str1
a.cc:10:12: error: expected primary-expression before '=' token
   10 |    if (i !== A) {
      |            ^
a.cc:10:14: error: 'A' was not declared in this scope
   10 |    if (i !== A) {
      |              ^
a.cc:11:7: error: expected ';' before '}' token
   11 |    X-1
      |       ^
      |       ;
   12 | }
      | ~      
a.cc:13:12: error: expected primary-expression before '=' token
   13 |    if (i !== T) {
      |            ^
a.cc:13:14: error: 'T' was not declared in this scope
   13 |    if (i !== T) {
      |              ^
a.cc:14:7: error: expected ';' before '}' token
   14 |    X-1
      |       ^
      |       ;
   15 | }
      | ~      
a.cc:16:12: error: expected primary-expression before '=' token
   16 |    if (i !== G) {
      |            ^
a.cc:16:14: error: 'G' was not declared in this scope
   16 |    if (i !== G) {
      |              ^
a.cc:17:7: error: expected ';' before '}' token
   17 |    X-1
      |       ^
      |       ;
   18 | }
      | ~      
a.cc:19:12: error: expected primary-expression before '=' token
   19 |    if (i !== C) {
      |            ^
a.cc:19:14: error: 'C' was not declared in this scope
   19 |    if (i !== C) {
      |              ^
a.cc:20:7: error: expected ';' before '}' token
   20 |    X-1
      |       ^
      |       ;
   21 | }
      | ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
  int main () 
  string A = "A";
  string T = "T";
  string C = "C";
  string G = "G";
     vector <string> vec(10) ;
    for (int i = 0; i < 10; i++) {
    cin >> vec.at(i);
     
      vector <int> unti(10);
        
      if ( vec.at(i) == A || vec.at(i) ==T || vec.at(i) ==C || vec.at(i) ==G){
        unti.at(i) = unti.at(i-1) +1 ;
      }
      else{
        unti.at(i) = 0  ;
      }
      int N ;
      while (i<10){
       if(N>= unti.at(i)){
         N = N ;
       }
           else {
             N = unti.at(i) ;
           }
      }
      cout << N << endl ;
    }
  
    

Compiler output:
a.cc:4:3: error: expected initializer before 'string'
    4 |   string A = "A";
      |   ^~~~~~
a.cc:9:5: error: expected unqualified-id before 'for'
    9 |     for (int i = 0; i < 10; i++) {
      |     ^~~
a.cc:9:21: error: 'i' does not name a type
    9 |     for (int i = 0; i < 10; i++) {
      |                     ^
a.cc:9:29: error: 'i' does not name a type
    9 |     for (int i = 0; i < 10; i++) {
      |                             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string str1;
  int X;
  X = str.size
  cin >> str1; 
  for (int i = 0; i < str.size; i++) {
   if (i !== A) {
   X-1
}
   if (i !== T) {
   X-1
} 
   if (i !== G) {
   X-1
   if (i !== C) {
   X-1
}
}
  cout << X << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'str' was not declared in this scope; did you mean 'str1'?
    7 |   X = str.size
      |       ^~~
      |       str1
a.cc:10:12: error: expected primary-expression before '=' token
   10 |    if (i !== A) {
      |            ^
a.cc:10:14: error: 'A' was not declared in this scope
   10 |    if (i !== A) {
      |              ^
a.cc:11:7: error: expected ';' before '}' token
   11 |    X-1
      |       ^
      |       ;
   12 | }
      | ~      
a.cc:13:12: error: expected primary-expression before '=' token
   13 |    if (i !== T) {
      |            ^
a.cc:13:14: error: 'T' was not declared in this scope
   13 |    if (i !== T) {
      |              ^
a.cc:14:7: error: expected ';' before '}' token
   14 |    X-1
      |       ^
      |       ;
   15 | }
      | ~      
a.cc:16:12: error: expected primary-expression before '=' token
   16 |    if (i !== G) {
      |            ^
a.cc:16:14: error: 'G' was not declared in this scope
   16 |    if (i !== G) {
      |              ^
a.cc:17:7: error: expected ';' before 'if'
   17 |    X-1
      |       ^
      |       ;
   18 |    if (i !== C) {
      |    ~~  
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C

#include <stdio.h>
#include <string.h>
int main (){
char s[11];
int i,j,max=0,k=0,a=0,b=0,c=0,d=0,h=0;
scanf ("%s",s);	
for (i=0;s[i]!=0;i++){
	h++;
	if (s[i]=='A'|| s[i]=='C'|| s[i]=='G'|| s[i]=='T'){
	if (s[i]=='A') a++;
	if (s[i]=='C') b++;
    if (s[i]=='G') c++;
if (s[i]=='T') d++;
	
	k=a+b+c+d;
		if(h==strlen(s) && max==0)
		{
		max=k;	
		}
		
else{
	if (max<k){
	max=k;
	}
	a=0;
	b=0;
	c=0;
	d=0;	
	k=0;
	}
	}
printf ("%d",max);
return 0;
	}

Compiler output:
main.c: In function 'main':
main.c:34:9: error: expected declaration or statement at end of input
   34 |         }
      |         ^
Language: C++

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

int main() {
  string str ;
    cin >> str;
    int count =0 ;
    for (int i =0;i<str.size();i++){
        if (str.at(i)=="A"){
            count ++;
        }
        else if (str.at(i) =="T"){
            count ++;
        }
        else if (str.at(i) =="G"){
            count ++;
        }
        else if(str.at(i) =="C"){
            count ++;
        }
    }
    cout << count << endl;
}


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

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

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

  int count = 0;
  for (int i = 0; i < S.size(); i++) {
    if (S.at(i) == 'C') {
      S.at(i) = 'A';
    }
    else if (S.at(i) == 'G') {
      S.at(i) = 'A';
    }
    else if (S.at(i) == 'T') {
      S.at(i) = 'A';
    }
  }
  int N;
  N == S.size();
  vector<int> vec(N);
  for (int i = 0; i < S.size(); i++) {
     if (S.at(i) == 'A') {
       int count =0;
       for (int j = i; j < S.size(), j++) {
         if (S.at(j) == 'A') {
           count++;
         }
         else {
           return ;
         }
       }
       vec.at(i) = count;
     }
     else {
       vec.at(i) =0;
     }
  }
  int M;
  M = vec.at(0);
  for (int i = 0; i < S.size(); i++) {
    if (M <vec.at(i)) {
      M = vec.at(i); 
    }
  }
  cout << M << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:41: error: expected ';' before ')' token
   26 |        for (int j = i; j < S.size(), j++) {
      |                                         ^
      |                                         ;
a.cc:31:12: error: return-statement with no value, in function returning 'int' [-fpermissive]
   31 |            return ;
      |            ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
  int main () {
  string A = "A";
  string T = "T";
  string C = "C";
  string G = "G";
     vector <string> vec(10) ;
    for (int i = 0; i < 10; i++) {
    cin >> vec.at(i);
     
      vector <int> unti(10);
        
      if ( vec.at(i) == A || vec.at(i) ==T || vec.at(i) ==C || vec.at(i) ==G){
        unti.at(i) = unti.at(i-1) +1 ;
      }
      else{
        unti.at(i) = 0  ;
      }
      int N ;
      while (i<10){
       if(N>= unti.at(i)){
         N = N ;
       }
           else {
             N = unti.at(i) ;
           }
      }
      cout << N << endl ;}
  
    

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

#include <bits/stdc++.h>
using namespace std;
  int main () {
  string A = "A";
  string T = "T";
  string C = "C";
  string G = "G";
     vector <string> vec(10) ;
    for (int i = 0; i < 10; i++) {
    cin >> vec.at(i);
     
      vector <int> unti(10);
        
      if ( vec.at(i) == A || vec.at(i) ==T || vec.at(i) ==C || vec.at(i) ==G){
        unti.at(i) = unti.at(i-1) +1 ;
      }
      else{
        unti.at(i) = 0  ;
      }
      int N ;
      while (i<10){
       if(N>= unti.at(i)){
         N = N ;
       }
           else {
             N = unti.at(i) ;
           }
      }
      cout << N << endl ;
    }
    

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

#include <bits/stdc++.h>
using namespace std;
  int main () {
  string A = "A";
  string T = "T";
  string C = "C";
  string G = "G";
     vector <string> vec(10) ;
    for (int i = 0; i < 10; i++) {
    cin >> vec.at(i);
     
      vector <int> unti(10);
        
      if ( vec.at(i) == A || vec.at(i) ==T || vec.at(i) ==C || vec.at(i) ==G){
        unti.at(i) = unti.at(i-1) +1 ;
      }
      else{
        unti.at(i) = 0  ;
      }
      int N ;
      while (i<10){
       if(N>= unti.at(i)){
         N = N ;
       }
           else {
             N = unti.at(i) ;
           }
    
      cout << N << endl ;
      }}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:30:9: error: expected '}' at end of input
   30 |       }}
      |         ^
a.cc:3:15: note: to match this '{'
    3 |   int main () {
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
  int main () {
  string A = "A";
  string T = "T";
  string C = "C";
  string G = "G";
     vector <string> vec(10) ;
    for (int i = 0; i < 10; i++) {
    cin >> vec.at(i);
     
      vector <int> unti(10);
        
      if ( vec.at(i) == A || vec.at(i) ==T || vec.at(i) ==C || vec.at(i) ==G){
        unti.at(i) = unti.at(i-1) +1 ;
      }
      else{
        unti.at(i) = 0  ;
      }
      int N ;
      while (i<10){
       if(N>= unti.at(i)){
         N = N ;
       }
           else {
             N = unti.at(i) ;
           }
    
      cout << N << endl ;
      
    

Compiler output:
a.cc: In function 'int main()':
a.cc:29:26: error: expected '}' at end of input
   29 |       cout << N << endl ;
      |                          ^
a.cc:21:19: note: to match this '{'
   21 |       while (i<10){
      |                   ^
a.cc:29:26: error: expected '}' at end of input
   29 |       cout << N << endl ;
      |                          ^
a.cc:9:34: note: to match this '{'
    9 |     for (int i = 0; i < 10; i++) {
      |                                  ^
a.cc:29:26: error: expected '}' at end of input
   29 |       cout << N << endl ;
      |                          ^
a.cc:3:15: note: to match this '{'
    3 |   int main () {
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
  int main () {
  string A = "A";
  string T = "T";
  string C = "C";
  string G = "G";
     vector <string> vec(10) ;
    for (int i = 0; i < 10; i++) {
    cin >> vec.at(i);
     
      vector <int> unti(10);
        
      if ( vec.at(i) == A || vec.at(i) ==T || vec.at(i) ==C || vec.at(i) ==G){
        unti.at(i) = unti.at(i-1) +1 ;
      }
      else{
        unti.at(i) = 0  ;
      }
      int N ;
      while (i<10){
       if(N>= unti.at(i)){
         N = N ;
       }
           else {
             N = unti.at(i) ;
           }
    
      cout << N << endl ;
      }
    

Compiler output:
a.cc: In function 'int main()':
a.cc:30:8: error: expected '}' at end of input
   30 |       }
      |        ^
a.cc:9:34: note: to match this '{'
    9 |     for (int i = 0; i < 10; i++) {
      |                                  ^
a.cc:30:8: error: expected '}' at end of input
   30 |       }
      |        ^
a.cc:3:15: note: to match this '{'
    3 |   int main () {
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
  int main () {
  string A = "A";
  string T = "T";
  string C = "C";
  string G = "G";
     vector <string> vec(10) ;
    for (int i = 0; i < 10; i++) {
    cin >> vec.at(i);
     
      vector <int> unti(10);
        
      if ( vec.at(i) == A || vec.at(i) ==T || vec.at(i) ==C || vec.at(i) ==G){
        unti.at(i) = unti.at(i-1) +1 ;
      }
      else{
        unti.at(i) = 0  ;
      }
      int N ;
      while (i<10){
       if(N>= unti.at(i)){
         N = N ;
       }
           else {
             N = unti.at(i) ;
           }
    
      cout << N << endl;
      }
    

Compiler output:
a.cc: In function 'int main()':
a.cc:30:8: error: expected '}' at end of input
   30 |       }
      |        ^
a.cc:9:34: note: to match this '{'
    9 |     for (int i = 0; i < 10; i++) {
      |                                  ^
a.cc:30:8: error: expected '}' at end of input
   30 |       }
      |        ^
a.cc:3:15: note: to match this '{'
    3 |   int main () {
      |               ^
Language: C++

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

int main()
{
  int kazoe=0;
  int hikaku=0;
  string S;
  cin>>S;
  for(int i=0;i>S.size();i++){
    if(S.at(i)=="A"||S.at(i)=="T"||S.at(i)=="C"||S.at(i)=="G")
      kazoe++;
    else{
      if(hikaku<kazoe){
        hikaku=kazoe;
        kazoe=0;}
      else
        kazoe=0
   		}
  	}
      cout<<hikaku<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(S.at(i)=="A"||S.at(i)=="T"||S.at(i)=="C"||S.at(i)=="G")
      |        ~~~~~~~^~~~~
a.cc:11:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(S.at(i)=="A"||S.at(i)=="T"||S.at(i)=="C"||S.at(i)=="G")
      |                      ~~~~~~~^~~~~
a.cc:11:43: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(S.at(i)=="A"||S.at(i)=="T"||S.at(i)=="C"||S.at(i)=="G")
      |                                    ~~~~~~~^~~~~
a.cc:11:57: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(S.at(i)=="A"||S.at(i)=="T"||S.at(i)=="C"||S.at(i)=="G")
      |                                                  ~~~~~~~^~~~~
a.cc:18:16: error: expected ';' before '}' token
   18 |         kazoe=0
      |                ^
      |                ;
   19 |                 }
      |                 ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
  int main () {
  string A = "A";
  string T = "T";
  string C = "C";
  string G = "G";
     vector <string> vec(10) ;
    for (int i = 0; i < 10; i++) {
    cin >> vec.at(i);
     
      vector <int> unti(10);
        
      if ( vec.at(i) == A || vec.at(i) ==T || vec.at(i) ==C || vec.at(i) ==G){
        unti.at(i) = unti.at(i-1) +1 ;
      }
      else{
        unti.at(i) = 0  ;
      }
      int N ;
      while (i<10){
       if(N>= unti.at(i)){
         N = N
       }
           else {
             N = unti.at(i)
           }
    
      cout << N << endl;
      }
    

Compiler output:
a.cc: In function 'int main()':
a.cc:23:15: error: expected ';' before '}' token
   23 |          N = N
      |               ^
      |               ;
   24 |        }
      |        ~       
a.cc:26:28: error: expected ';' before '}' token
   26 |              N = unti.at(i)
      |                            ^
      |                            ;
   27 |            }
      |            ~                
a.cc:30:8: error: expected '}' at end of input
   30 |       }
      |        ^
a.cc:9:34: note: to match this '{'
    9 |     for (int i = 0; i < 10; i++) {
      |                                  ^
a.cc:30:8: error: expected '}' at end of input
   30 |       }
      |        ^
a.cc:3:15: note: to match this '{'
    3 |   int main () {
      |               ^