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

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


int main()
{
	char str[100];
	int i,j,k,flag=1;
	map<char,int> data;
	
	gets(str);
	
	for(i=0;i<strlen(str);i++)
	{
		data[str[i]]++;
	}
	
	for(i='a';i<'z';i++)
	{
		if(data[i]>1)
		{
			flag = 0;
			break;
		}
	} 
	
	if(flag == 1) cout << "yes";
	else cout << "no";
	
}

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

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

int main(void)
{
        int i,n,a[26]={0};
        char s[27];

        sacnf("%s",s);
        n=strlen(s);
        for(i=0;i<n;i++)
                a[s[i]-'a']++;

        for(i=0;i<26;i++)
                if(a[i]>1){
                        printf("yes");
                        return 0;
                }

        printf("no");
        return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'sacnf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    9 |         sacnf("%s",s);
      |         ^~~~~
      |         scanf
Language: C

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

int main(void)
{
        int i,n,a[26]={0};
        char s[27];

        sacnf("%s",s);
        n=strlen(s);
        for(i=0;i<n;i++)
                a[s[i]-'a']++;

        for(i=0;i<26;i++)
                if(a[i]>1){
                        printf("yes");
                        return 0;
                }

        printf("no");
        return 0;
}

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

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

using namespace std;

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    string s;
    cin >> s;
    for (int i=0; i<s.length(); i++) {
        char c = s[i];
        for (int j=i+1; j<s.length(); j++) {
            if (c == s[j]) {
                cout << "no" << '\n'
                return 0;
            }
        }
    }
    cout << "yes" << '\n';
    return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
using LL = long long;
#define REP(i, n) for (LL i = 0; i < (LL)(n); i++)
#define FOR(i, m, n) for (LL i = m; i < n; i++)
#define SORT(x) sort(x.begin(), x.end())
#define REVE(x) reverse(x.begin(), x.end())
#define ALL(x) (x).begin(), (x).end()
#define SUM(x) accumulate(x.begin(), x.end(),0)
#define vLL(v,n) vector<LL> v(n); REP(i,n)cin>>v[i];
#define vstr(v,n) vector<string> v(n); REP(i,n)REP(i,n)cin>>v[i];
#define mina(a,b) a=min(a,b);
LL INF = 1e9 + 1;
LL MOD = 1e9+7;
  LL a,b,c,d,e,n,m,l,r,ans=1000;
string s,S,t;
int main() {
ios_base::sync_with_stdio(false);
  cin >>s;
  REP(i,s.size){
      REP(j,s.size()){
          (i!=j){
              if(s[i]==s[j]){
                  cout << "no"<<endl;
                  return 0;
              }
          }
      }
  }
  cout << "yes"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:11: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   20 |   REP(i,s.size){
      |           ^
a.cc:4:43: note: in definition of macro 'REP'
    4 | #define REP(i, n) for (LL i = 0; i < (LL)(n); i++)
      |                                           ^
a.cc:22:17: error: expected ';' before '{' token
   22 |           (i!=j){
      |                 ^
      |                 ;
Language: C++

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

int main(){
  
   string a,b;
   cin >> a;
   
   b = yes;
  
   for(int i=0;i<a.size();i++){
     
    if( a.at(i) == a.at(i+1) ){
      
      b = no;
      
    }
     
   }
  
     cout << b << endl;
  
}
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'yes' was not declared in this scope
    9 |    b = yes;
      |        ^~~
a.cc:15:11: error: 'no' was not declared in this scope
   15 |       b = no;
      |           ^~
Language: C++

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

int main(){
  
   string a,b = yes;
   cin >> a;
   
  
   for(int i=0;i<a.at();i++){
     
    if( a.at(i) == a.at(i+1) ){
      
      b = no;
      
    }
     
   }
  
     cout << b << endl;
  
}
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: 'yes' was not declared in this scope
    6 |    string a,b = yes;
      |                 ^~~
a.cc:10:22: error: no matching function for call to 'std::__cxx11::basic_string<char>::at()'
   10 |    for(int i=0;i<a.at();i++){
      |                  ~~~~^~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:1287:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::at(size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; const_reference = const char&; size_type = long unsigned int]'
 1287 |       at(size_type __n) const
      |       ^~
/usr/include/c++/14/bits/basic_string.h:1287:7: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/basic_string.h:1309:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::at(size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; reference = char&; size_type = long unsigned int]'
 1309 |       at(size_type __n)
      |       ^~
/usr/include/c++/14/bits/basic_string.h:1309:7: note:   candidate expects 1 argument, 0 provided
a.cc:14:11: error: 'no' was not declared in this scope
   14 |       b = no;
      |           ^~
Language: C++

#include<bts/stdc++.h>
using namespace std;
int main(){
  string S; cin>>S;
  int K=0;
  sort(S.begin(),S.end());
  for(int i=0; i<S.size()-1;i++){
    if(S.at(i)!=S.at(i+1))
      K++;
    else continue;
  }
  if(K==S.size()-1)
    cout<<"yes"<<endl;
  else cout<<"no"<<endl;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 string n;
  cin >> n;
  int k=n.size();
  vector<char> vec(k+1);
  for(int i=0;i<k;i++)
    vec[i+1]=n[i];
  bool A=true;
  int s=1;
  while(s <= k){
    for(int i=0;i<k;i++){
    if(vec[s]==n[i]){
      A=false;
      break;
      
    }
    s++;
    }
    if(A)cout << "Yes" <<endl;
    else cout << "No" <<endl;
  }
 
    

  

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

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

int main() {
string s;
cin >> s;
set<char> a;
rep(i,n){
  a.insert(s.at(i));
}
if(a.size() == s.size()) cout << "yes" << endl;
else cout << "no" << endl;
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: 'n' was not declared in this scope
   11 | rep(i,n){
      |       ^
a.cc:3:45: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                             ^
Language: C++

#include<iostream>
using namespace std;

int main()
{
    long long int a,b,c,x3=0,t;
    string s;set<char>k;
    cin>>s;
    for(int i=0;i<s.size();i++){
        k.insert(s[i]);}
    if(k.size()==s.size())cout<<"yes";
    else cout<<"no";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: 'set' was not declared in this scope
    7 |     string s;set<char>k;
      |              ^~~
a.cc:2:1: note: 'std::set' is defined in header '<set>'; this is probably fixable by adding '#include <set>'
    1 | #include<iostream>
  +++ |+#include <set>
    2 | using namespace std;
a.cc:7:18: error: expected primary-expression before 'char'
    7 |     string s;set<char>k;
      |                  ^~~~
a.cc:10:9: error: 'k' was not declared in this scope
   10 |         k.insert(s[i]);}
      |         ^
a.cc:11:8: error: 'k' was not declared in this scope
   11 |     if(k.size()==s.size())cout<<"yes";
      |        ^
Language: C++

#include<iostream>
using namespace std;

int main()
{
    long long int a,b,c,x3=0,t;
    string s;set<char>k;
    cin>>s;
    for(int i=0;i<s.size();i++){
        k.insert(s[i]);
    if(k.size()==s.size())cout<<"yes";
    else cout<<"no";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: 'set' was not declared in this scope
    7 |     string s;set<char>k;
      |              ^~~
a.cc:2:1: note: 'std::set' is defined in header '<set>'; this is probably fixable by adding '#include <set>'
    1 | #include<iostream>
  +++ |+#include <set>
    2 | using namespace std;
a.cc:7:18: error: expected primary-expression before 'char'
    7 |     string s;set<char>k;
      |                  ^~~~
a.cc:10:9: error: 'k' was not declared in this scope
   10 |         k.insert(s[i]);
      |         ^
a.cc:13:2: error: expected '}' at end of input
   13 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); i++)
#define MOD 1000000007
#define INF 1e9
#define All(x) (x).begin(), (x).end()
typedef long long ll;
using namespace std;


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

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: 'N' was not declared in this scope
   14 |   for(int i=0;i<N-1;i++){
      |                 ^
Language: C++

#include <iostream>
#include <cmath>
#include <vector>
#include <map>
#include <iomanip>
#include <algorithm>
#include <sstream>
#include <string>
#include <math.h>
#include <set>
using namespace std;
typedef long long ll;
 
int main() {
	ios::sync_with_stdio(false);
	string s;
	int a[26] = {};
	cin >> s;
	for (int i = 0 ; i < s.length() ; i++) a[s[i] - 96]++;
	for (int i = 0 ; i < 26 ; i++)  {
		if (a[i] > 1) {
			cout << "no\n";
			return 0;
		}
	}
	cout << "yes\n";A
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:25: error: 'A' was not declared in this scope
   26 |         cout << "yes\n";A
      |                         ^
Language: C++

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

int main(){
    string S;
    cin >> S;
    map<string,int>Map;
    for(int i = 0; i < S.size(); i++) {
        map[S[i]]++;
    }
    for(int i = 0; i < S.size(); i++) {
        if(map[S[i]] > 1) {
            cout << "no" << endl;
            return 0;
        }
    }
    cout << "yes" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected ']' before '[' token
    9 |         map[S[i]]++;
      |              ^
      |              ]
a.cc:9:18: error: expected initializer before '++' token
    9 |         map[S[i]]++;
      |                  ^~
a.cc:9:18: error: expected ';' before '++' token
a.cc:12:15: error: expected unqualified-id before '[' token
   12 |         if(map[S[i]] > 1) {
      |               ^
Language: C++

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

int main(){
    string S;
    cin >> S;
    map<string,int>Map;
    for(int i = 0; i < S.size(); i++) {
        map[S[i]]++;
    }
    for(int i = 0; i < S.size(); i++) {
        if(map[i] > 1) {
            cout << "no" << endl;
            return 0;
        }
    }
    cout << "yes" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected ']' before '[' token
    9 |         map[S[i]]++;
      |              ^
      |              ]
a.cc:9:18: error: expected initializer before '++' token
    9 |         map[S[i]]++;
      |                  ^~
a.cc:9:18: error: expected ';' before '++' token
a.cc:12:15: error: expected unqualified-id before '[' token
   12 |         if(map[i] > 1) {
      |               ^
Language: C++

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

int main(){
  string data;
  cin>>data;
  map<string,int> s;
  for(int i=0;i<data.size();i++){
    s[data[i]]=1;
  }
  if(data.size()==s.size()){
    cout<<"yes"<<endl;
  }
  else if(data.size()!=s.size()){
    cout<<"no"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: no match for 'operator[]' (operand types are 'std::map<std::__cxx11::basic_string<char>, int>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'})
   11 |     s[data[i]]=1;
      |      ^
In file included from /usr/include/c++/14/map:63,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_map.h:504:7: note: candidate: 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::__cxx11::basic_string<char>; _Tp = int; _Compare = std::less<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >; mapped_type = int; key_type = std::__cxx11::basic_string<char>]'
  504 |       operator[](const key_type& __k)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_map.h:504:34: note:   no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const std::map<std::__cxx11::basic_string<char>, int>::key_type&' {aka 'const std::__cxx11::basic_string<char>&'}
  504 |       operator[](const key_type& __k)
      |                  ~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_map.h:524:7: note: candidate: 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = std::__cxx11::basic_string<char>; _Tp = int; _Compare = std::less<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >; mapped_type = int; key_type = std::__cxx11::basic_string<char>]'
  524 |       operator[](key_type&& __k)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_map.h:524:29: note:   no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'std::map<std::__cxx11::basic_string<char>, int>::key_type&&' {aka 'std::__cxx11::basic_string<char>&&'}
  524 |       operator[](key_type&& __k)
      |                  ~~~~~~~~~~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
#define rep(i,a,b) for (int i = (a); i < (b); i++ )
typedef pair<int,int> P;
typedef long long ll;
const int INF = 100000000;

int main() {
    string S;
    cint >> S;
    set<char> s;
    rep(i,0,S.size()) {
        s.insert(S[i]);
    }
    if (s.size()==S.size()) {
        cout << "yes" << endl;
    }
    else {
        cout << "no" << endl;
    }
}

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

//#include <tourist>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> p;
const int INF = 1e9;
const ll LINF = ll(1e18);
const int MOD = 1000000007;
const int dx[4] = {0, 1, 0, -1}, dy[4] = {-1, 0, 1, 0};
const int Dx[8] = {0, 1, 1, 1, 0, -1, -1, -1}, Dy[8] = {-1, -1, 0, 1, 1, 1, 0, -1};
#define yes cout << "Yes" << endl
#define YES cout << "YES" << endl
#define no cout << "No" << endl
#define NO cout << "NO" << endl
#define rep(i, n) for (int i = 0; i < n; i++)
#define ALL(v) v.begin(), v.end()
#define debug(v)          \
    cout << #v << ":";    \
    for (auto x : v)      \
    {                     \
        cout << x << ' '; \
    }                     \
    cout << endl;
template <class T>
bool chmax(T &a, const T &b)
{
    if (a < b)
    {
        a = b;
        return 1;
    }
    return 0;
}
template <class T>
bool chmin(T &a, const T &b)
{
    if (b < a)
    {
        a = b;
        return 1;
    }
    return 0;
}
//cout<<fixed<<setprecision(15);有効数字15桁
//-std=c++14
//-std=gnu++17
ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }
ll lcm(ll a, ll b) { return a / gcd(a, b) * b; }
int main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    string s;
    cin>>s;
    map<char,int>m;
    rep(i,s.size()){
        m[s[i]]++
        if(m[s[i]]==2)return cout<<"no"<<"\n",0;
    }
    cout<<"yes"<<"\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:57:18: error: expected ';' before 'if'
   57 |         m[s[i]]++
      |                  ^
      |                  ;
   58 |         if(m[s[i]]==2)return cout<<"no"<<"\n",0;
      |         ~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
const long long MOD=1e9+7;

int main() {
  string s;
  cin>>s;
  vector<int> abc(26,0);
  bool ans=true;
  for(auto c:s){
    abc[c-'a']++;
    if(abs[c-'a']>1) ans=false;
  }
  if(ans) cout<<"yes"<<endl;
  else cout<<"no"<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   14 |     if(abs[c-'a']>1) ans=false;
      |           ^
Language: C++

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

int main()

{
    char str[27];
    int  count=0,i,j, length;
    gets(str);

    length = strlen(str);

    for(i=0; i<length; i++){
        for(j=0; j<length; j++){
            if(str[j]==str[i]) count++;
        }
    }
    if(count>length) printf("no\n");
    else printf("yes\n");

    return 0;
}


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

using System;
using System.Linq;

public class Program
{
    static void Main()
    {
        char[] s1 = Console.ReadLine().ToCharArray();
        var s2 = s1.Distinct();
        Console.WriteLine(s1.Length == s2.Count() ? "yes" : "no");
    }
}

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:4:1: error: expected unqualified-id before 'public'
    4 | public class Program
      | ^~~~~~
Language: C++

package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
)

func main() {
	input := ReadLine()
	chars := map[string]int{}

	for _, v := range strings.Split(input, "") {
		if _, exists := chars[v]; exists {
			fmt.Println("no")
			return
		}

		chars[v] = 1
	}
	fmt.Println("yes")
}

/////////////////////////////////////////

func fln(format string, elements ...interface{}) {

	fmt.Printf(format+"\n", elements...)
}

var BufReader = bufio.NewReaderSize(os.Stdin, 1e6)

func ReadLine() string {
	a, _, _ := BufReader.ReadLine()
	return string(a)
}

func ReadLineInt() (result []int) {
	in := strings.Split(ReadLine(), " ")
	result = make([]int, 0, 2)
	for _, v := range in {
		t, _ := strconv.Atoi(v)
		result = append(result, t)
	}
	return
}


Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
a.cc:28:1: error: 'func' does not name a type
   28 | func fln(format string, elements ...interface{}) {
      | ^~~~
a.cc:28:48: error: expected unqualified-id before ')' token
   28 | func fln(format string, elements ...interface{}) {
      |                                                ^
a.cc:33:1: error: 'var' does not name a type
   33 | var BufReader = bufio.NewReaderSize(os.Stdin, 1e6)
      | ^~~
a.cc:40:1: error: 'func' does not name a type
   40 | func ReadLineInt() (result []int) {
      | ^~~~
Language: C++

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

int main(){
  string s;
  cin>>s;
  int size=s.size();
  bool isidentical=false;
  for(int i=0;i<size;i++){
    for(int j=i;j<size;j++){
      if(s.at(j)==s.at(i))isidentical=true;
    }
  }
  if(is identical)cout<<"yes"<<endl;
  else cout<<"no"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:6: error: 'is' was not declared in this scope; did you mean 's'?
   14 |   if(is identical)cout<<"yes"<<endl;
      |      ^~
      |      s
a.cc:14:8: error: expected ')' before 'identical'
   14 |   if(is identical)cout<<"yes"<<endl;
      |     ~  ^~~~~~~~~~
      |        )
Language: C++

#include<iostream>
#include<string.h>
using namespace std;
#define M 100

int main()
{
    char str1[M],str2[M];
    int res;

    cin>>str1>>str2;

    strrev(str2);
    res=strcmp(str1, str2);

    if(res == 0){
        cout<<"YES"<<endl;
    }

    else{
        cout<<"NO"<<endl;
    }

    return 0;
}



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

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

int main(){
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  string s;
  cin>>s;
  char c[30];
  for(int i=0;i<s.length();i++){
     c[i]=s[i];
  }
  sort(c,c+n);
  int f=0;
  for(int i=0;i<s.length()-1;i++){
    if(c[i]==c[i+1]){
      f++;
    }
  }
  if(f){
    cout<<"no";
  }else{
    cout<<"yes";
  }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: 'n' was not declared in this scope
   13 |   sort(c,c+n);
      |            ^
Language: C++

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

int main()
{
    string s;
    cin>>s;
    map<char,int>mp;
    int i,count = 0,len = strlen(s);
    if(len>=2 && len<=26)
    {
        for(i=0; i<s.size(); i++)
    {
        mp[s[i]]++;
    }
    for(i=97; i<=122; i++)
    {
        if(mp[i]>1)
            count = 1;
    }
    if(count==0)
        cout<< "yes"<<endl;
    else
        cout<< "no"<<endl;
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:34: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   10 |     int i,count = 0,len = strlen(s);
      |                                  ^
      |                                  |
      |                                  std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
Language: C

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

int main(){

	char str[26];
	char result[26] = {0};
	int temp = 0;
	int Flag = 0;
	int len = 0;

	scanf("%s",str);
	len = strlen(str);

	for(int i=0; i<len; i++){
		result[str[i] - 'a']++;
	}

	for(int j=0; j<len; j++){
		if(result[j] > 1{
			printf("yes");
			return 0;
		}
	}

	printf("no");

	return 0;

}

Compiler output:
main.c: In function 'main':
main.c:20:33: error: expected ')' before '{' token
   20 |                 if(result[j] > 1{
      |                   ~             ^
      |                                 )
main.c:24:9: error: expected expression before '}' token
   24 |         }
      |         ^
Language: C++

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

int main() {
    string S;
    cin >> S;
    int N = S.size();
    string ans = "yes";
    for(int i = 0; i < N, i++) {
        for(int j = i + 1; j < N; j++) {
            if(S[i] == S[j]) {
                ans == "no";
                break;
            }
        }
    }

    cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:30: error: expected ';' before ')' token
   10 |     for(int i = 0; i < N, i++) {
      |                              ^
      |                              ;
a.cc:13:21: warning: ignoring return value of 'bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
   13 |                 ans == "no";
      |                 ~~~~^~~~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3772:5: note: declared here
 3772 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
Language: C++

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

int main() {
  string s;
  cin>>s;
  int n=s.size();
  string ans="yes";
  for(int i=0;i<n;i++){
    for(int j=i+1;j<n;j++){
      if(s[i]==s[j]) ans="no"<<endl;
    }
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   11 |       if(s[i]==s[j]) ans="no"<<endl;
      |                          ~~~~^~~~~~
Language: C++

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

int main(){
  string s;
  cin >> s;
  
  for (int i=0;i<n;++i){
    for (int j=0;j<n;++j){
      if (s[i]!=s[j]){
        cout << "yes"  << endl;
      }
      else cout << "no" << endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: 'n' was not declared in this scope
    8 |   for (int i=0;i<n;++i){
      |                  ^
Language: C++

#include<bits/stdc++.h>
#define int long long
#define fastio ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
using namespace std;
#define mod 1e9
int32_t main() {
	string s;
  int f=1;
  	map<char ,int> mp;
  for(auto c:s)
  {   	if(mp[c])
          f=0;
   mp[c]++
}
  if(f)
    	cout<<"Yes\n";
 else cout<<"No\n";
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:13:11: error: expected ';' before '}' token
   13 |    mp[c]++
      |           ^
      |           ;
   14 | }
      | ~
Language: C++

#include <bits/stdc++.h>
#define ALL(obj) begin(obj), end(obj)
#define debug(x) cerr << #x << ": " << x << '\n'
using namespace std;
template <class T>
vector<T> make_vec(size_t a) {
    return vector<T>(a);
}
template <class T, class... Ts>
auto make_vec(size_t a, Ts... ts) {
    return vector<decltype(make_vec<T>(ts...))>(a, make_vec<T>(ts...));
}
template <class T>
bool chmax(T &a, const T &b) {
    if (a < b) {
        a = b;
        return 1;
    }
    return 0;
}
template <class T>
bool chmin(T &a, const T &b) {
    if (b < a) {
        a = b;
        return 1;
    }
    return 0;
}

using ll = long long;
using ull = unsigned long long;
const int INF = 1e9;
// const int MOD = 1e9 + 7;

int get(int n) {
    if (n == 2) {
        return 0;
    } else if (n == 4 || n == 6 || n == 9 || n == 11) {
        return 1;
    } else {
        return 2;
    }
}

int main() {
    string S;
    cin >> S;
    set<char> s;
    for (auto c : S) {
        if (s.cout(c)) {
            cout << "no\n";
            return 0;
        } else {
            s.insert(c);
        }
    }
    cout << "yes\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:50:15: error: 'class std::set<char>' has no member named 'cout'; did you mean 'count'?
   50 |         if (s.cout(c)) {
      |               ^~~~
      |               count
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < n; i++)
#define rep1(i, n) for(int i = 1; i < n+1; i++)
#define sort(A) sort(A.begin(),A.end())
#define reverse(A) reverse(A.begin(),A.end());
#define vecmin(A) *min_element(A.begin(),A.end());
#define vecmax(A) *max_element(A.begin(),A.end());
typedef long long ll;

int maim(){
  string s;
  cin >> s;
  map<char,int> mp;
  for(char c : s) mp[c]++;
  if(mp.size() == s.size()) cout << "yes" << endl;
  cout << "no" << endl;
}

Compiler output:
a.cc: In function 'int maim()':
a.cc:18:1: warning: no return statement in function returning non-void [-Wreturn-type]
   18 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<bits/stdc++.h>
#define rep(i,n)for(int i=0;i<n;++i)
#include<string>
#include<vector>
using namespace std;
typedef long long ll;
typedef pair<int, int>P;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
//max=({});
//条件式が真ならwhileの中身を回し続ける
//printf("%d\n", ans);

//pairの入力
//vector<pair<ll, ll>>work(n);
//rep(i, n) {
//	ll a, b;
//	cin >> a >> b;
//	work[i] = make_pair(a, b);
//for(auto p:mp)(mapの探索)
//printf("%.10f\n",なんちゃら)

int g[15][15];
const int INF = 1001001001;
const int dx[4] = { -1,0,1,0 };
const int dy[4] = { 0,-1,0,1 };

//最大公約数
ll gcd(ll x, ll y) {
	return y ? gcd(y, x % y) : x;
}

ll lcm(ll x, ll y) {
	if (x == 0 || y == 0)return 0;
	return (x / gcd(x, y) * y);
}

//素因数分解
vector<pair<ll, int>>factorize(ll n) {
	vector<pair<ll, int>>res;
	for (ll i = 2;i * i <= n;++i) {
		if (n % i)continue;
		res.emplace_back(i, 0);
		while (n % i == 0) {
			n /= i;
			res.back().second++;
		}
	}
	if (n != 1)res.emplace_back(n, 1);
	return res;
}

int bingo[3][3];
bool flag[3][3];
int cnt[2][105];
int h, w;
int choco[1010][1010];
int s[11][11];

int main() {
	string s;
	cin >> s;
	int n = s.length();
	bool flag = true;
	vector<int>a(30);
	rep(i, n) {
		char x = s[i];
		int target = x - '0';
		a[target]++;
	}
	rep(i, 30) {
		if (a[i] >= 2)flag = false;
	}
	if (flag)puts("Yes");
	else puts("No")
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:75:24: error: expected ';' before 'return'
   75 |         else puts("No")
      |                        ^
      |                        ;
   76 |         return 0;
      |         ~~~~~~
Language: C++

#include<bits/stdc++.h>
#define rep(i,n)for(int i=0;i<n;++i)
#include<string>
#include<vector>
using namespace std;
typedef long long ll;
typedef pair<int, int>P;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
//max=({});
//条件式が真ならwhileの中身を回し続ける
//printf("%d\n", ans);

//pairの入力
//vector<pair<ll, ll>>work(n);
//rep(i, n) {
//	ll a, b;
//	cin >> a >> b;
//	work[i] = make_pair(a, b);
//for(auto p:mp)(mapの探索)
//printf("%.10f\n",なんちゃら)

int g[15][15];
const int INF = 1001001001;
const int dx[4] = { -1,0,1,0 };
const int dy[4] = { 0,-1,0,1 };

//最大公約数
ll gcd(ll x, ll y) {
	return y ? gcd(y, x % y) : x;
}

ll lcm(ll x, ll y) {
	if (x == 0 || y == 0)return 0;
	return (x / gcd(x, y) * y);
}

//素因数分解
vector<pair<ll, int>>factorize(ll n) {
	vector<pair<ll, int>>res;
	for (ll i = 2;i * i <= n;++i) {
		if (n % i)continue;
		res.emplace_back(i, 0);
		while (n % i == 0) {
			n /= i;
			res.back().second++;
		}
	}
	if (n != 1)res.emplace_back(n, 1);
	return res;
}

int bingo[3][3];
bool flag[3][3];
int cnt[2][105];
int h, w;
int choco[1010][1010];
int s[11][11];

int main() {
	string s;
	cin >> s;
	int n = s.length();
	bool flag = true;
	vector<int>a(30);
	rep(i, n) {
		string str = s[i];
		char x = str.c_str();
		int target = x - '0';
		a[target]++;
	}
	rep(i, 30) {
		if (a[i] >= 2)flag = false;
	}
	if (flag)puts("Yes");
	else puts("No");
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:67:33: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   67 |                 string str = s[i];
      |                                 ^
a.cc:68:35: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   68 |                 char x = str.c_str();
      |                          ~~~~~~~~~^~
      |                                   |
      |                                   const char*
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    String c[] = new String[S.length];
    for(int i=0;i<S.length();i++){
      c[i]=S.substring(i,i+1);
    }
    Arrays.sort(c);
    for(int i=0;i<S.length()-1;i++){
      if(c[i].equals(c[i+1])){
        System.out.println("No");
        return;
      }
    }
    System.out.println("Yes");
  }
  

  
}

Compiler output:
Main.java:6: error: cannot find symbol
    String c[] = new String[S.length];
                             ^
  symbol:   variable length
  location: variable S of type String
1 error
Language: C++

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

int main(){
  string str;
  cin >> str;
  sort(str.begin(), str.end());
  for(int i=0; i+1<str.size; i++){
    if(str[i]==str[i+1]){
      cout <<"no"<<endl;
    }
  }
  cout << "yes"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    8 |   for(int i=0; i+1<str.size; i++){
      |                    ~~~~^~~~
      |                            ()
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(ll i=0;i<(n);++i)
#define all(a) (a).begin(),(a).end()
#define dunk(a) cout << (a) << endl
#define rall(a) (a).rbegin(),(a).rend()
const int INF = 2e9;
using namespace std;
using Graph = vector<vector<int>>;
typedef pair<int,int> P;
typedef long long ll;

int main(){
    string s; cin >> s;
    vector<int> j(26,0);

    rep(i,s.size){
        j[s[i] - '0']++;
    }

    bool jud = true;

    rep(i,26) if(j[i] >= 2) jud = false;

    if(jud) cout << "yes" << endl;
    else cout << "no" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   16 |     rep(i,s.size){
      |             ^
a.cc:2:32: note: in definition of macro 'rep'
    2 | #define rep(i,n) for(ll i=0;i<(n);++i)
      |                                ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long int

int main(){
    int a[26]={0};
    string s;
    cin>>s;
    for(int i=0;i<s.length();i++)a[s[i]-'a']++;
    for(int i=0;i<26;i++){
        if(a[i]>1)f=1;
    }
    int f=0;
    if(f==1)cout<<"no";
    else cout<<"yes";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: 'f' was not declared in this scope
   11 |         if(a[i]>1)f=1;
      |                   ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
int main(){
    string s; cin >> s;
    int n = s.size();
    bool flag = false
    rep(i,n){
        for(int j = i+1; j < n; j++){
            if(s[i]==s[j]){
                flag = true;
                break;
            }
        }
        if(flag){
            break;
        }
    }

    if(flag){
        cout << "no" << endl;
    }else{
        cout << "yes" << endl;
    }
}




Compiler output:
a.cc: In function 'int main()':
a.cc:3:18: error: expected ',' or ';' before 'for'
    3 | #define rep(i,n) for(int i=0;i<(int)(n);i++)
      |                  ^~~
a.cc:8:5: note: in expansion of macro 'rep'
    8 |     rep(i,n){
      |     ^~~
a.cc:8:9: error: 'i' was not declared in this scope
    8 |     rep(i,n){
      |         ^
a.cc:3:30: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int i=0;i<(int)(n);i++)
      |                              ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  int al[26,0];
  bool ans = true;
  for (int i = 0; i < S.size(); i++) {
    al[S[i] - 97]++; 
  }
  for (int i = 0; i < 26; i++) {
    if (al[i] >= 2) ans = false;
  }
  if(ans) cout << "yes" << endl;
  else cout << "no" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected ']' before ',' token
    6 |   int al[26,0];
      |            ^
      |            ]
a.cc:6:13: error: expected unqualified-id before numeric constant
    6 |   int al[26,0];
      |             ^
a.cc:9:5: error: 'al' was not declared in this scope
    9 |     al[S[i] - 97]++;
      |     ^~
a.cc:12:9: error: 'al' was not declared in this scope
   12 |     if (al[i] >= 2) ans = false;
      |         ^~
Language: C++

/*
このコード、と～おれ!
Be accepted!
∧＿∧　
（｡･ω･｡)つ━☆・*。
⊂　　 ノ 　　　・゜+.
　しーＪ　　　°。+ *´¨)
 　　　　　　　　　.· ´¸.·*´¨) ¸.·*¨)
		  　　　　　　　　　　(¸.·´ (¸.·'* ☆
*/

#include <cstdio>
#include <algorithm>
#include <string>
#include <cmath>
#include <cstring>
#include <vector>
#include <numeric>
#include <iostream>
#include <random>
#include <map>
#include <unordered_map>
#include <queue>
#include <regex>
#include <functional>
#include <complex>
#include <list>
#include <cassert>
#include <iomanip>
#include <set>
#include <stack>
/*多倍長整数/cpp_intで宣言
#include <boost/multiprecision/cpp_int.hpp>
using namespace boost::multiprecision;
*/

#pragma gcc target ("avx2")
#pragma gcc optimization ("o3")
#pragma gcc optimization ("unroll-loops")
#define rep(i, n) for(int i = 0; i < (n); ++i)
#define rep1(i, n) for(int i = 1; i <= (n); ++i)
#define rep2(i, n) for(int i = 2; i < (n); ++i)
#define repr(i, n) for(int i = n; i >= 0; --i)
#define reprm(i, n) for(int i = n - 1; i >= 0; --i)
#define printynl(a) printf(a ? "yes\n" : "no\n")
#define printyn(a) printf(a ? "Yes\n" : "No\n")
#define printYN(a) printf(a ? "YES\n" : "NO\n")
#define printim(a) printf(a ? "possible\n" : "imposible\n")
#define printdb(a) printf("%.50lf\n", a) //少数出力
#define printdbd(a) printf("%.16lf\n", a) //少数出力(桁少なめ)
#define prints(s) printf("%s\n", s.c_str()) //string出力
#define all(x) (x).begin(), (x).end()
#define allsum(a, b, c) ((a + b) * c / 2.0) //等差数列の和、初項,末項,項数
#define pb push_back
#define priq priority_queue
#define rpriq priq<int, vector<int>, greater<int>>
#define deg_to_rad(deg) (((deg)/360.0)*2.0*PI)
#define rad_to_deg(rad) (((rad)/2.0/PI)*360.0)
#define Please return
#define AC 0
#define addf(T) [](T a, T b){return (a + b);}
#define minf(T) [](T a, T b){return min(a, b);}
#define maxf(T) [](T a, T b){return max(a, b);}
#define nopf(T) [](T a){return a;}
#define manhattan_dist(a, b, c, d) (abs(a - c) + abs(b - d)) /*(a, b) から (c, d) のマンハッタン距離 */


using ll = long long;

constexpr int INF = 1073741823;
constexpr int MINF = -1073741823;
constexpr ll LINF = ll(4661686018427387903);
constexpr ll MOD = 1000000007;
const long double PI = acos(-1.0L);

using namespace std;

void scans(string& str) {
	char c;
	str = "";
	scanf("%c", &c);
	if (c == '\n')scanf("%c", &c);
	while (c != '\n' && c != -1 && c != ' ') {
		str += c;
		scanf("%c", &c);
	}
}

void scanc(char& str) {
	char c;
	scanf("%c", &c);
	if (c == -1)return;
	while (c == '\n') {
		scanf("%c", &c);
	}
	str = c;
}

double acot(double x) {
	return PI / 2 - atan(x);
}

ll gcd(ll a, ll b) {
	if (b == 0) return a;
	return gcd(b, a % b);
}

ll lcm(ll number1, ll number2) {
	return number1 / gcd(number1, number2) * number2;
}

ll LSB(ll n) { return (n & (-n)); }

/*-----------------------------------------ここからコード-----------------------------------------*/



int main() {

	string s;
	scans(s);
	set<char> t;
	for(const auto &aa : s){
	  if(t.find(aa) != t.end()){
	    printf("no\n");
	    return AC;
		}
		t.push(aa);
	}
	printf("yes\n");

	Please AC;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:128:19: error: 'class std::set<char>' has no member named 'push'
  128 |                 t.push(aa);
      |                   ^~~~
Language: C++

#include <bits/stdc++.h>
 
int main()
{
   string s;
  cin>>s;
  int h[26],i;
  for(i=0;i<26;++i)
       h[i]=0;
  
  for(i=0;i<s.length();++i)
  {
    h[s[i]-97]++;
  }
  
  for(i=0;i<26;++i)
  {
    if(h[i]>1)
         break;
  }
  if(i==26)
      printf("yes");
  
  else
     printf("no");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:4: error: 'string' was not declared in this scope
    5 |    string s;
      |    ^~~~~~
a.cc:5:4: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>s;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:8: error: 's' was not declared in this scope
    6 |   cin>>s;
      |        ^
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
#include<queue>
#include<map>
using namespace std;
typedef long long ll;
ll MOD = 1e9+7;
#define rep(i,n) for(int i = 0; i < (n); ++i)
int main() {
    string s;
    set<char> st;
    rep(i, s.length()) {
        st.insert(s[i]);
    }
    if ( st.size() = s.length() ) cout << "yes" << endl;
    else                          cout << "no" << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'set' was not declared in this scope
   12 |     set<char> st;
      |     ^~~
a.cc:6:1: note: 'std::set' is defined in header '<set>'; this is probably fixable by adding '#include <set>'
    5 | #include<map>
  +++ |+#include <set>
    6 | using namespace std;
a.cc:12:9: error: expected primary-expression before 'char'
   12 |     set<char> st;
      |         ^~~~
a.cc:14:9: error: 'st' was not declared in this scope; did you mean 's'?
   14 |         st.insert(s[i]);
      |         ^~
      |         s
a.cc:16:10: error: 'st' was not declared in this scope; did you mean 's'?
   16 |     if ( st.size() = s.length() ) cout << "yes" << endl;
      |          ^~
      |          s
Language: C++

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

int main() {
  stirng S;
  cin >> S;
  string ans = "yes";
  for (int i = 0; i < S.size() - 1; i++) {
    for (int j = i + 1; j < S.size(); j++) {
      if (S.at(i) == S.at(j)) ans = "no";
    }
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'stirng' was not declared in this scope
    5 |   stirng S;
      |   ^~~~~~
a.cc:6:10: error: 'S' was not declared in this scope
    6 |   cin >> S;
      |          ^
Language: C++

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

int main() {
  stirng S;
  cin >> S;
  string ans = "yes";
  for (int i = 0; i < S.size() - 1; i++) {
    for (int j = i + 1; j < S.size(); j++) {
      if (S.at(i) == S.at(j)) ans = "no";
    }
  }
  cout << ans << endl;
}


Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | v#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'v' does not name a type
    1 | v#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:5:3: error: 'stirng' was not declared in this scope
    5 |   stirng S;
      |   ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> S;
      |   ^~~
a.cc:6:10: error: 'S' was not declared in this scope
    6 |   cin >> S;
      |          ^
a.cc:7:3: error: 'string' was not declared in this scope
    7 |   string ans = "yes";
      |   ^~~~~~
a.cc:10:31: error: 'ans' was not declared in this scope
   10 |       if (S.at(i) == S.at(j)) ans = "no";
      |                               ^~~
a.cc:13:3: error: 'cout' was not declared in this scope
   13 |   cout << ans << endl;
      |   ^~~~
a.cc:13:11: error: 'ans' was not declared in this scope
   13 |   cout << ans << endl;
      |           ^~~
a.cc:13:18: error: 'endl' was not declared in this scope
   13 |   cout << ans << endl;
      |                  ^~~~
Language: Java

import java.util.*;
public class Main { 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        Set<String> visited = new HashSet<>();
        for(char c : str.toCharArray()) {
          if(visited.contains(c)) {
            System.out.println("no");
            return;
          }
          visited.add(c);
        }
        System.out.println("yes");
    }
}

Compiler output:
Main.java:12: error: incompatible types: char cannot be converted to String
          visited.add(c);
                      ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: C++

#include <iostream>

using namespace std;

int main()
{
    int c,h;
    set<char>se;
    string s;
     cin>>s;
    for(int i=0;i<s.size();i++)
          se.insert(s[i]);
    if(s.size()==se.size())
        cout<<"Yes";
    else 
        cout<<"No";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'set' was not declared in this scope
    8 |     set<char>se;
      |     ^~~
a.cc:2:1: note: 'std::set' is defined in header '<set>'; this is probably fixable by adding '#include <set>'
    1 | #include <iostream>
  +++ |+#include <set>
    2 | 
a.cc:8:9: error: expected primary-expression before 'char'
    8 |     set<char>se;
      |         ^~~~
a.cc:12:11: error: 'se' was not declared in this scope; did you mean 's'?
   12 |           se.insert(s[i]);
      |           ^~
      |           s
a.cc:13:18: error: 'se' was not declared in this scope; did you mean 's'?
   13 |     if(s.size()==se.size())
      |                  ^~
      |                  s
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
    string S;
    cin >>S;
    sort(S.begin(),S.end());
    int len=S.size();
    for(int i=0;i+1<len;i++){
        if(S.at(i)==S.at(i+1)){
            cout<<"no";
            return 0;
        }
    }
    cout<<"yes";
    return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:16:14: error: expected '}' at end of input
   16 |     return 0;
      |              ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^