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

#include <iostream>

using namespace std;

int main{
    int a, b;
    cin >> a >> b;
    if(a + b > 9){
        cout << "error" << endl;
    } else {
        cout << a+b << endl;
    }

}

Compiler output:
a.cc:5:5: error: cannot declare '::main' to be a global variable
    5 | int main{
      |     ^~~~
a.cc:6:5: error: expected primary-expression before 'int'
    6 |     int a, b;
      |     ^~~
a.cc:6:5: error: expected '}' before 'int'
a.cc:5:9: note: to match this '{'
    5 | int main{
      |         ^
a.cc:7:5: error: 'cin' does not name a type
    7 |     cin >> a >> b;
      |     ^~~
a.cc:8:5: error: expected unqualified-id before 'if'
    8 |     if(a + b > 9){
      |     ^~
a.cc:10:7: error: expected unqualified-id before 'else'
   10 |     } else {
      |       ^~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++


int main(){
  int A,B;
  scanf("%d%d",A,B);
  if(A+B>=10){
    printf("error");
  }else{
    printf("%d",A+B);
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'scanf' was not declared in this scope
    4 |   scanf("%d%d",A,B);
      |   ^~~~~
a.cc:6:5: error: 'printf' was not declared in this scope
    6 |     printf("error");
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | 
a.cc:8:5: error: 'printf' was not declared in this scope
    8 |     printf("%d",A+B);
      |     ^~~~~~
a.cc:8:5: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

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

int main() {
  int max_str_size = 26;
  char input_str[max_str_size];
  cin >> input_str;

  for(int i = 0 ; i < max_str_size ; i++) {
    for(int j = 1 ; j < max_str_size ; j++ ) {
      if (input_str[i] === input_str[j]) {
        cout << "yes" << endl;
        return 0;
      }
    }
  }

  cout << "no" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:26: error: expected primary-expression before '=' token
   12 |       if (input_str[i] === input_str[j]) {
      |                          ^
Language: Java

import java.io.*;
import java.util.*;
import java.lang.Math.*;

public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.solve(args);
    }

    public void solve(String[] args) {
        int[][] g =
            {
                {1, 3, 5, 7, 8, 10, 12},
                {4, 6, 9, 11},
            };
        MyScanner scanner = new MyScanner();
        int x = scanner.nextInt();
        int y = scanner.nextInt();

        for (int i = 0; i < 2; i++) {
            boolean findX = false;
            boolean findY = false;
            for (int j = 0; i < g[i].length; l++) {
                if (g[i][l] == x) findX = true;
                if (g[i][l] == y) findY = true;
            }
            if (findX && findY) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }

    private class MyScanner {
        String[] s;
        int i;
        BufferedReader br;
        String reg = " ";

        MyScanner () {
            s = new String[0];
            i = 0;
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        public String next() throws IOException {
            if (i < s.length) return s[i++];
            String line = br.readLine();
            while (line.equals("")) {
                line = br.readLine();
            }
            s = line.split(reg, 0);
            i = 0;
            return s[i++];
        }

        public int nextInt() {
            try {
                return Integer.parseInt(next());
            } catch (Exception e) {
                e.printStackTrace();
            }
            return -1;
        }

        public double nextDouble() {
            try {
                return Double.parseDouble(next());
            } catch (Exception e) {
                e.printStackTrace();
            }
            return -1;
        }

        public long nextLong()  {
            try {
                return Long.parseLong(next());
            } catch (Exception e) {
                e.printStackTrace();
            }
            return -1;
        }
    }
}


Compiler output:
Main.java:24: error: cannot find symbol
            for (int j = 0; i < g[i].length; l++) {
                                             ^
  symbol:   variable l
  location: class Main
Main.java:25: error: cannot find symbol
                if (g[i][l] == x) findX = true;
                         ^
  symbol:   variable l
  location: class Main
Main.java:26: error: cannot find symbol
                if (g[i][l] == y) findY = true;
                         ^
  symbol:   variable l
  location: class Main
3 errors
Language: C++

#include<iostream>


int main()
{
	using namespace std;
	int a,b;
	cin>>a>>b;
	if(a+b<10)
	cout<<a+b<<\n;
	
	else
	cout<<"error"<<\n;
	
	
	return 0;
}


Compiler output:
a.cc:10:20: error: stray '\' in program
   10 |         cout<<a+b<<\n;
      |                    ^
a.cc:13:24: error: stray '\' in program
   13 |         cout<<"error"<<\n;
      |                        ^
a.cc: In function 'int main()':
a.cc:10:21: error: 'n' was not declared in this scope
   10 |         cout<<a+b<<\n;
      |                     ^
a.cc:13:25: error: 'n' was not declared in this scope
   13 |         cout<<"error"<<\n;
      |                         ^
Language: C

#include <stdio.h>

int main(void)
{
	int A,B,sum;
	do{
	printf("整数を入力してさい\n")
	scanf("%d %d",&A,&B);
	}while(A < 1 || 9 < B);
	
	sum = A + B;
	
	if(sum>=10){
		printf("error\n");
	}else{
		printf("%d\n",sum);
	}
	
	return 0;
	
}

Compiler output:
main.c: In function 'main':
main.c:7:39: error: expected ';' before 'scanf'
    7 |         printf("整数を入力してさい\n")
      |                                       ^
      |                                       ;
    8 |         scanf("%d %d",&A,&B);
      |         ~~~~~
Language: C++

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

int main(){
itn a,b;
cin>>a>>b;
if(a+b>9)cout<<"error"<<endl;
else cout<<a+b<<endl;	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'itn' was not declared in this scope; did you mean 'int'?
    5 | itn a,b;
      | ^~~
      | int
a.cc:6:6: error: 'a' was not declared in this scope
    6 | cin>>a>>b;
      |      ^
a.cc:6:9: error: 'b' was not declared in this scope
    6 | cin>>a>>b;
      |         ^
Language: C

    #include<stdio.h>
    #include<string.h>
    int judgestr(char str[],int len)
    {
      int i,n;
      for(n = 0;n<len-1;n++)
        for(i=n+1;i<len;i++)
          if(str[n] - str[i] == 0)
            return 1;
      return 0;
    }
     
    int main()
    {
      char str[27];
      fgets(str,2７,stdin);
      if(str[strlen(str)-1] == '\n')
        str[strlen(str)-1] = '\0';
      if(judgestr(str,strlen(str)) == 0)
        printf("yes\n");
      else
        printf("no\n");
      return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:16:17: error: invalid suffix "７" on integer constant
   16 |       fgets(str,2７,stdin);
      |                 ^~~
Language: C++

int main() {

	
	int A, B, result;

	cin >> A >> B;

	result = A + B;

	if (result >= 10) { cout << "error" << endl; }
	else { cout << result << endl; }

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> A >> B;
      |         ^~~
a.cc:10:29: error: 'cout' was not declared in this scope
   10 |         if (result >= 10) { cout << "error" << endl; }
      |                             ^~~~
a.cc:10:48: error: 'endl' was not declared in this scope
   10 |         if (result >= 10) { cout << "error" << endl; }
      |                                                ^~~~
a.cc:11:16: error: 'cout' was not declared in this scope
   11 |         else { cout << result << endl; }
      |                ^~~~
a.cc:11:34: error: 'endl' was not declared in this scope
   11 |         else { cout << result << endl; }
      |                                  ^~~~
Language: C++

#include<bits/stdc++.h>

int main(){

    int a,b;6
    scanf("%d%d",&a,&b);
    if(a+b>=10)
        printf("error\n");
    else
        printf("%d\n",a+b);


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: expected ';' before 'scanf'
    5 |     int a,b;6
      |              ^
      |              ;
    6 |     scanf("%d%d",&a,&b);
      |     ~~~~~
Language: C++

using System;
using System.Linq;

namespace AtCoder
{
    class _063A
    {
        static void Main()
        {
            int num = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).Sum();
            Console.WriteLine(num >= 10 ? "error" : num.ToString());
        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Linq;
      |       ^~~~~~
a.cc:13:6: error: expected ';' after class definition
   13 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void AtCoder::_063A::Main()':
a.cc:10:23: error: 'Console' was not declared in this scope
   10 |             int num = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).Sum();
      |                       ^~~~~~~
a.cc:10:60: error: 'x' was not declared in this scope
   10 |             int num = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).Sum();
      |                                                            ^
a.cc:10:63: error: expected primary-expression before '>' token
   10 |             int num = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).Sum();
      |                                                               ^
a.cc:10:65: error: expected primary-expression before 'int'
   10 |             int num = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).Sum();
      |                                                                 ^~~
a.cc:11:57: error: request for member 'ToString' in 'num', which is of non-class type 'int'
   11 |             Console.WriteLine(num >= 10 ? "error" : num.ToString());
      |                                                         ^~~~~~~~
Language: C++

print("Problem A begin")
A, B = map(int,input().split())

if A+B>=10:
    print("error")
else:
    print(A+B)

print("Problem A end")

Compiler output:
a.cc:1:6: error: expected constructor, destructor, or type conversion before '(' token
    1 | print("Problem A begin")
      |      ^
Language: C++

#include <iostream>

using namespace std;

int main(){
	int A, B;
	cin >> A >> B;
	cout << (A + B >= 10) ? "error" : A + B << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:49: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |         cout << (A + B >= 10) ? "error" : A + B << endl;
      |                                           ~~~~~~^~~~~~~
Language: C++

def solve():
    a,b=map(int,input().split())
    if a+b>=10:
        print("error")
    else:
        print(a+b)

if __name__ == "__main__":
    solve()

Compiler output:
a.cc:1:1: error: 'def' does not name a type
    1 | def solve():
      | ^~~
Language: C++

open Printf
open Scanf

let () =
  let solve a b =
    let x = a + b in
    if x >= 10 then "error" else x |> string_of_int in
  scanf "%d %d\n" solve |> printf "%s\n"



Compiler output:
a.cc:1:1: error: 'open' does not name a type
    1 | open Printf
      | ^~~~
Language: C++

asdfjklasdilfasdjkkasdjfkjlasdjkflasdkjlfkjasldfkjlaseiuruaasdfsadfasdfasedfasdf

Compiler output:
a.cc:1:1: error: 'asdfjklasdilfasdjkkasdjfkjlasdjkflasdkjlfkjasldfkjlaseiuruaasdfsadfasdfasedfasdf' does not name a type
    1 | asdfjklasdilfasdjkkasdjfkjlasdjkflasdkjlfkjasldfkjlaseiuruaasdfsadfasdfasedfasdf
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <stdio.h>
#include <string.h>
 
int main()
{
	char s[30];
	int a[26]={0};
//	scanf("%s",s);
        gets(s);
	int n=strlen(s);
	for(int i=0;i<n;i++)
		a[s[i]-'a']++;
	int dif=0;
	for(int i=0;i<26;i++)
		if(a[i]>1){
			dif=1;	break;
		}	
	if(dif==0)
		printf("yes");
	else
		printf("no");
	return 0; 
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b;
	cin>>a>>b;
	c=a+b;
	if(c>=10) cout<<"error";
	else cout<<c;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'c' was not declared in this scope
    6 |         c=a+b;
      |         ^
Language: C++

import java.util.Scanner

fun main(args: Array<String>) {
  val cin = Scanner(System.`in`)
  val a = cin.nextInt()
  val b = cin.nextInt()

  if (a + b in 0..9) {
    println(a + b)
  } else {
    println("error")
  }

  cin.close()
}

Compiler output:
a.cc:4:28: error: stray '`' in program
    4 |   val cin = Scanner(System.`in`)
      |                            ^
a.cc:4:31: error: stray '`' in program
    4 |   val cin = Scanner(System.`in`)
      |                               ^
a.cc:8:16: error: too many decimal points in number
    8 |   if (a + b in 0..9) {
      |                ^~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++


import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        if ((A + B) < 10) {
            System.out.println(A+B);
        }
        else
            System.out.println("error.");
    }
}


Compiler output:
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.Scanner;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#include<iostream>
using namespace std;
 
int main()
{
       int a,b;
cin>>a>>b;
if(a+b<10)
cout<<a+b<<endl;
else 
cout<<"error"<<endl;
return 0;


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

#include<iostream>
using namespace std;

int main()
{
       int a,b;
cin>>a>>b;
if(a+b<10)
cout<<a+b<<endl;
else 
cout<<"error"<<endl
return 0;
}

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

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

int main() {
    
    int N, A, B; cin >> N >> A >> B;
    int hits = 0;
    vector<int> healths;
    while(N--)
    {
        int num; cin >> num;
        healths.push_back(num);
    }
    sort(healths.begin(), healths.end());
    for(int i=healths.size()-1; i>=1; i--)
    {
        if(healths[i] <= B*hits)
            break;
        hits += ceil((healths[i]-healths[i-1])/(A-B));
    }
    cout << hits << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:17: error: 'ceil' was not declared in this scope
   22 |         hits += ceil((healths[i]-healths[i-1])/(A-B));
      |                 ^~~~
Language: C++

#include <cassert>
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
/*
//#if __cplusplus >= 201103L
#include <ccomplex>
#include <cfenv>
#include <cinttypes>
#include <cstdbool>
#include <cstdint>
#include <ctgmath>
#include <cwchar>
#include <cwctype>
*/

// C++
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
/*
//#if __cplusplus >= 201103L
#include <array>
#include <chrono>
#include <condition_variable>
#include <forward_list>
#include <future>
#include <initializer_list>
#include <mutex>
#include <random>
#include <ratio>
#include <regex>
#include <scoped_allocator>
#include <system_error>
#include <thread>
#include <tuple>
#include <typeindex>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
*/
using namespace std;
#define fi first
#define se second
#define repl(i,a,b) for(int i=(int)(a);i<(int)(b);i++)
#define rep(i,n) repl(i,0,n)
#define each(itr,v) for(auto itr:v)
#define pb(s) push_back(s)
#define mmax(x,y) (x>y?x:y)
#define mmin(x,y) (x<y?x:y)
#define maxch(x,y) x=mmax(x,y)
#define minch(x,y) x=mmin(x,y)
#define mp(a,b) make_pair(a,b)
#define all(x) (x).begin(),(x).end()
#define dbg(x) cout<<#x"="<<x<<endl

#define uni(x) x.erase(unique(all(x)),x.end())
template<class T,class U>inline void chmin(T &t,U f){if(t>f)t=f;}
template<class T,class U>inline void chmax(T &t,U f){if(t<f)t=f;}
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) > (b) ? (b) : (a))

typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> P;
typedef pair<P, int> PPI;

#define INF INT_MAX/3
#define MAX_N 1000
#define M_INF 1000000000
int n,m,v,i;
void solve(){
   cin.tie(0);
  ios::sync_with_stdio(false);
  cin>>n>>m;
  if(n+m<10) cout<<n+m<<endl;
  else cout<'error'<<endl; 
}

int main(){
  solve();
  return 0;
}


Compiler output:
a.cc:118:13: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
  118 |   else cout<'error'<<endl;
      |             ^~~~~~~
a.cc: In function 'void solve()':
a.cc:118:20: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
  118 |   else cout<'error'<<endl;
      |             ~~~~~~~^~~~~~
Language: C++

/*
ID:greenty2
LANG:C++
TASK:
*/
#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a,b;
	cin>>a>>b;
	if(a+b>=10)
	{
		cout<<error<<endl;
	}
	else
	{
		cout<<a+b<<endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:23: error: 'error' was not declared in this scope; did you mean 'perror'?
   14 |                 cout<<error<<endl;
      |                       ^~~~~
      |                       perror
Language: C++

a, b = gets.strip.split.map(&:to_i)

c = a + b

puts c >= 10 ? 'error' : c

Compiler output:
a.cc:5:16: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    5 | puts c >= 10 ? 'error' : c
      |                ^~~~~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a, b = gets.strip.split.map(&:to_i)
      | ^
Language: C

#include <stdio.h>

int main(){
  int n, i, j, work=0, sum, s[150];
  scanf("%d", &n);
  for (i=0;i<n;i++)
  {
    scanf("%d", &s[i]);
    sum+=s[i];
  }
  i=0;
  for(i=0;i<n;i++){
    for(j=1;j<=;j++){
      if(s[i]>s[j]){
        work=s[i];
        s[i]=s[j];
        s[]j=work;
      }
    }
  }
  while(1){
    if(sum%10!=0||sum==0){
      break;
    }else{
      sum-=s[i];
      i++;
    }

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


Compiler output:
main.c: In function 'main':
main.c:13:16: error: expected expression before ';' token
   13 |     for(j=1;j<=;j++){
      |                ^
main.c:17:11: error: expected expression before ']' token
   17 |         s[]j=work;
      |           ^
Language: C

#include <iostream>
using namespace std;

int main(){
    int A, B;
    cin >> A >> B;
    if (A + B < 10){
        cout << A + B << endl;
    }else{
        cout << "error" << endl;
    }
    return 0;
}


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

#include<stdio.h>
int main(){
  int a,b;
  int c;
   c=a+b;
  if(c<10){
  printf("%d\n",c);
  }else{
  printf("%s",error);
   }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: 'error' was not declared in this scope; did you mean 'perror'?
    9 |   printf("%s",error);
      |               ^~~~~
      |               perror
Language: C++

#include<stdio.h>
2.int main(){
3.   int  a,b;
4.   int c;
5.   c=a+b;
6.   if(c<10){
7.   printf("%d\n",c);
8.   }else{
9.   printf("%s",error);
10.   }
11.   return 0;
12.}


Compiler output:
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2.int main(){
      | ^~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
        int a, b;
        
        cin >> a >> b;
        if( a + b > 10 ){
             cout << "error" << endl;
             break;
        }else{
        cout << a + b << endl;
       }
        return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: break statement not within loop or switch
   10 |              break;
      |              ^~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
        int a, b;
        
        cin >> a >> b;
        if( a + b > 10 ){
             cout << "error" << endl;
             break;
        }
        cout << a + b << endl;

        return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: break statement not within loop or switch
   10 |              break;
      |              ^~~~~
Language: C++


#include <iostream>

#ifdef LOCAL
  #define debugEcho(expr) cout << expr << "\n";
#else
  #define debugEcho(expr)
#endif

using namespace std;

#define at ,<=,
#define to ,<,
#define in ,
#define forrange(...)  forrange1(forrange2, (__VA_ARGS__))
#define forrange1(X, A) X A
#define forrange2(i, s, op, e) for (int i = (s); i op (e); i++)

int main() {
  int A;
  int B;
  cin >> A;
  cin >> B;
  if (A + B >= 10) {
    cout << "error\n";
  } else
    cout << (A + B) << "\n";
  }
}


Compiler output:
a.cc:29:1: error: expected declaration before '}' token
   29 | }
      | ^
Language: C

    #include<stdio.h>
    int main(void){
        int A,B;
        scanf("%d %d",&A,&B);
        if(A+B<10){
            printf("%d\n",A+B);
        else{
            printf("error\n");
        }
        return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:7:9: error: expected '}' before 'else'
    7 |         else{
      |         ^~~~
Language: C

    #include<stdio.h>
    int main(void){
        int A,B;
        scanf("%d %d",%A,%B);
        if(A+B<10){
            printf("%d",A+B);
        }else{
            printf("error");
        }
        return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:4:23: error: expected expression before '%' token
    4 |         scanf("%d %d",%A,%B);
      |                       ^
Language: C++

#include<iostream>
using namespace std;

int main(){
        int a, b, c;
        
        cin >> a >> b;
        a+b=c;
        if( c > 10 ){
             cout << "error" << endl;
        }
        cout << c << endl;

        return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: lvalue required as left operand of assignment
    8 |         a+b=c;
      |         ~^~
Language: Java

import java.util.*;
public class Main{
   public static void main (String [] args){
        Scanner in =new Scanner(System.in);
       int a=0;b=0;
       a=in.nextInt();
       b=in.nextInt();
      if(a+b>=10) System.out.println("error");
     else System.out.println(a+b);
}
}

Compiler output:
Main.java:5: error: cannot find symbol
       int a=0;b=0;
               ^
  symbol:   variable b
  location: class Main
Main.java:7: error: cannot find symbol
       b=in.nextInt();
       ^
  symbol:   variable b
  location: class Main
Main.java:8: error: cannot find symbol
      if(a+b>=10) System.out.println("error");
           ^
  symbol:   variable b
  location: class Main
Main.java:9: error: cannot find symbol
     else System.out.println(a+b);
                               ^
  symbol:   variable b
  location: class Main
4 errors
Language: C

#include<stdio.h>
int main(void){
    int A,B;
    scanf("%d %d",%A,%B);
    if(A+B<10){
        printf("%d",A+B);
    else{
        printf("error");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:19: error: expected expression before '%' token
    4 |     scanf("%d %d",%A,%B);
      |                   ^
main.c:7:5: error: expected '}' before 'else'
    7 |     else{
      |     ^~~~
Language: Java

import java.io.*;
import java.util.*;
import java.math.BigInteger;
public class CB063B {
  public static void main(String[] args) {
    InputReader in = new InputReader(System.in);
    PrintWriter w = new PrintWriter(System.out);
     int sum=in.nextInt()+in.nextInt();
     if (sum>=10)
        w.println("error");
     else w.println(sum);
    w.close();
  }
  static class InputReader {

    private final InputStream stream;
    private final byte[] buf = new byte[8192];
    private int curChar, snumChars;
    private SpaceCharFilter filter;

    public InputReader(InputStream stream) {
      this.stream = stream;
    }

    public int snext() {
      if (snumChars == -1)
        throw new InputMismatchException();
      if (curChar >= snumChars) {
        curChar = 0;
        try {
          snumChars = stream.read(buf);
        } catch (IOException e) {
          throw new InputMismatchException();
        }
        if (snumChars <= 0)
          return -1;
      }
      return buf[curChar++];
    }

    public int nextInt() {
      int c = snext();
      while (isSpaceChar(c)) {
        c = snext();
      }
      int sgn = 1;
      if (c == '-') {
        sgn = -1;
        c = snext();
      }
      int res = 0;
      do {
        if (c < '0' || c > '9')
          throw new InputMismatchException();
        res *= 10;
        res += c - '0';
        c = snext();
      } while (!isSpaceChar(c));
      return res * sgn;
    }

    public long nextLong() {
      int c = snext();
      while (isSpaceChar(c)) {
        c = snext();
      }
      int sgn = 1;
      if (c == '-') {
        sgn = -1;
        c = snext();
      }
      long res = 0;
      do {
        if (c < '0' || c > '9')
          throw new InputMismatchException();
        res *= 10;
        res += c - '0';
        c = snext();
      } while (!isSpaceChar(c));
      return res * sgn;
    }

    public int[] nextIntArray(int n) {
      int a[] = new int[n];
      for (int i = 0; i < n; i++) {
        a[i] = nextInt();
      }
      return a;
    }

    public String readString() {
      int c = snext();
      while (isSpaceChar(c)) {
        c = snext();
      }
      StringBuilder res = new StringBuilder();
      do {
        res.appendCodePoint(c);
        c = snext();
      } while (!isSpaceChar(c));
      return res.toString();
    }

    public String nextLine() {
      int c = snext();
      while (isSpaceChar(c))
        c = snext();
      StringBuilder res = new StringBuilder();
      do {
        res.appendCodePoint(c);
        c = snext();
      } while (!isEndOfLine(c));
      return res.toString();
    }

    public boolean isSpaceChar(int c) {
      if (filter != null)
        return filter.isSpaceChar(c);
      return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
    }

    private boolean isEndOfLine(int c) {
      return c == '\n' || c == '\r' || c == -1;
    }

    public interface SpaceCharFilter {
      public boolean isSpaceChar(int ch);
    }
  }
}


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

import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc= new Scanner(System.in);
		int N=sc.nextInt();
		int M=sc.nextInt();
		int sum=N+M;
		if (sum<10)
		{System.out.println(sum);}
		else
		{System.out.println("error");}
		
	}


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

import java.util.Scanner;

public class Restricted {
	public static void main(String[] args){
		Scanner sc= new Scanner(System.in);
		int N=sc.nextInt();
		int M=sc.nextInt();
		int sum=N+M;
		if (sum<10)
		{System.out.println(sum);}
		else
		{System.out.println("error");}
		
	}

}


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

#include<bit/stdc++.h>

using namespace std;

int main ()
{
    int a,b;
    cin>>a>>b;
    if((a+b)>=10) cout<<"error"<<endl;
    else cout<<a+b<<endl;

    return 0;
}


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

#include <cstdio>

int main()
{
    int a, b;
    scanf("%d %d", &a, %b);
    if (a + b > 9)
        printf("error\n");
    else
        printf("%d\n", a + b);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: expected primary-expression before '%' token
    6 |     scanf("%d %d", &a, %b);
      |                        ^
Language: Java


package abc075;

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

public class MainA {

	public static void main(String[] args) throws IOException {
		BufferedReader input =new BufferedReader (new InputStreamReader (System.in));
		String str = input.readLine( );
		String[] ab = str.split(" ");
		int a = Integer.parseInt(ab[0]);
		int b = Integer.parseInt(ab[1]);
		
		if(a+b < 10){
			System.out.println(a+b);
		}else{
			System.out.println("error");			
		}


	}

}


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

#include<iosream>
using namespace std;
int main()
{
    int a,b;
    cin>>a>>b;
    if(a+b>=10) cout<<"error"<<endl;
    else cout<<a+b<<endl;
    return 0;
}


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

#include<iostream>
int main()
{
int a,b,c;
cin<<a<<b;
c=a+b;
if(c>=10)cout<<"error";
else cout<<c;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | cin<<a<<b;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 | if(c>=10)cout<<"error";
      |          ^~~~
      |          std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 | else cout<<c;
      |      ^~~~
      |      std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>

using namespace std;

int main() {
    int A, B;
    cin >> A >> B;
    cout << (A + B < 10) ? A + B : "error" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:44: error: invalid operands of types 'const char [6]' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |     cout << (A + B < 10) ? A + B : "error" << endl;
      |                                    ~~~~~~~~^~~~~~~
Language: C


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

int main(){
	int a, b;
	scanf(" %d %d", &a, &b);
	if(a + b >=10){
            printf("error");
    else{
           printf("%d", a+b);
    }
        return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:5: error: expected '}' before 'else'
   12 |     else{
      |     ^~~~
Language: C++

#include <cstdio>
#include <stdio.h>
#include <string>
#include <string.h>
#include <algorithm>
#include <vector>
#include <iostream.h>
using namespace std;

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

int main(){
	int a,b;
	cin >>a>>b;
	cout << a+b;
}

Compiler output:
a.cc:7:10: fatal error: iostream.h: No such file or directory
    7 | #include <iostream.h>
      |          ^~~~~~~~~~~~
compilation terminated.
Language: C++

#include<stdio.h>
#include<conio.h>
#include<iostream>

using namespace std;

int main(void)
{
	int x,y;

	cin >> x;
	cin >> y;

	if (x + y >= 10) {
		cout << "error" << endl;
	}
	else {
		cout << x + y << endl;
	}

	return(0);
}

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


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

int main(){
	int a, b;
	scanf(" %d %d", &a, &b);
	if(a + b >=10){
            printf("error");
    else{
           printf("%d", a+b);
    }
        return 0;
    }
}


Compiler output:
main.c: In function 'main':
main.c:12:5: error: expected '}' before 'else'
   12 |     else{
      |     ^~~~
main.c: At top level:
main.c:17:1: error: expected identifier or '(' before '}' token
   17 | }
      | ^
Language: C++

(defun solver ()
  (let ((a (read)) (b (read)))
  (if (>= (+ a b) 10)
    (format t "error~%")
    (format t "~A~%" (+ a b)))))

(solver)

Compiler output:
a.cc:1:7: error: expected ')' before 'solver'
    1 | (defun solver ()
      | ~     ^~~~~~~
      |       )
Language: C++

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

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  int a, b;
  cin >> a >> b;
  cout << (a + b >= 10? "error": a + b) << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: operands to '?:' have different types 'const char*' and 'int'
   10 |   cout << (a + b >= 10? "error": a + b) << endl;
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~
Language: C


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

int main(){
	long long int a, b;
	scanf(" %d %d", &a, &b);
	if(a + b >=10){
            printf("error");
    else{
           printf("%d", a+b);
    }
        return 0;
    }
}


Compiler output:
main.c: In function 'main':
main.c:12:5: error: expected '}' before 'else'
   12 |     else{
      |     ^~~~
main.c: At top level:
main.c:17:1: error: expected identifier or '(' before '}' token
   17 | }
      | ^
Language: C++


import java.util.Scanner;
public class Main {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        if(a+b>=10){
            System.out.println("error");
        }else{
            System.out.println(a+b);
        }

    }

}


Compiler output:
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.Scanner;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

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

int main(){
  string s;
  for(int i = 0;i < s.size();i++){
    for(int j = 0;j < s.size();j++){
    if(s.at(i) == s.at(j){
      cout << "no";
      break;
    }
       }
       if(i == s.at(s.size() - 1)){
         cout << "yes";
         break;
       }
       }
       }
       

Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: expected ')' before '{' token
    9 |     if(s.at(i) == s.at(j){
      |       ~                  ^
      |                          )
a.cc:13:8: error: expected primary-expression before '}' token
   13 |        }
      |        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rrep(i, n) for (int i = 1; i < (int)(n+1); i++)
int main() {
    string S;
    cin>>S;
    bool a=false;
    sort(S.begin(),S.end());
    int a=S.size();
    rep(i,a){
        if(S[i]==S[i+1]){
            a=true;
        }
    }
    if(a==true){
        cout<<"no"<<endl;
    }
    else
    {
        cout<<"yes"<<endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: conflicting declaration 'int a'
   12 |     int a=S.size();
      |         ^
a.cc:10:10: note: previous declaration as 'bool a'
   10 |     bool a=false;
      |          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
string S;
cin >> S;
string ans="yes";
for(int j=0;j<S.size()-1;j++){
  for(int i=j+1;i<S.size()-1;i++){
    if(S.at(j)==S.at(i)){
    ans="no"
    break;
    }
  }
}
cout <<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected ';' before 'break'
   11 |     ans="no"
      |             ^
      |             ;
   12 |     break;
      |     ~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
string S;
cin >> S;
string ans="yes"
for(int j=0;j<S.size()-1;j++){
  for(int i=j+1;i<S.size()-1;i++){
    if(S.at(j)==S.at(i)){
    ans="no"
    break;
    }
  }
}
cout <<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: expected ',' or ';' before 'for'
    8 | for(int j=0;j<S.size()-1;j++){
      | ^~~
a.cc:8:13: error: 'j' was not declared in this scope
    8 | for(int j=0;j<S.size()-1;j++){
      |             ^
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <cmath>
#define pi 3.14159265358979323846264338327950



int main() {
	std::string s; std::cin >> s;
	std::string d = s;
	std::unique(d.begin(), d.end());
	if (d.size() == s.size())std::cout << "yes" << endl;
	else std::cout << "no" << std::endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:20: warning: ignoring return value of '_FIter std::unique(_FIter, _FIter) [with _FIter = __gnu_cxx::__normal_iterator<char*, __cxx11::basic_string<char> >]', declared with attribute 'nodiscard' [-Wunused-result]
   14 |         std::unique(d.begin(), d.end());
      |         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:4:
/usr/include/c++/14/bits/stl_algo.h:891:5: note: declared here
  891 |     unique(_ForwardIterator __first, _ForwardIterator __last)
      |     ^~~~~~
a.cc:15:56: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |         if (d.size() == s.size())std::cout << "yes" << endl;
      |                                                        ^~~~
      |                                                        std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#include <unistd.h>
 
void ft_putchar(char c)
{
  char result;
  result = write(1, &c, 1);
}
 
void ft_putstr(char *str)
{
  while(*str)
    ft_putchar(*(str++));
}
 
int main()
{
  int i;
  int j;
  char *c;
  
  (void)ac;
  read(0, c, 30);
  i = 0;
  while (c[i])
  {
    j = i + 1;
  		while (c[j])
        {
          if (c[i] = c[j])
          {
            ft_putstr("no");
            return 0;
          }
          j++;
        }
    i++;
  }
  ft_putstr("yes");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:9: error: 'ac' undeclared (first use in this function); did you mean 'c'?
   21 |   (void)ac;
      |         ^~
      |         c
main.c:21:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <unistd.h>
 
void ft_putchar(char c)
{
  char result;
  result = write(1, &c, 1);
}
 
void ft_putstr(char *str)
{
  while(*str)
    ft_putchar(*(str++));
}
 
int main()
{
  int i;
  int j;
  char c;
  
  (void)ac;
  read(S, c, 30);
  i = 0;
  while (c[i])
  {
    j = i + 1;
  		while (c[j])
        {
          if (c[i] = c[j])
          {
            ft_putstr("no");
            return 0;
          }
          j++;
        }
    i++;
  }
  ft_putstr("yes");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:9: error: 'ac' undeclared (first use in this function); did you mean 'c'?
   21 |   (void)ac;
      |         ^~
      |         c
main.c:21:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:22:8: error: 'S' undeclared (first use in this function)
   22 |   read(S, c, 30);
      |        ^
main.c:22:11: error: passing argument 2 of 'read' makes pointer from integer without a cast [-Wint-conversion]
   22 |   read(S, c, 30);
      |           ^
      |           |
      |           char
In file included from main.c:1:
/usr/include/unistd.h:371:38: note: expected 'void *' but argument is of type 'char'
  371 | extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __wur
      |                                ~~~~~~^~~~~
main.c:24:11: error: subscripted value is neither array nor pointer nor vector
   24 |   while (c[i])
      |           ^
main.c:27:25: error: subscripted value is neither array nor pointer nor vector
   27 |                 while (c[j])
      |                         ^
main.c:29:16: error: subscripted value is neither array nor pointer nor vector
   29 |           if (c[i] = c[j])
      |                ^
main.c:29:23: error: subscripted value is neither array nor pointer nor vector
   29 |           if (c[i] = c[j])
      |                       ^
Language: C

#include <stdio.h>

int main(int argc, char *argv[])
{
  int i = 0;
  int j;
  
  (void)argc;
  while (*argv[1][i])
  {
    j = i;
    while (argv[1][j])
    {
      if (argv[1][j] == argv[1][i])
      {
        printf("no");
        return (0);
      }
      j++;
    }
    i++;
  }
  printf("yes");
  return (0);
}


Compiler output:
main.c: In function 'main':
main.c:9:10: error: invalid type argument of unary '*' (have 'int')
    9 |   while (*argv[1][i])
      |          ^~~~~~~~~~~
Language: C

int main()
{
  int i;
  int j;
  
  i = 0;
  while (S[i])
  {
    j = i + 1;
  		while (S[j])
        {
          if (S[i] = S[j])
          {
            putstr("no");
            return ;
          }
          j++;
        }
    i++;
  }
  putstr("yes");
  return;
}

Compiler output:
main.c: In function 'main':
main.c:7:10: error: 'S' undeclared (first use in this function)
    7 |   while (S[i])
      |          ^
main.c:7:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:13: error: implicit declaration of function 'putstr' [-Wimplicit-function-declaration]
   14 |             putstr("no");
      |             ^~~~~~
main.c:15:13: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   15 |             return ;
      |             ^~~~~~
main.c:1:5: note: declared here
    1 | int main()
      |     ^~~~
main.c:22:3: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   22 |   return;
      |   ^~~~~~
main.c:1:5: note: declared here
    1 | int main()
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long  ll ;
typedef double db;
const double pi = 3.141592654;
#define pb         push_back
#define forab(i,a,b)       for(int i=(a);i<=(b);i++)
#define CIN	ios_base::sync_with_stdio(0); cin.tie(0)
#define pcase(z,x)     printf("Case %ld: %lld\n",z,x)
#define nw				"\n"
int main(void)
{
	CIN;
	ll tc,l,k,sum=0,x=0,y,z=0,m=1,n=0,ans=0,cnt=0;
	map<char,int>mp;
	char c;
	while(cin>>c){
		mp[c]++;
		if(mp[c]==2)return cout<<"no",0;
	}
	else cout<<"yes";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:9: error: 'else' without a previous 'if'
   21 |         else cout<<"yes";
      |         ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll =long long;
#define all(v) v.begin(),v.end()
 
int main() {
  string S;
  cin>>S;
  set<char> A;
  for(ll i=0;i<S.size();i++) {
if(A.count(S[i]) {
cout<<"no"<<endl;
  return 0;
}
   A.insert(S[i]);
   }
   
   cout<<"yes"<<endl;
   }

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: expected ';' before '{' token
   11 | if(A.count(S[i]) {
      |                 ^~
      |                 ;
a.cc:15:18: error: expected ')' before ';' token
   15 |    A.insert(S[i]);
      |                  ^
      |                  )
a.cc:11:3: note: to match this '('
   11 | if(A.count(S[i]) {
      |   ^
a.cc:15:12: error: could not convert 'A.std::set<char>::insert((*(const std::set<char>::value_type*)(& S.std::__cxx11::basic_string<char>::operator[](((std::__cxx11::basic_string<char>::size_type)i)))))' from 'std::pair<std::_Rb_tree_const_iterator<char>, bool>' to 'bool'
   15 |    A.insert(S[i]);
      |    ~~~~~~~~^~~~~~
      |            |
      |            std::pair<std::_Rb_tree_const_iterator<char>, bool>
Language: C

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

int main(){
    string s;
    set<char> set;
    cin >> s;
    for (int i=0; i<s.size(); i++){
        set.insert(s[i]);
    } 
    if (set.size() == s.size()) cout << "yes" << endl;
    else cout << "no" << endl;
    return 0;
}

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

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

int main(){
  string s; cin >> s;
  map<int, int>mp;
  for(int i = 0; i < s.size(); ++i){
    mp[s[i]-'a']++;
    if(mps[i]-'a' > 1) {
      cout << "no" << endl;
      return 0;
    }
  }
  cout << "yes" << endl;
  return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'mps' was not declared in this scope; did you mean 'mp'?
    9 |     if(mps[i]-'a' > 1) {
      |        ^~~
      |        mp
Language: C++

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

int main() {
  vector<int> p[124,0];
  string s;
  cin >> s ;
  for ( int i=0 ; i<s.size() ; i++){
    p[(int)s.at(i)]++;
}
  for ( int i=0 ; i<125 ; i++){
    if (p[i]>2){
      cout << "no" << endl;
      return 0;
    }
  }
  cout << "yes" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: expected ']' before ',' token
    5 |   vector<int> p[124,0];
      |                    ^
      |                    ]
a.cc:5:21: error: expected unqualified-id before numeric constant
    5 |   vector<int> p[124,0];
      |                     ^
a.cc:9:5: error: 'p' was not declared in this scope
    9 |     p[(int)s.at(i)]++;
      |     ^
a.cc:12:9: error: 'p' was not declared in this scope
   12 |     if (p[i]>2){
      |         ^
Language: C++

#include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
using namespace std;
typedef long long ll;
const int MOD = 1e9 + 7;

int main() {
  string s;
  cin >> s;
  sort(all(s));
  for (int i = 1; i < n; i++) {
    if (s[i - 1] == s[i]) {
      cout << "no" << endl;
      return 0;
    }
  }
  cout << "yes" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:23: error: 'n' was not declared in this scope
   11 |   for (int i = 1; i < n; i++) {
      |                       ^