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

#include <iostream>
#include <vector>
#include <string>

int main(){

    string s;
    cin >> s;

    int cnt[26] = {0};
    for(int i = 0; i < s.size(); i++){
        cnt[s[i] - 'a'] ++;
    }

    for(int i = 0; i < 26; i++){
        if(cnt[i] >= 2){
            std::cout << "no" << std::endl;
            return 0;
        }
    }

            std::cout << "yes" << std::endl;


}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'string' was not declared in this scope
    7 |     string s;
      |     ^~~~~~
a.cc:7:5: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:8:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |     cin >> s;
      |     ^~~
      |     std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:12: error: 's' was not declared in this scope
    8 |     cin >> s;
      |            ^
Language: C++

#include<iostream>
using namespace std;

int main() {
  strig S;
  cin >> S;
  bool A = true;
  for(int i = 0;i < 26;i++) {
    int count = 0;
    for(int j = 0;j < S.size();j++) {
      if(S.at(j) == 'a' + i) {
        count++;
      }
    }
    if(count > 1) {
      A = false;
      break;
    }
  }
  if(A == true) {
    cout << "yes" << endl;
  }
  else {
    cout << "no" << endl;
  }
}

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

#include<iostream>
using namespace std;
int main(){
  char s[30];
  int a[200]={};
  
  cin>>s;
  bool flg=false;
  for(int i=0;i<strlen(s);i++){
    if(a[s[i]]==1){
      flg=true;
    }
    a[s[i]]=1;
  }
  if(flg){
    cout<<"no\n";
  }else{
    cout<<"yes\n";
  }

  return 0;
}


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

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

const int INF = 1e9;
const int MOD = 1e9+7;
const longlong LINF = 1e18;


int main(){
  string S;
  cin >> S;
  bool ok = true;
  for(int i = 0; i < S.size()-1; i++){
    for(int j = i+1; j < S.size(); j++){
      if(S[i] == S[j]) ok = false;
    }
  }
  if(ok) cout << "Yes" <<endl;
  else cout << "No" <<endl;

}
  


Compiler output:
a.cc:9:7: error: 'longlong' does not name a type
    9 | const longlong LINF = 1e18;
      |       ^~~~~~~~
Language: C++

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

#define REP(i, n) for(int i=0; i<n;i++)
#define REPR(i, n) for(int i=n-1 ; i>=0; i--)
#define FOR(i, m, n) for(int i=m; i<n; i++)

#define INF 2e9
#define ll long long

int main(){
    string s;
    cin>>s;
    int a[26];
    REP(i, 26){
        a[i] = 0
    }
    for(auto v:s){
        int tmp = v - 'a';
        a[tmp]++;
        if(a[tmp]>=2){
            cout<<"no"<<endl;
            return 0;
        }
    }
    cout<<"yes"<<endl;
    return 0;
}

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

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

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

    bool can = true;
    sort(S.begin(), S.end());
    rep(i, N-1) {
        if (S[i] == S[i+1]) can = false; 
    }
    if (can) cout << "yes" << endl;
    else cout << "no" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 'N' was not declared in this scope
   10 |     rep(i, N-1) {
      |            ^
a.cc:2:40: note: in definition of macro 'rep'
    2 | #define rep(i, n) for (int i = 0; i < (n); i++)
      |                                        ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: 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<s.size; i++) {
      |                   ~~^~~~
      |                         ()
a.cc:9:9: error: 'S' was not declared in this scope
    9 |     num[S[i] - 'a']++;
      |         ^
Language: C++

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


int main(){
  string S;
  cin >> S;
  set<char> T;
  for(auto& s : S){
    T.insert(s)
  }
  cout << (S.size() == T.size() ? "yes" : "no") << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before '}' token
   10 |     T.insert(s)
      |                ^
      |                ;
   11 |   }
      |   ~
Language: C++

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


int main(){
  int S;
  cin >> S;
  set<char> T;
  for(auto& s : S){
    T.insert(s)
  }
  cout << (S.size() == T.size() ? "yes" : "no") << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'begin' was not declared in this scope
    9 |   for(auto& s : S){
      |                 ^
a.cc:9:17: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166,
                 from a.cc:1:
/usr/include/c++/14/valarray:1238:5: note:   'std::begin'
 1238 |     begin(const valarray<_Tp>& __va) noexcept
      |     ^~~~~
In file included from /usr/include/c++/14/filesystem:53,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200:
/usr/include/c++/14/bits/fs_dir.h:608:3: note:   'std::filesystem::__cxx11::begin'
  608 |   begin(recursive_directory_iterator __iter) noexcept
      |   ^~~~~
a.cc:9:17: error: 'end' was not declared in this scope
    9 |   for(auto& s : S){
      |                 ^
a.cc:9:17: note: suggested alternatives:
/usr/include/c++/14/valarray:1265:5: note:   'std::end'
 1265 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~
/usr/include/c++/14/bits/fs_dir.h:613:3: note:   'std::filesystem::__cxx11::end'
  613 |   end(recursive_directory_iterator) noexcept
      |   ^~~
a.cc:12:14: error: request for member 'size' in 'S', which is of non-class type 'int'
   12 |   cout << (S.size() == T.size() ? "yes" : "no") << endl;
      |              ^~~~
Language: Java

import java.util.*;
class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    String s=sc.next();
    char[] chars=new char[s.length()];
    for(int i=0;i<s.length();i++){
      chars[i]=s.charAt(i);
    }
    Arrays.sort(chars);
    for(int i=0;i<s.length()-1;i++){
      if(chars[i]==chars[i+1]){
          System.out.println("no")
          return;
        
      }
    }
    System.out.println("yes");
  }
}


Compiler output:
Main.java:13: error: ';' expected
          System.out.println("no")
                                  ^
1 error
Language: Java

import java.util.*;
class Main{
  public static main(String[] args){
    Scanner sc=new Scanner(System.in);
    String s=sc.next();
    char[] chars=new char[s.length()];
    for(int i=0;i<s.length()i++){
      chars[i]=s.charAt(i);
    }
    Arrays.sort(chars);
    for(int i=0;i<s.length()-1;i++){
      if(chars[i]==chars[i+1]){
          System.out.println("no");
          return;
        
      }
    }
    System.out.println("yes");
  }
}


Compiler output:
Main.java:3: error: invalid method declaration; return type required
  public static main(String[] args){
                ^
Main.java:7: error: ';' expected
    for(int i=0;i<s.length()i++){
                            ^
2 errors
Language: Java

import java.util.*;
class Main{
  public static main(String[] args){
    Scanner sc=new Scanner(System.in);
    String s=sc.next();
    char[] chars=new char[s.length()];
    for(int i=0;i<s.length()i++){
      chars[i]=s.charAt(i);
    }
    Arrays.sort(chars);
    for(int i=0;i<s.length()-1;i++){
      if(chars[i]==chars[i+1]){
          System.out.println("no")
          return;
        
      }
    }
    System.out.println("yes");
  }
}

Compiler output:
Main.java:3: error: invalid method declaration; return type required
  public static main(String[] args){
                ^
Main.java:7: error: ';' expected
    for(int i=0;i<s.length()i++){
                            ^
Main.java:13: error: ';' expected
          System.out.println("no")
                                  ^
3 errors
Language: C++

#include<iostream>
#include<stdio.h>
#include<string.h>
#include<algorithm>
#include<vector>
#include<queue>
#include<map>
#include<set>
#include<iomanip>
#include<cmath>



#define REP(i,n) for (int i = 0; (i) < (n); ++ (i))

using namespace std;
string s;
int a[30];

int main(){
  cin >> s;
  string ans = "yes";
  REP(i,s.size()){
    if(a[s[i]-'a'] ==0) a[s[i]-'a']++
    else ans = "no";
  }
  cout << ans << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:38: error: expected ';' before 'else'
   24 |     if(a[s[i]-'a'] ==0) a[s[i]-'a']++
      |                                      ^
      |                                      ;
   25 |     else ans = "no";
      |     ~~~~
Language: C++

#include<algorithm>
#include<cmath>
#include<cstdio>
#include<iostream>
#include<map>
#include<numeric>
#include<queue>
#include<sstream>
#include<stack>
#include<string>
#include<unordered_set>
#include<vector>

#define ll long long
#define P pair<int,int>
#define FOR(i,N) for(int i=0;i<(int)N;i++)
#define FORIN(i,a,b) for(int i=a;i<(int)b;i++)
#define ALL(x) (x).begin(),(x).end()
#define LAST(x) (x)[(x).size()-1]
#define GI(name) int (name);scanf("%d",&(name))
#define GI2(name1,name2) int (name1),(name2);scanf("%d %d",&(name1),&(name2))
#define GI3(name1,name2,name3) int (name1),(name2),(name3);scanf("%d %d %d",&(name1),&(name2),&(name3))
#define GVI(name,size) vector<int> (name)(size);FOR(i,(size))scanf("%d",&(name)[i])
#define MOD 1000000007

using namespace std;

string to_hex(int x){
    stringstream ss;
    ss<<hex<<x;
    return ss.str();
}

inline int get_int(){
    int ret;
    scanf("%d",&ret);
    return ret;
}

inline vector<int> get_ints(int n){
    vector<int> ret(n);
    FOR(i,n){
        scanf("%d",&ret[i]);
    }
    return ret;
}

inline string get_str(){
    string ret;
    cin>>ret;
    return ret;
}

bool is_prime(int n){
    int s=sqrt(n)+1;
    for(int i=2;i<=s;++i){
        if(n%i==0){
            return 0;
        }
    }
    return 1;
}

vector<P> prime_division(int n){
    vector<P> ret;
    int s=sqrt(n)+1;
    int c=0;
    for(int i=2;i<=n;++i){
        if(n%i==0){
            c=0;
            do{
                ++c;
                n/=i;
            }while(n%i==0);
            ret.push_back(P(i,c));
        }
    }
    return ret;
}

string to_string(string s){
    return s;
}

template<class T>
string to_string(vector<T> v){
    string ret="{";
    FOR(i,v.size()-1){
        ret+=to_string(v[i])+",";
    }
    if(v.size()>0){
        ret+=to_string(LAST(v));
    }
    ret+="}";
    return ret;
}

void debug_print(){
    cerr<<endl;
}

template<class Head,class... Tail>
void debug_print(Head head,Tail... tail){
    cerr<<to_string(head)<<" ";
    debug_print(tail...);
}

template<class... T>
void debug(T... args){
    cerr<<"["<<__LINE__<<"]: ";
    debug_print(args...);
}

void print(){
    cout<<endl;
}

template<class Head,class... Tail>
void print(Head head,Tail... tail){
    cout<<to_string(head);
    print(tail...);
}

int main(){
    string S=get_str();
    unordererd_set<int> list;
    FOR(i,S.size()){
        if(list.count(S[i])){
            print("no");
            return 0;
        }else{
            list.insert(S[i]);
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:126:5: error: 'unordererd_set' was not declared in this scope
  126 |     unordererd_set<int> list;
      |     ^~~~~~~~~~~~~~
a.cc:126:20: error: expected primary-expression before 'int'
  126 |     unordererd_set<int> list;
      |                    ^~~
a.cc:128:12: error: 'list' was not declared in this scope
  128 |         if(list.count(S[i])){
      |            ^~~~
a.cc:12:1: note: 'std::list' is defined in header '<list>'; this is probably fixable by adding '#include <list>'
   11 | #include<unordered_set>
  +++ |+#include <list>
   12 | #include<vector>
Language: C++

#include<algorithm>
#include<cmath>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<functional>
#include<iomanip>
#include<iostream>
#include<list>
#include<map>
#include<queue>
#include<random>
#include<set>
#include<stack>
#include<string>
#include<utility>
#include<vector>

#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define rep(i,n)   FOR(i,0,n)
#define FORR(i,a,b) for(int i=(a);i>=(b);--i)
#define REPR(i,n)   FORR(i,n,0)
#define int long long

using namespace std;
typedef pair<int, int> pii;

string s;
int a[30]={0};

signed main() {
	cin>>s;
    bool f=true;
	rep(i,s.length()){
        if(a[s[i]-97]!=0){
            f=false;
        }
        a[s[i]-97]++;
    }
	
    if(f){
        cout<<"yes"<<endl;
    }
    else{
        cout<<"no"<<endl
    }

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:45:25: error: expected ';' before '}' token
   45 |         cout<<"no"<<endl
      |                         ^
      |                         ;
   46 |     }
      |     ~
Language: C++

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

int main(){
    string s;
    cin>>s;
    map<char,int> mp;
    for(int i=0;i<s.size();i++){
        mp[s[i]] ++;
    }

    for(i=0;i<mp.size();i++){
        if(mp[s[i]]>=2){
            cout<<"no"<<endl;
        }else{
            cout<<"yes"<<endl;
        }
    }

    return 0;
}

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

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

int main(){
    string s;
    cin>>s;
    set<char> ss;
    for(int i=0;i<s.size();i++){
        ss[i] = s[i]
    }

    if(s.size() == ss.size()){
        cout<<"yes"<<endl;
    }else{
        cout<<"no"<<endl;
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: no match for 'operator[]' (operand types are 'std::set<char>' and 'int')
    9 |         ss[i] = s[i]
      |           ^
Language: C++

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

	int main(){
      string S;
      cin >> S;
      int a[26]={}
      for (int i=0;i<S.size();i++){
        a[S[i]-'a']+=1;
        if (a[S[i]-'a']=2){
          cout << "no" <<endl;
          return 0;
        }
      }
      cout << "yes" <<endl;
    }

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

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

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

    vector<char> check;

    for(int i =0; i < s.size(); ++i) {
        if(find(s.begin(), s.end(), s[i]) != s.end()) {
            cout  << "no" << endl;
            return 0;

        } else {
            check.push_back(s[i]);
        }
        
    } 
    cout << "yes" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: no matching function for call to 'find(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&)'
   13 |         if(find(s.begin(), s.end(), s[i]) != s.end()) {
      |            ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
                 from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)'
  435 |     find(istreambuf_iterator<_CharT> __first,
      |     ^~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note:   template argument deduction/substitution failed:
a.cc:13:16: note:   '__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >' is not derived from 'std::istreambuf_iterator<_CharT>'
   13 |         if(find(s.begin(), s.end(), s[i]) != s.end()) {
      |            ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include "bits/stdc++.h"
using namespace std;
int main(){
string s;
cin>>s;
char al[26]={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
int cnt[26];
for(int i=0;i<26;i++)cnt[i]=0;
for(int i=0;i<26;i++){
for(int j=0;j<26;j++){
if(s[i]==al[j]){
if(cnt[j]){
cout<<"no"<<endl;
return 0;
}
cnt[j]++;
}
}
cout<<"yes"<<endl;
}


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

#include <stdio.h>
int main(void){
char s[100];
  int count,flag=0;
  for(count=0;;count++){
  if(s[count]==s[count+1]){count++;}
    if(s[count]=='\0'){break;}
    else{flag=1; break;}
  }
  if(flag==0){printf("yes\n");}
  else{printf("no\n")}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:22: error: expected ';' before '}' token
   11 |   else{printf("no\n")}
      |                      ^
      |                      ;
Language: C++

#include <iostream>
#include <string>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'stirng' was not declared in this scope
    7 |   stirng s; cin >> s;
      |   ^~~~~~
a.cc:7:20: error: 's' was not declared in this scope
    7 |   stirng s; cin >> s;
      |                    ^
a.cc:9:3: error: 'memset' was not declared in this scope
    9 |   memset(a, 0);
      |   ^~~~~~
a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | #include <string>
Language: C++

#include<vector>
int main() {
	int out=0;
	
	std::string a;
	
	
	std::cin >> a;
	
	for (int j = 0; j < a.size(); j++) {
		for (int i = 0; i < a.size(); i++) {

			if (a[i] == a[j]) {
				out++;
			}

		}
	}
	
	if (out == a.size()) {
		std::cout << "yes" << std::endl;
	}
	else {
		std::cout << "no" << std::endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: 'string' is not a member of 'std'
    5 |         std::string a;
      |              ^~~~~~
a.cc:2:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    1 | #include<vector>
  +++ |+#include <string>
    2 | int main() {
a.cc:8:14: error: 'cin' is not a member of 'std'
    8 |         std::cin >> a;
      |              ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<vector>
  +++ |+#include <iostream>
    2 | int main() {
a.cc:8:21: error: 'a' was not declared in this scope
    8 |         std::cin >> a;
      |                     ^
a.cc:21:22: error: 'cout' is not a member of 'std'
   21 |                 std::cout << "yes" << std::endl;
      |                      ^~~~
a.cc:21:22: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:44: error: 'endl' is not a member of 'std'
   21 |                 std::cout << "yes" << std::endl;
      |                                            ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<vector>
  +++ |+#include <ostream>
    2 | int main() {
a.cc:24:22: error: 'cout' is not a member of 'std'
   24 |                 std::cout << "no" << std::endl;
      |                      ^~~~
a.cc:24:22: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:24:43: error: 'endl' is not a member of 'std'
   24 |                 std::cout << "no" << std::endl;
      |                                           ^~~~
a.cc:24:43: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<iostream>
#include<string>
#include<vector>
using namespace std;
int main() {
	int i = 0;
	bool a = false;
	string S;
	cin >> S;
	for (i = 1; i < S.size; i++) {
		if (S.at(i - 1) == S.at(i)) {
			a = true;
		}
	}
	if (a == true) {
		cout<<"yes"<<endl;
	}
	else {
		cout << "no" << endl;
	}
	return 0;
}

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

#include<iostream>
#include<string>
#include<vector>
using namespace std;
int main() {
	int i = 0;
	bool a = false;
	string S;
	cin >> S;
	for (i = 1; i < S.length; i++) {
		if (S.at(i - 1) == S.at(i)) {
			a = true;
		}
	}
	if (a == true) {
		cout<<"yes"<<endl;
	}
	else {
		cout << "no" << endl;
	}
	return 0;
}

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

#include<iostream>
#include<string>
#include<vector>
#define REP(i,n) for(int i=0;i<(n);++i)
using namespace std;

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

	vector<char> c;
	int n = s.size();
	REP(i, n) c.push_back(s[i]);
	sort(c.begin(), c.end());

	bool jud = true;
	for(int i = 1; i < n; ++i){
		if(c[i] == c[i - 1]) jud = false;
	}

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

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   14 |         sort(c.begin(), c.end());
      |         ^~~~
      |         short
Language: C++

#include<iostream>
#include<string>
#include<array>
#define REP(i,n) for(int i=0;i<(n);++i)
using namespace std;

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

	int n = s.size();
	array<char, 26> c;
	REP(i, n) c[i] = s[i];
	sort(c.begin(), c.begin() + n);

	bool jud = true;
	for(int i = 1; i < n; ++i){
		if(c[i] == c[i - 1]) jud = false;
	}

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   14 |         sort(c.begin(), c.begin() + n);
      |         ^~~~
      |         short
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <numeric>
#include <cmath>
#include <unordered_map>
void _cin(){} template <class Head, class... Tail> void _cin(Head&& head, Tail&&... tail){ std::cin >> head; _cin(std::forward<Tail>(tail)...); }
void _cout(){ std::cout << "\n"; } template <class Head, class... Tail> void _cout(Head&& head, Tail&&... tail){ std::cout << head; _cout(std::forward<Tail>(tail)...); }
#define For(i, n) for(int i = 0; i < (n); i ++)
#define Range(c) c.begin(), c.end()
#define RevRange(c) c.rbegin(), c.rend()
#define Contains(c, x) (find(Range(c), x) != c.end())
#define Sort(a) sort(Range(a))
#define DeSort(a) sort(RevRange(a))
#define Vec2(T, n, m, xs) vector<vector<T>> xs(n, vector<T>(m))
#define Sum(a) accumulate(Range(a), 0)
#define Cusum(T, n, xs, sxs) vector<T> sxs(n+1); For(i, n) sxs[i+1] = sxs[i] + xs[i]
#define Cin(T, ...) T __VA_ARGS__; _cin(__VA_ARGS__)
#define Cins(T, n, xs) vector<T> xs(n); For(i, n) cin >> xs[i]
#define Cins2(T, n, xs, ys) vector<T> xs(n), ys(n); For(i, n) cin >> xs[i] >> ys[i]
#define Cins3(T, n, xs, ys, zs) vector<T> xs(n), ys(n), zs(n); For(i, n) cin >> xs[i] >> ys[i] >> zs[i]
#define Cinss(T, n, m, xs) Vec2(T, n, m, xs); For(i, n) For(j, m) cin >> xs[i][j]
#define Cinm(T, n, map) unordered_map<T, int> map; For(i, n){ Cin(T, x); map[x] ++; }
#define Cout(...) _cout(__VA_ARGS__);
#define Couts(xs) for(const auto &e : xs) cout << e << " "; cout << "\n"
#define Coutyn(cond) Cout((cond) ? "yes" : "no")
#define CoutYn(cond) Cout((cond) ? "Yes" : "No")
#define CoutYN(cond) Cout((cond) ? "YES" : "NO")

using namespace std;
using ll = long long;

int main(void){
    Cins(string, s);
    Sort(s);
    Coutyn(unique(Range(s)) == s.end());
}


Compiler output:
a.cc:35:19: error: macro "Cins" requires 3 arguments, but only 2 given
   35 |     Cins(string, s);
      |                   ^
a.cc:20:9: note: macro "Cins" defined here
   20 | #define Cins(T, n, xs) vector<T> xs(n); For(i, n) cin >> xs[i]
      |         ^~~~
a.cc: In function 'int main()':
a.cc:35:5: error: 'Cins' was not declared in this scope
   35 |     Cins(string, s);
      |     ^~~~
a.cc:36:10: error: 's' was not declared in this scope
   36 |     Sort(s);
      |          ^
a.cc:11:18: note: in definition of macro 'Range'
   11 | #define Range(c) c.begin(), c.end()
      |                  ^
a.cc:36:5: note: in expansion of macro 'Sort'
   36 |     Sort(s);
      |     ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;


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

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

#include <bits/stdc++.h>

using namespace std;


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


Compiler output:
a.cc: In function 'int main()':
a.cc:19:28: error: expected '}' at end of input
   19 |     else cout<<"yes"<<endl;
      |                            ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>

using namespace std;


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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:28: error: expected '}' at end of input
   19 |     else cout<<"yes"<<endl;
      |                            ^
a.cc:11:30: note: to match this '{'
   11 |   for(int i=0;i<s.size();i++){
      |                              ^
a.cc:19:28: error: expected '}' at end of input
   19 |     else cout<<"yes"<<endl;
      |                            ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C++

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

int main(){

  int alf[27]={};
  string str;
  getline(cin, S);

  for(int i=0; i<S.size(); i++){
    alf[S[i]-'a']++;
  }

  for(int i=0; i<27; i++){
    if(alf[i] > 1){
      cout << "no" << endl;
      return 0;
    }
  }

  cout << "yes" << endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: 'S' was not declared in this scope
    9 |   getline(cin, S);
      |                ^
Language: C++


using namespace std;

typedef long long ll;

#define rep(i, n) for(int i = 0; i < n; i++)
#define repi(i, start, end) for(int i = start; i < end; i++)
#define all(x) (x).begin(), (x).end()
#define debug(x) cout << (x) << endl;
#define INF (1e9)
#define add_mod(a, b, x) ( (ll)(a) + (ll)(b) ) % (ll)(x)
#define mul_mod(a, b, x) ( ((ll)(a) % (ll)(x)) * ((ll)(b) % (ll)(x)) ) % (ll)(x)

ll sub_mod(ll a, ll b, ll x){
    ll tmp = (a - b) % x;
    if(tmp < 0) tmp += x;
    return tmp;
}

int dx[] = {0, 1, 0, -1};
int dy[] = {-1, 0, 1, 0};

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

    string s;
    cin >> s;

    bool outflag = false;
    int flag[30] = {0};
    for(auto itr = s.begin(); itr != s.end(); itr++){
        if(flag[*itr - 'a'] == 0){
            flag[*itr - 'a'] = 1;
        }else{
            outflag = true;
        }
    }

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

Compiler output:
a.cc: In function 'int main()':
a.cc:24:5: error: 'cin' was not declared in this scope
   24 |     cin.tie(0);
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | 
a.cc:25:5: error: 'ios' has not been declared
   25 |     ios::sync_with_stdio(false);
      |     ^~~
a.cc:27:5: error: 'string' was not declared in this scope
   27 |     string s;
      |     ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | 
a.cc:28:12: error: 's' was not declared in this scope
   28 |     cin >> s;
      |            ^
a.cc:40:17: error: 'cout' was not declared in this scope
   40 |     if(outflag) cout << "no" << endl;
      |                 ^~~~
a.cc:40:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:40:33: error: 'endl' was not declared in this scope
   40 |     if(outflag) cout << "no" << endl;
      |                                 ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | 
a.cc:41:10: error: 'cout' was not declared in this scope
   41 |     else cout << "yes" << endl;
      |          ^~~~
a.cc:41:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:41:27: error: 'endl' was not declared in this scope
   41 |     else cout << "yes" << endl;
      |                           ^~~~
a.cc:41:27: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <vector>
#include <deque>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <algorithm>
#include <functional>
#include <utility>
#include <bitset>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <cstdio>

using namespace std;

#define REP(i, n) for (int i = 0; i < n; i++) 

int main() {
	ios::sync_with_stdio(false);
	cin.tie(0);
	string s;
	cin >> s;
	int l = s.length();
	bool flag = true;
	for (int i = 0; i <= l; i++) {
		for (j = i + 1; j <= l; j++) {
			if (s[i] == s[j]) flag = false;
		}
	}
	if (flag = true) {
		cout << "yes" << endl;
	} else {
		cout << "no" << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:22: error: 'j' was not declared in this scope
   32 |                 for (j = i + 1; j <= l; j++) {
      |                      ^
Language: C

#include<stdio.h>
check(char s){
  
}

int main(){
  int len = 0, i;
  char s[27];
  scanf("%s", s);
  
  while(s[len]){
    len++;
  }
  for (i = 0; i < len; i++){
    for (j = i + 1; j < len; j++){
      if(s[i] == s[j]){
        printf("no\n");
        return 0;
      }
    }
  }
  
  printf("yes\n");
  return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | check(char s){
      | ^~~~~
main.c: In function 'main':
main.c:15:10: error: 'j' undeclared (first use in this function)
   15 |     for (j = i + 1; j < len; j++){
      |          ^
main.c:15:10: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

using namespace std;
int a[30]={};
int main(){
	string s;
	cin>>s;
	int d=s.size();
	for(int i=0;i<d;i++){
		a[s[i]-97]++;
	}
	for(int i=0;i<26;i++){
	if(a[i]>1){cout<<"no"<<endl;return 0;}
	}
	cout<<"yes"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'string' was not declared in this scope
    4 |         string s;
      |         ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin>>s;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:5:14: error: 's' was not declared in this scope
    5 |         cin>>s;
      |              ^
a.cc:11:20: error: 'cout' was not declared in this scope
   11 |         if(a[i]>1){cout<<"no"<<endl;return 0;}
      |                    ^~~~
a.cc:11:20: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:32: error: 'endl' was not declared in this scope
   11 |         if(a[i]>1){cout<<"no"<<endl;return 0;}
      |                                ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout<<"yes"<<endl;
      |         ^~~~
a.cc:13:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:22: error: 'endl' was not declared in this scope
   13 |         cout<<"yes"<<endl;
      |                      ^~~~
a.cc:13:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

int main(void){
  string s;
  cin >> s;
  int flg=0;
  for(int i=0;i<s.size();++i){
    char c = s[i];
    for(int j=i+1;j<s.size();++j){
      if(s[j]==c) flg=1;
    }
  }
  if(flg==1) cout << "no\n";
  else cout << "yes\n";

Compiler output:
a.cc: In function 'int main()':
a.cc:15:24: error: expected '}' at end of input
   15 |   else cout << "yes\n";
      |                        ^
a.cc:4:15: note: to match this '{'
    4 | int main(void){
      |               ^
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main() {
    string s, t;
    cin >> s;
    t = s;
    sort(t.begin(), t.end());
    t.erase(unique(t.begin(), t.end()), t.end());
    cout << (s.size() == t.size() ? "yes" : "no") << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   10 |     sort(t.begin(), t.end());
      |     ^~~~
      |     short
a.cc:11:13: error: 'unique' was not declared in this scope
   11 |     t.erase(unique(t.begin(), t.end()), t.end());
      |             ^~~~~~
Language: C++

#include<bits/stdc++.h>
#include<string>
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";
    }
  }
  cout << ans << endl;
}

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

#include<bits/stdc++.h>
#include<set>
#include<string>
using namespace std;
int main(){
  string s; cin >> s;
  int n = s.size();
  for(int i = 0; i < n; i++){
    for(int j=i+1; j < n; j++){
      if(s[i] == s[j]) cout << "yes" << ensl;
      else cout << "no" << endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:41: error: 'ensl' was not declared in this scope
   10 |       if(s[i] == s[j]) cout << "yes" << ensl;
      |                                         ^~~~
Language: C++

#include<bits/stdc++.h>
#include<set>
#include<string>
using namespace std;
int main(){
  char s; cin >> s;
  int sizea = s.size();
  set<char> valu;
  for(int i = 0; i < sizea; i++){
    valu.insert(s[i]);
  }
  if(valu.size() == sizea) cout << "yes" << endl;
  else cout << "no" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: request for member 'size' in 's', which is of non-class type 'char'
    7 |   int sizea = s.size();
      |                 ^~~~
a.cc:10:18: error: invalid types 'char[int]' for array subscript
   10 |     valu.insert(s[i]);
      |                  ^
Language: C++

#include<bits/stdc++.h>
#include<set>
#include<string>
using namespace std;
int main(){
  char s1; cin >> s1;
  int size1 = size(s1);
  set<char> valu;
  for(int i = 0; i < size1; i++){
    valu.insert(s1[i]);
  }
  if(valu.size() == size1) cout << "yes" << endl;
  else cout << "no" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: no matching function for call to 'size(char&)'
    7 |   int size1 = size(s1);
      |               ~~~~^~~~
In file included from /usr/include/c++/14/string:53,
                 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/range_access.h:262:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
  262 |     size(const _Container& __cont) noexcept(noexcept(__cont.size()))
      |     ^~~~
/usr/include/c++/14/bits/range_access.h:262:5: note:   template argument deduction/substitution failed:
/usr/include/c++/14/bits/range_access.h: In substitution of 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&) [with _Container = char]':
a.cc:7:19:   required from here
    7 |   int size1 = size(s1);
      |               ~~~~^~~~
/usr/include/c++/14/bits/range_access.h:263:24: error: request for member 'size' in '__cont', which is of non-class type 'const char'
  263 |     -> decltype(__cont.size())
      |                 ~~~~~~~^~~~
/usr/include/c++/14/bits/range_access.h:272:5: note: candidate: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
  272 |     size(const _Tp (&)[_Nm]) noexcept
      |     ^~~~
/usr/include/c++/14/bits/range_access.h:272:5: note:   template argument deduction/substitution failed:
a.cc:7:19: note:   mismatched types 'const _Tp [_Nm]' and 'char'
    7 |   int size1 = size(s1);
      |               ~~~~^~~~
a.cc:10:19: error: invalid types 'char[int]' for array subscript
   10 |     valu.insert(s1[i]);
      |                   ^
Language: C++

#include<bits/stdc++.h>
#include<set>
#include<string>
using namespace std;
int main(){
  char s1; cin >> s1;
  int size1 = s1.size();
  set<char> valu;
  for(int i = 0; i < size1; i++){
    valu.insert(s1[i]);
  }
  if(valu.size() == size1) cout << "yes" << endl;
  else cout << "no" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: request for member 'size' in 's1', which is of non-class type 'char'
    7 |   int size1 = s1.size();
      |                  ^~~~
a.cc:10:19: error: invalid types 'char[int]' for array subscript
   10 |     valu.insert(s1[i]);
      |                   ^
Language: C++

#include<bits/stdc++.h>
#include<set>
#include<string>
using namespace std;
int main(){
  char s; cin >> s;
  int size1 = s.size();
  set<char> valu;
  for(int i = 0; i < size1; i++){
    valu.insert(s[i]);
  }
  if(valu.size() == size1) cout << "yes" << endl;
  else cout << "no" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: request for member 'size' in 's', which is of non-class type 'char'
    7 |   int size1 = s.size();
      |                 ^~~~
a.cc:10:18: error: invalid types 'char[int]' for array subscript
   10 |     valu.insert(s[i]);
      |                  ^
Language: C++

#include<bits/stdc++.h>
#include<set>
#include<string>
using namespace std;
int main(){
  string s; cin >> s;
  int size1 = s.size();
  set<string> valu;
  for(int i = 0; i < size1; i++){
    valu.insert(valu[i]);
  }
  if(valu.size() == size1) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: no match for 'operator[]' (operand types are 'std::set<std::__cxx11::basic_string<char> >' and 'int')
   10 |     valu.insert(valu[i]);
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    //cin.tie(0);
    //ios::sync_with_stdio(false);
    string a;
    cin >> a;
    int flag = 0;
    for(int i = 0;i < a.size();++i){
        for(int j = 0;j < a.size();++j){
            if(a[i] == a[j]{
                flag = 1;
            }
        }
    }
    if(flag == 1){
        cout << "no" << endl;
    }else{
        cout << "yes" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:28: error: expected ')' before '{' token
   11 |             if(a[i] == a[j]{
      |               ~            ^
      |                            )
a.cc:14:9: error: expected primary-expression before '}' token
   14 |         }
      |         ^
Language: C++

#include<cstdio>
#include<string.h>
using namespace std;
bool isUnique3(string s)
{
	int check = 0;
	int len =s.length();
	for(int i = 0;i < len; i++)
	{
		int v = s[i]-'a';
		if (check & (1<<v))
		{
		return no;
	}
	check l = (1<<v);}
	return yes;}


int main(){
	string sl;
	while(cin>>s1){
		cout<<isUnique1(s1)<<endl;
		cout<<isUnique2(s2)<<endl;
		cout<<isUnique3(s3)<<endl;
		}
	return 0;}


Compiler output:
a.cc:4:16: error: 'string' was not declared in this scope
    4 | bool isUnique3(string s)
      |                ^~~~~~
a.cc:3:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    2 | #include<string.h>
  +++ |+#include <string>
    3 | using namespace std;
a.cc: In function 'int main()':
a.cc:20:9: error: 'string' was not declared in this scope
   20 |         string sl;
      |         ^~~~~~
a.cc:20:9: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
a.cc:21:15: error: 'cin' was not declared in this scope
   21 |         while(cin>>s1){
      |               ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<string.h>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:21:20: error: 's1' was not declared in this scope
   21 |         while(cin>>s1){
      |                    ^~
a.cc:22:17: error: 'cout' was not declared in this scope
   22 |                 cout<<isUnique1(s1)<<endl;
      |                 ^~~~
a.cc:22:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:23: error: 'isUnique1' was not declared in this scope; did you mean 'isUnique3'?
   22 |                 cout<<isUnique1(s1)<<endl;
      |                       ^~~~~~~~~
      |                       isUnique3
a.cc:22:38: error: 'endl' was not declared in this scope
   22 |                 cout<<isUnique1(s1)<<endl;
      |                                      ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include<string.h>
  +++ |+#include <ostream>
    3 | using namespace std;
a.cc:23:33: error: 's2' was not declared in this scope
   23 |                 cout<<isUnique2(s2)<<endl;
      |                                 ^~
a.cc:23:23: error: 'isUnique2' was not declared in this scope; did you mean 'isUnique3'?
   23 |                 cout<<isUnique2(s2)<<endl;
      |                       ^~~~~~~~~
      |                       isUnique3
a.cc:24:33: error: 's3' was not declared in this scope
   24 |                 cout<<isUnique3(s3)<<endl;
      |                                 ^~
a.cc:24:35: error: 'isUnique3' cannot be used as a function
   24 |                 cout<<isUnique3(s3)<<endl;
      |                                   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  string n;
  cin>>n;
  bool p = 1;
  for(int k = 0;k<n.size(),k++){
    for(int i = 0;k<k;i++){
      if(n.at(k) == n.at(i)){
        p = 0;
      }
    }
  }
  if(p == 1){
    cout << "yes" << endl;
  }
  else{
    cout << "no" << endl;
  }
  return 0;
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:7:31: error: expected ';' before ')' token
    7 |   for(int k = 0;k<n.size(),k++){
      |                               ^
      |                               ;