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

#include <algorithm> #include <iostream> 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:1:22: warning: extra tokens at end of #include directive
    1 | #include <algorithm> #include <iostream> using namespace std;
      |                      ^
a.cc: In function 'int main()':
a.cc:3:5: error: 'string' was not declared in this scope
    3 |     string S;
      |     ^~~~~~
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> S;
      |     ^~~
a.cc:4:12: error: 'S' was not declared in this scope
    4 |     cin >> S;
      |            ^
a.cc:6:11: error: expected ';' before 'ans'
    6 |     string ans = "yes";
      |           ^~~~
      |           ;
a.cc:10:1: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 | ans = "no"; }
      | ^~~
      | abs
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << ans << endl;
      |     ^~~~
a.cc:12:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |     cout << ans << endl;
      |             ^~~
      |             abs
a.cc:12:20: error: 'endl' was not declared in this scope
   12 |     cout << ans << endl;
      |                    ^~~~
Language: C

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

char str[27];

int main(void) {

	int i, j;
	int len;
	char tmp;

	gets_s(str, 30);

	len = strlen(str) - 1;//lenは改行文字を含まない文字長//

	//文字列をアルファベット順にソート//
	for (i = 0; i < len - 1; i++) {
		for (j = i + 1; j < len ; j++) {
			if (str[i] > str[j]) {
				tmp = str[i];
				str[i] = str[j];
				str[j] = tmp;
			}
		}
	}

	for (i = 0; i < len; i++) {
		if (str[i] == str[i + 1]) {
			printf("no\n");
			return 0;
		}
	}

	printf("yes\n");

	return 0;
}

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

#include <iostream>
#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:10:3: error: expected ',' or ';' before 'string'
   10 |   string ans="yes";
      |   ^~~~~~
a.cc:15:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |         ans="no";
      |         ^~~
      |         abs
a.cc:20:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   20 |   cout<<ans<<endl;
      |         ^~~
      |         abs
Language: C++

#include <iostream>
#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:10:3: error: expected ',' or ';' before 'string'
   10 |   string ans="yes";
      |   ^~~~~~
a.cc:15:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |         ans="no";
      |         ^~~
      |         abs
a.cc:19:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   19 |   cout<<ans<<endl;
      |         ^~~
      |         abs
Language: C++

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

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

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

#include <iostream>
#include <string>

int main() {
  std::string S;
  std::sin >> S;

  std::string ret = "yes";
  int size = S.length();
  for (int i = 0; i < size; ++i) {
    for (int j = i + 1; j < size; ++j) {
      if ( S[i] != S[j] ) continue;
      ret = "no";
    }
  }
  std::cout << ret << std::endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'sin' is not a member of 'std'; did you mean 'min'?
    6 |   std::sin >> S;
      |        ^~~
      |        min
Language: C++

#include <iostream>
#include <vector>
#include <array>
#include <algorithm>
#include <cmath>
#include <stack>
#include <queue>
#include <map>
#include <unordered_map>
#include <cassert>
#pragma GCC optimize("O3")
#pragma comment(linker, "STACK:36777216")
using namespace std;
using i64 = int64_t;
constexpr i64 MOD = 1e9 + 7;
using vi = vector<i64>;
using vvi = vector<vi>;
using vvvi = vector<vvi>;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:26:5: error: 'erase' was not declared in this scope
   26 |     erase(unique(t.begin(), t.end()), t.end());
      |     ^~~~~
Language: C++

/* goes here */
#include<bits/stdc++.h> // 1
using namespace std; // 2
using int = long long ; //3
#define yes(n) cout << ((n) ? "yes" : "no" ) << endl // 4
long long alphabet[1000]; // 1
int main(){ // 2
    string s; //3
    cin >> s; // 4
    for(char i : s){ // 1
        alphabet[i-'a']++; // 2
    }  //3
    for(int i = 0; i < 1000; ++i){ // 4
        if(alphabet[i] > 1)return 0 & puts("no"); // 1
    } // 2
    yes(1333);  //3
    return 0; // 4
} // 1 end

Compiler output:
a.cc:4:7: error: expected nested-name-specifier before 'int'
    4 | using int = long long ; //3
      |       ^~~
Language: C++

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

int main(){
  int a[26], i, j;
  char c;
  bool ans = true;
  string s;
  cin >> s;
  for(i = 0; i < 26; i++) a[i] = 0;
  for(i = 0; i < s.length(); i++){
    for(c ='a', j = 0; c <= 'z'; c++, j++){
      if(c == s[i]) a[j]++;
    }
  }
  for(i = 0; i < 26; i++)
    if(a[i] > 1) ans = false;
  if(ans) cout << "yes" << endl;
  else cout << "no" << emdl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:24: error: 'emdl' was not declared in this scope
   20 |   else cout << "no" << emdl;
      |                        ^~~~
Language: C++

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

int main() {
	char s[32];
	cin >> s;

	int len = strlen(s);
	for (int i = 0; i < len-1; i++) {
		for (int j = i+1; j < len; j++) {
			if (s[i] == s[j]) {
				cout << "no" << endl;
				return 0;
			}
		}
	}
	cout << "yes" << endl;
}

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

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

int main()
{
    int b[200]= {0};
    char s[30];
    int t=1,i;
    cin >> s;
    for(i=0; i<strlen(s); i++)
    {
        b[s[i]-'a']++;
    }
    for(i=0;i<26;i++)
        if(b[i]>=1)
        t=0;
    if(t)
        printf("Yes\n");
    else
        printf("No\n");
    return 0;
}


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

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define llong long long
#define pb(a) push_back(a)
#define INF 1000000000
using namespace std;
typedef pair<int, int> P;
typedef pair<llong, llong> LP;
typedef pair<int, P> PP;
typedef pair<llong, LP> LPP;

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

int main(){
    cin.tie(0);
   	ios::sync_with_stdio(false);
    string S;
  string ans = "Yes";
  cin >> S;
  for(int i=0;i<S.size()-1;i++){
    for(int j=i+1;j<S.size();j++0){
      if(S[i] == S[j]) ans = "No";
    }
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:33: error: expected ')' before numeric constant
   27 |     for(int j=i+1;j<S.size();j++0){
      |        ~                        ^
      |                                 )
a.cc:27:34: error: expected ';' before ')' token
   27 |     for(int j=i+1;j<S.size();j++0){
      |                                  ^
      |                                  ;
Language: C++

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

int a[26];

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

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

#include <iostream>
#include <string>

int a[26];

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'string' was not declared in this scope
    7 |   string s;
      |   ^~~~~~
a.cc:7:3: 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:3: 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:10: error: 's' was not declared in this scope
    8 |   cin >> s;
      |          ^
a.cc:14:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |       cout << "no" << endl; return;
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |       cout << "no" << endl; return;
      |                       ^~~~
      |                       std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:14:29: error: return-statement with no value, in function returning 'int' [-fpermissive]
   14 |       cout << "no" << endl; return;
      |                             ^~~~~~
a.cc:17:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |   cout << "yes" << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:17:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 |   cout << "yes" << endl;
      |                    ^~~~
      |                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rp(i,n) for(int i=0;i<n;i++)
#define rep(i,m,n) for(int i=m;i<=n;i++)
#define lrp(i,n) for(long long i=0;i<n;i++)
#define lrep(i,m,n) for(long long i=m;i<=n;i++)
#define ll long long
#define sort(a) sort(a.begin(),a.end())
#define reverse(a) reverse(a.begin(),a.end())
#define vi vector<int>
#define vl vector<long long>
#define pb push_back
#define abs(a,b) (a-b>0?a-b:b-a)
#define size size()

int main(){
    string s;
    sort(s);
    rp(i,s.size()-1){
        if(s.at(i)==s.at(i+1)){
            cout << "no" << endl;
            goto Exit;
        }
    }
    cout << "yes" << endl;

Exit:
    ;
}








Compiler output:
a.cc: In function 'int main()':
a.cc:19:16: error: expression cannot be used as a function
   19 |     rp(i,s.size()-1){
      |          ~~~~~~^~
a.cc:3:31: note: in definition of macro 'rp'
    3 | #define rp(i,n) for(int i=0;i<n;i++)
      |                               ^
Language: C++

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

using namespace std;

int main()
{
  string s; cin >> s;
  vector<char> sv;
  int s_len = s.length();

  for (char x : s) sv.push_back(x);

  // uniqueで同じ要素を削除する
  sv.erase(unique(sv.begin(), sv.end()), sv.end());

  if (sv.size() == s_len) cout << "yes" << endl;
  else                      cout << "no" << endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:12: error: 'unique' was not declared in this scope
   16 |   sv.erase(unique(sv.begin(), sv.end()), sv.end());
      |            ^~~~~~
Language: C++

#include <iostream>
#include <algorithm>
----
int main(void) {
  std::string s;
  std::cin >> s;
--
  std::sort(s.begin(), s.end());

  std::cout << s << std::endl;
--
  for (int i = 0; i < s.size() - 1; i++) {
    if (s[i] == s[i+1]) {
      std::cout << "no" << std::endl;
      return 0;
    }
  }

  std::cout << "yes" << std::endl;
  return 0;
}

Compiler output:
a.cc:3:1: error: expected unqualified-id before '--' token
    3 | ----
      | ^~
Language: C++

#include <iostream>
#include <argorithm>
    
int main(void) {
  std::string s;
  std::cin >> s;
  
  std::sort(s.begin(), s.end());
  
  for (int i = 0; i < s.size() - 1; i++) {
    if (s[i] == s[i+1]) {
      std::cout << "no" << std::endl;
      return 0;
    }
  }

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

Compiler output:
a.cc:2:10: fatal error: argorithm: No such file or directory
    2 | #include <argorithm>
      |          ^~~~~~~~~~~
compilation terminated.
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
import java.util.*;

public class Main {

    int[] inputArray;

    public static void main(String[] args) throws IOException {
        new Main().run();
    }

    void run() {
        Scanner sc = new Scanner(System.in);
        char[] array = sc.next().toCharArray();
Set<String> set = new HashSet<>();


for(int i=0; i<array.length; i++){
set.add(array[i]);
}

if(set.size() == array.length) System.out.println("yes");
else System.out.println("no");
    }

}


Compiler output:
Main.java:22: error: incompatible types: char cannot be converted to String
set.add(array[i]);
             ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
import java.util.*;

public class Main {

    int[] inputArray;

    public static void main(String[] args) throws IOException {
        new Main().run();
    }

    void run() {
        Scanner sc = new Scanner(System.in);
        char[] array = sc.next().toCharArray();
Set<String> set = new HashSet<>();


for(int i=0; i<n; i++){
set.add(array[i]);
}

if(set.size() == array.length) System.out.println("yes");
else System.out.println("no");
    }

}


Compiler output:
Main.java:21: error: cannot find symbol
for(int i=0; i<n; i++){
               ^
  symbol:   variable n
  location: class Main
Main.java:22: error: incompatible types: char cannot be converted to String
set.add(array[i]);
             ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
2 errors
Language: C++

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

using namespace std;

int main(void){
    string s;
    cin >> s;
    sort(s.begin(), s.end());
    for(int i=0;i<s.length()-1;i++){
        if(s.at(i) == s.at(i+1)){
            cout << "no" << endl;
            return 0;
            break;
        }
    }
    cout << "yes" << endl;
    return 0;
}

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

#include<iostream>
typedef long long ll;
ll Isprime(ll x) {
	ll i;
	if (x < 2)return 0;
	else if (x == 2) return 1;
	if (x % 2 == 0) return 0;
	for (i = 3; i*i <= x; i += 2) {
		if (x%i == 0) return 0;
	}
	return 1;
}
using namespace std;
int main() {
	string S;
  	cin>>S;
  	string x="yes";
  	for(ll i=0; i<S.size(); ++i){
      for(ll j=i+1; j<S.size(); ++j){
		if(S[i]==S[j])
          x="no"
      }
    }
  cout<<x<<endl;
}
	
	

Compiler output:
a.cc: In function 'int main()':
a.cc:21:17: error: expected ';' before '}' token
   21 |           x="no"
      |                 ^
      |                 ;
   22 |       }
      |       ~
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 Sarray[] = S.split("");
            String afromZ = "abcdefghijklnmopqrstuvwxyz";
            String afromZ_Array[] = afromZ.split("");
            Arrays.sort(Sarray);
            // for (String string : afromZ_Array) {
            //     System.out.println(string);
                
            // }
            int iti = 0;
            int count = 0;
            for(int abc = 0;i < afromZ_Array.length;abc++){
                for(int i = 0;i < Sarray.length;i++){
                    if(afromZ_Array[abc].equals(Sarray[i])){
                        iti += 1;
                        if(iti == 2){
                            System.out.println("No");
                            System.exit(1);
                        }
                    }
                }
            }
            System.out.println("yes");

    }
}

Compiler output:
Main.java:17: error: cannot find symbol
            for(int abc = 0;i < afromZ_Array.length;abc++){
                            ^
  symbol:   variable i
  location: class Main
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'L' was not declared in this scope
    7 |   L = S.size();
      |   ^
a.cc:8:3: error: 'N' was not declared in this scope
    8 |   N = 0;
      |   ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: 'X' was not declared in this scope
    6 |   cin >> S >> X;
      |               ^
a.cc:7:3: error: 'L' was not declared in this scope
    7 |   L = S.size();
      |   ^
a.cc:8:3: error: 'N' was not declared in this scope
    8 |   N = 0;
      |   ^
Language: C++

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

int main() {
    string s;
    cin >> s;
    string tmp = s;
    tmp.erase(unique(tmp.begin(), tmp.end()), tmp.end());

    if(s.size() == tmp.size()) cout << "yes" << endl;
    else cout << "no" << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: 'unique' was not declared in this scope
    9 |     tmp.erase(unique(tmp.begin(), tmp.end()), tmp.end());
      |               ^~~~~~
Language: C++

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

#define ll long long
#define pub push_back
#define pob pop_back
#define all(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
#define repp(i,a,b) for(int i=a;i<b;i++)
#define repm(i,a,b) for(int i=a;i>b;i--)
#define debug_interval endl
#define dump_interval ' '
#define debug_toggle 0


inline int toInt(string s){int v;istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x){ostringstream sout;sout<<x;return sout.str();}
inline int gcd(int a,int b){return a?gcd(b%a,a):b;} //Don't use C++17
template<class...A> inline void dump(){cout<<endl;}
template<class...A> inline void dump_rest() {cout<<endl;}
template<class T, class...A> inline void dump_rest(const T& first, const A&... rest){cout<<dump_interval<<first;dump_rest(rest...);}
template<class T,class...A> inline void dump(const T&first,const A&...rest){cout<<first;dump_rest(rest...);}
template<class...A> inline void debug(){cout<<endl;}
template<class...A> inline void debug_rest() {cout<<endl;}
template<class T, class...A> inline void debug_rest(const T& first, const A&... rest){cout<<debug_interval<<first;debug_rest(rest...);}
template<class T,class...A> inline void debug(const T&first,const A&...rest){if(debug_toggle)cout<<first,debug_rest(rest...);}

string s;
char m;

main(){
    ios::sync_with_stdio(false);
    cin>>s;
    sort(all(s));
    m=s.front();
    for(int i=1;i<s.size();i++){
        if(m==s[i])dump("no"),return 0;
    }
    dump("Yes");

Compiler output:
a.cc:31:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   31 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:37:31: error: expected primary-expression before 'return'
   37 |         if(m==s[i])dump("no"),return 0;
      |                               ^~~~~~
a.cc:39:17: error: expected '}' at end of input
   39 |     dump("Yes");
      |                 ^
a.cc:31:7: note: to match this '{'
   31 | main(){
      |       ^
Language: C++

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

#define ll long long
#define pub push_back
#define pob pop_back
#define all(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
#define repp(i,a,b) for(int i=a;i<b;i++)
#define repm(i,a,b) for(int i=a;i>b;i--)
#define debug_interval endl
#define dump_interval ' '
#define debug_toggle 0


inline int toInt(string s){int v;istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x){ostringstream sout;sout<<x;return sout.str();}
inline int gcd(int a,int b){return a?gcd(b%a,a):b;} //Don't use C++17
template<class...A> inline void dump(){cout<<endl;}
template<class...A> inline void dump_rest() {cout<<endl;}
template<class T, class...A> inline void dump_rest(const T& first, const A&... rest){cout<<dump_interval<<first;dump_rest(rest...);}
template<class T,class...A> inline void dump(const T&first,const A&...rest){cout<<first;dump_rest(rest...);}
template<class...A> inline void debug(){cout<<endl;}
template<class...A> inline void debug_rest() {cout<<endl;}
template<class T, class...A> inline void debug_rest(const T& first, const A&... rest){cout<<debug_interval<<first;debug_rest(rest...);}
template<class T,class...A> inline void debug(const T&first,const A&...rest){if(debug_toggle)cout<<first,debug_rest(rest...);}

string s;
char m;

main(){
    ios::sync_with_stdio(false);
    cin>>s;
    sort(all(s));
    m=s.front();
    for(int i=1;i<n;i++){
        if(m==s[i])dump("no"),return 0;
    }
    dump("Yes");
}


Compiler output:
a.cc:31:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   31 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:36:19: error: 'n' was not declared in this scope
   36 |     for(int i=1;i<n;i++){
      |                   ^
a.cc:37:31: error: expected primary-expression before 'return'
   37 |         if(m==s[i])dump("no"),return 0;
      |                               ^~~~~~
Language: C++

#include <iostream>
using namespace std;

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


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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:3: error: expected '}' before 'else'
   18 |   else {
      |   ^~~~
a.cc:16:10: note: to match this '{'
   16 |   if (t) {
      |          ^
a.cc: At global scope:
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

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

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

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

int main() {
  string s;
  cin>>s;
  int a=0;
  std::vector<int> v(26,0);
  for(int i=0;i<s.size()<;i++)v[(int)s[i]-97]++;
  for(int i=0;i<26;i++)if(v[i]>1)a=1;
  if(a)cout<<"no"<<endl;
  else cout<<"yes"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: expected primary-expression before ';' token
    9 |   for(int i=0;i<s.size()<;i++)v[(int)s[i]-97]++;
      |                          ^
Language: C++

#include <iostream>
#include <algorithm>
#include <cmath>
#define REP(i,N) for(int i = 0; i < (N); i++)
using namespace std;

string s;
bool ck[26];

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

    cin >> s;

    REP(i,26) ck[i] = true;

    REP(i,s.sized()){
        int index = (int)s[i] % 26;

        if(ck[index]){
            ck[index] = false;
        }
        else{
            cout << "no" << "\n";
            return 1;
        }
        
    }

    cout << "yes" << "\n";
    return 1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:13: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'sized'; did you mean 'size'?
   19 |     REP(i,s.sized()){
      |             ^~~~~
a.cc:4:38: note: in definition of macro 'REP'
    4 | #define REP(i,N) for(int i = 0; i < (N); i++)
      |                                      ^
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <cmath>

using namespace std;

int main() {
    int N,x[110],y[110],i,j,k;
    string str;

    cin >> str;

    for(i = 0; i<str.length; i++){
        for(j = i + 1; j < str.length; j++){
            if(str[i] == str[j]){
                 cout << "no" << endl;
                 return 0;
            }
        }
    }
   
    cout << "yes" << endl;
       
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:22: 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 '()' ?)
   14 |     for(i = 0; i<str.length; i++){
      |                  ~~~~^~~~~~
      |                            ()
a.cc:15:32: 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 '()' ?)
   15 |         for(j = i + 1; j < str.length; j++){
      |                            ~~~~^~~~~~
      |                                      ()
Language: Java

import java.util.*;
public class B63 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String c = sc.next();
		boolean a = false;
		out:for(int i = 0;i < c.length();i++) {
			for(int k = i+1;k < c.length();k++) {
				if(c.charAt(i)==c.charAt(k)) {
					System.out.println("no");
					a = true;
					break out;
				}
			}
		}
		if(a == false)System.out.println("yes");
	}

}


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

#include <stdio.h>
#include <algorithm>
int main()
{
	char a[27];
	int size=0;
	scanf("%s",a);
	for(int i=0;a[i]=='\0';++i)size++;
	sort(a,a+size);
	for(int i=-1;++i-size-1;)if(a[i]==a[i+1]){
		printf("no\n");
		return 0;
	}
	printf("yes\n");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
    9 |         sort(a,a+size);
      |         ^~~~
      |         std::sort
In file included from /usr/include/c++/14/algorithm:86,
                 from a.cc:2:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
Language: C++

#include <stdio.h>
#include <algolithm>
int main()
{
	char a[27];
	int size=0;
	scanf("%s",a);
	for(int i=0;a[i]=='\0';++i)size++;
	sort(a,a+size);
	for(int i=-1;++i-size-1;)if(a[i]==a[i+1]){
		printf("no\n");
		return 0;
	}
	printf("yes\n");
    return 0;
}

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

#include <iostream>
#include <alforithm>
using namespace std;
int main(){
    char S[26];
    int i=0;
    while(cin>>S[i++]);
    sort(S,S+i);
    bool ans=true;
    for(int j=0; j<i; j++){
        if(S[j]==S[j+1])ans=false;
    }
    if(ans)cout<<"yes\n";
    else cout<<"no\n";
    return 0;
}


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

#include <iostream>
#include <string>
#include <string.h>
#include <map>
#include <set>
#include <vector>
#include <stdio.h>
#include <math.h>
#include <algorithm>
#include <queue>
#include <cmath>
#include <cstdio>
using namespace std;
int main(){
string a;
cin>>a;
char b;
int c=0;
for(int i=0;i<a.size();i++)
{
for(int j=0;j<.size();j++)
if(a[i]!=c[j]){
c[j]=a[i];
c++;
break;}}
if(c!=a.size())
cout<<"no";
else
cout<<"yes";
system("pause");
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:15: error: expected primary-expression before '.' token
   21 | for(int j=0;j<.size();j++)
      |               ^
a.cc:22:11: error: invalid types 'int[int]' for array subscript
   22 | if(a[i]!=c[j]){
      |           ^
a.cc:23:2: error: invalid types 'int[int]' for array subscript
   23 | c[j]=a[i];
      |  ^
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main(){
  string str;
  int s;

  cin >> str;

  s = (int)(str.size());

  for(int i = 0; i < s-1; i++){
    for(int j = i+1; i < s; j++){
      if(size[i] == size[j]){
        printf("no\n");
        return 0;
      }
    }
  }

  printf("yes\n");
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:14: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   16 |       if(size[i] == size[j]){
      |              ^
a.cc:16:25: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   16 |       if(size[i] == size[j]){
      |                         ^
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main(){
  string str;

  cin >> str;

  for(int i = 0; i < str.size()-1; i++){
    for(int j = i+1; i < str.size(); j++){
      if(size[i] == size[j]){
        printf("no\n");
        return 0;
      }
    }
  }

  printf("yes\n");
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   13 |       if(size[i] == size[j]){
      |              ^
a.cc:13:25: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   13 |       if(size[i] == size[j]){
      |                         ^
Language: C++

#define _USE_MATH_DEFINES
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string>
#include<iostream>
#include<cctype>
#include<cstdio>
#include<vector>
#include<stack>
#include<queue>
#include <algorithm>
#include<math.h>
#include<set>
#include<map>
#include <sstream>
#include<iomanip>
#include <ctype.h>

//#include<bits/stdc++.h>


using namespace std;



int main() {

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

}




Compiler output:
a.cc: In function 'int main()':
a.cc:32:38: error: invalid types 'int[int]' for array subscript
   32 |                         if (p[i] == j[i]) {
      |                                      ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main() {
	string s;
	cin >> s;
	set<char> sc;
	for (auto c : s) sc.insert(c);
	puts(a.size() == b.size() ? "yes" : "no");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: 'a' was not declared in this scope
   10 |         puts(a.size() == b.size() ? "yes" : "no");
      |              ^
a.cc:10:26: error: 'b' was not declared in this scope
   10 |         puts(a.size() == b.size() ? "yes" : "no");
      |                          ^
Language: C++

#include <iostream>
#include <math.h>
#include <algorithm>
#include <vector>
#include <numeric>
using namespace std;
const double PI = acos(-1.0);
const string ALP = "abcdefghijklmnopqrstuvwxyz";
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) FOR(i,0,n)
int main(){
  string s;
  vector<bool> v(26);
  cin >> s;
  REP(i,26){
    v[i] = false
  }
  REP(i,s.length()){
    if(v[i]){
      cout << "no";
      break;
    }
    v[ALP.find(s[i])] = true;
    if(i== s.length()-1){
      cout << "yes";
      break;
    }
  }
  cout << endl;
  return 0;
}

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

int main() {
  char S[32];
  scanf("%s", S);

  int count['z'+1]={};
  for (int i=0; S[i]; ++i)
    if (count[S[i]]++)
      return !printf("no\n");

  printf("yes\n");
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'scanf' was not declared in this scope
    3 |   scanf("%s", S);
      |   ^~~~~
a.cc:8:15: error: 'printf' was not declared in this scope
    8 |       return !printf("no\n");
      |               ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main() {
a.cc:10:3: error: 'printf' was not declared in this scope
   10 |   printf("yes\n");
      |   ^~~~~~
a.cc:10:3: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C

#include<stdio.h>
int main(void){
        int i,j;
        char S[25];
        scanf("%s",S);
        for(i=0;i<25;i++){
            for(j=i;j<25;++j){
                if(S[i]==S[j]){
                 printf(no\n);
                 break;
                }
                else if(i==24&&j==24){
                         printf("yes\n");
                         break;
                }
            }
            if(S[i]==S[j]){
             break;
           }
        }
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:27: error: stray '\' in program
    9 |                  printf(no\n);
      |                           ^
main.c:9:25: error: 'no' undeclared (first use in this function)
    9 |                  printf(no\n);
      |                         ^~
main.c:9:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:27: error: expected ')' before 'n'
    9 |                  printf(no\n);
      |                        ~  ^~
      |                           )
Language: C++

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

int main() {
    stirng s;
    map<char, int> mp;
    cin >> s;
    for (int i = 0; i < s.size(); ++i) {
        mp[s[i]]++;
        if (mp[s[i]] == 2) {
            cout << "no" << endl;
            return 0;
        }
    }

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'stirng' was not declared in this scope
    5 |     stirng s;
      |     ^~~~~~
a.cc:7:12: error: 's' was not declared in this scope
    7 |     cin >> s;
      |            ^
Language: C

#include <stdio.h>
#include <string.h>
int main(void){
char a[26];
int  len, i,j;
scanf("%s"a);
len = strlen(a);
for(i=0;i+1<len;i++){
for(j=i+1;j<len;j++){
if(a[i]==a[j]){
printf("no");
return 0;
}
}
}
printf("yes");
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:11: error: expected ')' before 'a'
    6 | scanf("%s"a);
      |      ~    ^
      |           )
Language: C

#include <stdio.h>
#include <string.h>
int main(void){
char a[26];
int  len, i,j;
scanf("%s"a[]);
len = strlen(a);
for(i=0;i+1<len;i++){
for(j=i+1;j<len;j++){
if(a[i]==a[j]){
printf("no");
return 0;
}
}
}
printf("yes");
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:11: error: expected ')' before 'a'
    6 | scanf("%s"a[]);
      |      ~    ^
      |           )
Language: C

#include <stdio.h>
#include <string.h>
int main(void){
char a[26];
int  len, i,j;
scanf("%s"&a);
len = strlen(a);
for(i=0;i+1<len;i++){
for(j=i+1;j<len;j++){
if(a[i]==a[j]){
printf("no");
return 0;
}
}
}
printf("yes");
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:11: error: invalid operands to binary & (have 'char *' and 'char *')
    6 | scanf("%s"&a);
      |       ~~~~^
      |       |   |
      |       |   char *
      |       char *
Language: C++

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

using namespace std;

int main(){
    string s;
    scanf("%s",&s);

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |     ans="yes";
      |     ^~~
      |     abs
Language: C++

#include <iostream>
#include <fstream>
#include <string> 
#include <cmath>  
#include <cstdlib>
#include <ctime>
#include <vector>
#include <algorithm>
#include <numeric>
#include <functional>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:32: error: expected ';' before '}' token
   19 |                 c[S[i] - 'a']++
      |                                ^
      |                                ;
   20 |         }
      |         ~
Language: C++

#include <iostream>
#include <fstream>
#include <string> 
#include <cmath>  
#include <cstdlib>
#include <ctime>
#include <vector>
#include <algorithm>
#include <numeric>
#include <functional>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:32: error: expected ';' before '}' token
   19 |                 c[S[i] - 'a']++
      |                                ^
      |                                ;
   20 |         }
      |         ~
Language: C++

#include<stdio.h>
#include<string.h>
int main()
{
    char st[30];
    int i,raf=0,j;
    gets(st);
    for(i=0; i<strlen(st)-1; i++)
    {
        for(j=i+1; j<strlen(st); j++)
        {

            if(st[j]==st[i])
            {
                raf=1;
                break;
            }
        }
        if(raf==1)
            break;
    }
    if(raf==0)
        printf("yes\n");
    else
        printf("no\n");
}


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

#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import sys
import re
import math
import collections
import itertools
import functools

DEBUG = True
DEBUG = False

def dbg(*args):
    if DEBUG:
        print("DBG: ", file=sys.stderr, end="")
        print(*args, file=sys.stderr)



def main():
    s = input();
    yes = len(set(s)) == len(s)
    print("yes" if yes else "no")

if __name__ == "__main__": main()


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #!/usr/bin/env python3
      |  ^
a.cc:2:3: error: invalid preprocessing directive #-
    2 | # -*- coding: utf-8 -*-
      |   ^
a.cc:4:1: error: 'import' does not name a type
    4 | import sys
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:23:5: error: 'yes' does not name a type
   23 |     yes = len(set(s)) == len(s)
      |     ^~~
Language: C

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

int main() {
  
  int i, j;
  int tmp =0;
  
  char str[26];
  
  scanf("%s", str);
  
  for(i = 0; i < strlen(str); i++) {
     for(j = i + 1; j < strlen(str); j++) {
     
     if(str[i] == str[j]) {
     
     tmp = 1;
  }
  
  }
  
  }
  
  if (tmp == 1) {
    printf("no\n");
    
  } else {
    printf("yes\n");
    
  }

Compiler output:
main.c: In function 'main':
main.c:32:3: error: expected declaration or statement at end of input
   32 |   }
      |   ^
Language: C

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

int main(void) {
  
  int i, j;
  int tmp =0;
  
  char str[26];
  
  scanf("%s", str);
  
  for(i = 0; < strlen(str); i++) {
     for(j = i + 1; j < strlen(str); j++) {
     
     if(str[i] == str[j]) {
     
     tmp = 1;
  }
  
  }
  
  }
  
  if (tmp == 1) {
    printf("no\n");
    
  } else {
    printf("yes\n");
    
  }
  
    return 0;
  }
  
  

Compiler output:
main.c: In function 'main':
main.c:14:14: error: expected expression before '<' token
   14 |   for(i = 0; < strlen(str); i++) {
      |              ^
Language: C

#include <stdio.h>

int main(void) {
  
  int i, j;
  int tmp =0;
  
  char str[26];
  
  scanf("%s", str);
  
  for(i = 0; < strlen(str); i++) {
     for(j = i + 1; j < strlen(str); j++) {
     
     if(str[i] == str[j]) {
     
     tmp = 1;
  }
  
  }
  
  }
  
  if (tmp == 1) {
    printf("no\n");
    
  } else {
    printf("yes\n");
    
  }
  
    return 0;
  }
  

Compiler output:
main.c: In function 'main':
main.c:12:14: error: expected expression before '<' token
   12 |   for(i = 0; < strlen(str); i++) {
      |              ^
main.c:13:25: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
   13 |      for(j = i + 1; j < strlen(str); j++) {
      |                         ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strlen'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | 
main.c:13:25: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
   13 |      for(j = i + 1; j < strlen(str); j++) {
      |                         ^~~~~~
main.c:13:25: note: include '<string.h>' or provide a declaration of 'strlen'
Language: C++

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

int main()
{
    char s[26];
    cin >> s;

    int n = strlen(s);

    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;

    return 0;
}

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

#include <iostream>
using namespace std;

int main()
{
    char s[26];
    cin >> s;

    int n = strlen(s);

    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;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'strlen' was not declared in this scope
    9 |     int n = strlen(s);
      |             ^~~~~~
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 <algorithm>
using namespace std;

int main()
{
    char s[26];
    cin >> s;

    int n = strlen(s);

    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;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'strlen' was not declared in this scope
   10 |     int n = strlen(s);
      |             ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <algorithm>
  +++ |+#include <cstring>
    3 | using namespace std;