criyle/codenet-compile-errors huggingface dataset:
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(i)){
         N = N
       }
           else {
             N = unti (i)
           }
    
      cout << N << endl;
      }
    

Compiler output:
a.cc: In function 'int main()':
a.cc:22:19: error: no match for call to '(std::vector<int>) (int&)'
   22 |        if(N>= unti(i)){
      |               ~~~~^~~
a.cc:23:15: error: expected ';' before '}' token
   23 |          N = N
      |               ^
      |               ;
   24 |        }
      |        ~       
a.cc:26:23: error: no match for call to '(std::vector<int>) (int&)'
   26 |              N = unti (i)
      |                  ~~~~~^~~
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<stdio.h>
int main(){
char c;
  int s,s2;
  scanf("%c",&c);
  for(int i=0;i<10;i++){
    int j=i;
  while(c[j]=='A'||c[j]=='T'||c[j]=='C'||c[j]=='G'){
  s++;j++;
  }
    if(s2<s)s2=s;
  }
  printf("%d\n",s2);
}

Compiler output:
main.c: In function 'main':
main.c:8:10: error: subscripted value is neither array nor pointer nor vector
    8 |   while(c[j]=='A'||c[j]=='T'||c[j]=='C'||c[j]=='G'){
      |          ^
main.c:8:21: error: subscripted value is neither array nor pointer nor vector
    8 |   while(c[j]=='A'||c[j]=='T'||c[j]=='C'||c[j]=='G'){
      |                     ^
main.c:8:32: error: subscripted value is neither array nor pointer nor vector
    8 |   while(c[j]=='A'||c[j]=='T'||c[j]=='C'||c[j]=='G'){
      |                                ^
main.c:8:43: error: subscripted value is neither array nor pointer nor vector
    8 |   while(c[j]=='A'||c[j]=='T'||c[j]=='C'||c[j]=='G'){
      |                                           ^
Language: C++

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

typedef long long ll;
ll MOD = 1e9+7;

int main()
{
	string s;
	int ans=0;
	cin>>s;
	for(int i=0;i<s.size();i++)
	{
		for(int j=i+1;j<s.size();j++)
		{
			bool f=true;
			for(int k=i;k<j;k++)
			{
				if(!(s[k]=='A' || s[k]=='C' || s[k]=='G' || s[k]=='T'))
					f=false;
			}
			if(f)
				ans=max(ans,j-k);
		}
	}
	cout<<ans<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:47: error: 'k' was not declared in this scope
   28 |                                 ans=max(ans,j-k);
      |                                               ^
Language: C

#include <stdio.h>

int main()
{
	char s[10];
	int s_length = 0, max_length = 0;
	int i;

	gets_s(s, 10);

	for (i = 0; s[i] != '\0'; i++)
	{
		if (s[i] == 'A' || s[i] == 'C' || s[i] == 'G' || s[i] == 'T')	s_length++;
		else s_length = 0;
		if (s_length > max_length)	max_length = s_length;
	}

	printf("%d\n", max_length);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'gets_s' [-Wimplicit-function-declaration]
    9 |         gets_s(s, 10);
      |         ^~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:29: error: 'strlen' was not declared in this scope
   11 |         for (int i = 0; i < strlen(a); i++) {
      |                             ^~~~~~
a.cc:4:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include <vector>
  +++ |+#include <cstring>
    4 | using namespace std;
Language: Java

import java.util.*;

public class b{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String S[] = s.split("");
    int[] c = new int[s.length()];
    for(int i = 0;i < s.length();i++){
      c[i] = 0;
    }
    int count = 0;
    String A = "A";
    String C = "C";
    String G = "G";
    String T = "T";
    for(int i = 0;i < s.length();i++){
      if(S[i].equals(A) || S[i].equals(C) || S[i].equals(G) || S[i].equals(T)){
        count++;
      }
      else{
        c[i] = count;
        count = 0;
      }
    }
    int ans = c[0];
    for(int i = 0;i < s.length();i++){
      if(ans < c[i]){
        ans = c[i];
      }
    }
    System.out.println(ans);
  }
}


Compiler output:
Main.java:3: error: class b is public, should be declared in a file named b.java
public class b{
       ^
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();
    String S[] = s.split("");
    int[] c = new int[s.length()];
    for(int i = 0;i < s.length();i++){
      c[i] = 0;
    }
    long int count = 0;
    String A = "A";
    String C = "C";
    String G = "G";
    String T = "T";
    for(int i = 0;i < s.length();i++){
      if(S[i].equals(A) || S[i].equals(C) || S[i].equals(G) || S[i].equals(T)){
        count++;
      }
      else{
        c[i] = count;
        count = 0;
      }
    }
    long int ans = c[0];
    for(int i = 0;i < s.length();i++){
      if(ans < c[i]){
        ans = c[i];
      }
    }
    System.out.println(ans);
  }
}


Compiler output:
Main.java:12: error: not a statement
    long int count = 0;
    ^
Main.java:12: error: ';' expected
    long int count = 0;
        ^
Main.java:26: error: not a statement
    long int ans = c[0];
    ^
Main.java:26: error: ';' expected
    long int ans = c[0];
        ^
4 errors
Language: C++

int main()
{
	int count, a, i, max, j;
	max = 0;
	int hoji[10] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
	count = 0;
	string mojiretu;
	cin >> mojiretu;
	a = mojiretu.length();
	for (i = 0; i < a; i++)
	{
		if ((mojiretu[i] == 'A') || (mojiretu[i] == 'G') || (mojiretu[i] == 'T') || (mojiretu[i] == 'C'))
		{
			count = count + 1;
		}
		else
		{
			hoji[i] = count;
			count = 0;
		}
	}
	for (j=0;j<10;j++)
	{
		cout << hoji[i];
		if (hoji[j]>max)
		{
			max = hoji[j];
		}
			
	}
	cout << max;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'string' was not declared in this scope
    7 |         string mojiretu;
      |         ^~~~~~
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin >> mojiretu;
      |         ^~~
a.cc:8:16: error: 'mojiretu' was not declared in this scope
    8 |         cin >> mojiretu;
      |                ^~~~~~~~
a.cc:24:17: error: 'cout' was not declared in this scope; did you mean 'count'?
   24 |                 cout << hoji[i];
      |                 ^~~~
      |                 count
a.cc:31:9: error: 'cout' was not declared in this scope; did you mean 'count'?
   31 |         cout << max;
      |         ^~~~
      |         count
Language: C++

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

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

    int ans = 0;
    for(int i = 0; i < s.size() - 1; i++)
    {
        if(s[i] == 'A' || s[i] == 'C' || s[i] == 'G' || s[i] == 'T')
        {
            for(int k = i + 1; k < s.size(); k++)
            {
                if(s[k] != 'A' && s[k] != 'C' && s[k] != 'G' && s[k] != 'T')
                {
                    ans = max(ans, k - i);
                    i = k - 1;
                    break;
                }
                else if(k == s.size() - 1)
                {
                    ans = max(ans, (k - i) + 1);
                    i = k;
                    break;
                }
            }
        }
    }
    cout << ans << endl;

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

#include<bits/stdc++.h>//atcoder.112.2
using namespace std;
int main(){
	string s;
	int i,j=0,m=0;
	getline(cin,s);
	for(i=0;i<s.size();i++){
		if(s[i]=="A"||s[i]=="T"||s[i]=="C"||s[i]=="G')j++;
		else{
			if(m<j)m=j;
			j=0;
		}
	}
	cout<<m;
	return 0;
}

Compiler output:
a.cc:8:59: warning: missing terminating " character
    8 |                 if(s[i]=="A"||s[i]=="T"||s[i]=="C"||s[i]=="G')j++;
      |                                                           ^
a.cc:8:59: error: missing terminating " character
    8 |                 if(s[i]=="A"||s[i]=="T"||s[i]=="C"||s[i]=="G')j++;
      |                                                           ^~~~~~~~
a.cc: In function 'int main()':
a.cc:8:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |                 if(s[i]=="A"||s[i]=="T"||s[i]=="C"||s[i]=="G')j++;
a.cc:8:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |                 if(s[i]=="A"||s[i]=="T"||s[i]=="C"||s[i]=="G')j++;
a.cc:8:46: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |                 if(s[i]=="A"||s[i]=="T"||s[i]=="C"||s[i]=="G')j++;
a.cc:9:17: error: expected primary-expression before 'else'
    9 |                 else{
      |                 ^~~~
a.cc:8:59: error: expected ')' before 'else'
    8 |                 if(s[i]=="A"||s[i]=="T"||s[i]=="C"||s[i]=="G')j++;
      |                   ~                                       ^
      |                                                           )
    9 |                 else{
      |                 ~~~~                                       
a.cc:13:9: error: expected primary-expression before '}' token
   13 |         }
      |         ^
Language: C++

#include <string>
using namespace std;
 
int main(){
    string s;
    getline(cin, s);
  
    int cnt=0;
    int ans=0;
    for(int i=0; i<s.size(); ++i){
      if(s[i]=='A'||s[i]=='C'||s[i]=='G'||s[i]=='T'||s[i]==' ') ++cnt;
      if(ans<cnt) ans = cnt;
      else cnt=0;
    }
    cout << ans << "\n";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: 'cin' was not declared in this scope
    6 |     getline(cin, s);
      |             ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <string>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout << ans << "\n";
      |     ^~~~
a.cc:15:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <stdio.h>
#include <string.h>
int main()
{
   char a[12];int n,m,max=0,l=0,i;
   gets(a);
   m=strlen(a);
   for(n=0;n<=m-1;n++)
   {
       if(a[n]=='A'||a[n]=='T'||a[n]=='C'||a[n]=='G')
       {
           for( l=1,i=n+1;i<m;i++)
           {
               if(a[i]=='A'||a[i]=='T'||a[i]=='C'||a[i]=='G')
                l++;
               else
                break;
           }
           if(l>max)
             max=l;
       }
   }
   printf("%d",max);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:4: error: 'gets' was not declared in this scope; did you mean 'getw'?
    6 |    gets(a);
      |    ^~~~
      |    getw
Language: C++

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

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout<<setprecision(std::numeric_limits<float>::max_digits10);
  cout<<fixed;
  string s;
  cin>>s;
  int n=s.size();
  int ans=0;
  rep(i,n) {
    int c=0;
    rep(j,i,n) {
      if(s[j]!='A'&&s[j]!='C'&&s[j]!='G'&&s[j]!='T')
        break;
      c++;
    }
    ans=max(ans,c);
  }
  cout << ans << endl;
  return 0;
}


Compiler output:
a.cc:20:14: error: macro "rep" passed 3 arguments, but takes just 2
   20 |     rep(j,i,n) {
      |              ^
a.cc:5:9: note: macro "rep" defined here
    5 | #define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
      |         ^~~
a.cc: In function 'int main()':
a.cc:20:5: error: 'rep' was not declared in this scope
   20 |     rep(j,i,n) {
      |     ^~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int c1,c2;
string s;
  for(int i=0;i<10;i++){
  if(s[i]=='A'||s[i]=='T'||s[i]=='C'||s[i]=='G'){
	int j;
    while(true){
      c2++;
      if(s[i+j]!='A'||s[i+j]!='T'||s[i+j]!='C'||s[i+j]!='G')break;
      j++;
  }
    if(c1<cs)c1=c2;
    c2=0;
  }
}
  cout<<c1<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:11: error: 'cs' was not declared in this scope; did you mean 's'?
   14 |     if(c1<cs)c1=c2;
      |           ^~
      |           s
Language: C++

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

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.*;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:9: error: expected ':' before 'static'
    5 |   public static void main(String args[])
      |         ^~~~~~~
      |         :
a.cc:5:27: error: 'String' has not been declared
    5 |   public static void main(String args[])
      |                           ^~~~~~
a.cc:31:3: error: expected ';' after class definition
   31 |  }
      |   ^
      |   ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:7:5: error: 'Scanner' was not declared in this scope
    7 |     Scanner sc=new Scanner(System.in);
      |     ^~~~~~~
a.cc:8:5: error: 'String' was not declared in this scope
    8 |     String s=sc.next();
      |     ^~~~~~
a.cc:18:19: error: 's' was not declared in this scope
   18 |     for(int i=0;i<s.length();i++)
      |                   ^
a.cc:29:5: error: 'System' was not declared in this scope
   29 |     System.out.println(maxcount);
      |     ^~~~~~
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 = 0;
	for (int i = 0; i < len; i++) {
		if(atcg(a, i) > num) num = atcg(a, i);
	}
	num++
	printf("%d\n", num);
}

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

Compiler output:
main.c: In function 'main':
main.c:15:14: error: expected ';' before 'printf'
   15 |         num++
      |              ^
      |              ;
   16 |         printf("%d\n", num);
      |         ~~~~~~
Language: C++

#include <stdio.h>
int main()
{
   char a[12];int n,m,max=0,l=0,i;
   gets(a);
   m=strlen(a);
   for(n=0;n<m-1&&l<m-n;n++)
   {
       if(a[n]=='A'||a[n]=='T'||a[n]=='C'||a[n]=='G')
       {
           for( l=1,i=n+1;i<m;i++)
           {
               if(a[i]=='A'||a[i]=='T'||a[i]=='C'||a[i]=='G')
                l++;
               else
                break;
           }
           if(l>max)
             max=l;
       }
   }
   printf("%d",max);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:4: error: 'gets' was not declared in this scope; did you mean 'getw'?
    5 |    gets(a);
      |    ^~~~
      |    getw
a.cc:6:6: error: 'strlen' was not declared in this scope
    6 |    m=strlen(a);
      |      ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <stdio.h>
  +++ |+#include <cstring>
    2 | int main()
Language: C++

#include<stdio.h>
int main()
{
    int i,m=0,n=0,ans;//ans判断s[i]是否在连续的特殊字母中
    char s[11];
	gets(s);
    for(i=0,ans=0;s[i]!='\0';i++){
		//printf("%c\n",s[i]);
        if(s[i]=='A'||s[i]=='T'||s[i]=='C'||s[i]=='G'){
            if(ans==0)
                ans=1;
            m++;//m记录部分字符串的长度
        }
        else{
            if(ans==1 && m>n){//n储存目前最长部分的长度
                    n=m;
            }
            m=0;
            ans=0;
        }//printf("i=%d m=%d n=%d",i,m,n);
    }
    printf("%d",n);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    6 |         gets(s);
      |         ^~~~
      |         getw
Language: C++

#include <stdio.h>
int main()
{
   char a[12];int n,m,max=0,l=0,i;
   gets(a);
   m=strlen(a);
   for(n=0;n<m-1;n++)
   {
       if(a[n]=='A'||a[n]=='T'||a[n]=='C'||a[n]=='G')
       {
           for( l=1,i=n+1;i<m;i++)
           {
               if(a[i]=='A'||a[i]=='T'||a[i]=='C'||a[i]=='G')
                l++;
               else
                break;
           }
           if(l>max)
             max=l;
       }
   }
   printf("%d",max);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:4: error: 'gets' was not declared in this scope; did you mean 'getw'?
    5 |    gets(a);
      |    ^~~~
      |    getw
a.cc:6:6: error: 'strlen' was not declared in this scope
    6 |    m=strlen(a);
      |      ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <stdio.h>
  +++ |+#include <cstring>
    2 | int main()
Language: C++

#include<bits/stdc++.h>//atcoder.112.2
using namespace std;
int main(){
	string s;
	int n,i,j=0,m=0;
	getline(cin,s);
	n=s.size();
	for(i=0;i<n;i++){
		if(s[i]=="A"||s[i]=="T"||s[i]=="C"||s[i]=="G")j++;
		else{
			if(m<j)m=j;
			j=0;
		}
	}
	cout<<m;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |                 if(s[i]=="A"||s[i]=="T"||s[i]=="C"||s[i]=="G")j++;
a.cc:9:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |                 if(s[i]=="A"||s[i]=="T"||s[i]=="C"||s[i]=="G")j++;
a.cc:9:46: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |                 if(s[i]=="A"||s[i]=="T"||s[i]=="C"||s[i]=="G")j++;
a.cc:9:57: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |                 if(s[i]=="A"||s[i]=="T"||s[i]=="C"||s[i]=="G")j++;
Language: C++

#include <iostream>

char a[4] = {'A', 'C', 'G', 'T' };

int acgt (char b) {
    for(int i = 0; i < 4; ++i) {
        if(b == a[i]) return 1;
    }
    return 0;
}

int main () {
    std::string s;
    std::cin >> s;
    int c = 0, max = 0;
    for (int i = 0; i < s.length(); ++i) {
        if(mac < c) max = c;
        if(acgt(s[i]) == 0) {
            c = 0;
        }
        else ++c;
    }
    
    std::cout << max << std::endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:12: error: 'mac' was not declared in this scope; did you mean 'max'?
   17 |         if(mac < c) max = c;
      |            ^~~
      |            max
Language: C++

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

int main()
{
   char a[12];int n,m,max=0,l=0,i;
   scanf("%s",a);
   m=strlen(a);
   for(n=0;n<m-1&&max<m-n&&l<=10;n++)
   {
       if(a[n]=='A'||a[n]=='T'||a[n]=='C'||a[n]=='G')
       {
           l=1;
           for(i=n+1;i<m;i++)
           {
               if(a[i]=='A'||a[i]=='T'||a[i]=='C'||a[i]=='G')
                l++;
               else
                break;
           }
           if(l>max)
            max=l;
       }
   }
   printf("%d",max);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: 'strlen' was not declared in this scope
    8 |    m=strlen(a);
      |      ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <stdlib.h>
  +++ |+#include <cstring>
    3 |
Language: C++

#include<iostream>
#include<string>
#define rep(i,n) for(int i=0;i<n;i++)
  
using namespace std;
int main(){
  cin.tie(0);
   	ios::sync_with_stdio(false);
  int c1,c2;
string s;
  cin>>s;
	rep(i,10){
       if(s[i]=='A'||s[i]=='T'||s[i]=='C'||s[i]=='G'){
  while(true){
	int n;
    if(s[i+n]=='A'||s[i+n]=='T'||s[i+n]=='C'||s[i+n]=='G'){
	c2++;
    }else{
      break;
    }
  }
  }
    if(c1<c2)c1=c2;
  }
    };
  cout<<c2<<endl;
}


Compiler output:
a.cc:26:3: error: 'cout' does not name a type
   26 |   cout<<c2<<endl;
      |   ^~~~
a.cc:27:1: error: expected declaration before '}' token
   27 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  char S[10];
  cin >>S;
 int ans=0 ,l=0;
  for(int i=0;i<10;i++){
    if(S[i]=="C"||S[i]=="A"||S[i]=="T"||S[i]=="C"){
      l++;
    }else{
      if(l>ans){
        ans=l;
      }
      l=0;
    }
  }
cout <<ans <<endl;
}


    
 



Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(S[i]=="C"||S[i]=="A"||S[i]=="T"||S[i]=="C"){
      |        ~~~~^~~~~
a.cc:8:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(S[i]=="C"||S[i]=="A"||S[i]=="T"||S[i]=="C"){
      |                   ~~~~^~~~~
a.cc:8:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(S[i]=="C"||S[i]=="A"||S[i]=="T"||S[i]=="C"){
      |                              ~~~~^~~~~
a.cc:8:45: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(S[i]=="C"||S[i]=="A"||S[i]=="T"||S[i]=="C"){
      |                                         ~~~~^~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;
typedef unsigned long long ull;
int main(int argc, char *argv[])
{
 
    string s;
  	cin>>s
     ull size=s.size();
     int curr=0;
     int maxicnt=0;
     set<char> charset={'A','C','G','T'};
    for(ull i=0;i<size;i++){

        if(charset.count(s[i])>0){
              curr++;
              if(i==size-1){
                  maxicnt=max(maxicnt,curr);
              }
        }else{
            if(curr>0){
                maxicnt=max(maxicnt,curr);
            }
            curr=0;
        }
    }
    cout<<maxicnt<<endl;
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:9:15: error: expected ';' before 'ull'
    9 |         cin>>s
      |               ^
      |               ;
   10 |      ull size=s.size();
      |      ~~~       
a.cc:14:18: error: invalid operands of types 'ull' {aka 'long long unsigned int'} and '<unresolved overloaded function type>' to binary 'operator<'
   14 |     for(ull i=0;i<size;i++){
      |                 ~^~~~~
a.cc:18:25: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator-'
   18 |               if(i==size-1){
      |                     ~~~~^~
Language: C++

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

int main()
{
   char a[12];int n,m,max=0,l=0,i;
   scanf("%s",a);
   m=strlen(a);
   for(n=0;n<m-1&&max<m-n&&l<=10;n++)
   {
       //printf("n=%d\n",n);
       if(a[n]=='A'||a[n]=='T'||a[n]=='C'||a[n]=='G')
       {
           l=1;
           for(i=n+1;i<m;i++)
           {
               if(a[i]=='A'||a[i]=='T'||a[i]=='C'||a[i]=='G')
                l++;
               else
                break;
           }
           if(l>max)
            max=l;
       }
   }
   printf("%d",max);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: 'strlen' was not declared in this scope
    8 |    m=strlen(a);
      |      ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <stdlib.h>
  +++ |+#include <cstring>
    3 |
Language: C++

#include<iostream>
#include<string>
#define rep(i,n) for(int i=0;i<n;i++)
  
using namespace std;
int main(){
  cin.tie(0);
   	ios::sync_with_stdio(false);
  int c1,c2;
string s;
  cin>>s;
	rep(i,10){
       if(s[i]=='A'||s[i]=='T'||s[i]=='C'||s[i]=='G'){
  while(true){
	int n;
    if(s[i+n]=='A'||s[i+n]=='T'||s[i+n]=='C'||s[i+n]=='G'){
	c2++;
    }else{
      break;
    }
  }
  }
    if(c1<c2)c1=c2;
  }
    }
  cout<<c2<<endl;
}


Compiler output:
a.cc:26:3: error: 'cout' does not name a type
   26 |   cout<<c2<<endl;
      |   ^~~~
a.cc:27:1: error: expected declaration before '}' token
   27 | }
      | ^
Language: C++

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

int main(){
    char ss[20];
    int a=0,max=0,i=0;
    scanf("%s",ss);
    while(ss[i]=='¥0'){
    if(ss[i]=='A' OR ss[i]=='T' OR ss[i]=='G' OR ss[i]=='C'){
   a++;
       if(a>max){
       max=a;
       }
}else{
a=0;
}
i++;
}
    printf("%d",max);
    return 0;
}

Compiler output:
a.cc:9:18: warning: multi-character character constant [-Wmultichar]
    9 |     while(ss[i]=='¥0'){
      |                  ^~~~
a.cc: In function 'int main()':
a.cc:10:18: error: expected ')' before 'OR'
   10 |     if(ss[i]=='A' OR ss[i]=='T' OR ss[i]=='G' OR ss[i]=='C'){
      |       ~          ^~~
      |                  )
Language: C++

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

int main()
{
   char a[12];int n,m,max=0,l=0,i;
   scanf("%s",a);
   m=strlen(a);
   for(n=0;n<m-1&&max<m-n;n++)
   {
       //printf("n=%d\n",n);
       if(a[n]=='A'||a[n]=='T'||a[n]=='C'||a[n]=='G')
       {
           l=1;
           for(i=n+1;i<m;i++)
           {
               if(a[i]=='A'||a[i]=='T'||a[i]=='C'||a[i]=='G')
                l++;
               else
                break;
           }
           if(l>max)
            max=l;
       }
   }
   printf("%d",max);

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: 'strlen' was not declared in this scope
    8 |    m=strlen(a);
      |      ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <stdlib.h>
  +++ |+#include <cstring>
    3 |
Language: C++

#include<iostream>
#include<string>
#define ss(){
  for(int i=0;i<10;i++){
  if(s[i]=='A'||s[i]=='T'||s[i]=='C'||s[i]=='G'){
  while(true){
	int n;
    if(s[i+n]=='A'||s[i+n]=='T'||s[i+n]=='C'||s[i+n]=='G'){
	c2++;
    }else{
      break;
    }
  }
  }
    if(c1<c2)c1=c2;
  }
}
using namespace std;
int main(){
  cin.tie(0);
   	ios::sync_with_stdio(false);
  int c1,c2;
string s;
  cin>>s;
	ss();
  cout<<c2<<endl;
}


Compiler output:
a.cc:4:3: error: expected unqualified-id before 'for'
    4 |   for(int i=0;i<10;i++){
      |   ^~~
a.cc:4:15: error: 'i' does not name a type
    4 |   for(int i=0;i<10;i++){
      |               ^
a.cc:4:20: error: 'i' does not name a type
    4 |   for(int i=0;i<10;i++){
      |                    ^
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
a.cc: In function 'int main()':
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
a.cc:19:11: note: to match this '{'
   19 | int main(){
      |           ^
Language: C++

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

int main()
{
   char a[20];int n,m,max=0,l=0,i;
   scanf("%s",a);
   m=strlen(a);
   for(n=0;n<m-1&&max<m-n;n++)
   {
       //printf("n=%d\n",n);
       if(a[n]=='A'||a[n]=='T'||a[n]=='C'||a[n]=='G')
       {
           l=1;
           for(i=n+1;i<m;i++)
           {
               if(a[i]=='A'||a[i]=='T'||a[i]=='C'||a[i]=='G')
                l++;
               else
                break;
           }
           if(l>max)
            max=l;
       }
   }
   printf("%d",max);

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: 'strlen' was not declared in this scope
    8 |    m=strlen(a);
      |      ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <stdlib.h>
  +++ |+#include <cstring>
    3 |
Language: C++

#include <iostream>
using namespace std;
int main(void){
    int max=0;
    char S[11];
    char ACGT[5]=“ACGT”;
    cin>>S;
    
    for(int x=0;x<10;x++){
        for(int y=0;y<4;y++){
            if(S[x]==ACGT[y]){
                max++;
                break;
            }
            if(y==3)max=0;
        }
    }
    
    cout<<max;
    
    return 0;
}


Compiler output:
a.cc:6:18: error: extended character “ is not valid in an identifier
    6 |     char ACGT[5]=“ACGT”;
      |                  ^
a.cc:6:18: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:6:18: error: '\U0000201cACGT\U0000201d' was not declared in this scope
    6 |     char ACGT[5]=“ACGT”;
      |                  ^~~~~~
Language: C++

#include<iostream>
#include<string>
#define int ss(){
  for(int i=0;i<10;i++){
  if(s[i]=='A'||s[i]=='T'||s[i]=='C'||s[i]=='G'){
  while(true){
	int n;
    if(s[i+n]=='A'||s[i+n]=='T'||s[i+n]=='C'||s[i+n]=='G'){
	c2++;
    }else{
      break;
    }
  }
  }
    if(c1<c2)c1=c2;
  }
}
using namespace std;
int main(){
  cin.tie(0);
   	ios::sync_with_stdio(false);
  int c1,c2;
string s;
  cin>>s;
	ss();
  cout<<c2<<endl;
}


Compiler output:
a.cc:4:3: error: expected unqualified-id before 'for'
    4 |   for(int i=0;i<10;i++){
      |   ^~~
Language: C++

# include <bits/stdc++.h>
using namespace std;
 
int main()
{
	string S;
	char b;
	int len = 0;
	int maxlen = 0;
	cin >> S;

	for (int i = 0; i < S.size; ++i)
	{
		b = S.at(i);
	}
	if (b == 'A' || b == 'T' || b == 'C' || b == 'G')
	{
		++len;
	}
	else
	{
		if (len > maxlen)
		{
			maxlen = len;
		}
		len = 0;
	}
	cout << maxlen << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:31: 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 '()' ?)
   12 |         for (int i = 0; i < S.size; ++i)
      |                             ~~^~~~
      |                                   ()
Language: C++

#include<iostream>
#include<math.h>
#include<complex>
#include<cstdlib>
#include<algorithm>
#include<functional>
#include <cstdint>
#include<string.h>

typedef unsigned long long ll;

using namespace std;

int main() {
	string b;
	int i = 0;
	cin >> b;
	int;
	int a = 0;
	i = 0;

	int cnt = 0;
	int max = 0;
	for (i = 0;b[i] != '\0';i++) {
		if (b[i] == 'A' || b[i] == 'C' || b[i] == 'G' || b[i] == 'T') {
			cnt+=1;
		}
		else {
			if (max < cnt) {
				max = cnt;
				
			}
			cnt = 0;
		}
	}
	printf("%d", max);


}



Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: declaration does not declare anything [-fpermissive]
   18 |         int;
      |         ^~~
Language: C++

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

using namespace std;

inline bool isAGCT(char c) {
	if (c == 'A' || c == 'T' || c == 'C' || c == 'G') return true;
	return false;
}

int main() {
	char input[11];
	scanf("%s", input);
	int len = strlen(input);

	int max_length = 0;
	for (int ii = 0; ii < len; ii++) {
		if (len < max_length) break;
		int length = 0;
		for (int jj = ii; jj < len; jj++) {
			if (!isAGCT(input[jj])) {
				break;
			}
			length++;
		}
		max_length = max_length < length ? length : max_length;
	}

	printf("%d", max_length);

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:19: error: 'strlen' was not declared in this scope
   14 |         int len = strlen(input);
      |                   ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <string>
  +++ |+#include <cstring>
    3 |
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <cmath>
#include <stack>
#include <vector>
#include <queue>
#include <random>
#include <cstdint>
#include <bitset>
#include <iomanip>
#include <utility>
#include<map>
#include<functional>
#include<climits>
using namespace std;
typedef long long ll;
const int mod = 1000000007;
int edgenum[100000];
vector<pair<int, int>> edge;
int main() {
	string s;
	int ans = 0, memo = 0;
	cin >> s;
	for (int i = 0; i < s.size(); i++) {
		if (s[i] == 'A' || s[i] == 'C' || s[i] == 'G' || s[i] == 'T') memo++;
		else {
			ans = max(ans, memo);
			memo = 0;
		}
	}
	cout << max(ans, memo) << endl;


Compiler output:
a.cc: In function 'int main()':
a.cc:32:40: error: expected '}' at end of input
   32 |         cout << max(ans, memo) << endl;
      |                                        ^
a.cc:21:12: note: to match this '{'
   21 | int main() {
      |            ^
Language: C

#include<stdio.h>

int main(){
    char p;
    int a=0;
    int count=0,count_two=0;
    while(p=='A'||p=='G'||p=='C'||p=='T'||a==0){
        restart :
        scanf("%c",&p);
        if(a==0){
            a=1;
        }
    if(p==A||p==G||p==C||p==T){
        count_two++;
        if(count==count_two){
        count++;
        }
    }
    }
    if(p!='A'&&p!='G'&&p!='C'&&p!='T'){
        count_two=0;
goto restart;
    }
    printf("%d",count);
}

Compiler output:
main.c: In function 'main':
main.c:13:11: error: 'A' undeclared (first use in this function)
   13 |     if(p==A||p==G||p==C||p==T){
      |           ^
main.c:13:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:17: error: 'G' undeclared (first use in this function)
   13 |     if(p==A||p==G||p==C||p==T){
      |                 ^
main.c:13:23: error: 'C' undeclared (first use in this function)
   13 |     if(p==A||p==G||p==C||p==T){
      |                       ^
main.c:13:29: error: 'T' undeclared (first use in this function)
   13 |     if(p==A||p==G||p==C||p==T){
      |                             ^
Language: C++

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

int main()
{
   char a[20];int n,m,max=0,l=0,i;
   scanf("%s",a);
   m=strlen(a);
   for(n=0;n<m-1&&max<m-n;n++)
   {
       printf("n=%d\n",n);
       if(a[n]=='A'||a[n]=='T'||a[n]=='C'||a[n]=='G')
       {
           l=1;
           for(i=n+1;i<m;i++)
           {
               if(a[i]=='A'||a[i]=='T'||a[i]=='C'||a[i]=='G')
                l++;
               else
                break;
           }
           if(l>max)
            max=l;
       }
   }
   printf("%d",max);

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: 'strlen' was not declared in this scope
    8 |    m=strlen(a);
      |      ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <stdlib.h>
  +++ |+#include <cstring>
    3 |
Language: C++

#include "bits/stdc++.h"

using namespace std;

int basemap(char c)
{
	if (c == 'A')
		return 0;
	if (c == 'T')
		return 1;
	if (c == 'C')
		return 2;
	if (c == 'G')
		return 3;
	return -1;
}

string readg(string buf)
{
	string res = "";

	if (buf[0] == '>')
		return res;

	char nowc;

	for (char nowc : buf)
	{
		if (basemap(nowc) >= 0)
			res.push_back(nowc);
	}

	return res;
}

void solve(void)
{
	string s;
	cin >> s;
	int ans = 0, cur = 0;s
	for (char c : s)
	{
		if (basemap(c) >= 0) cur++;
		ans = max(ans, cur);
	}
	cout << ans << endl;
}

int main(void)
{
	solve();
	//cout << "yui(*-v・)yui" << endl;
	return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:40:31: error: expected ';' before 'for'
   40 |         int ans = 0, cur = 0;s
      |                               ^
      |                               ;
   41 |         for (char c : s)
      |         ~~~
Language: C++

#include<bits/stdc++.h>//atcoder.112.2
using namespace std;
int main(){
	string s;
	int n,i,j=0,m=0;
	getline(cin,s);
	n=s.size();
	for(i=0;i<n;i++){
		if(s[i]=="A"||s[i]=="T"||s[i]=="C"||s[i]=="G")j++;
		else if(s[i]!="A"&&s[i]!="T"&&s[i]!="C"&&s[i]!="G"){
			if(m<j)m=j;
			j=0;
		}
	}
	cout<<m;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |                 if(s[i]=="A"||s[i]=="T"||s[i]=="C"||s[i]=="G")j++;
a.cc:9:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |                 if(s[i]=="A"||s[i]=="T"||s[i]=="C"||s[i]=="G")j++;
a.cc:9:46: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |                 if(s[i]=="A"||s[i]=="T"||s[i]=="C"||s[i]=="G")j++;
a.cc:9:57: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |                 if(s[i]=="A"||s[i]=="T"||s[i]=="C"||s[i]=="G")j++;
a.cc:10:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |                 else if(s[i]!="A"&&s[i]!="T"&&s[i]!="C"&&s[i]!="G"){
a.cc:10:40: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |                 else if(s[i]!="A"&&s[i]!="T"&&s[i]!="C"&&s[i]!="G"){
a.cc:10:51: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |                 else if(s[i]!="A"&&s[i]!="T"&&s[i]!="C"&&s[i]!="G"){
a.cc:10:62: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |                 else if(s[i]!="A"&&s[i]!="T"&&s[i]!="C"&&s[i]!="G"){
Language: C++

# include <bits/stdc++.h>
using namespace std;
 
int main()
{
	string S;
	string b;
	int len = 0;
	int maxlen = 0;
	cin >> S;

	for (int i = 0; i < S.size; ++i)
	{
		b = S.substr(i, 1);
	}
	if (b == "A" || b == "T" || b == "C" || b == "G")
	{
		++len;
	}
	else
	{
		if (len > maxlen)
		{
			maxlen = len;
		}
		len = 0;
	}
	cout << maxlen << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:31: 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 '()' ?)
   12 |         for (int i = 0; i < S.size; ++i)
      |                             ~~^~~~
      |                                   ()
Language: C++

int main(void) {
	char n[10];
	int i;
	int count[10];
	
	scanf("%s", &n);
	for (i = 0; i < 10; i++) {
		count[i] = 0;
	}
	int j=0;
		#include<stdio.h>

	
	for (i = 0; n[i] != '\0'; i++) {
		if (n[i] == 'A' || n[i] == 'C' || n[i] == 'G' || n[i] == 'T') {
			count[j]++;
		}
		else {
			j++;
		}
	}
	int max;
	max = count[0];
	for (i = 1; i < 10; i++) {
		if (max < count[i]) {
			max = count[i];
		}
	}
	printf("%d\n", max);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf' was not declared in this scope
    6 |         scanf("%s", &n);
      |         ^~~~~
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from a.cc:11:
/usr/include/stdio.h:30:1: error: expected unqualified-id before string constant
   30 | __BEGIN_DECLS
      | ^~~~~~~~~~~~~
a.cc:29:9: error: 'printf' was not declared in this scope
   29 |         printf("%d\n", max);
      |         ^~~~~~
a.cc:12:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
   11 |                 #include<stdio.h>
  +++ |+#include <cstdio>
   12 |
Language: C

#include<stdio.h>

int main(){
    char p;
    int a=0;
    int count,count_two;
    while(p==A||p==G||p==C||p==T||a==0){
        p=scanf();
        if(a==0){
            a=1;
        }
    if(p==A||p==G||p==C||p==T){
        count_two++;
        if(count==count_two){
        count++;
        }
    }else{
count_two=0;
    }
    }
    printf("%d",count);
}

Compiler output:
main.c: In function 'main':
main.c:7:14: error: 'A' undeclared (first use in this function)
    7 |     while(p==A||p==G||p==C||p==T||a==0){
      |              ^
main.c:7:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:20: error: 'G' undeclared (first use in this function)
    7 |     while(p==A||p==G||p==C||p==T||a==0){
      |                    ^
main.c:7:26: error: 'C' undeclared (first use in this function)
    7 |     while(p==A||p==G||p==C||p==T||a==0){
      |                          ^
main.c:7:32: error: 'T' undeclared (first use in this function)
    7 |     while(p==A||p==G||p==C||p==T||a==0){
      |                                ^
main.c:8:11: error: too few arguments to function 'scanf'
    8 |         p=scanf();
      |           ^~~~~
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from main.c:1:
/usr/include/stdio.h:466:12: note: declared here
  466 | extern int __REDIRECT (scanf, (const char *__restrict __format, ...),
      |            ^~~~~~~~~~
Language: C

#include <stdio.h>
int main(void){
  int i,m,v,p;
  char s[11];
  scanf("%s\n",&s[]);
  for(i=1;i<=11;i++){
    if((s[i-1]=='A')||(s[i-1]=='T')||(s[i-1]=='C')||(s[i-1]=='G')){
      m++;
    }else{
      if(m>=v)v=m;
      m=0;
    }
  }
  if(!m){
    p=v;
  }else{
    p=m;
  }
  printf("%d\n",p);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:19: error: expected expression before ']' token
    5 |   scanf("%s\n",&s[]);
      |                   ^
Language: C++

#include <stdio.h>
#include <string.h>
int main()
{
	int n,i,j=0,flag=0;
	char a[1000];
	gets(a);
	n=strlen(a);
	for(i=0;i<n;i++)
	{
		if(a[i]=='A'||a[i]=='T'||a[i]=='C'||a[i]=='G')
		{
			j++;
			if(flag<j)
				flag=j;
		}
		if(a[i]!='A'&&a[i]!='T'&&a[i]!='C'&&a[i]!='G')
			j=0;
	}
	printf("%d\n",flag);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |         gets(a);
      |         ^~~~
      |         getw
Language: C++

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

int main()
{
   char a[20];int n,m,max=0,l=0,i;
   scanf("%s",a);
   m=strlen(a);
   for(n=0;n<m-1&&max<=m-n;n++)
   {
       if(a[n]=='A'||a[n]=='T'||a[n]=='C'||a[n]=='G')
       {
           l=1;
           for(i=n+1;i<m;i++)
           {
               if(a[i]=='A'||a[i]=='T'||a[i]=='C'||a[i]=='G')
                l++;
               else
                break;
           }
           if(l>max)
            max=l;
       }
   }
   printf("%d",max);

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: 'strlen' was not declared in this scope
    8 |    m=strlen(a);
      |      ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <stdlib.h>
  +++ |+#include <cstring>
    3 |
Language: C++

#include<iostream>
#include<algorithm>
#include<stdio.h>
#include<cstring>
using namespace std;
int main(){
    char S[10];
    cin>>S;
    int n=strlen(S);
    char judtge[10];
    int l=0;
    for(int i=0;i<n;i++){
       if(S[i]=='A'||S[i]=='T'||S[i]=='C'||S[i]=='G'){
          l++;
          judtge[i]=l;
       }
       else{
           i++;
       }
    }
    int ans=0;
    for(int j=0;j<n;j++){
        ans=max(ans,judtge[j]);
    }
    cout<<ans;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:16: error: no matching function for call to 'max(int&, char&)'
   23 |         ans=max(ans,judtge[j]);
      |             ~~~^~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 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/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:23:16: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'char')
   23 |         ans=max(ans,judtge[j]);
      |             ~~~^~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:23:16: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   23 |         ans=max(ans,judtge[j]);
      |             ~~~^~~~~~~~~~~~~~~
Language: C

#include <stdio.h>
#include <string.h>
int main(void){
  int i,m,v,p;
  char s[];
  scanf("%s\n",&s);
  for(i=1;i<=strlen(s);i++){
    if((s[i-1]=='A')||(s[i-1]=='T')||(s[i-1]=='C')||(s[i-1]=='G')){
      m++;
    }else{
      if(m>=v)v=m;
      m=0;
    }
  }
  if(!m){
    p=v;
  }else{
    p=m;
  }
  printf("%d\n",p);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:8: error: array size missing in 's'
    5 |   char s[];
      |        ^