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

#include<stdio.h>
#include<string.h>
int main()
{
	char s[100];
	int i,n,f=0;
	gets(s);
	n=strlen(s);
	for(i=0;i<=n-1;i++)
	{
	 if(s[i]==s[i+1]) f++;
	}
	if(f>=1) printf("no");
	else printf("yes");
}

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(s);
      |         ^~~~
      |         getw
Language: C++

#include<stdio.h> 
#include<string.h>
int main()
{
  int n,j,k=0,i,l;
  char a[100];
  gets(a);
  n=strlen(a)-1;
  for(i=0;i<n;i++)
  for(j=i+1;j<=n;j++)
  {
   if(a[i]==a[j])l=1;
  }
if(l==1)
printf("no");
else printf("yes");
}

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

#include <stdio.h>
#include <string.h>)
int main(int argc, char *argv[])
{
	int i,n,j,k=0;
	char a[30],b[30];
	gets(a);
	strcpy(b,a);
	n=strlen(a);
    for(i=0;i<n;i++)
    
   {
   	
   	for(j=0;j<n,j!=i;j++)
   	if(a[i]==b[j]) k=1;
   }
    
    if(k==1)
    printf("no");
    else printf("yes");
	
}

Compiler output:
a.cc:2:20: warning: extra tokens at end of #include directive
    2 | #include <string.h>)
      |                    ^
a.cc: In function 'int main(int, char**)':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |         gets(a);
      |         ^~~~
      |         getw
Language: C

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		String a;
		int flag=0;
		Scanner in=new Scanner(System.in);
		a=in.nextLine();
		for(int i=0;i<a.length();i++)
		{
			for(int j=i+1;j<a.length();j++)
			{
				if(a.charAt(i)==a.charAt(j))
					flag=1;
				break;
			}
		}
		if(flag==1)System.out.println("no");
		else System.out.println("yes");
   
	}

}

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.Scanner;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.Scanner;
      |            ^
main.c:3:1: error: unknown type name 'public'
    3 | public class Main {
      | ^~~~~~
main.c:3:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    3 | public class Main {
      |              ^~~~
Language: C++

#include <stdio.h>
int main()
 {
     char a[26] = { 0 };
     char str[30];
     int k = 0;
     gets(str);
     for (int i = 0; i < (int)strlen(str); i++){
         a[str[i]-'a']++;
     }
     for (int i = 0; i < 26; i++){
             if (a[i] != 0 && a[i] != 1){
                 k = 1;
             }
         }
     if (k == 1) {
         printf("no\n");
     }else{
         printf("yes\n");
     }
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |      gets(str);
      |      ^~~~
      |      getw
a.cc:8:31: error: 'strlen' was not declared in this scope
    8 |      for (int i = 0; i < (int)strlen(str); i++){
      |                               ^~~~~~
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>
#include<string.h>
int main()
{
	char s[24];
	int i,n,f=0;
	gets(s);
	n=strlen(s);
	for(i=0;i<=n;i++)
	{
	 if(s[i]==s[i+1]) f++;
	}
	if(f>=1) printf("no");
	else printf("yes");
}

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(s);
      |         ^~~~
      |         getw
Language: C++

#include<stdio.h>
#include<string.h>
int main()
{
	char s[24];
	int i,n,f=0;
	gets(s);
	n=strlen(s);
	for(i=0;i<n;i++)
	{
	 if(s[i]==s[i+1]) f++;
	}
	if(f>=1) printf("no");
	else printf("yes");
}

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(s);
      |         ^~~~
      |         getw
Language: C++

#include<stdio.h> 
#include<string.h>
int main()
{
  int n,j,k=0,i,l;
  char a[100];
  gets(a);
  n=strlen(a)-1;
  for(i=0;i<n;i++)
  for(j=i+1;j<=n+1;j++)
  {
   if(a[i]==a[j])l=1;
  }
if(l==1)
printf("no");
else printf("yes");
}

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

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
char count[100];
char str[1024];

int main()
{
    while(gets(str)){
        memset(count,0,sizeof(count));
        int len=(int)strlen(str);
        for(int i=0;i<len;i++){
            count[str[i]-'A']++;
        }
        for(int i=0;i<=57;i++)
            if(count[i]){
                if (count[i] != 1) {
                    printf("no\n");
                    return 0;
                }

            }
           printf("yes");  break;
    }

    return 0;
}

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

#include <stdio.h>
#include <string.h>)
int main(int argc, char *argv[])
{
	int i,n,j,k=0;
	char a[26],b[20];
	gets(a);
	n=strlen(a);
    for(i=0;i<n;i++)
    {
    	for(j=i+1;j<n;j++)
    	if(a[i]==a[j]) k=1;
    
    }
    if(k==1)
    printf("no");
    else printf("yes");
	
	

	return 0;
}

Compiler output:
a.cc:2:20: warning: extra tokens at end of #include directive
    2 | #include <string.h>)
      |                    ^
a.cc: In function 'int main(int, char**)':
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 <string.h>
int main()
{
	char a[27];
	int i, j, n;
	gets(a);
	n = strlen(a);
	for (i = 0; i < n; i++) {
		for (j = 0; j < n; j++) {
			if (i == j && a[i] == a[j])
				continue;
			else 
				if (a[i] == a[j]) {
					printf("no\n");
					goto fun;
				} 
		}
	}
	fun:;
	if (i == n && j == n)
		printf("yes\n");
	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<string.h>
int main()
{
	char s[26];
	int i,n,f=0;
	gets(s);
	n=strlen(s);
	for(i=0;i<n-1;i++)
	{
	 if(s[i]==s[i+1]) f++;
	}
	if(f>=1) printf("no");
	else printf("yes");
}

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(s);
      |         ^~~~
      |         getw
Language: C++

#include<stdio.h>
#include<string.h>
char s[100];
int S[55];
int main(){
	gets(s);
	int flag;
	int t = strlen(s);
	memset(S,0,sizeof(S));
	for(int i = 0;i < t;i++){
		if(s[i]=='a') S[0]++;
		if(s[i]=='b') S[1]++;
		if(s[i]=='c') S[2]++;
		if(s[i]=='d') S[3]++;
		if(s[i]=='e') S[4]++;
		if(s[i]=='f') S[5]++;
		if(s[i]=='g') S[6]++;
		if(s[i]=='h') S[7]++;
		if(s[i]=='i') S[8]++;
		if(s[i]=='j') S[9]++;
		if(s[i]=='k') S[10]++;
		if(s[i]=='l') S[11]++;
		if(s[i]=='m') S[12]++;
		if(s[i]=='n') S[13]++;
		if(s[i]=='o') S[14]++;
		if(s[i]=='p') S[15]++;
		if(s[i]=='q') S[16]++;
		if(s[i]=='r') S[17]++;
		if(s[i]=='s') S[18]++;
		if(s[i]=='t') S[19]++;
		if(s[i]=='u') S[20]++;
		if(s[i]=='v') S[21]++;
		if(s[i]=='w') S[22]++;
		if(s[i]=='x') S[23]++;
		if(s[i]=='y') S[24]++;
		if(s[i]=='z') S[25]++;
	}
	for(int j = 0;j <= 25;j++){
		if(S[j]>1){
			flag = 1;
			printf("no\n");
			break;
		}
		else{
			flag = 0;
		}
	}
	if(flag == 0){
		printf("yes\n");
	}
}

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++

	int s_len;
	int s_judge = 0;

	scanf("%s", s);

	s_len = strlen(s);

	if (2 <= s_len && s_len <= 26) {
		for (int i = 0; i < s_len; i++) {
			for (int j = i + 1; j < s_len; j++) {
				if (s[i] == s[j]) {
					printf("no\n");
					s_judge = 1;
					break;
				}
			}
			if (s_judge == 1) {
				break;
			}
		}
		if(s_judge == 0) {
			printf("yes\n");
		}
	}
}

Compiler output:
a.cc:4:14: error: expected constructor, destructor, or type conversion before '(' token
    4 |         scanf("%s", s);
      |              ^
a.cc:6:9: error: 's_len' does not name a type
    6 |         s_len = strlen(s);
      |         ^~~~~
a.cc:8:9: error: expected unqualified-id before 'if'
    8 |         if (2 <= s_len && s_len <= 26) {
      |         ^~
a.cc:25:1: error: expected declaration before '}' token
   25 | }
      | ^
Language: C++

#include<stdio.h>
#include<string.h>
int main()
{
	char s[26];
	int i,n,f=0;
	gets(s);
	n=strlen(s);
	for(i=0;i<n;i++)
	{
	 if(s[i]==s[i+1]) f++;
	}
	if(f>=1) printf("no");
	else printf("yes");
}

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(s);
      |         ^~~~
      |         getw
Language: C++

#include <stdio.h>
#include <string>
#include <iostream>
#include <algorithm>
#include <vector>

using namespace std; 

int n, a, b;

int main(void)
{
	bool ok = true;
	cin >> s;
	for (int i = 0; i < s.length(); i++)
	{
		int tmp = s[i] - 'a';
		
		if (a[tmp])
		{
			ok = false;
			break;
		}
		a[tmp]++;

	}
	if (ok)
		printf("yes\n");
	else
		printf("no\n");
	return false;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: 's' was not declared in this scope
   14 |         cin >> s;
      |                ^
a.cc:19:22: error: invalid types 'int[int]' for array subscript
   19 |                 if (a[tmp])
      |                      ^
a.cc:24:18: error: invalid types 'int[int]' for array subscript
   24 |                 a[tmp]++;
      |                  ^
Language: C++

#include<stdio.h>
#include<string.h>
int main()
{
	char s[30];
	int n,f=0;
	gets(s);
	n=strlen(s);
	for(i=0;i<n;i++)
	{
	 if(s[i]==s[i+1]) f++;
	}
	if(f>=1) printf("no");
	else printf("yes");
}

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(s);
      |         ^~~~
      |         getw
a.cc:9:13: error: 'i' was not declared in this scope
    9 |         for(i=0;i<n;i++)
      |             ^
Language: C++

#include<stdio.h>
#include<string.h>
int main()
{
	char s[30];
	int i,n,f=0;
	gets(s);
	n=strlen(s);
	for(i=0;i<n;i++)
	{
	 if(s[i]==s[i+1]) f++;
	}
	if(f>=1) printf("no");
	else printf("yes");
}

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(s);
      |         ^~~~
      |         getw
Language: C++

#include<stdio.h>
#include<string.h>
int main()
{
	char s[100];
	int i,n,f=0;
	gets(s);
	n=strlen(s);
	for(i=0;i<n;i++)
	{
	 if(s[i]==s[i+1]) f++;
	}
	if(f>=1) printf("no");
	else printf("yes");
}

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(s);
      |         ^~~~
      |         getw
Language: C++

#include<stdio.h>
#include<string.h>
char s[100];
int S[55];
int main(){
	gets(s);
	int flag;
	int t = strlen(s);
	for(int i = 0;i < t;i++){
		if(s[i]=='a') S[0]++;
		if(s[i]=='b') S[1]++;
		if(s[i]=='c') S[2]++;
		if(s[i]=='d') S[3]++;
		if(s[i]=='e') S[4]++;
		if(s[i]=='f') S[5]++;
		if(s[i]=='g') S[6]++;
		if(s[i]=='h') S[7]++;
		if(s[i]=='i') S[8]++;
		if(s[i]=='j') S[9]++;
		if(s[i]=='k') S[10]++;
		if(s[i]=='l') S[11]++;
		if(s[i]=='m') S[12]++;
		if(s[i]=='n') S[13]++;
		if(s[i]=='o') S[14]++;
		if(s[i]=='p') S[15]++;
		if(s[i]=='q') S[16]++;
		if(s[i]=='r') S[17]++;
		if(s[i]=='s') S[18]++;
		if(s[i]=='t') S[19]++;
		if(s[i]=='u') S[20]++;
		if(s[i]=='v') S[21]++;
		if(s[i]=='w') S[22]++;
		if(s[i]=='x') S[23]++;
		if(s[i]=='y') S[24]++;
		if(s[i]=='z') S[25]++;
		if(s[i]=='A') S[26]++;
		if(s[i]=='B') S[27]++;
		if(s[i]=='C') S[28]++;
		if(s[i]=='D') S[29]++;
		if(s[i]=='E') S[30]++;
		if(s[i]=='F') S[31]++;
		if(s[i]=='G') S[32]++;
		if(s[i]=='H') S[33]++;
		if(s[i]=='I') S[34]++;
		if(s[i]=='J') S[35]++;
		if(s[i]=='K') S[36]++;
		if(s[i]=='L') S[37]++;
		if(s[i]=='M') S[38]++;
		if(s[i]=='N') S[39]++;
		if(s[i]=='O') S[40]++;
		if(s[i]=='P') S[41]++;
		if(s[i]=='Q') S[42]++;
		if(s[i]=='R') S[43]++;
		if(s[i]=='S') S[44]++;
		if(s[i]=='T') S[45]++;
		if(s[i]=='U') S[46]++;
		if(s[i]=='V') S[47]++;
		if(s[i]=='W') S[48]++;
		if(s[i]=='X') S[49]++;
		if(s[i]=='Y') S[50]++;
		if(s[i]=='Z') S[51]++;
	}
	for(int j = 0;j <= 51;j++){
		if(S[j]>1){
			flag = 1;
			printf("no\n");
			break;
		}
		else{
			flag = 0;
		}
	}
	if(flag == 0){
		printf("yes\n");
	}
}

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 <iostream>
#include <string>
#include <vector>
using namespace std;

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

	for (int target = 0; target < s.size(); target++) {
		char c = s[target];
		for (int watched = 0; watched < s.size(); watched++) {
			char cc = s[watched];
			if (target != watched && c == cc) {
				cout << "No";
				return;
			}
		}
	}

	cout << "Yes";
}

Compiler output:
a.cc:6:1: error: '::main' must return 'int'
    6 | void main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:16:33: error: return-statement with no value, in function returning 'int' [-fpermissive]
   16 |                                 return;
      |                                 ^~~~~~
Language: C++

#include<stdio.h>
#include<string.h>
#include<algorithm>
using namespace std;
char s[100];
int S[55];
int main(){
	gets(s);
	int flag;
	int t = strlen(s);
	for(int i = 0;i < t;i++){
		if(s[i]=='a') S[0]++;
		if(s[i]=='b') S[1]++;
		if(s[i]=='c') S[2]++;
		if(s[i]=='d') S[3]++;
		if(s[i]=='e') S[4]++;
		if(s[i]=='f') S[5]++;
		if(s[i]=='g') S[6]++;
		if(s[i]=='h') S[7]++;
		if(s[i]=='i') S[8]++;
		if(s[i]=='j') S[9]++;
		if(s[i]=='k') S[10]++;
		if(s[i]=='l') S[11]++;
		if(s[i]=='m') S[12]++;
		if(s[i]=='n') S[13]++;
		if(s[i]=='o') S[14]++;
		if(s[i]=='p') S[15]++;
		if(s[i]=='q') S[16]++;
		if(s[i]=='r') S[17]++;
		if(s[i]=='s') S[18]++;
		if(s[i]=='t') S[19]++;
		if(s[i]=='u') S[20]++;
		if(s[i]=='v') S[21]++;
		if(s[i]=='w') S[22]++;
		if(s[i]=='x') S[23]++;
		if(s[i]=='y') S[24]++;
		if(s[i]=='z') S[25]++;
		if(s[i]=='A') S[26]++;
		if(s[i]=='B') S[27]++;
		if(s[i]=='C') S[28]++;
		if(s[i]=='D') S[29]++;
		if(s[i]=='E') S[30]++;
		if(s[i]=='F') S[31]++;
		if(s[i]=='G') S[32]++;
		if(s[i]=='H') S[33]++;
		if(s[i]=='I') S[34]++;
		if(s[i]=='J') S[35]++;
		if(s[i]=='K') S[36]++;
		if(s[i]=='L') S[37]++;
		if(s[i]=='M') S[38]++;
		if(s[i]=='N') S[39]++;
		if(s[i]=='O') S[40]++;
		if(s[i]=='P') S[41]++;
		if(s[i]=='Q') S[42]++;
		if(s[i]=='R') S[43]++;
		if(s[i]=='S') S[44]++;
		if(s[i]=='T') S[45]++;
		if(s[i]=='U') S[46]++;
		if(s[i]=='V') S[47]++;
		if(s[i]=='W') S[48]++;
		if(s[i]=='X') S[49]++;
		if(s[i]=='Y') S[50]++;
		if(s[i]=='Z') S[51]++;
	}
	for(int j = 0;j <= 51;j++){
		if(S[j]>1){
			flag = 1;
			printf("no\n");
			break;
		}
		else{
			flag = 0;
		}
	}
	if(flag == 0){
		printf("yes\n");
	}
}

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

#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
using namespace std;
char cc[30];
int main()
{
	int p;
	gets(cc);
	for (int i=0; i<=strlen(cc)-2; i++)
	{
		for (int j=i+1; j<=strlen(cc)-1; j++)
		{
			if (cc[i]==cc[j]) 
			{
				p=21;
				break;
			}
		}
		if (p==21) break;
	}
	if (p==21) cout<<"no"; else cout<<"yes";
}

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

#include <stdio.h>
#include <string.h>
int main()
{
     char count[30];
     char str[30];;
    while(gets(str)){
        memset(count,0,sizeof(count));
        int len=(int)strlen(str);
        for(int i=0;i<len;i++){
            count[str[i]-'A']++;
        }
        for(int i=0;i<=57;i++)
            if(count[i]){
                if (count[i] != 1) {
                    printf("no\n");
                    return 0;
                }

            }
        printf("yes");
    }
}

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

#include <stdio.h>
#include <string.h>
int main()
{
    char count[100];
    char str[1024];
    while(gets(str)){
        memset(count,0,sizeof(count));
        int len=(int)strlen(str);
        for(int i=0;i<len;i++){
            count[str[i]-'A']++;
        }
        for(int i=0;i<=57;i++)
            if(count[i]){
                if (count[i] != 1) {
                    printf("no\n");
                    return 0;
                }

            }
        printf("yes");
    }
}

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

#include<stdio.h>
#include<string.h>
int main()
{
char s[27];int i,l,j,k=1;
gets(s);
l=strlen(s);
for(i=0;i<l-1;i++)
{for(j=i+1;j<l;j++)
{
	if(s[i]==s[j])k=0;
}

}
if(k==1)printf("yes");
else printf("no");
}

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

#include<stdio.h>
#include<string.h>
int main()
{
char s[27];int i,l,j,k=1;
gets(s);
l=strlen(s);
for(i=0;i<l-1;i++)
{for(j=i+1;j<l;j++)
{
	if(s[i]==s[j])k=0;
}

}
if(k=1)printf("yes");
else printf("no");
}

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

#include<stdio.h>
#include<string.h>
int main()
{
char s[27];int i,l,j,k=1;
gets(s);
l=strlen(s);
for(i=0;i<l-1;i++)
{for(j=i+1;j<l;j++)
{
	if(s[i]==s[j])k=0;
}

}
if(k)printf("yes");
else printf("no");
}

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

#include <stdio.h>
#include <string.h>
int main ()
{
   int n,j,k,i,l;
   char a[100];
	gets(a);
	n=strlen(a)-1;
	for(i=0;i<n;i++)
	 for(j=0;j<n-i;j++)
	  {if(a[i]==a[j])printf("yes");
      else printf("no");}
	
}

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 <string.h>

bool cnt[128] = {0};

int main(void)
{
    bool flag = false;
    char str[32];
    gets(str);
    for (int i = 0; i < 32; i++) {
        if (str[i] == '\0') break;
        if (cnt[str[i]]) {
            flag = true;
            break;
        }
        else
            cnt[str[i]] = true;
    }
    if (flag) printf("no\n");
    else printf("yes\n");
    return 0;
}


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

#include <stdio.h>

int main(){
  int i, j, out=0;
  char s[30];
  scanf("%s", s);
  for(i=0;s[i]!='¥0';i++){
    for(j=1;s[j]!='¥0'j++){
      if(s[i]==s[j]){
        out=1;
      }
    }
  }
  if(out==1){
    printf("no\n");
  }else if(out==0){
    printf("yes\n");
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:17: warning: multi-character character constant [-Wmultichar]
    7 |   for(i=0;s[i]!='¥0';i++){
      |                 ^~~~
main.c:8:19: warning: multi-character character constant [-Wmultichar]
    8 |     for(j=1;s[j]!='¥0'j++){
      |                   ^~~~
main.c:8:23: error: expected ';' before 'j'
    8 |     for(j=1;s[j]!='¥0'j++){
      |                       ^
      |                       ;
Language: C++

#include<stdio.h>
#include<string.h>
int main()
{
    char a[26];int i,t=0;
    gets(a);
    for(i=0;i<strlen(a);i++)
    {
        if(a[i]==a[i+1]) t=1;
    }
    if(t==1) printf("no");
    else printf("yes");
}

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

#include<stdio.h>
#include<string.h>
int main()
{
    char a[100];int i,j,t=0;
    gets(a);
    for(i=0;i<strlen(a);i++)
    {
        if(a[i]==a[i+1]) t=1;
    }
    if(t==1) printf("no");
    else printf("yes");
}

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

#include<map>
#include<cmath>
#include<queue>
#include<cstdio>
#include<string>
#include<cstring>
#include<iostream>
#include<algorithm>
using namespace std;

char s[30];
map<char,int>q;

int main()
{
    gets(s);
    int len=strlen(s);
    for(int i=0;i<len;i++)
    {
        if(q[s[i]]==0)q[s[i]]=1;
        else
        {
            printf("no");
            exit(0);
        }
    }
    printf("yes");
    return 0;
}


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

#include<stdio.h>
#include<string.h>
int num[200];
int main(){
	char a[50];
	while(gets(a)){
		memset(num,0,sizeof(num));
		int s=strlen(a),i,g;
		for(i=0;i<s;i++){
			g=a[i]-'a';
			num[g]++;
		}
		int flag=0;
		for(i=0;i<=26;i++){
			if(num[i]>1){
				flag=1;
				break;
			}
		}
		if(flag==0)
			printf("yes\n");
		else
			printf("no\n");
	}
	return 0;
}

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

#include<stdio.h>
int main()
{
	char s[27];
	int t,t1;
	gets(s);
	for(t=0;s[t]!='\0';t++)
	{
		for(t1=t+1;s[t1]!='\0';t1++)
		{
			if(s[t] == s[t1])
			{
				printf("no\n");
				return 0;
			}
		}
	}
	printf("yes\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<vector>
#include<list>
#include<set>
#include<map>
#include<queue>
#include<deque>
#include<stack>
#include<bitset>
#include<algorithm>
#include<functional>
#include<numeric>
#include<utility>
#include<sstream>
#include<iostream>
#include<iomanip>
#include<cstdio>
#include<cstdlib>
#include<cmath>
#include<cctype>
#include<string>
// }}}
/* {{{
#include<cstring>
#include<ctime>
#include<ncurses.h>
#include<tuple>
}}}  */

using namespace std;

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s; cin >> s;
  int counter[27] = {0};
  for(int i = 0; i < s.length; ++i)
    counter[s[i] - 'a']++;
  int no = false;
  for(int i = 0; i < sizeof(counter)/sizeof(*counter); ++i)
    if( counter[i] > 1 )
      no = true;
  cout << no? "no": "yes" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:24: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   37 |   for(int i = 0; i < s.length; ++i)
      |                      ~~^~~~~~
      |                              ()
a.cc:43:27: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
   43 |   cout << no? "no": "yes" << endl;
      |                     ~~~~~~^~~~~~~
Language: C++

#include <iostream>
#include <string>
#include <string.h>
using namespace std;
int main(){
  string str;
  cin >> str;
  for(int i = 0; i < str.size(); i++){
    if(strstr(str, str[i]) != NULL){
      cout << "yes";
    }else{
      cout << "no";
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: no matching function for call to 'strstr(std::string&, __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&)'
    9 |     if(strstr(str, str[i]) != NULL){
      |        ~~~~~~^~~~~~~~~~~~~
In file included from a.cc:3:
/usr/include/string.h:330:14: note: candidate: 'char* strstr(char*, const char*)'
  330 | extern char *strstr (char *__haystack, const char *__needle)
      |              ^~~~~~
/usr/include/string.h:330:28: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char*'
  330 | extern char *strstr (char *__haystack, const char *__needle)
      |                      ~~~~~~^~~~~~~~~~
/usr/include/string.h:332:20: note: candidate: 'const char* strstr(const char*, const char*)'
  332 | extern const char *strstr (const char *__haystack, const char *__needle)
      |                    ^~~~~~
/usr/include/string.h:332:40: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
  332 | extern const char *strstr (const char *__haystack, const char *__needle)
      |                            ~~~~~~~~~~~~^~~~~~~~~~
Language: C++

#include <bits/stdc++.h>

#define ln "\n"
#define SORT(X) sort(X.begin(), X.end())
#define SORTi(X) sort(X.begin(), X.end(), greater<ll>())
#define REP(x, a, b) for (auto x = a; x <= b; x++)
#define REPi(x, b, a) for (auto x = b; x >= a; x--)
#define REPit(x, A) for (auto x = A.begin(); x != A.end(); x++)
#define REPr(x, A) for (auto x : A)
#define ll long long
#define ull unsigned long long
#define PB push_back
#define EB emplace_back
#define UMP unordered_map
#define UST unordered_set

using namespace std;

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(NULL);

    ll N = 0;
    cin >> N;
    ll sum = 0;
    vector<ll> A(N);
    REP(i, 0, N - 1)
    {
        cin >> A[i];
        sum = sum + A[i];
    }
    SORT(A);
    if (sum % 10 == 0)
    {
        REP(i, 0, N-1)
        {
            if (A[i] % 10 != 0)
            {
                sum = sum - A[i];
                cout<<sum;
                return;
            }
        }
    }
    if (sum % 10 == 0)
        cout << 0 << ln;
    else
        cout << sum << ln;
    return 0;
}

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

#include<bits/stdc++.h>
#include<atcoder/all>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using namespace atcoder;
using ll = long long;
using p = pair<int,int>;
const long long INF = 1ll << 60;


int main() {
  int N; cin >> N;
  int haiten[N];
  rep(i,N){
    cin >> haiten[i];
  }

  ll ans = 0;
  rep(bit,(1<<N)){

    ll sum = 0;
    rep(i,N){
      if (bit & (1<<i)) sum += haiten[i];
    }
    if (sum%10 == 0) sum = 0;
    ans = max(ans,sum);
}

  cout << ans << endl;
	return 0;
}



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

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

int main(void){
  int n;
  cin>>n;
  
  vector<int>data(n);
  for(int i=0;i<n;i++){
   cin>>data.at(i); 
  }
  
  sort(data.begin(),data.end());
  
  int ans=0;
  
  for(int i=0;i<n;i++){
    ans+=data.at(i); 
  }
  
  if(ans%10==0){
   for(int i=0;i<n;i++){
    if(ans-data.at(i)%10!=0){
      ans-=data.at(i);
      break;
    }
   }
  }
  
  if(ans%10!=0)cout<<ans<<endl;
  else cout<<'0'<<endl;
  
  return 0;
}

Compiler output:
a.cc:3:2: error: invalid preprocessing directive #incldue; did you mean #include?
    3 | #incldue <algorithm>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:15:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   15 |   sort(data.begin(),data.end());
      |   ^~~~
      |   short
Language: C++

#include<bits/stdc++.h>
#define int long long
/* #define double long double */
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define repa(i, s, n) for(int i = s; i < (int)n; i++)
#define MOD 1000000007
using namespace std;
using ll = long long;
typedef vector<int> vi;
typedef pair<int, int> P;
#define rrep(i,a,b) for(int i=a;i>=b;i--)
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }

signed main(){
    int n;
    cin >> n;
    vi s(n);
    rep(i, n){
        cin >> s[i];
    }
    sort(s.begin(), s.end());
    int ans = 0;
    rep(i, n){
        ans += s[i];
        /* cout << s[i] << endl; */
    }
    int idx = 0;
    while(ans % 10 == 0){
        ans -= s[idx++];
    }
    cout << max(ans, 0) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:16: error: no matching function for call to 'max(long long int&, int)'
   32 |     cout << max(ans, 0) << endl;
      |             ~~~^~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 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:32:16: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   32 |     cout << max(ans, 0) << endl;
      |             ~~~^~~~~~~~
/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:
/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:32:16: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   32 |     cout << max(ans, 0) << endl;
      |             ~~~^~~~~~~~
Language: C++

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

int main() {
    cin.tie(nullptr);
    ios_base::sync_with_stdio(false);

    int n;
    cin >> n;

    vector<int> s(n);
    vector<int> not_ten
    int sum = 0;
    rep(i,n) {
        cin >> s[i];
        if(s[i] % 10 != 0) not_ten.emplace_back(s[i]);
        sum += s[i];
    }

    if((int)not_ten.size() == 0) {
        cout << 0 << endl;
        return 0;
    }
    else {
        sort(not_ten.begin(), not_ten.end());
        sum -= not_ten[0];
    }


    cout << sum << endl;
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: expected initializer before 'int'
   16 |     int sum = 0;
      |     ^~~
a.cc:19:28: error: 'not_ten' was not declared in this scope
   19 |         if(s[i] % 10 != 0) not_ten.emplace_back(s[i]);
      |                            ^~~~~~~
a.cc:20:9: error: 'sum' was not declared in this scope
   20 |         sum += s[i];
      |         ^~~
a.cc:23:13: error: 'not_ten' was not declared in this scope
   23 |     if((int)not_ten.size() == 0) {
      |             ^~~~~~~
a.cc:29:9: error: 'sum' was not declared in this scope
   29 |         sum -= not_ten[0];
      |         ^~~
a.cc:33:13: error: 'sum' was not declared in this scope
   33 |     cout << sum << endl;
      |             ^~~
Language: C++

#include <bits/stdc++.h>
#define local
#ifdef local
#include "dbg-macro/dbg.h"
#endif
#define ll long long
#define pi (acos(-1))
#define rep(i, n) for (unsigned long long i = 0; i < (unsigned long long)(n); ++i)
using namespace std;
std::vector<unsigned ll> genprimevec(const unsigned ll N);

int main()
{
    int n;

    cin >> n;
    vector<int> s(n, 0);
    rep(i, n) { cin >> s[i]; }
    sort(s.begin(), s.end(), [](int l, int r) { return l > r; });
    int sum = accumulate(s.begin(), s.end(), 0);
    if (sum % 10 != 0)
    {
        cout << sum << endl;
        return 0;
    }
    rep(i, s.size())
    {
        if ((sum - s[s.size() - i - 1]) % 10 != 0)
        {
            cout << sum - s[s.size() - i - 1] << endl;
            return 0;
        }
    }


    cout << 0 << endl;
    return 0;
}

/*author  https://qiita.com/drken/items/0c88a37eec520f82b788*/
ll extgcd(ll a, ll b, ll &x, ll &y)
{
    if (b == 0)
    {
        x = 1, y = 0;
        return a;
    }
    ll d = extgcd(b, a % b, y, x);
    y -= a / b * x;
    return d;
}


std::vector<unsigned ll> genprimevec(const unsigned ll N)
{
    std::vector<bool> is_prime(N + 1);
    for (unsigned ll i = 0; i <= N; i++) { is_prime[i] = true; }
    std::vector<unsigned ll> P;
    for (unsigned ll i = 2; i <= N; i++)
    {
        if (is_prime[i])
        {
            for (unsigned ll j = 2 * i; j <= N; j += i) { is_prime[j] = false; }
            P.emplace_back(i);
        }
    }
    return P;
}


Compiler output:
a.cc:4:10: fatal error: dbg-macro/dbg.h: No such file or directory
    4 | #include "dbg-macro/dbg.h"
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, c) for (int i = 0; i < (int)c; i++)
int main()
{
	int n;
	scanf("%d", &n);
	vector<int> s(n);
	int sum = 0;
	rep(i, n) {
		scanf("%d", &s[i]);
		sum += s[i];
	}
	if(ans % 10 == 0) {
		sort(s.begin(), s.end());
		rep(i, n) {
			if (s[i] % 10) { //s[i]が10の倍数でなければ
				sum -= s[i];
			}
		}
	}
	if(sum % 10 == 0) sum = 0;
	printf("%d\n", sum);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: 'ans' was not declared in this scope; did you mean 'abs'?
   14 |         if(ans % 10 == 0) {
      |            ^~~
      |            abs
Language: C++

#include <bits/stdc++.h>
#define F first
#define S second
using namespace std;
using ll = long long;
typedef pair<int, int> P;
ll Mod = 1000000007;
int main() {
  int N;
  cin >> N;
  int s[N];
  int sum = 0;
  for (int i = 0; i < N; i++) {
    cin >> s[i];
    sum += s[i];
  }
  sort(s,s+N);
  if (sum % 10 != 0) {
    cout << sum << endl;
  } else {
    int mi = -1;
    for (int i = 0; i < N i++) {
      if (s[i] % 10 != 0) {
        mi = i;
        break;
      }
    }
    if (mi == -1) {
      cout << 0 << endl;
    } else {
      cout << sum - s[mi] << endl;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:26: error: expected ';' before 'i'
   22 |     for (int i = 0; i < N i++) {
      |                          ^~
      |                          ;
Language: C++

#include <ext/pb_ds/assoc_container.hpp>
#define ll long long
#define bp  __builtin_popcount
#define pb push_back
#define loop(i,n) for(int i = 0;i < int(n);i++)
#define sz(s) (int)(s.size())
#define all(x) x.begin(), x.end()
#define allr(x) x.rbegin(), x.rend()
#define setdp memset(dp,-1,sizeof(dp))
#define fr first
#define sc second
#define NumofDigits(n)   ((long long)log10(n)+1)
using namespace std;
using namespace __gnu_pbds;
typedef tree<int,null_type,less<int>,rb_tree_tag, tree_order_statistics_node_update> indexed_set;
const int maxn=2e6+5;
const  double EPS = 1e-9;
const int MOD = 1e9+7;
/*
ll gcd(ll a, ll b) { return !b ? a : gcd(b, a % b); }
ll lcm(ll a, ll b) { return (a / gcd(a, b)) * b; }
ll fastpow(ll b, ll p)
{if(!p)return 1;ll ret = fastpow(b, p >> 1);ret *= ret;if(p&1)ret*= b;return ret;}
int dx[] = {- 1, 0, 0, 1, 0 };
int dy[] = { 0,- 1, 1, 0, 0 };*/
inline void File()
{
#ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin);
#endif
}

int main()
{
    ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0);
    int n,sum=0;
    cin>>n;
    vector<int>v;
    for(int i=0; i<n; i++)
    {
        int x;
        cin>>x;
        if(x%10!=0)
            v.pb(x);
        sum+=x;
    }
    if(sz(v)&&sum%10==0)
        return  cout<<0<<endl,0;
    if(sum%10==0)
        sum-=*min_element(all(v));

    cout<<sum<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:35:34: error: 'cin' was not declared in this scope
   35 |     ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0);
      |                                  ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <ext/pb_ds/assoc_container.hpp>
  +++ |+#include <iostream>
    2 | #define ll long long
a.cc:35:45: error: 'cout' was not declared in this scope
   35 |     ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0);
      |                                             ^~~~
a.cc:35:45: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:48:26: error: 'endl' was not declared in this scope
   48 |         return  cout<<0<<endl,0;
      |                          ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <ext/pb_ds/assoc_container.hpp>
  +++ |+#include <ostream>
    2 | #define ll long long
a.cc:52:16: error: 'endl' was not declared in this scope
   52 |     cout<<sum<<endl;
      |                ^~~~
a.cc:52:16: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  bool F=false;
  long long M=0;
  long long L=100;
  cin>>N;
  vector<int>vec(N);
  for(int X=0;X<N;X++){
    cin>>vec.at(X);
    M+=vec.at(X);
    if(vec.at(X)%10!=0 && L>vec.at(X){
      L=vec.at(X);
      bool F=true;
    }
  }
  if(M%10!=0){
    cout<<M<<endl;
  }
  else if(F==false){
    cout<<0<<endl;
  }
  else{
    cout<<M-L<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:38: error: expected ')' before '{' token
   14 |     if(vec.at(X)%10!=0 && L>vec.at(X){
      |       ~                              ^
      |                                      )
a.cc:18:3: error: expected primary-expression before '}' token
   18 |   }
      |   ^
Language: C++

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

int main(void)
{
    int N;
    cin >> N;
    vector<int> s(N);
    vector<vector<int>> dig1s(10, vector<int>(0));

    int sum = 0;
    for(int i = 0; i < N; i++){
        cin >> s[i];
        sum += s[i];
        dig1s[s[i]%10].push_back(s[i]);
    }

    bool isSumZero = true;
    vector<int> diffs(6, 0);
    for(int i = 1; i < 6; i++){
        int diff = 0;
        if(i != 5){
            diff = (int) abs(dig1s[i].size() - dig1s[10-i].size());
        } else {
            diff = dig1s[i].size();
        }
        diffs[i] = diff;

        if(diff % 2 != 0) isSumZero = false;
    }
    
    vector<int> mins(0);
    if(isSumZero){
        for(int i = 1; i < 6; i++){
            if(diffs[i] % 2 == 0 && dig1s[i].size() > 0){
                int min_l = *min_element(dig1s[i].begin(), dig1s[i].end());
                int min_r = *min_element(dig1s[10-i].begin(), dig1s[10-i].end());
                mins.push_back((int) min(min_l, min_r));
            }
        }

        if(mins.size() > 0){
            sum -= *min_element(mins.begin(), mins.end());
        }
    }

    cout << ((sum % 10 == 0) ? 0 : sum) << endl;
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:29: error: call of overloaded 'abs(std::vector<int>::size_type)' is ambiguous
   23 |             diff = (int) abs(dig1s[i].size() - dig1s[10-i].size());
      |                          ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42,
                 from a.cc:1:
/usr/include/stdlib.h:980:12: note: candidate: 'int abs(int)'
  980 | extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
      |            ^~~
In file included from /usr/include/c++/14/cstdlib:81:
/usr/include/c++/14/bits/std_abs.h:137:3: note: candidate: 'constexpr __float128 std::abs(__float128)'
  137 |   abs(__float128 __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:85:3: note: candidate: 'constexpr __int128 std::abs(__int128)'
   85 |   abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:79:3: note: candidate: 'constexpr long double std::abs(long double)'
   79 |   abs(long double __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:75:3: note: candidate: 'constexpr float std::abs(float)'
   75 |   abs(float __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:71:3: note: candidate: 'constexpr double std::abs(double)'
   71 |   abs(double __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:61:3: note: candidate: 'long long int std::abs(long long int)'
   61 |   abs(long long __x) { return __builtin_llabs (__x); }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:56:3: note: candidate: 'long int std::abs(long int)'
   56 |   abs(long __i) { return __builtin_labs(__i); }
      |   ^~~
Language: C++

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

int main(void)
{
    int N;
    cin >> N;
    vector<int> s(N);
    vector<vector<int>> dig1s(10, vector<int>(0));

    int sum = 0;
    for(int i = 0; i < N; i++){
        cin >> s[i];
        sum += s[i];
        dig1s[s[i]%10].push_back(s[i]);
    }

    bool isSumZero = true;
    vector<int> diffs(6, 0);
    for(int i = 1; i < 6; i++){
        int diff = 0;
        if(i != 5){
            diff = abs(dig1s[i].size() - dig1s[10-i].size());
        } else {
            diff = dig1s[i].size();
        }
        diffs[i] = diff;

        if(diff % 2 != 0) isSumZero = false;
    }
    
    vector<int> mins(0);
    if(isSumZero){
        for(int i = 1; i < 6; i++){
            if(diffs[i] % 2 == 0 && dig1s[i].size() > 0){
                int min_l = *min_element(dig1s[i].begin(), dig1s[i].end());
                int min_r = *min_element(dig1s[10-i].begin(), dig1s[10-i].end());
                mins.push_back(min(min_l, min_r));
            }
        }

        if(mins.size() > 0){
            sum -= *min_element(mins.begin(), mins.end());
        }
    }

    cout << ((sum % 10 == 0) ? 0 : sum) << endl;
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:23: error: call of overloaded 'abs(std::vector<int>::size_type)' is ambiguous
   23 |             diff = abs(dig1s[i].size() - dig1s[10-i].size());
      |                    ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42,
                 from a.cc:1:
/usr/include/stdlib.h:980:12: note: candidate: 'int abs(int)'
  980 | extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
      |            ^~~
In file included from /usr/include/c++/14/cstdlib:81:
/usr/include/c++/14/bits/std_abs.h:137:3: note: candidate: 'constexpr __float128 std::abs(__float128)'
  137 |   abs(__float128 __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:85:3: note: candidate: 'constexpr __int128 std::abs(__int128)'
   85 |   abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:79:3: note: candidate: 'constexpr long double std::abs(long double)'
   79 |   abs(long double __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:75:3: note: candidate: 'constexpr float std::abs(float)'
   75 |   abs(float __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:71:3: note: candidate: 'constexpr double std::abs(double)'
   71 |   abs(double __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:61:3: note: candidate: 'long long int std::abs(long long int)'
   61 |   abs(long long __x) { return __builtin_llabs (__x); }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:56:3: note: candidate: 'long int std::abs(long int)'
   56 |   abs(long __i) { return __builtin_labs(__i); }
      |   ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 int main(){
      int n;
      cin >> n;
      vector<int> s(n);
      int ans=0;
      for(int i=0;i<n;i++){
          cin >> s.at(i);
        ans+=s.at(i);
      }
      sort(s.begin(),s.end());
      for(int i=0;i<n;i++){
        
        if(ans%10!=0){
          cout << ans << endl;
       break;
        }
        if(s.at(i)%10!=0){
        ans-=s.at(i);
        cout << ans << endl;
        break;
        }
        }
      }
      if(ans%10==0){
          cout << 0 << endl;
      }

      return 0;
 }

Compiler output:
a.cc:26:7: error: expected unqualified-id before 'if'
   26 |       if(ans%10==0){
      |       ^~
a.cc:30:7: error: expected unqualified-id before 'return'
   30 |       return 0;
      |       ^~~~~~
a.cc:31:2: error: expected declaration before '}' token
   31 |  }
      |  ^
Language: C

#include <iostream>
#include <string>
#include <queue>
#include <vector>
#include <algorithm>
#include <math.h>
#include <map>
#include <iomanip>
#include <queue>
#include <numeric>

using namespace std;

int main() {
	
	int N, sum = 0;
	cin >> N;
	vector<int> s(N);

	for (int i = 0; i < N; i++) {
		cin >> s[i];
		sum += s[i];
	}

	sort(s.begin(), s.end());

	int i = 0;

	while (i != N) {
		if (sum % 10 != 0) {
			break;
		}
		else {
			if (s[i] % 10 != 0) {
				sum -= s[i];
				break;
			}
			else {
				i++;
				if (i == N) {
					sum = 0;
					break;
				}
			}
		}
	}

	cout << sum;

	return 0;
}


Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

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

int main(){
  int n;
  cin >> n;
  int k=0;
  int s=100000;
  for(int i=0;i<n;i++){
    int x;
    cin >> x;
    k+=x;
    if(x%10!=0) s=smin(s,x);
  }
  if(k%10!=0) cout << k << endl;
  else cout << k-s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:19: error: 'smin' was not declared in this scope; did you mean 'sin'?
   13 |     if(x%10!=0) s=smin(s,x);
      |                   ^~~~
      |                   sin