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

#include<stdio.h>

int main()
{
    char str[];
    int length;
    char str[] judge="no";

    scanf("%d",str);
    length = strlen(str);

    for(int i=0;i<length;i++){
        for(int j=i++;j<length;j++){
            if(str[i]==str[j])judge="yes";
        }
    }

    printf("%d",judge);

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:10: error: array size missing in 'str'
    5 |     char str[];
      |          ^~~
main.c:7:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'judge'
    7 |     char str[] judge="no";
      |                ^~~~~
main.c:7:16: error: 'judge' undeclared (first use in this function)
main.c:7:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:14: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
   10 |     length = strlen(str);
      |              ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strlen'
    1 | #include<stdio.h>
  +++ |+#include <string.h>
    2 | 
main.c:10:14: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
   10 |     length = strlen(str);
      |              ^~~~~~
main.c:10:14: note: include '<string.h>' or provide a declaration of 'strlen'
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
string S;
cin>>S;
for (int i=0;i<S.length();i++;){
		for (int k=0;k<i;k++;){
		if (S[i]==S[k]){}
		else{
		cout<<"no"<<endl;
		return 0;
		}
	}
}
cout<<"yes"<<endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:30: error: expected ')' before ';' token
    7 | for (int i=0;i<S.length();i++;){
      |     ~                        ^
      |                              )
a.cc:7:31: error: expected primary-expression before ')' token
    7 | for (int i=0;i<S.length();i++;){
      |                               ^
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main()
{
	string a,number;
	int i=0,k=0;
	cin >> a;

	while (a[i] = !'\0')
	{
		number[i] = a[i];
		for (int j = 0;j < i;j++)
		{
			if (a[j] == number[j])
			{
				cout << "no" << endl;
				++k;
				break;
			}
		}
		if (k = !0)break;
	}
	if (k = !0)cout << "yes" << endl;


Compiler output:
a.cc: In function 'int main()':
a.cc:26:42: error: expected '}' at end of input
   26 |         if (k = !0)cout << "yes" << endl;
      |                                          ^
a.cc:7:1: note: to match this '{'
    7 | {
      | ^
Language: C++

#include<iostream>	// 入出力
#include<math.h>	// 数学の関数
#include<vector>	// 配列
#include<string>	// 文字列
#include<map>		// 連想配列
#include<stack>		// スタック
#include<queue>		// キュー

using namespace std;


int main()
{
	string str;
	
	map<char, bool> check;

	cin >> str;

	for (int i = 0; i < str.length(); ++i)
	{
		auto itr = check.find(str.at(i));        // "xyz" が設定されているか？
		if (itr != check.end()) {
			cout << "no" << endl;
			return 0;
		}
		else {
			check[str.at(i)] == true;
		}

	}
	cout << "yes" << endl;

	return 0;


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

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

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

Compiler output:
main.c: In function 'main':
main.c:12:24: error: expected ';' before ')' token
   12 |         for(j=i+1;j<len){
      |                        ^
      |                        ;
Language: C

#include <stdio.h>
int main(){
    char S[30];
    gets(S);
    int len=strlen(S);
    for(int i=0;i<len;i++){
        for(int j=i+1;j<len;j++)
             if(S[i]==S[j]) {a++;break;}
        if(a==1) break;        
    }
    if(a==0) printf("yes");
    else printf("no");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    4 |     gets(S);
      |     ^~~~
      |     fgets
main.c:5:13: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
    5 |     int len=strlen(S);
      |             ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strlen'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | int main(){
main.c:5:13: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
    5 |     int len=strlen(S);
      |             ^~~~~~
main.c:5:13: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:8:30: error: 'a' undeclared (first use in this function)
    8 |              if(S[i]==S[j]) {a++;break;}
      |                              ^
main.c:8:30: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

import java.util.Scanner;

class Main {

    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);

        String s = stdIn.next();

        char[] charArray = s.toCharArray();
        
        for (int i = 0; i < charArray.length; i++) {
            for (int j = charArray.length-1; i < j; j--) {
                if (charArray[i] == charArray[j]) {
                    no(); 
                } 
            }
        }
        yes();
    }
    
    static void yes() {
        System.out.println("yes");
    }
    static void no() {
        System.out.println("no");  
    }

Compiler output:
Main.java:27: error: reached end of file while parsing
    }
     ^
1 error
Language: C++

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

#define fs first
#define se second
#define all(v) v.begin(), v.end()
#define rep(i, n) for (int i = 0; i < n; ++i)
#define pb emplace_back

using pii = pair<int, int>;
using vi = vector<int>;
using lint = long long;

const int inf = 1001001001;
const lint linf = 1001001001001001001ll;
const int mod = 1e9 + 7;
const int dx[]{0, 1, 0, -1, -1, -1, 1, 1}, dy[]{1, 0, -1, 0, -1, 1, -1, 1};

template<typename T> inline bool chmin(T &a, T b) { if (a > b) { a = b; } return a > b; }
template<typename T> inline bool chmax(T &a, T b) { if (a < b) { a = b; } return a < b; }
template<typename T> inline void print(const T &x, string s = "\n") { cout << x << s; }
template<typename T> inline void print(const vector<T> &v, string s = " ") 
{ rep(i, v.size()) cout << v[i] << (i + 1 == v.size() ? "\n" : s); }
inline bool inside(int y, int x, int H, int W) { return 0 <= y && y < H && 0 <= x && x < W; }
inline lint in() { lint x; std::cin>>x; return x; }

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

	int n = s.size();
	sort(all(s));
	s.erase(uniquer(all(a)), s.end());

	cout << (n == s.size() ? "yes" : "no") << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:29: error: 'a' was not declared in this scope
   33 |         s.erase(uniquer(all(a)), s.end());
      |                             ^
a.cc:6:16: note: in definition of macro 'all'
    6 | #define all(v) v.begin(), v.end()
      |                ^
a.cc:33:17: error: 'uniquer' was not declared in this scope
   33 |         s.erase(uniquer(all(a)), s.end());
      |                 ^~~~~~~
Language: C++

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

int main(void){
	bool ch[30],flag=true;
	int i;
	string str;
	char c;
	cin >> str;
	fill(ch,ch+30,false);
	for(i=str.size()-1; i>=0; i--){
		c = str[i]-'a';
		if(ch[c]){
			flag=false;
			break;
		}else{
			ch[c]=true;
		}
	}
	cout << ((flag)?"yes":"no") << endl;
	return 

Compiler output:
a.cc: In function 'int main()':
a.cc:21:15: error: expected primary-expression at end of input
   21 |         return
      |               ^
a.cc:21:15: error: expected ';' at end of input
   21 |         return
      |               ^
      |               ;
a.cc:21:15: error: expected '}' at end of input
a.cc:4:15: note: to match this '{'
    4 | int main(void){
      |               ^
Language: C

#include<stdio.h>
int main(){
char s[26];
int i,j,k;
k=0;
scanf("%s",&s[26]);
for(i=0;i<l+1;i++){
for(j=1;j<l+1;j=i+1){
if(s[i]=='s[j]'){
printf("no\n");
k++;
break;
}
}
}
if(k==0){
printf("yes\n");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:11: error: 'l' undeclared (first use in this function)
    7 | for(i=0;i<l+1;i++){
      |           ^
main.c:7:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:10: warning: multi-character character constant [-Wmultichar]
    9 | if(s[i]=='s[j]'){
      |          ^~~~~~
Language: C

#include<stdio.h>
int main(){
char s[26];
int i,j,k,l;
k=0;
scanf("%s",&s[26]);
for(l=0;l<26;l++){
if('s[l]'=='')break;
}
for(i=0;i<l+1;i++){
for(j=1;j<l+1;j=i+1){
if('s[i]'=='s[j]'){
printf("no\n");
k++;
break;
}
}
}
if(k==0){
printf("yes\n");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:4: warning: multi-character character constant [-Wmultichar]
    8 | if('s[l]'=='')break;
      |    ^~~~~~
main.c:8:12: error: empty character constant
    8 | if('s[l]'=='')break;
      |            ^~
main.c:12:4: warning: multi-character character constant [-Wmultichar]
   12 | if('s[i]'=='s[j]'){
      |    ^~~~~~
main.c:12:12: warning: multi-character character constant [-Wmultichar]
   12 | if('s[i]'=='s[j]'){
      |            ^~~~~~
Language: C

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

int main()
{
  char S[26];

  scanf("%s", S);

  for(i=0; S[i] != '\0'; i++)
  {
    for(j=i+1; S[j] != '\0'; j++)
    {
      if(S[i] == S[j])
      {
        printf("no\n");
        break;
      }
    }
    printf("yes\n");
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:7: error: 'i' undeclared (first use in this function)
   10 |   for(i=0; S[i] != '\0'; i++)
      |       ^
main.c:10:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:9: error: 'j' undeclared (first use in this function)
   12 |     for(j=i+1; S[j] != '\0'; j++)
      |         ^
Language: C

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

int main()
{
  char S[26];

  scanf("%s", &S);

  for(i=0; S[i] != '\0'; i++)
  {
    for(j=i+1; S[j] != '\0'; j++)
    {
      if(S[i] == S[j])
      {
        printf("no\n");
        break;
      }
    }
    printf("yes\n");
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:7: error: 'i' undeclared (first use in this function)
   10 |   for(i=0; S[i] != '\0'; i++)
      |       ^
main.c:10:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:9: error: 'j' undeclared (first use in this function)
   12 |     for(j=i+1; S[j] != '\0'; j++)
      |         ^
Language: C

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

int main()
{
  char S[26];

  scanf("%s", &S);

  for(i=0; i != '\0'; i++)
  {
    for(j=i+1; j != '\0'; j++)
    {
      if(S[i] == S[j])
      {
        printf("no\n");
        break;
      }
    }
    printf("yes\n");
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:7: error: 'i' undeclared (first use in this function)
   10 |   for(i=0; i != '\0'; i++)
      |       ^
main.c:10:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:9: error: 'j' undeclared (first use in this function)
   12 |     for(j=i+1; j != '\0'; j++)
      |         ^
Language: C++

#include <iostream>
#include <string>

int main() {
    auto s = bool['z' - 'a' + 1];
    std::string str;
    std::cin >> str;
    for (auto c: str) {
        int i = c - 'a';
        if (s[i]) {
            std::cout << "no" << std::endl;
            return 0;
        }
        s[i] = true;
    }
    std::cout << "yes" << std::endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: expected primary-expression before 'bool'
    5 |     auto s = bool['z' - 'a' + 1];
      |              ^~~~
Language: C++





#include<iostream>
#include<string>

using namespace std;

int main(){
	int a[26];
	string t;
	cin >> t;
        int count= 0;
for (int i=0;i<t.size()<i++){
a[t[i]]=1;
}
for (int i=0;i<t.size()<i++){
if(a[i]==0) count++;
}

if(count==t.size()){cout << "yes" <<endl;}
else{cout << "yes" <<endl;}

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:28: error: expected ';' before ')' token
   15 | for (int i=0;i<t.size()<i++){
      |                            ^
      |                            ;
a.cc:18:28: error: expected ';' before ')' token
   18 | for (int i=0;i<t.size()<i++){
      |                            ^
      |                            ;
Language: C++


#include<iostream>
#include<string>

using namespace std;

int main(){
	int a[26];
	string t;
	cin >> t;
        int count= 0;
for (int i=0;i<t.size()<i++){
a[t[i]]=1;
}
for (int i=0;i<t.size()<i++){
if(a[i]==0) count++
}

if(count==t.size()){cout << "yes" <<endl;}
else{cout << "yes" <<endl;}

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:28: error: expected ';' before ')' token
   12 | for (int i=0;i<t.size()<i++){
      |                            ^
      |                            ;
a.cc:15:28: error: expected ';' before ')' token
   15 | for (int i=0;i<t.size()<i++){
      |                            ^
      |                            ;
a.cc:16:20: error: expected ';' before '}' token
   16 | if(a[i]==0) count++
      |                    ^
      |                    ;
   17 | }
      | ~
Language: C++

#include<iostream>
#include<string>

using namespace std;

int main(){
	int a[26];
	string t;
	cin >> t;
        count= 0;
for (int i=0;i<t.size()<i++){
a[t[i]]=1;
}
for (int i=0;i<t.size()<i++){
if(a[i]==0) count++;
}

if(count==t.size()){cout << "yes" <<endl;}
else{cout << "yes" <<endl;}

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'count' was not declared in this scope
   10 |         count= 0;
      |         ^~~~~
a.cc:11:28: error: expected ';' before ')' token
   11 | for (int i=0;i<t.size()<i++){
      |                            ^
      |                            ;
a.cc:14:28: error: expected ';' before ')' token
   14 | for (int i=0;i<t.size()<i++){
      |                            ^
      |                            ;
Language: C++

#include <iostream>

using namespace std;

int main() {
    string input;
    int flag = 1;
    cin >> input;

    for(int i=0; i < input.size() - 1; i++){
        for(int j = i + 1; j < input.size(); j++){
            if(input[i] == input[j]){
                flag = 0;
            }
        }
    }

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



    return 0;
}

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

 #include <bits/stdc++.h>$
  2 using namespace std;$
  3 $
  4 string s;$
  5 $
  6 int main(){$
  7     cin>>s;$
  8     set<char> ss;$
  9     for(int i=0;i<s.length();i++){$
 10         ss.insert(s[i]);$
 11     }$  
 12     if(s.length()==ss.size())cout<<"yes"<<endl;$
 13     else cout<<"no"<<endl;$
 14     return 0;$
 15 }$  


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'len' was not declared in this scope
    6 |   len=strlen(S);
      |   ^~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'len' was not declared in this scope
    6 |   len=strlen(S);
      |   ^~~
a.cc:15:6: error: 'i' was not declared in this scope
   15 |   if(i==len){
      |      ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'len' was not declared in this scope
    6 |   len=strlen(S);
      |   ^~~
a.cc:7:21: error: 'j' was not declared in this scope
    7 |   for(int i=0;i<len;j++){
      |                     ^
a.cc:9:16: error: 's' was not declared in this scope
    9 |       if(S[i]==s[j]){
      |                ^
a.cc:15:6: error: 'i' was not declared in this scope
   15 |   if(i==len){
      |      ^
Language: C++

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: storage size of 'input_str' isn't known
    6 |   char input_str[];
      |        ^~~~~~~~~
a.cc:11:26: error: expected primary-expression before '=' token
   11 |       if (input_str[i] === input_str[j]) {
      |                          ^
Language: C++

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:33: error: request for member 'length' in 'input_str', which is of non-class type 'char [26]'
    9 |   for(int i = 0 ; i < input_str.length() ; i++) {
      |                                 ^~~~~~
a.cc:10:35: error: request for member 'length' in 'input_str', which is of non-class type 'char [26]'
   10 |     for(int j = 1 ; j < input_str.length() ; j++ ) {
      |                                   ^~~~~~
a.cc:11:26: error: expected primary-expression before '=' token
   11 |       if (input_str[i] === input_str[j]) {
      |                          ^
Language: C++

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

int main() {
  cin >> input_str[];

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'input_str' was not declared in this scope
    6 |   cin >> input_str[];
      |          ^~~~~~~~~
a.cc:6:20: error: expected primary-expression before ']' token
    6 |   cin >> input_str[];
      |                    ^
a.cc:10:26: error: expected primary-expression before '=' token
   10 |       if (input_str[i] === input_str[j]) {
      |                          ^
Language: C++

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

int main() {
  cin >> input_str;

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'input_str' was not declared in this scope
    6 |   cin >> input_str;
      |          ^~~~~~~~~
a.cc:10:26: error: expected primary-expression before '=' token
   10 |       if (input_str[i] === input_str[j]) {
      |                          ^
Language: C++

#include<iostream>
#include<string>

int main() {
  cin >> input_str;

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> input_str;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:10: error: 'input_str' was not declared in this scope
    5 |   cin >> input_str;
      |          ^~~~~~~~~
a.cc:7:13: error: initializer in range-based 'for' loop
    7 |   for(int i = 0 : i < input_str.length() : i++) {
      |             ^
a.cc:7:41: error: expected ')' before ':' token
    7 |   for(int i = 0 : i < input_str.length() : i++) {
      |      ~                                  ^~
      |                                         )
a.cc:7:42: error: expected primary-expression before ':' token
    7 |   for(int i = 0 : i < input_str.length() : i++) {
      |                                          ^
a.cc:16:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |   std::cout << "no" << endl;
      |                        ^~~~
      |                        std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
#include<string>

int main() {
  cin >> input_str[];

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> input_str[];
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:10: error: 'input_str' was not declared in this scope
    5 |   cin >> input_str[];
      |          ^~~~~~~~~
a.cc:5:20: error: expected primary-expression before ']' token
    5 |   cin >> input_str[];
      |                    ^
a.cc:7:13: error: initializer in range-based 'for' loop
    7 |   for(int i = 0 : i < input_str.length() : i++) {
      |             ^
a.cc:7:41: error: expected ')' before ':' token
    7 |   for(int i = 0 : i < input_str.length() : i++) {
      |      ~                                  ^~
      |                                         )
a.cc:7:42: error: expected primary-expression before ':' token
    7 |   for(int i = 0 : i < input_str.length() : i++) {
      |                                          ^
a.cc:16:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |   std::cout << "no" << endl;
      |                        ^~~~
      |                        std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
#include<string>

using namespace std;

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

  int a[1000];
  for(int i=0; i< 1000; ++i){
    a[i] = -1;
  }

  bool check = true;

  for(int i=0;i <s.size(); ++i){
    if(a[s[i]] > 0){
      cout << "no" << endl;
      check = false;
      break;
    }
    a[s[i]] = 1;
  }

  if(check){åç
    cout << "yes" << endl;
  }

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:13: error: '\U000000e5\U000000e7' was not declared in this scope
   26 |   if(check){åç
      |             ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define loop(i,a,b) for(i=a;i<b;i++)
#define rloop(i,a,b) for(i=a;i>=b;i--)
#define vi vector<int>
#define vl vector<ll>
#define vii vector< vector<int> >
#define vll vector< vector<ll> >
#define vs vector<string>
#define pii pair<int,int>
#define pis pair<int,string>
#define psi pair<string,int>
const int inf=1000000001;
const ll INF=1e16;
#define MOD 1000000007
#define mod 1000000009
#define pi 3.14159265358979323846
#define Sp(p) cout<<setprecision(15)<<fixed<<p<<endl;
int dx[4]={1,0,-1,0}, dy[4]={0,1,0,-1};
#define T tuple<int,int,int>

int main(){
	string s;
	cin>>s
	int i,j;
	loop(i,0,s.size()){
		loop(j,i+1,s.size()){
			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:25:15: error: expected ';' before 'int'
   25 |         cin>>s
      |               ^
      |               ;
   26 |         int i,j;
      |         ~~~    
a.cc:27:14: error: 'i' was not declared in this scope
   27 |         loop(i,0,s.size()){
      |              ^
a.cc:4:25: note: in definition of macro 'loop'
    4 | #define loop(i,a,b) for(i=a;i<b;i++)
      |                         ^
a.cc:28:22: error: 'j' was not declared in this scope
   28 |                 loop(j,i+1,s.size()){
      |                      ^
a.cc:4:25: note: in definition of macro 'loop'
    4 | #define loop(i,a,b) for(i=a;i<b;i++)
      |                         ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:16:21: error: expected statement before ')' token
   16 |         if( C == p) ) printf("yes");
      |                     ^
main.c:17:9: error: 'else' without a previous 'if'
   17 |         else printf("no");
      |         ^~~~
Language: C

#include<stdio.h>
int main(){
char S[26];
int n=0;
scanf("%c",&S);
for(int i=1;i<26;i++){
if(S[0]=='S[i]'){
printf("no\n");
n=n++;
break;
}
if(S[i]=='')break;
}
if(n==0){
printf("yes\n");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:10: warning: multi-character character constant [-Wmultichar]
    7 | if(S[0]=='S[i]'){
      |          ^~~~~~
main.c:12:10: error: empty character constant
   12 | if(S[i]=='')break;
      |          ^~
Language: C

#include<stdio.h>

int main(void)
{
	int C = 0;
	char S[26];
	scanf("%26s",S);
	for( i = 0; i < sizeof(S) / sizeof(S[0]); i++){
	for( j = 0; j < sizeof(S) / sizeof(S[0]); j++){
		if( S[i] == S[j] ) C++ ;
	}
	}
	if( C == sizeof(S) / sizeof(S[0]) ) printf("yes");
	else printf("no");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:14: error: 'i' undeclared (first use in this function)
    8 |         for( i = 0; i < sizeof(S) / sizeof(S[0]); i++){
      |              ^
main.c:8:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:14: error: 'j' undeclared (first use in this function)
    9 |         for( j = 0; j < sizeof(S) / sizeof(S[0]); j++){
      |              ^
Language: C++

#include<iostream>

using namespace std;

int main(){
  string S;

  cin >> S;

  int a[26];
  
  for(int i = 0 ; i < S.size() ; i++ )
    a[i] = 0;

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

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:16: error: expected primary-expression before ')' token
   20 |     if(a[i] >  ){
      |                ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int num[10000];
char a[100000];
int main(){
    memset(a,0,sizeof(a));
    gets(a);
    int len = strlen(a);
    for(int i = 0; i < len; i++)
        num[a[i]]++;
    int flag = 1;
    for(int i = 0; i < 10000 ; i++)
        if(num[i]>=2){
            flag = 0;
            break;
        }
    printf("%s\n",flag?"yes":"no");

    return 0;
}


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

#include <iostream>
using namespace std;
int main(){
int code[256]={0};
char st[30];
bool diff=true;
cin >> st;
for(int i=0;i<30;i++){
if(st[i]==0)break;
code[st[i]]++;
if (code[st[i]]>1)diff=false;
}
cout<<diff?"yes":"no"<<endl;
return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:22: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   13 | cout<<diff?"yes":"no"<<endl;
      |                  ~~~~^~~~~~
Language: C++

#include "bits/stdc++.h"

#define REP(i,n) for(ll i=0;i<n;++i)
#define RREP(i,n) for(ll i=n-1;i>=0;--i)
#define FOR(i,m,n) for(ll i=m;i<n;++i)
#define RFOR(i,m,n) for(ll i=n-1;i>=m;--i)
#define ALL(v) (v).begin(),(v).end()
#define PB(a) push_back(a)
#define UNIQUE(v) v.erase(unique(ALL(v)),v.end());
#define DUMP(v) REP(aa, (v).size()) { cout << v[a]; if (a != v.size() - 1)cout << " "; else cout << endl; }
#define INF 1000000001ll
#define MOD 1000000007ll
#define EPS 1e-9

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


using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<vi> vvi;
typedef vector<vl> vvl;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
ll max(ll a, int b) { return max(a, ll(b)); }
ll max(int a, ll b) { return max(ll(a), b); }
ll min(ll a, int b) { return min(a, ll(b)); }
ll min(int a, ll b) { return min(ll(a), b); }
///(´・ω・`)(´・ω・`)(´・ω・`)(´・ω・`)(´・ω・`)(´・ω・`)///
int main() {
	cin.tie(0);
	ios::sync_with_stdio(false);
	string s;
	cin >> s;
	set<char> st;
	REP(i, s.size()) {
		st.insert(s[i]);
	}
	if (st.size()) == s.size())cout << "yes" << endl;
	else cout << "no" << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:41:24: error: expected primary-expression before '==' token
   41 |         if (st.size()) == s.size())cout << "yes" << endl;
      |                        ^~
Language: C++

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

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

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

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

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

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

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

#include <string.h>)
int main(int argc, char *argv[])
{
	int i,n,j,k=0;
	char a[100];
	scanf("%s",a); 
	n=strlen(a);
    for(i=0;i<n;i++)
    {
    	for(j=i+1;j<n;j++)
    	if(a[i]==a[j]) k=1;
    
    }
    if(k==1)
    printf("no");
    else printf("yes");
	
	
 
	return 0;
}

Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include <string.h>)
      |                    ^
a.cc: In function 'int main(int, char**)':
a.cc:6:9: error: 'scanf' was not declared in this scope
    6 |         scanf("%s",a);
      |         ^~~~~
a.cc:15:5: error: 'printf' was not declared in this scope
   15 |     printf("no");
      |     ^~~~~~
a.cc:2:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    1 | #include <string.h>)
  +++ |+#include <cstdio>
    2 | int main(int argc, char *argv[])
a.cc:16:10: error: 'printf' was not declared in this scope
   16 |     else printf("yes");
      |          ^~~~~~
a.cc:16:10: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

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

Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include <string.h>)
      |                    ^
a.cc: In function 'int main(int, char**)':
a.cc:6:9: error: 'scanf' was not declared in this scope
    6 |         scanf("%s",a);
      |         ^~~~~
a.cc:15:5: error: 'printf' was not declared in this scope
   15 |     printf("no");
      |     ^~~~~~
a.cc:2:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    1 | #include <string.h>)
  +++ |+#include <cstdio>
    2 | int main(int argc, char *argv[])
a.cc:16:10: error: 'printf' was not declared in this scope
   16 |     else printf("yes");
      |          ^~~~~~
a.cc:16:10: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include <bits/stdc++.h>
using namespace std ;
int temp[105]  ;
int main()
{
  string str ;
 cin >> str ;
int cnt = 0 ;
 memset(temp,0,sizeof temp) ;
for(int i = 0 ; i < str.size() ; i++)
{ 
  temp[str[i]]++ ;
if(temp[str[i]] == 1)
  cnt++ ;
}
if(temp == str.size())
 cout << "yes\n" ;
else cout << "no\n"; 
return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 | if(temp == str.size())
      |    ~~~~~^~~~~~~~~~~~~
Language: C++

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


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

    #include<bits/stdc++.h>
    using namespace std;
     int a[100];
    int main()
    {
           string s;
          cin>>s;
          for(int i=0;i<s.size();i++)
         {
               a['s[i]' - 96] ++;
         }
         
          for(int i=0;i<s.size();i++)
         {
               if(a[i] >1)
                    {cout<<"no"<<endl;return 0;
         }
          
        cout<<"yes"<<endl;
        return 0;
    }

Compiler output:
a.cc:10:18: warning: multi-character character constant [-Wmultichar]
   10 |                a['s[i]' - 96] ++;
      |                  ^~~~~~
a.cc: In function 'int main()':
a.cc:21:6: error: expected '}' at end of input
   21 |     }
      |      ^
a.cc:5:5: note: to match this '{'
    5 |     {
      |     ^
Language: C++

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

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

Compiler output:
a.cc:10:14: warning: multi-character character constant [-Wmultichar]
   10 |            a['s[i]' - 96] ++;
      |              ^~~~~~
a.cc: In function 'int main()':
a.cc:10:12: error: 'a' was not declared in this scope
   10 |            a['s[i]' - 96] ++;
      |            ^
a.cc:15:15: error: 'a' was not declared in this scope
   15 |            if(a[i] >1)
      |               ^
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

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

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

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

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

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

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

#include<stdio.h>
#include<string.h>
main()
{
	char S[25];
	int i,j,b=-1;
	do
	{
	scanf("%s",&S);	
	}while(strlen(s)<2||strlen(s)>26);
   for(i=0;i<=strlen(S);i++)
      for(j=1;j<=strlen(S);j++)
       {
		  if(s[i]==s[j])
     	  b=b;
     	  if(s[i]!=s[j])
     	  b=-b;
     	 }
	if(b==1)
	printf("no");
	if(b==-1)
	printf("yes");
		  		
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main()
      | ^~~~
main.c: In function 'main':
main.c:10:23: error: 's' undeclared (first use in this function)
   10 |         }while(strlen(s)<2||strlen(s)>26);
      |                       ^
main.c:10:23: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

import java.util.Scanner;
public class abc63b {
	static void sort(String[] a){
		String x;
		int cnt=0;

		for(int i=a.length-1;i>0;--i){
			for(int j=0;j<i;++j){
				for(int k=0;k<(a[j].length()>a[j+1].length()?(a[j+1].length()-1):(a[j].length()-1));++k){
				if(((a[j].charAt(k))<(a[j+1].charAt(k)))){
					break;
				}else if(((a[j].charAt(k))==(a[j+1].charAt(k)))){
					boolean h=true;
					for(int m=1;m<(a[j].length()>a[j+1].length()?(a[j+1].length()-1):(a[j].length()-1));++m){
					if(((a[j].charAt(k+m))<(a[j+1].charAt(k+m)))){
						h=false;
						break;
					}else if(h=true){

						if(a[j].length()>a[j+1].length()){x=a[j];a[j]=a[j+1];a[j+1]=x;cnt++;break;}
						else{break;}
					}
					}

				}else{

					x=a[j];a[j]=a[j+1];a[j+1]=x;
					cnt++;

					break;
				}

				}

			}
			if(cnt==0){break;}
			cnt=0;
		}
		
		return;
	}

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner stdin = new Scanner(System.in);
		String[] x=new String[27];
		for(int i=0;i<x.length;++i){
			x[i]=stdin.next();
		}
		sort(x);
		boolean y=true;
		for(int i=1;i<x.length;++i){
			if(x[i].equals(x[i-1])){
				System.out.println("no");
				y=false;
				break;
			}
			if(y==true)System.out.println("yes");
		}
	}

}


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

#include <stdio.h>
#include<string.h>
int main(int argc, char *argv[])
{
   char a[100],b[100];
   int i,j,k=0,n;
   gets(a);
   n=strlen(a);
   for(i=0;i<=n;i++)

   	for(j=0;j<=n,j!=i;j++)
   	if(a[i]==a[j]) k=1;
   
   if(k==1) printf("no\n");
   else printf("yes\n");
    
	return 0;
}

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

#include<iostream>
#include<string>
using namespace std;
int main()
{
	char *S;
	S = new char;
	int len;
	bool flag;
	do {
		cin >> S;
		len = strlen(S);
	} while (len < 2 || len > 26);
	for (int i = 1; i < len; i++) {
		for (int j = 0; j < len - i; j++) {
			if (strcmp(S + i, S + j) == 0) {
				flag = 0;
				goto out;
			}
		}
	}
out:if (flag==0) {
	cout << "no";
}
	else cout << "yes";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:23: error: 'strlen' was not declared in this scope
   12 |                 len = 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 | #include<string>
a.cc:16:29: error: 'strcmp' was not declared in this scope
   16 |                         if (strcmp(S + i, S + j) == 0) {
      |                             ^~~~~~
a.cc:16:29: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

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

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

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

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

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

char s[27];
int main(){
  int flag = 0;
  cin >> s;
  for (int i =0;i<strlen(s);i++){
    for(int j = i+1; j<strlen(s);j++){
      if (s[i] == s[j]) flag = 1;
    }
  }
  
  (flag==1)?(cout << "no" << endl):(cout <<"yes" << endl);
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: 'strlen' was not declared in this scope
    9 |   for (int i =0;i<strlen(s);i++){
      |                   ^~~~~~
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;
Language: C++

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


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

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


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

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

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

#include"stdio.h"
#include"string.h"
main(){
	char S[26];
	int i,j;
	gets(S);
	for(i=0;i<(strlen(S)-1);i++)
	{for(j=i+1;j<strlen(S);j++)
	{if(S[i]==S[j]) break;}
	if(j!=strlen(S)) break;}
	if(i==(strlen(S)-1)) printf("yes\n");
	else printf("no\n");
} 


Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    6 |         gets(S);
      |         ^~~~
      |         getw
Language: C++

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


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

#include <iostream>

using namespace std;

int main(){
  char c[26];
  int count[26] = {};
  for (int i=0;i<26;i++){
    c[i] = '\0';
  }
  cin >> c;
  int l = strlen(c);
  for (int i = 0;i < l;i++) {
    if (count[(int)c[i]-97]++ > 0) {
      cout << "no" << endl;
      return(0);
    }
  }
  cout << "yes" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: 'strlen' was not declared in this scope
   12 |   int l = strlen(c);
      |           ^~~~~~
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 |
Language: C++

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

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

#include"stdio.h"
#include"string.h"
main(){
	char S[26];
	int i,j;
	gets(S);
	for(i=0;i<(strlen(S)-1);i++)
	{for(j=i+1;j<strlen(S);j++)
	{if(S[i]==S[j]) break;}
	if(j!=strlen(S)) break;}
	if(i==(strlen(S)-1)) printf("yes\n");
	else printf("no\n");
} 

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    6 |         gets(S);
      |         ^~~~
      |         getw