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

#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <cmath>
#include <queue>
#include <stack>
#include <map>
#include <set>
#include <vector>
#include <iomanip>
#define ALL(x) (x).begin(), (x).end()
#define sz(a) int(a.size())
#define rep(i,x,n) for(int i=x;i<n;i++)
#define repd(i,x,n) for(int i=x;i<=n;i++)
#define pii pair<int,int>
#define pll pair<long long ,long long>
#define gbtb ios::sync_with_stdio(false),cin.tie(0),cout.tie(0)
#define MS0(X) memset((X), 0, sizeof((X)))
#define MSC0(X) memset((X), '\0', sizeof((X)))
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define eps 1e-6
#define chu(x) cout<<"["<<#x<<" "<<(x)<<"]"<<endl
#define du3(a,b,c) scanf("%d %d %d",&(a),&(b),&(c))
#define du2(a,b) scanf("%d %d",&(a),&(b))
#define du1(a) scanf("%d",&(a));
using namespace std;
typedef long long ll;
ll gcd(ll a, ll b) {return b ? gcd(b, a % b) : a;}
ll lcm(ll a, ll b) {return a / gcd(a, b) * b;}
ll powmod(ll a, ll b, ll MOD) { if (a == 0ll) {return 0ll;} a %= MOD; ll ans = 1; while (b) {if (b & 1) {ans = ans * a % MOD;} a = a * a % MOD; b >>= 1;} return ans;}
void Pv(const vector<int> &V) {int Len = sz(V); for (int i = 0; i < Len; ++i) {printf("%d", V[i] ); if (i != Len - 1) {printf(" ");} else {printf("\n");}}}
void Pvl(const vector<ll> &V) {int Len = sz(V); for (int i = 0; i < Len; ++i) {printf("%lld", V[i] ); if (i != Len - 1) {printf(" ");} else {printf("\n");}}}
inline long long readll() {long long tmp = 0, fh = 1; char c = getchar(); while (c < '0' || c > '9') {if (c == '-') fh = -1; c = getchar();} while (c >= '0' && c <= '9') tmp = tmp * 10 + c - 48, c = getchar(); return tmp * fh;}
inline int readint() {int tmp = 0, fh = 1; char c = getchar(); while (c < '0' || c > '9') {if (c == '-') fh = -1; c = getchar();} while (c >= '0' && c <= '9') tmp = tmp * 10 + c - 48, c = getchar(); return tmp * fh;}
const int maxn = 1000010;
const int inf = 0x3f3f3f3f;
/*** TEMPLATE CODE * * STARTS HERE ***/
bool vis[maxn];
char s[maxn];

int main()
{
    //freopen("D:\\code\\text\\input.txt","r",stdin);
    //freopen("D:\\code\\text\\output.txt","w",stdout);
    cin >> s + 1;
    int len = strlen(s + 1);
    int isok = 1;
    repd(i, 1, n)
    {
        if (vis[s[i]])
        {
            isok = 0;
            break;
        } else
        {
            vis[s[i]] = 1;
        }
    }
    if (isok)
    {
        printf("yes\n");
    } else
    {
        printf("no\n");
    }

    return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:52:16: error: 'n' was not declared in this scope
   52 |     repd(i, 1, n)
      |                ^
a.cc:15:36: note: in definition of macro 'repd'
   15 | #define repd(i,x,n) for(int i=x;i<=n;i++)
      |                                    ^
Language: C++

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

int main() {

	string N;
	cin>>N;
  map<char,int> M;
  
  for(int i=0; i<N.length(); i++){
    if(!M.count(N.at(i))){M[N.at(i)]=1}
    else{cout<<"no"<<endl;break;}
  if(i==N.length()-1){cout<<"yes"<<endl;}}
	
	
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:39: error: expected ';' before '}' token
   11 |     if(!M.count(N.at(i))){M[N.at(i)]=1}
      |                                       ^
      |                                       ;
Language: Java

import java.util.*;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   char[] c = sc.next().toCharArray();
   boolean b = true;
   Arrays.sort(c);
   for(int i = 1;i<N;i++)
   {
     if(c[i]==c[i-1]) 
     {
       b = false;
       break;
     }
   }
   String ans;
   if(b) ans = "yes";
   else ans = "no";
   System.out.println(ans);
 }
}

Compiler output:
Main.java:8: error: cannot find symbol
   for(int i = 1;i<N;i++)
                   ^
  symbol:   variable N
  location: class Main
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    string s;
    cin>>s;
    string 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:11:33: error: expected ';' before '}' token
   11 |                         ans="NO"
      |                                 ^
      |                                 ;
   12 |                         }
      |                         ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    string s;
    cin>>s;
    string 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:8:5: error: expected ',' or ';' before 'for'
    8 |     for(int i=0;i<s.size();i++){
      |     ^~~
a.cc:8:17: error: 'i' was not declared in this scope
    8 |     for(int i=0;i<s.size();i++){
      |                 ^
Language: C++

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

using ll=long long; 

void solve(){
	string s;
	cin>>s;
	sort(s.begin(), s.end());
	for(int i=1; i<s.size(); i++){
		if(s[i]==s[i-1]){
			cout<<"no"<<endl;
			return;
		}
	}
	cout<<"yes"<<endl;
}

signed main(){
	//while(1)
	solve();


Compiler output:
a.cc: In function 'int main()':
a.cc:21:17: error: expected '}' at end of input
   21 |         solve();
      |                 ^
a.cc:19:14: note: to match this '{'
   19 | signed main(){
      |              ^
Language: C++

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

int my_abs(int num){
   if (num > 0)
      return num;
   else
      return -num;
}

int main(){
    string S;
    cin S;
    string ans;
    vector<char> SS(S.size());
    for(int i = 0;i<S.size();i++){
        cin >> SS.at(i);
    }
    sort(SS.begin(),SS.end());
    for(int j = 0;j<S.size()-1;j++){
        if(SS.at(j) == S.at(i+1)){
            ans = "no";
        }
    }
    if(ans != "no"){
        ans = "yes";
    }

    cout << ans << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:8: error: expected ';' before 'S'
   17 |     cin S;
      |        ^~
      |        ;
a.cc:25:29: error: 'i' was not declared in this scope
   25 |         if(SS.at(j) == S.at(i+1)){
      |                             ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <utility>
#include <string>
#include <queue>
#include <stack>

using namespace std;

typedef long long int ll;
typedef pair<int, int> Pii;

const ll mod = 1000000007;

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

  string s;
  cin >> s;

  vector<bool> found(26);
  for (int i = 0; i < s.length; i++) {
    int idx = s[i] - 'a';
    if (found[idx]) {
      cout << "no" << endl;
      return 0;
    }
    found[idx] = true;
  }

  cout << "yes" << endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:25: 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 '()' ?)
   24 |   for (int i = 0; i < s.length; i++) {
      |                       ~~^~~~~~
      |                               ()
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:35: error: expected ';' before ')' token
    9 |     for(int j = i + 1;j < S.size()){
      |                                   ^
      |                                   ;
Language: C++

#include <iostream>
#include <fstream>
#include <vector>
#include <cstring>
#include <algorithm> // sort
#include <map> // sort

#define REP(i, n) for (long long i = 0; i < (n); i++) 
typedef long long ll;
static const ll MOD = 1000000007;
static const ll INF = 1000000000000000000LL;
using namespace std;

int main(){
    string s;
	cin >> s;
	int alpha[26] = {};

	REP(i,s.size())
	{
		alpha[s[i] - 'a']++;
	}

	int iMax = 0;
	REP(i,26)
	{
		iMax = max(iMax, alpha[i]);
	}

	if(iMax <= 1)
	{
		res = "yes";
	}
	else
	{
		res = "no";
	}

	cout << res << endl;


    return 0;    
}



Compiler output:
a.cc: In function 'int main()':
a.cc:32:17: error: 'res' was not declared in this scope
   32 |                 res = "yes";
      |                 ^~~
a.cc:36:17: error: 'res' was not declared in this scope
   36 |                 res = "no";
      |                 ^~~
a.cc:39:17: error: 'res' was not declared in this scope
   39 |         cout << res << endl;
      |                 ^~~
Language: C++

typedef long long ll;
const ll INF = 1LL << 40;
#define FOR(i,k,n) for(int i=(k);i<(n);++i)
#define all(x) ((x).begin(),(x).end())

int main(){
    string s;cin >> s;
    bool f = true;
    FOR(i,0,s.size()){
        FOR(j,0,s.size()){
            if(i!=j && s[i]==s[j]){
                f = false;
                break;
            }
        }
    }
    if(f)cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'string' was not declared in this scope
    7 |     string s;cin >> s;
      |     ^~~~~~
a.cc:7:14: error: 'cin' was not declared in this scope
    7 |     string s;cin >> s;
      |              ^~~
a.cc:7:21: error: 's' was not declared in this scope
    7 |     string s;cin >> s;
      |                     ^
a.cc:17:10: error: 'cout' was not declared in this scope
   17 |     if(f)cout << "Yes" << endl;
      |          ^~~~
a.cc:17:27: error: 'endl' was not declared in this scope
   17 |     if(f)cout << "Yes" << endl;
      |                           ^~~~
a.cc:18:10: error: 'cout' was not declared in this scope
   18 |     else cout << "No" << endl;
      |          ^~~~
a.cc:18:26: error: 'endl' was not declared in this scope
   18 |     else cout << "No" << endl;
      |                          ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
string text;
cin >> text;
bool flag=false;
int p=text.size()
  for(int i=0;i<p;i++){
  for(int j=i+1;j<p;j++){
  char a=text.at(i);
  char b=text.at(j);
  if(a==b)flag=true;
  }}
  if(flag)cout << "no" <<endl;
  else cout << "yes" <<endl;
}

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

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

int int_len(int n) {
  int s=0;
  while(n!=0) s++, n/=10;
  return s;
}

int int_sum(int n) {
  int m=0,s=0,a=n;
  while(a!=0) s++, a/=10;
  for(int i=s-1;i>=0;i--) m+=n/((int)pow(10,i))-(n/((int)pow(10,i+1)))*10;
  return m;
}






int gcd(int a,int b)
{
 
  int r, tmp;
 
  
 
  /* 自然数 a > b を確認・入替 */
  if(a<b){
    tmp = a;
    a = b;
    b = tmp;
  }
 
  /* ユークリッドの互除法 */
  r = a % b;
  while(r!=0){
    a = b;
    b = r;
    r = a % b;
  }
 
 
 
  return b;
}







int fac(int n){
  int m=1;
  while(n>=1) m*=n,n--;
  return m;
}

int vec_sum(vector<int> v){
  int n=0;
  for(int i=0;i<v.size();i++) n+=v[i];
  return n;
}
///////////////////////////
int main() {
  string s;
  bool flag=true;
  cin>>s;
  map<char,int> mp;
  rep(i,s.size()){
    mp[s[i]]++;
  }
  rep(auto c:mp){
    if(c.second>=2){
      flag=false;
      break;
    }
  }
  if(flag){
    cout<<"yes"<<endl;
  }else{
    cout<<"no"<<endl;
  }

}
///////////////////////////

Compiler output:
a.cc:77:16: error: macro "rep" requires 2 arguments, but only 1 given
   77 |   rep(auto c:mp){
      |                ^
a.cc:4:9: note: macro "rep" defined here
    4 | #define rep(i, n) for(int i = 0; i < (n); i++)
      |         ^~~
a.cc: In function 'int main()':
a.cc:77:3: error: 'rep' was not declared in this scope
   77 |   rep(auto c:mp){
      |   ^~~
Language: C++

#include <iostream>

using namespace std;

int main()
{
  string s;
  bitset<30> f;
  f.reset();
  cin >> s;
  bool ans=true;
  for(int i=0; i<s.size(); ++i)
  {
    int id = s[i]-'a';
    if (f[id]) ans=ans&(false);
    else 
    {
      f[id]=1;
      ans=ans&(true);
    }
  }
  if (ans) cout << "yes"; else cout << "no";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'bitset' was not declared in this scope
    8 |   bitset<30> f;
      |   ^~~~~~
a.cc:2:1: note: 'std::bitset' is defined in header '<bitset>'; this is probably fixable by adding '#include <bitset>'
    1 | #include <iostream>
  +++ |+#include <bitset>
    2 | 
a.cc:8:14: error: 'f' was not declared in this scope
    8 |   bitset<30> f;
      |              ^
Language: C++

#include<iostream>
#include<string>
#define rep(i,n) for(int i=0; i<(n); i++)
using namespace std;
typedef long long ll;

int main(){
    string S;
    cin >> S;
    int len = S.length();
    bool ans =true;
    for(int i=; i<N-1; i++){
        for(int j=i+1; j<N; j++){
            if(S[i]==S[j]){
                ans = false;
            }
        }
    }
    if(ans){
        cout << "yes" << endl;
    }else{
        cout << "no" << endl;
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: expected primary-expression before ';' token
   12 |     for(int i=; i<N-1; i++){
      |               ^
a.cc:12:19: error: 'N' was not declared in this scope
   12 |     for(int i=; i<N-1; i++){
      |                   ^
Language: C++

#include <bits/stdc++.h>
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define all(a) a.begin(),a.end()
#define P pair<long long,long long>
#define double long double
using namespace std;
signed main(){
  string a;
  cin>>a;
  int b=0;
  rep(i,a.size()){
  rep(i,a.size()){
    if(a.at(i)==a.at(j))
      b++;
  }
  }
  bool c=true;
  if(b>a.size())
    c=false;
  if(c)
    cout<<"yes";
  else
    cout<<"no";
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:15:22: error: 'j' was not declared in this scope
   15 |     if(a.at(i)==a.at(j))
      |                      ^
Language: C++

// https://atcoder.jp/contests/abc063/tasks/abc063_b
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
#define REP(i, n) FOR(i, 0, n)
#define FOR(i, s, n) for (int i = (s), i##_len = (n); i < i##_len; ++i)
#define ALL(obj) (obj).begin(), (obj).end()
#define ALLR(obj) (obj).rbegin(), (obj).rend()

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    string s;
    cin >> s;
    int len = s.length();
    sort(ALL(s));
    s.erase(unique(ALL(s), s.end()));
    if (len != s.size()) {
        cout << "no\n";
    } else {
        cout << "yes\n";
    }

    return 0;
}


Compiler output:
In file included from /usr/include/c++/14/bits/stl_algobase.h:71,
                 from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:2:
/usr/include/c++/14/bits/predefined_ops.h: In instantiation of 'constexpr bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >; _Iterator2 = __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >; _Compare = __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >]':
/usr/include/c++/14/bits/stl_algo.h:869:20:   required from '_ForwardIterator std::__unique(_ForwardIterator, _ForwardIterator, _BinaryPredicate) [with _ForwardIterator = __gnu_cxx::__normal_iterator<char*, __cxx11::basic_string<char> >; _BinaryPredicate = __gnu_cxx::__ops::_Iter_comp_iter<__gnu_cxx::__normal_iterator<char*, __cxx11::basic_string<char> > >]'
  869 |         if (!__binary_pred(__dest, __first))
      |              ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:933:27:   required from '_FIter std::unique(_FIter, _FIter, _BinaryPredicate) [with _FIter = __gnu_cxx::__normal_iterator<char*, __cxx11::basic_string<char> >; _BinaryPredicate = __gnu_cxx::__normal_iterator<char*, __cxx11::basic_string<char> >]'
  933 |       return std::__unique(__first, __last,
      |              ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
  934 |                            __gnu_cxx::__ops::__iter_comp_iter(__binary_pred));
      |                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:18:19:   required from here
   18 |     s.erase(unique(ALL(s), s.end()));
      |             ~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/predefined_ops.h:158:30: error: no match for call to '(__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >) (char&, char&)'
  158 |         { return bool(_M_comp(*__it1, *__it2)); }
      |                       ~~~~~~~^~~~~~~~~~~~~~~~
Language: C++

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

int main() {
  string s;
  cin >> s;
  
  vector<int> c(26, 0);
  for(int i=0; i<n; i++){
    c.at((int)(s.at(i)-'a')) += 1;
  }
  
  int c_max = 0;
  for(int i: c){
    c_max = max(c_max, i);
  }
  if(c_max > 1) cout << "no" << endl;
  else cout << "yes" << endl;
  
  return 0;
}


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

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

int main() {
  string s;
  cin >> s;
  
  vector<int> c(26, 0);
  for(int i=0; i<n; i++){
    c.at((int)(s.at(i)-'a')) += 1;
  }
  
  int c_max = 0;
  for(int i: c){
    c_max = max(c_max, c);
  }
  if(c_max > 1) cout << "no" << endl;
  else cout << "yes" << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: 'n' was not declared in this scope
    9 |   for(int i=0; i<n; i++){
      |                  ^
a.cc:15:16: error: no matching function for call to 'max(int&, std::vector<int>&)'
   15 |     c_max = max(c_max, c);
      |             ~~~^~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:15:16: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'std::vector<int>')
   15 |     c_max = max(c_max, c);
      |             ~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:15:16: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   15 |     c_max = max(c_max, c);
      |             ~~~^~~~~~~~~~
Language: C++

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


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

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

int main() {
  string N;
  cin >> N;
  int count = 0;
  sort(N.begin(),N.end());
  for(int i = 0; i < N.size()-1; i++){
      if(N.at(i) == N.at(i+1)){
          count++;
      }
  } 
   if(count > 0){
       cout << "no" << endl;
   }
   else cout << "yes"

}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:22: error: expected ';' before '}' token
   17 |    else cout << "yes"
      |                      ^
      |                      ;
   18 | 
   19 | }
      | ~
Language: Java

import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    ArraysList<String> a = new ArraysList<String>;
    for(int i = 0; i < s.length(); i++){
      a.add(s.charAt(i));
    }
    Arrays.sort();
    int flag = 0;
    for(int i = 0; i < s.length; i++){
      if()
      

Compiler output:
Main.java:7: error: '(' or '[' expected
    ArraysList<String> a = new ArraysList<String>;
                                                 ^
Main.java:14: error: illegal start of expression
      if()
         ^
Main.java:15: error: reached end of file while parsing
      
      ^
3 errors
Language: Java

import java.util.*;public class Main{public static void main(String[]a){Scanner sc=new Scanner(System.in);int s=sc.next().length();Set<Character>t=new HashSet<>();for(int i=0;i<s;i++){t.add(S.charAt(i));}System.out.println(t.size()==s?"yes":"no");}}

Compiler output:
Main.java:1: error: cannot find symbol
import java.util.*;public class Main{public static void main(String[]a){Scanner sc=new Scanner(System.in);int s=sc.next().length();Set<Character>t=new HashSet<>();for(int i=0;i<s;i++){t.add(S.charAt(i));}System.out.println(t.size()==s?"yes":"no");}}
                                                                                                                                                                                              ^
  symbol:   variable S
  location: class Main
1 error
Language: C++

#include<stdio.h>
#include<string.h>
int main(void)
{
	char s[26];
	int i,j,flg;
	scanf("%s",s);
	n=strlen;
	for(i=0;i<n;i++){
		for(j=i+1;j=n;j++){
			if(s[i]==s[j])}
				flg==1;
			}
		}
	}
	if(flg==1){
		printf("Yes\n");
	}
	else{
		printf("No\n");
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'n' was not declared in this scope
    8 |         n=strlen;
      |         ^
a.cc:11:39: error: expected primary-expression before '}' token
   11 |                         if(s[i]==s[j])}
      |                                       ^
a.cc: At global scope:
a.cc:15:9: error: expected declaration before '}' token
   15 |         }
      |         ^
a.cc:16:9: error: expected unqualified-id before 'if'
   16 |         if(flg==1){
      |         ^~
a.cc:19:9: error: expected unqualified-id before 'else'
   19 |         else{
      |         ^~~~
a.cc:22:9: error: expected unqualified-id before 'return'
   22 |         return 0;
      |         ^~~~~~
a.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^
Language: Java

import java.util.Scanner;

public class Main {
	public static void Main {
    	Scanner sc = new Scanner(System.in);
      	String s = sc.next();
      	int[] charCnt = new int[26];
      	
      	for (char c: s.toCharArray()) {
        	if (charCnt[c - 'a'] != 0) {
            	System.out.println("no");
              	System.exit(0);
            }
          	charCnt[c - 'a']++;
        }
      	System.out.println("yes");
    }
}

Compiler output:
Main.java:4: error: '(' expected
	public static void Main {
	                        ^
1 error
Language: C++

/*
　　　  ∧＿∧　やあ
　　 （´・ω・｀)　　　　　/　　　　　ようこそ、バーボンハウスへ。
　　 ／∇y:::::＼　　　 [￣]　　　　　このテキーラはサービスだから、まず飲んで落ち着いて欲しい。
　　 |:⊃:|:::::|　　　|──|
￣￣￣￣￣￣￣￣￣￣￣￣￣￣￣￣￣|　うん、「また」なんだ。済まない。
￣￣￣￣￣￣￣￣￣￣￣￣￣￣￣|￣　  仏の顔もって言うしね、謝って許してもらおうとも思っていない。
￣￣￣￣￣￣￣￣￣￣￣￣￣￣／|
　　　　∇　∇　∇　∇　　　／.／|　　　でも、この提出を見たとき、君は、きっと言葉では言い表せない
　　　　┴　┴　┴　┴　／ ／　  |　　　「ときめき」みたいなものを感じてくれたと思う。
￣￣￣￣￣￣￣￣￣￣|／　　  |　　　殺伐としたコンテストの中で、そういう気持ちを忘れないで欲しい
￣￣￣￣￣￣￣￣￣￣　　　　 |　　　そう思って、この提出を投げたんだ。
　　　(⊆⊇)　(⊆⊇)　(⊆⊇)　　|
　    ||　　 ||　　||　　|　　　 じゃあ、判定を聞こうか。
　　.／|＼　／|＼ ／|＼
*/

#include <iostream>
#include <cstdlib>
#include <algorithm>
#include <array>
#include <bitset>
#include <climits>
#include <cmath>
#include <cstdio>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
#define fst first
#define snd second
#define mp make_pair
#define ALL(obj) (obj).begin(),(obj).end()
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define RFOR(i,a,b) for(int i = (b-1);i>=a;i--)
#define REP(i,n)  FOR(i,0,n)
#define RREP(i,n) RFOR(i,0,n) 
#define SIZE(x) ((int)(x).size())
#define debug(x) cerr << #x << " -> " << x << " (line:" << __LINE__ << ")" << '\n';
#define debugpair(x, y) cerr << "(" << #x << ", " << #y << ") -> (" << x << ", " << y << ") (line:" << __LINE__ << ")" << '\n';
typedef long long lint;
typedef pair<int, int> pint;
typedef pair<lint, lint> plint;
typedef vector<lint> vec;
typedef vector<vector<lint>> matrix;
typedef priority_queue<lint> p_que;
typedef priority_queue<lint, vector<lint>, greater<lint>> p_que_rev;
const lint INF = INT_MAX;
const lint LINF = LLONG_MAX;
const lint MOD = 1000000000 + 7;
const double EPS = 1e-9;
const double PI = acos(-1);
const int di[]{0, -1, 0, 1, -1, -1, 1, 1};
const int dj[]{1, 0, -1, 0, 1, -1, -1, 1};

lint gcd(lint a, lint b) {
    lint r;
    while (b != 0) {
        r = a % b;
        a = b; 
        b = r;
    }
    return a;
}

lint lcm(lint a, lint b) {
    return (a / gcd(a, b)) * b;
}

lint power(lint x, lint n, lint mod = MOD) {
    lint ret = 1;
    while(n > 0) {
        if(n & 1){
            (ret *= x) %= mod;
        }
        (x *= x) %= mod;
        n >>= 1;
    }
    return ret;
}

vector<lint> make_power(int n, lint base){
    lint num = 1;
    vector<lint> ret;
    for (int i=0; i<=n; ++i){
        ret.push_back(num);
        num *= base;
    }
    return ret;
}

int main()
{
    cin.tie(0);
    ios_base::sync_with_stdio(false);
    string s;
    cin >> s;
    int l = s.length();
    int cnt[26];
    REP(i, 26){
        cnt[i] = 0;
    }
    REP(i, l){
        cnt[s[i] - 'a']++;
    }
    bool flag = true;
    REP(i, 26){
        if(cnt[i] >= 2){
            flag = false;
        }
    }
    if(flag){
        cout << "yes" << endl;
    }
    else {
        cout << "no" << endl;
    }
    cout << ans << endl;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
	string s;
	cin >> s;
	sort(s.begin(), s.end());
	bool flag = false;
	if(i = 0; i < s.size() - 1; i++){
		if(s[i] == s[i+1])flag = true;
	}
	if(flag)cout << "no" << endl;
	else cout << "yes" << endl; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'i' was not declared in this scope
    8 |         if(i = 0; i < s.size() - 1; i++){
      |            ^
a.cc:8:35: error: expected ')' before ';' token
    8 |         if(i = 0; i < s.size() - 1; i++){
      |           ~                       ^
      |                                   )
a.cc:8:37: error: 'i' was not declared in this scope
    8 |         if(i = 0; i < s.size() - 1; i++){
      |                                     ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:38: error: 'J' was not declared in this scope
    9 |         for(int j = 0; j < S.size(); J++){
      |                                      ^
Language: Java

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


Compiler output:
Main.java:10: error: cannot find symbol
      	if(arrray[i]==array[i-1])count++;
      	   ^
  symbol:   variable arrray
  location: class Main
1 error
Language: Java

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


Compiler output:
Main.java:9: error: cannot find symbol
      for(int i = 1;i < n;i++){
                        ^
  symbol:   variable n
  location: class Main
Main.java:10: error: cannot find symbol
      	if(arrray[i]==array[i-1])count++;
      	   ^
  symbol:   variable arrray
  location: class Main
Main.java:12: error: incompatible types: int cannot be converted to boolean
      if(count = 0)System.out.println("yes");
               ^
3 errors
Language: Java

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

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

#include <iostream>
#include <cstdlib>
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>
#include <cassert>
#include <functional>
#include <string>
#include <sstream>
#include <cctype>
using namespace std;


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


Compiler output:
a.cc: In function 'int main()':
a.cc:17:3: error: 'vecto' was not declared in this scope
   17 |   vecto<int> cnt(26, 0);
      |   ^~~~~
a.cc:17:9: error: expected primary-expression before 'int'
   17 |   vecto<int> cnt(26, 0);
      |         ^~~
a.cc:20:8: error: 'cnt' was not declared in this scope; did you mean 'int'?
   20 |     if(cnt[tmp] > 0){
      |        ^~~
      |        int
a.cc:24:5: error: 'cnt' was not declared in this scope; did you mean 'int'?
   24 |     cnt[tmp]++;
      |     ^~~
      |     int
Language: C++

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

int main(){
    string s;
    cin >> n;
    for(int i=0;i<s.size();i++){
        for(int j=i+1;j<s.size();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:7:12: error: 'n' was not declared in this scope
    7 |     cin >> n;
      |            ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:31: error: expected ';' before ')' token
    8 |   for(int i=0;i<s.length(),i++){
      |                               ^
      |                               ;
a.cc:10:35: error: expected ';' before ')' token
   10 |     for(int k=i+1;k<s.length(),k++){
      |                                   ^
      |                                   ;
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:31: error: expected ';' before ')' token
    8 |   for(int i=0;i<s.length(),i++){
      |                               ^
      |                               ;
a.cc:10:35: error: expected ';' before ')' token
   10 |     for(int k=i+1;k<s.length(),k++){
      |                                   ^
      |                                   ;
a.cc:16:3: error: 'retturn' was not declared in this scope
   16 |   retturn 0;
      |   ^~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<(int)(n);i++)
#define fs first
#define sc second
typedef pair<ll, ll> l_l;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))

int main(){
  string s;
  cin>>s;
  vector<int>a(26);
  rep(i,s.size()){
    a[s[i]-'a']++;
  }
  sort(a.begin(),a.end());
  reverse(a.begin(),a.end());
  rep(i,a.size()){
    if(a[i]==1)cnt++;
  }
  if(cnt==s.size())cout<<"yes"<<endl;
  else cout<<"no"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:16: error: 'cnt' was not declared in this scope; did you mean 'int'?
   23 |     if(a[i]==1)cnt++;
      |                ^~~
      |                int
a.cc:25:6: error: 'cnt' was not declared in this scope; did you mean 'int'?
   25 |   if(cnt==s.size())cout<<"yes"<<endl;
      |      ^~~
      |      int
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<(int)(n);i++)
#define fs first
#define sc second
typedef pair<ll, ll> l_l;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))

int main(){
  string s;
  cin>>s;
  vector<int>a(s.size());
  rep(i,n){
    a[s[i]-'a']++;
  }
  if(a.size()==26)
  cout<<"yes"<<endl;
  else cout<<"no"<<endl;
}

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


import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);)
			
			String s = sc.next();
			String ans = "yes";
			for (int i = 0; i < s.length(); i++) {
				for (int j = 0; j < s.length(); j++) {
					if (s.charAt(i) == s.charAt(j)) {
						ans = "no";
					}
				}
				
			}
			System.out.println(ans);
		}
	}


Compiler output:
Main.java:6: error: illegal start of expression
		Scanner sc = new Scanner(System.in);)
		                                    ^
1 error
Language: C++

#include<algorithm>
#include<iostream>
#include<iomanip>
#include<cstring>
#include<cstdio>
#include<cmath>
#include<queue>
using namespace std;
char ch[10005];
int vst[10005];
int main()
{
	scanf("%s",ch+1);
	len=strlen(ch+1);
	for(int i=1;i<=len;i++)
	{
		if(vst[ch[i]]){printf("no\n");return 0;}
		else vst[ch[i]]++;
	}
	printf("yes\n");
	return 0;
}



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

#include<iostream>
#include<string>
using namespace std;int main()
{
 int a[26] = { 0 },flag1=0,flag=0,i=0;
 string s;
 cin >> s;
 for ( int f;i < s.length(); i++)
 {
  s[i] = a[i];

 }
 for (int b = 0; b < i ; b++)
 {
  for (int c = 0; c < i ; c++)
  {
   if (a[b] == a[c])
   {
    flag1=flag1+1;
   }
  }
 }
 if (flag1 == 0)
 {
  cout << "yes";
 }
 else
 {
  cout << "no";
 }
 return 0；
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:9: error: unable to find numeric literal operator 'operator""\U0000ff1b'
   31 |  return 0；
      |         ^~~
a.cc:31:12: error: expected ';' before '}' token
   31 |  return 0；
      |            ^
      |            ;
   32 | }
      | ~
Language: C++

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

int main() {
  string s;
  char jubge = z;
  bool a = true;
  cin >> s;
  sort(s.begin(),s.end());
  for(int i = 0; i < s.size(); i++){
    if(z == s.at(i)){
      a = false;
      break;
    }else{
      jubge = s.at(i);
    }
  }
  if(a)
    cout << "yes" << endl;
  else
    cout << "no" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: 'z' was not declared in this scope
    6 |   char jubge = z;
      |                ^
Language: C

#include <stdio.h>
int main(void) {
  int k[26];
    int x[26];
  while(fgets(k,26,scanf) != NULL) {
 fgets(k,26,scanf);
    int i = 0;
    while (k[i] - 'a' >= 0 k[i] - 'a') {
      x[k[i] - 'a']++;
    }
    int z = 0;
   for (int j = 0; j < 26; ++j) {
    if (x[j] > 1) {z = 1;}
   }
    if (z == 0) {printf("yes\n");}
    else {printf("no\n";)}
  }
 return 0; 
}

Compiler output:
main.c: In function 'main':
main.c:5:15: error: passing argument 1 of 'fgets' from incompatible pointer type [-Wincompatible-pointer-types]
    5 |   while(fgets(k,26,scanf) != NULL) {
      |               ^
      |               |
      |               int *
In file included from main.c:1:
/usr/include/stdio.h:654:38: note: expected 'char * restrict' but argument is of type 'int *'
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |                     ~~~~~~~~~~~~~~~~~^~~
main.c:5:20: error: passing argument 3 of 'fgets' from incompatible pointer type [-Wincompatible-pointer-types]
    5 |   while(fgets(k,26,scanf) != NULL) {
      |                    ^~~~~
      |                    |
      |                    int (*)(const char *, ...)
/usr/include/stdio.h:654:69: note: expected 'FILE * restrict' but argument is of type 'int (*)(const char *, ...)'
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |                                                    ~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:6:8: error: passing argument 1 of 'fgets' from incompatible pointer type [-Wincompatible-pointer-types]
    6 |  fgets(k,26,scanf);
      |        ^
      |        |
      |        int *
/usr/include/stdio.h:654:38: note: expected 'char * restrict' but argument is of type 'int *'
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |                     ~~~~~~~~~~~~~~~~~^~~
main.c:6:13: error: passing argument 3 of 'fgets' from incompatible pointer type [-Wincompatible-pointer-types]
    6 |  fgets(k,26,scanf);
      |             ^~~~~
      |             |
      |             int (*)(const char *, ...)
/usr/include/stdio.h:654:69: note: expected 'FILE * restrict' but argument is of type 'int (*)(const char *, ...)'
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |                                                    ~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:8:27: error: expected ')' before 'k'
    8 |     while (k[i] - 'a' >= 0 k[i] - 'a') {
      |           ~               ^~
      |                           )
main.c:16:24: error: expected ')' before ';' token
   16 |     else {printf("no\n";)}
      |                 ~      ^
      |                        )
main.c:16:26: error: expected ';' before '}' token
   16 |     else {printf("no\n";)}
      |                          ^
      |                          ;
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<bits/stdc++.h>
#include<cmath>
#include<bitset>
#define ll long long
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define FFOR(i,a,b) for(int i=(a);i<=(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define RREP(i,n)  FFOR(i,0,n)
#define SORT(V) sort((V).begin(),(V).end())
#define INF ((1LL<<62)-(1LL<<31))
#define MOD 1000000007
using namespace std;

int main(){
  string S;
  cin>>S;
  bool CAN=true;
  REP(i,N-1){
    FOR(j,i+1,N){
      if(S.at(i)!=S.at(j)) CAN=false;
    }
  }
  if(CAN) cout<<"yes"<<endl;
  else cout<<"no"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:9: error: 'N' was not declared in this scope
   22 |   REP(i,N-1){
      |         ^
a.cc:9:37: note: in definition of macro 'FOR'
    9 | #define FOR(i,a,b) for(int i=(a);i<(b);++i)
      |                                     ^
a.cc:22:3: note: in expansion of macro 'REP'
   22 |   REP(i,N-1){
      |   ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main{
  int a=0;string s;cin>>s;
  vector<char> t(s.size());
  for(int i=0;i<s.size();i++)t.at(i)=s.at(i);
  sort(t.begin(),t.end());
  for(int j=0;j<s.size()-1;j++){
    if(t.at(j)==t.at(j+1)){
      a++;
      break;
    }
  }
  if(a>0)cout<<"no"<<endl;
  else cout<<"yes"<<endl;
}
      

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
    4 |   int a=0;string s;cin>>s;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:4:20: error: 'cin' does not name a type
    4 |   int a=0;string s;cin>>s;
      |                    ^~~
a.cc:6:3: error: expected unqualified-id before 'for'
    6 |   for(int i=0;i<s.size();i++)t.at(i)=s.at(i);
      |   ^~~
a.cc:6:15: error: 'i' does not name a type
    6 |   for(int i=0;i<s.size();i++)t.at(i)=s.at(i);
      |               ^
a.cc:6:26: error: 'i' does not name a type
    6 |   for(int i=0;i<s.size();i++)t.at(i)=s.at(i);
      |                          ^
a.cc:7:7: error: expected constructor, destructor, or type conversion before '(' token
    7 |   sort(t.begin(),t.end());
      |       ^
a.cc:8:3: error: expected unqualified-id before 'for'
    8 |   for(int j=0;j<s.size()-1;j++){
      |   ^~~
a.cc:8:15: error: 'j' does not name a type
    8 |   for(int j=0;j<s.size()-1;j++){
      |               ^
a.cc:8:28: error: 'j' does not name a type
    8 |   for(int j=0;j<s.size()-1;j++){
      |                            ^
a.cc:14:3: error: expected unqualified-id before 'if'
   14 |   if(a>0)cout<<"no"<<endl;
      |   ^~
a.cc:15:3: error: expected unqualified-id before 'else'
   15 |   else cout<<"yes"<<endl;
      |   ^~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

#include <iostream>

using namespace std;

int main(){
    string S;
    //Sを定義
    string ans;
    //出力用の文字列変数ansを定義
    cin >> S;
    //標準入力
    string ans = "yes";
    for(int i = 0 - 1; i < S.length(); i++){
        for(int j = 1 + 1; j < S.length(); j++){
        if(S[i] == S[j]){
                cout << "no" << endl; 
        } 
            cout << ans << endl;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: redeclaration of 'std::string ans'
   12 |     string ans = "yes";
      |            ^~~
a.cc:8:12: note: 'std::string ans' previously declared here
    8 |     string ans;
      |            ^~~
Language: C++

#include <iostream>

using namespace std;

int main(){
    string S;
    //Sを定義
    string ans;
    //出力用の文字列変数ansを定義
    cin >> S;
    //標準入力
    string ans = "yes"
    for(int i = 0 - 1; i < S.length(); i++){
        for(int j = 1 + 1; j < S.length(); j++){
        if(S[i] == S[j]){
                cout << "no" << endl; 
        } 
            cout << ans << endl;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: redeclaration of 'std::string ans'
   12 |     string ans = "yes"
      |            ^~~
a.cc:8:12: note: 'std::string ans' previously declared here
    8 |     string ans;
      |            ^~~
a.cc:13:24: error: 'i' was not declared in this scope
   13 |     for(int i = 0 - 1; i < S.length(); i++){
      |                        ^
Language: C++

#include <iostream>

using namespace std;

int main(){
    string S;
    //Sを定義
    string ans;
    //出力用の文字列変数ansを定義
    cin >> S;
    //標準入力
    string ans = "yes"
    for(int i = 0 + 1; i < S.length(); i++){
        for(int j = 1 - 1; j < S.length(); j++){
        if(S[i] == S[j]){
                cout << "no" << endl; 
        } 
            cout << ans << endl;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: redeclaration of 'std::string ans'
   12 |     string ans = "yes"
      |            ^~~
a.cc:8:12: note: 'std::string ans' previously declared here
    8 |     string ans;
      |            ^~~
a.cc:13:24: error: 'i' was not declared in this scope
   13 |     for(int i = 0 + 1; i < S.length(); i++){
      |                        ^
Language: C++

#include <iostream>

using namespace std;

int main(){
    string S;
    //Sを定義
    string ans;
    //出力用の文字列変数ansを定義
    cin >> S;
    //標準入力
    for(int i = 1+1; i < S.length(); i++){
        for(int j = 1-1; j < S.length(); j++){
        if(S[i] == S[j]){
                cout << "no" << endl; 
        } 
            cout << "yes" << endl;
    }

}


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

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

int main() {
	string s;
	cin>> s;
	int a=0
	for(int i=0;i<s.sizs();i++){
		for(int j=0;j<i;j++){
			if(s.at(i)==s.at(j)){
				a=1
			}
		}
	}
	if(a==0){
		cout<<"yes"<<endl;
		
	}
	else{
		cout<<"no"<<endl;
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected ',' or ';' before 'for'
    9 |         for(int i=0;i<s.sizs();i++){
      |         ^~~
a.cc:9:21: error: 'i' was not declared in this scope
    9 |         for(int i=0;i<s.sizs();i++){
      |                     ^
a.cc:9:25: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'sizs'; did you mean 'size'?
    9 |         for(int i=0;i<s.sizs();i++){
      |                         ^~~~
      |                         size