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

#include <iostream>
#include <string>

int main(){
  string S;
  int a[4];
  
  for (int i = 1;i<= 4;i++){
    if (S.substr(i-1,i) == 'a'){
      a[1]++;
    }
    if (S.substr(i-1,i) == 'b'){
      a[2]++;
    }
    if (S.substr(i-1,i) == 'c'){
      a[3]++;
    }
  }
  if (a[1] == a[2] and a[2] == a[3]){
    cout << "Yes"<<endl;
  }else{
    cout << "No" <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string S;
      |   ^~~~~~
a.cc:5:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:9:9: error: 'S' was not declared in this scope
    9 |     if (S.substr(i-1,i) == 'a'){
      |         ^
a.cc:12:9: error: 'S' was not declared in this scope
   12 |     if (S.substr(i-1,i) == 'b'){
      |         ^
a.cc:15:9: error: 'S' was not declared in this scope
   15 |     if (S.substr(i-1,i) == 'c'){
      |         ^
a.cc:20:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |     cout << "Yes"<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:20:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   20 |     cout << "Yes"<<endl;
      |                    ^~~~
      |                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:22:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   22 |     cout << "No" <<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:22:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   22 |     cout << "No" <<endl;
      |                    ^~~~
      |                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
string s,c;
cin>>s;
if(s!="abc"&& s!="acb"&& s!="bac" && s!="bca" && s!="cab" && s!="cba")
cout<<"No";
else
cout<<"Yes;"
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: expected ';' before 'return'
   10 | cout<<"Yes;"
      |             ^
      |             ;
   11 | return 0;
      | ~~~~~~
Language: C

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

int main()
{
    string v;
    cin >> v;
    int no_a = 0;
    int no_b = 0;
    int no_c = 0;

    for (int i = 0; i < 3; i++) {
        if (v[i] == 'a') {
            no_a++;
        }
        else if (v[i] == 'b') {
            no_b++;
        }
        else if (v[i] == 'c') {
            no_c++;
        }
    }
    if ((no_a == 1) && (no_b == 1) && (no_c == 0)) {
        cout << "Yes" << endl;
    }
    else {
        cout << "No" << endl;
    }
    return 0;
}

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

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

int main(){
   int A,B,K;
   cin>>A>>B>>K;
   vector<int> a (B-A+1);
   for(int i=0;i<=B-A;i++){
       a.at(i)=i+A;
   }
   if(2*K<=B-A+1){
   vector<int> b (2*K);
   for(int i=0;i<K;i++){
        b.at(i)=a.at(i);
   }
   reverse (a.begin(),a.end());
   for(int i=0;i<K;i++){
       b.at(K+i)=a.at(i);
   }
   sort (b.begin(),b.end());
   
   
   
  for(int i=0;i<2*K;i++){
       if(i<2*K-1){
         if(b.at(i)==b.at(i+1)){
           continue;
         }
       }
       cout<<b.at(i)<<endl;
   }
   }
   else{
       for(int i=0;i<B-A+1;i++){
        cout<<a.at(i)<<endl;
       }
   }

   }
       
   
return 0;

Compiler output:
a.cc:42:1: error: expected unqualified-id before 'return'
   42 | return 0;
      | ^~~~~~
Language: C++

#include<iostream>
#include<set>
using namespace std;
int main(){
  char s[3];for(int i=0;i<3;i++)cin>>s[i];
  set<char> list;for(int i=0;i<3;i++)list.insert(s[i]);
  if(list.value()==3)cout<<"Yes"<<endl;else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'class std::set<char>' has no member named 'value'
    7 |   if(list.value()==3)cout<<"Yes"<<endl;else cout<<"No"<<endl;
      |           ^~~~~
Language: C++

#include<iostream>
#include<set>
using namespace std;
int main(){
  char s[3];for(int i=0;i<3;i++)cin>>s[i];
  set<char> list;for(i=0;i<3;i++)list.insert(s[i]);
  if(list.value()==3)cout<<"Yes"<<endl;else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: 'i' was not declared in this scope
    6 |   set<char> list;for(i=0;i<3;i++)list.insert(s[i]);
      |                      ^
a.cc:7:11: error: 'class std::set<char>' has no member named 'value'
    7 |   if(list.value()==3)cout<<"Yes"<<endl;else cout<<"No"<<endl;
      |           ^~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    string str;
    cin >> str;
    char *c = "No";
    sort(str.begin(), str.end());
    if(str == "abc"){
        c = "Yes";
    }
    cout << c << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    6 |     char *c = "No";
      |               ^~~~
a.cc:7:5: error: 'sort' was not declared in this scope; did you mean 'short'?
    7 |     sort(str.begin(), str.end());
      |     ^~~~
      |     short
a.cc:9:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    9 |         c = "Yes";
      |             ^~~~~
Language: C++

#include <iostream>
using namespace std ;
int main() {
    bool checkContainA = false ;
    bool checkContainB = false ;
    bool checkContainC = false ;
    string s ;
    cin >> s ;
    for (int i = 0 ; i< s.length() ;i++){
        if (s[i] == 'a'){checkContainA = true;}
        if  (s[i] == 'b') {checkContainB = true;}
        if (s[i] == 'c') {checkContainC = true;}
    }
    if (checkContainA && checkContainB && checkContainC){
        cout << "Yes";
    }else {
        cout << "No";
    }
    return 0;


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

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

int main(){
  srting s;
  int a=0,b=0,c=0;
  cin >>s;
  for(int i=0;s[i]!='\0';i++){
    if(s[i]=='a')a=1;
    if(s[i]=='b')b=1;
    if(s[i]=='c')c=1;
  }
  if(a+b+c==3)cout<<"Yes"<<endl;
  if(a+b+c!=3)cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'srting' was not declared in this scope
    6 |   srting s;
      |   ^~~~~~
a.cc:8:9: error: 's' was not declared in this scope
    8 |   cin >>s;
      |         ^
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader vd = new BufferedReader(new InputStreamReader(System.in));

		String[] cd = vd.readLine().split("");

		if(cd[0]!==cd[1]&&cd[2]!==cd[1]&&cd[0]!==cd[2]) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

}


Compiler output:
Main.java:14: error: illegal start of expression
		if(cd[0]!==cd[1]&&cd[2]!==cd[1]&&cd[0]!==cd[2]) {
		          ^
Main.java:14: error: illegal start of expression
		if(cd[0]!==cd[1]&&cd[2]!==cd[1]&&cd[0]!==cd[2]) {
		                         ^
Main.java:14: error: illegal start of expression
		if(cd[0]!==cd[1]&&cd[2]!==cd[1]&&cd[0]!==cd[2]) {
		                                        ^
3 errors
Language: C++

#include<iostream>
#include<string>
#include<map>
using namespace std;
int main(){
  string S;
  cin>>S;
  map<char,int> juge;
  juge[a]=0;
  juge[b]=0;
  juge[c]=0;
  for(int i=0;i<=2;i++){
    if(juge[S[i]]]==1){
      cout<<"No"<<endl;
      return 0;
    }
    juge[S[i]]=1;
  }
  cout<<"Yes"<<endl;
  return 0;
}
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'a' was not declared in this scope
    9 |   juge[a]=0;
      |        ^
a.cc:10:8: error: 'b' was not declared in this scope
   10 |   juge[b]=0;
      |        ^
a.cc:11:8: error: 'c' was not declared in this scope
   11 |   juge[c]=0;
      |        ^
a.cc:13:18: error: expected ')' before ']' token
   13 |     if(juge[S[i]]]==1){
      |       ~          ^
      |                  )
a.cc:13:18: error: expected primary-expression before ']' token
Language: C++

    #include <iostream>
    #include <string>
    using namespace std;
     
    int main(){
      stirng s;
      cin >> s;
      
      int c[3];
      for(int i = 0;i < 3;i++){
        c[s[i]-'a']++;
      }
      
      bool flag = true;
      for(int i = 0;i < 3;i++){
        if(c[i] == 0){
          flag = false;
        }
      }
      
      if(flag){
        cout << "Yes" << endl;
      }else{
        cout << "No" << endl;
      }
    }

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

#include <iostream>
using namespace std;

int main(){
  stirng s;
  cin >> s;
  
  int c[3];
  for(int i = 0;i < 3;i++){
    c[s[i]-'a']++;
  }
  
  bool flag = true;
  for(int i = 0;i < 3;i++){
    if(c[i] == 0){
      flag = false;
    }
  }
  
  if(flag){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
}

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

using namespace std;
#include <iostream>

int main() {
  string s;
  cin>>s;
  sort(s.begin(),s.end());
  
  cout << ((s=="abc")?"Yes":"No") << endl;

  return 0;
}


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

#include <stdio.h>
#include <string.h>
int main()
{
	char S[3];
	scanf("%c",&S);
	
	if(strcmp(S,"abc")==0){
		printf("Yes");
	}else{
		if(!strcmp(S,"acb")==0){
		printf("Yes");
		}else{
			if(!strcmp(S,"bca")==0){
		printf("Yes");
			}else{
				if(!strcmp(S,"bac")==0){
		printf("Yes");
				}else{
					if(!strcmp(S,"cab")==0){
		printf("Yes");
					}else{
						if(!strcmp(S,"cba")==0){
		printf("Yes");
						}else{
							printf("No");
						}
					}
				}
			}
		}
	}
	return 0;

Compiler output:
main.c: In function 'main':
main.c:33:9: error: expected declaration or statement at end of input
   33 |         return 0;
      |         ^~~~~~
Language: C++

#include<queue>
#include<cstdio>
#include<cstring>
#include<iostream>
#include<algorithm>
using namespace std;
int a,b,c,d,ans;
char a;
int main()
{
	for(int i=1;i<=3;i++)
	{
		scanf("%c",&a);
		if ((a=='a') && (b==0))
		{
			ans++;
			b=1;
		}
        if ((a=='b') && (c==0))
		{
			ans++;
			c=1;
		}
		if ((a=='c') && (d==0))
		{
			ans++;
			d=1;
		}
	}
}

Compiler output:
a.cc:8:6: error: conflicting declaration 'char a'
    8 | char a;
      |      ^
a.cc:7:5: note: previous declaration as 'int a'
    7 | int a,b,c,d,ans;
      |     ^
Language: C++

#include<iostream>
#include<algorithm>
#include<math.h>
#include<cstdio>
#include<ctype.h>
#include<stdio.h>
#include<set>
#include<vector>
#include<map>
#include<functional>
#include<iomanip>
#include<queue>
#include<ciso646>
#include<random>
#include<numeric>
#include<string>
typedef long long ll;
using namespace std;

ll gcd(ll a, ll b){
if(a<b){return gcd(b,a);}
else if(a%b){return gcd(b,a%b);}
else{return b;}
}
int main(){
  ll a,b,k
  cin>>a>>b>>k;
  for(int i=a; i<=b ++i)
  if(i<a+k||i>b-k)
  cout<<i<<endl;
  }
  
  
  
  

  
  

 


Compiler output:
a.cc: In function 'int main()':
a.cc:27:3: error: expected initializer before 'cin'
   27 |   cin>>a>>b>>k;
      |   ^~~
a.cc:28:23: error: expected ';' before 'i'
   28 |   for(int i=a; i<=b ++i)
      |                       ^
      |                       ;
a.cc:29:10: error: 'k' was not declared in this scope
   29 |   if(i<a+k||i>b-k)
      |          ^
Language: C++

#include<iostream>
#include<algorithm>
#include<math.h>
#include<cstdio>
#include<ctype.h>
#include<stdio.h>
#include<set>
#include<vector>
#include<map>
#include<functional>
#include<iomanip>
#include<queue>
#include<ciso646>
#include<random>
#include<numeric>
#include<string>
typedef long long ll;
using namespace std;

ll gcd(ll a, ll b){
if(a<b){return gcd(b,a);}
else if(a%b){return gcd(b,a%b);}
else{return b;}
}
int main(){
  ll a,b,k
  cin>>a>>b>>k;
  for(i=a; i<=b ++i)
  if(i<a+k||i>b-k)
  cout<<i<<endl;
  }
  
  
  
  

  
  

 


Compiler output:
a.cc: In function 'int main()':
a.cc:27:3: error: expected initializer before 'cin'
   27 |   cin>>a>>b>>k;
      |   ^~~
a.cc:28:7: error: 'i' was not declared in this scope
   28 |   for(i=a; i<=b ++i)
      |       ^
a.cc:28:19: error: expected ';' before 'i'
   28 |   for(i=a; i<=b ++i)
      |                   ^
      |                   ;
a.cc:29:10: error: 'k' was not declared in this scope
   29 |   if(i<a+k||i>b-k)
      |          ^
Language: Java

import java.util.*;
class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.next();
		char[] data = '';
		for(int i=0; i<str.length(); i++){
			data[i] = str.charAt(i);
		}
		if(data[0]!=data[1]&&data[1]!=data[2]&&data[2]!=data[0]){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
}

Compiler output:
Main.java:6: error: empty character literal
		char[] data = '';
		              ^
1 error
Language: C++

#include <iostream>
using namespace std;
int main(){
char a[3];
cin>>a;
if(a[0]+a[1]+a[2]=3*'b'&&a[0]*a[1]+a[2]*a[1]+a[0]*a[2]=3*'b'*'b'&&a[0]*a[1]*a[2]='b'*'b'*'b')cout<<"Yes"<<endl;
else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:65: error: lvalue required as left operand of assignment
    6 | if(a[0]+a[1]+a[2]=3*'b'&&a[0]*a[1]+a[2]*a[1]+a[0]*a[2]=3*'b'*'b'&&a[0]*a[1]*a[2]='b'*'b'*'b')cout<<"Yes"<<endl;
      |                                                        ~~~~~~~~~^~~~~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  if(S.at(0) == S.at(1))
    cout << "No" << endl;
  else if(S.at(1) == S.at(2))
    cout << "No" << endl;
  else if(S.at(0) == S.at(2))
    cout << "No" << endl;
  else if()
  else
    cout << "Yes" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: expected primary-expression before ')' token
   12 |   else if()
      |           ^
a.cc:13:3: error: expected primary-expression before 'else'
   13 |   else
      |   ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  char S[3];
  int a,b,c;
  for (size_t i = 0; i < 3; i++) {
    cin >> S[i];
  }
  if(s[1]!=s[2]&&s[2]!=s[0]&&s[0]!=s[1]){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: 's' was not declared in this scope
   10 |   if(s[1]!=s[2]&&s[2]!=s[0]&&s[0]!=s[1]){
      |      ^
Language: C++

#include <iostream>
using namespace std;

int main(){
  char S[3];
  int a,b,c;
  for (size_t i = 0; i < 3; i++) {
    cin >> S[i];
  }
  for (size_t j = 0; j < 3; j++) {
    if (S[i]=='a') {
      a++;
    }
    if (S[i]=='b') {
      b++;
    }
    if (S[i]=='c') {
      c++;
    }
  }
  if(a==1&&b==1&&c==1){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: 'i' was not declared in this scope
   11 |     if (S[i]=='a') {
      |           ^
a.cc:14:11: error: 'i' was not declared in this scope
   14 |     if (S[i]=='b') {
      |           ^
a.cc:17:11: error: 'i' was not declared in this scope
   17 |     if (S[i]=='c') {
      |           ^
Language: C++

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

int main()
{
  string S;
  cin >> S;
  int sum = 0;
  for(int i = 0;i < 3;i++){
    if(s[i] == 'a') sum += 1;
    if(s[i] == 'b') sum += 10;
    if(s[i] == 'c') sum += 100;
  }
  if(sum == 111) cout << "Yes" << endl;
  else cout << "No" << endl;

  return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: 's' was not declared in this scope
   11 |     if(s[i] == 'a') sum += 1;
      |        ^
a.cc:12:8: error: 's' was not declared in this scope
   12 |     if(s[i] == 'b') sum += 10;
      |        ^
a.cc:13:8: error: 's' was not declared in this scope
   13 |     if(s[i] == 'c') sum += 100;
      |        ^
Language: C++

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

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

const int INF = (1 << 30) - 1;
const ll INF64 = ((ll)1 << 62) - 1;
const ll MOD = 1e9 + 7;
const double PI = 3.1415926535897932384626433832795;
/*
int main()
{
	int a = 0, b = 0, c = 0;
	string s;
	cin >> s;
	if (s[0] == 'a')
	{
		a++;
	}else{
		if(s[0] == 'b'){
			b++;
		}else{
			c++;
		}
	}
	if (s[1] == 'a')
	{
		a++;
	}else{
		if(s[1] == 'b'){
			b++;
		}else{
			c++;
		}
	}
	if (s[2] == 'a')
	{
		a++;
	}else{
		if(s[2] == 'b'){
			b++;
		}else{
			c++;
		}
	}
	if(a == 1 && b==1 && c==1){
		cout << "Yes" << endl;
	}else{
		cout << "No" << endl;
	}
	
	return 0;
}
*/
int main(){
	char s[10];
	string s;
	if(s[0] != s[1] && s[1] != s[2] && s[0] != s[2]){
		cout << "Yes" << endl;
	}else{
		cout << "No" << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:59:16: error: conflicting declaration 'std::string s'
   59 |         string s;
      |                ^
a.cc:58:14: note: previous declaration as 'char s [10]'
   58 |         char s[10];
      |              ^
Language: C++

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

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

const int INF = (1 << 30) - 1;
const ll INF64 = ((ll)1 << 62) - 1;
const ll MOD = 1e9 + 7;
const double PI = 3.1415926535897932384626433832795;

int wasi()
{
	int a = 0, b = 0, c = 0;
	string s;
	cin >> s;
	if (s[0] == 'a')
	{
		a++;
	}else{
		if(s[0] == 'b'){
			b++;
		}else{
			c++;
		}
	}
	if (s[1] == 'a')
	{
		a++;
	}else{
		if(s[1] == 'b'){
			b++;
		}else{
			c++;
		}
	}
	if (s[2] == 'a')
	{
		a++;
	}else{
		if(s[2] == 'b'){
			b++;
		}else{
			c++;
		}
	}
	if(a == 1 && b==1 && c==1){
		cout << "Yes" << endl;
	}else{
		cout << "No" << endl;
	}
	
	return 0;
}

int main(){
	char s[10];
	string s;
	if(s[0] != s[1] && s[1] != s[2] && s[0] != s[2]){
		cout << "Yes" << endl;
	}else{
		cout << "No" << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:59:16: error: conflicting declaration 'std::string s'
   59 |         string s;
      |                ^
a.cc:58:14: note: previous declaration as 'char s [10]'
   58 |         char s[10];
      |              ^
Language: C++

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

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

const int INF = (1 << 30) - 1;
const ll INF64 = ((ll)1 << 62) - 1;
const ll MOD = 1e9 + 7;
const double PI = 3.1415926535897932384626433832795;

int main()
{
	int a = 0, b = 0, c = 0;
	string s;
	cin >> s;
	if (s[0] == 'a')
	{
		a++;
	}else{
		if(s[0] == 'b'){
			b++;
		}else{
			c++;
		}
	}
	if (s[1] == 'a')
	{
		a++;
	}else{
		if(s[1] == 'b'){
			b++;
		}else{
			c++;
		}
	}
	if (s[2] == 'a')
	{
		a++;
	}else{
		if(s[2] == 'b'){
			b++;
		}else{
			c++;
		}
	}
	if(a == 1; b==2 ;c==3){
		cout << "Yes" << endl;
	}else{
		cout << "No" << endl;
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:48:24: error: expected ')' before ';' token
   48 |         if(a == 1; b==2 ;c==3){
      |           ~            ^~
      |                        )
a.cc:48:30: error: expected ';' before ')' token
   48 |         if(a == 1; b==2 ;c==3){
      |                              ^
      |                              ;
a.cc:50:10: error: 'else' without a previous 'if'
   50 |         }else{
      |          ^~~~
Language: C++

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

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

const int INF = (1 << 30) - 1;
const ll INF64 = ((ll)1 << 62) - 1;
const ll MOD = 1e9 + 7;
const double PI = 3.1415926535897932384626433832795;

int main()
{
	int a, b, c;
	string s;
	cin >> s;
	if (s[0] == 'a')
	{
		a++;
	}else{
		if(s[0] == 'b'){
			b++;
		}else{
			c++;
		}
	}
	if (s[1] == 'a')
	{
		a++;
	}else{
		if(s[1] == 'b'){
			b++;
		}else{
			c++;
		}
	}
	if (s[2] == 'a')
	{
		a++;
	}else{
		if(s[2] == 'b'){
			b++;
		}else{
			c++;
		}
	}
	if(a == 1; b==2 ;c==3){
		cout << "Yes" << endl;
	}else{
		cout << "No" << endl;
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:48:24: error: expected ')' before ';' token
   48 |         if(a == 1; b==2 ;c==3){
      |           ~            ^~
      |                        )
a.cc:48:30: error: expected ';' before ')' token
   48 |         if(a == 1; b==2 ;c==3){
      |                              ^
      |                              ;
a.cc:50:10: error: 'else' without a previous 'if'
   50 |         }else{
      |          ^~~~
Language: C++

#include <stdio.h>
int main(){
char str[3];
int a=0,b=0,c=0;
scanf("%s",str);
for(int i = 0;i < 3;i++){
if(str[i] == 'a'){
a++;
}
if(str[i] == 'b'){
b++;
}
if(str[i] == 'c'){
c++;
}
}
 
if(a == 1 &&　b == 1 && c == 1){
printf("Yes");
}else{
printf("No");
}
return 0;
}



Compiler output:
a.cc:18:13: error: extended character 　 is not valid in an identifier
   18 | if(a == 1 &&　b == 1 && c == 1){
      |             ^
a.cc: In function 'int main()':
a.cc:18:13: error: '\U00003000b' was not declared in this scope
   18 | if(a == 1 &&　b == 1 && c == 1){
      |             ^~~
Language: C++

#include <stdio.h>
int main(){
char str[3];
int a=0,b=0,c=0;
scanf("%s",str);
for(int i = 0;i < 3;i++){
if(s[i] == 'a'){
a++;
}
if(s[i] = 'b'){
b++;
}
if(s[i] == 'c'){
c++;
}
}

if(a == 1 &&b == 1 && c == 1){
printf("Yes");
}else{
printf("No");
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: 's' was not declared in this scope
    7 | if(s[i] == 'a'){
      |    ^
a.cc:10:4: error: 's' was not declared in this scope
   10 | if(s[i] = 'b'){
      |    ^
a.cc:13:4: error: 's' was not declared in this scope
   13 | if(s[i] == 'c'){
      |    ^
Language: Java

import java.util.*;


public class Main {
    public static void main(String[] args) {
        // 自分の得意な言語で
        // Let's チャレンジ！！
    String[]str={"a","b","c"};
    bool[]b={false,false,false};
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String []s=line.split("");
        for(int i=0;i<3;i++){
            for(int j=0;j<3;j++){
                if(str[i].equals(s[j])){
                    b[i]=true;
                }
            }
        }
        if(b[0]&&b[1]&&b[2])
        System.out.println("Yes");
        else
        System.out.println("No");
        
    }
}

Compiler output:
Main.java:9: error: cannot find symbol
    bool[]b={false,false,false};
    ^
  symbol:   class bool
  location: class Main
1 error
Language: C++

// A - abc of ABC.cpp : アプリケーションのエントリ ポイントを定義します。
//

#include "stdafx.h"


int main()
{
	char S[50];
	printf("なんか入力して：");
	scanf_s("%c",S);

	printf("%s\n\n", S);

	if (S[0] == 'a') {
		if (S[1] == 'b') {
			if (S[2] == 'c') {
				printf("Yes\n");
			}else {
				printf("No\n");
			}
		}else if (S[1] == 'c') {
			if (S[2] == 'b') {
				printf("Yes\n");
			}else {
				printf("No\n");
			}
		}
	
	}else 	if (S[0] == 'b') {
		if (S[1] == 'a') {
			if (S[2] == 'c') {
				printf("Yes\n");
			}else {
				printf("No\n");
			}
		}else if (S[1] == 'c') {
			if (S[2] == 'a') {
				printf("Yes\n");
			}else {
				printf("No\n");
			}
		}

	}else if (S[0] == 'c') {
		if (S[1] == 'b') {
			if (S[2] == 'a') {
				printf("Yes\n");
			}else {
				printf("No\n");
			}
		}else if (S[1] == 'a') {
			if (S[2] == 'b') {
				printf("Yes\n");
			}else {
				printf("No\n");
			}
		}

	}
	


    return 0;
}





Compiler output:
a.cc:4:10: fatal error: stdafx.h: No such file or directory
    4 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  string S;
  cin>>S;
  if (S='abc'||'acb'||'bca'||'bac'||'cab'||'cba')
    cout<<'Yes'<<endl;
  else
    cout<<'No'<<endl;
}
 


Compiler output:
a.cc:6:9: warning: multi-character character constant [-Wmultichar]
    6 |   if (S='abc'||'acb'||'bca'||'bac'||'cab'||'cba')
      |         ^~~~~
a.cc:6:16: warning: multi-character character constant [-Wmultichar]
    6 |   if (S='abc'||'acb'||'bca'||'bac'||'cab'||'cba')
      |                ^~~~~
a.cc:6:23: warning: multi-character character constant [-Wmultichar]
    6 |   if (S='abc'||'acb'||'bca'||'bac'||'cab'||'cba')
      |                       ^~~~~
a.cc:6:30: warning: multi-character character constant [-Wmultichar]
    6 |   if (S='abc'||'acb'||'bca'||'bac'||'cab'||'cba')
      |                              ^~~~~
a.cc:6:37: warning: multi-character character constant [-Wmultichar]
    6 |   if (S='abc'||'acb'||'bca'||'bac'||'cab'||'cba')
      |                                     ^~~~~
a.cc:6:44: warning: multi-character character constant [-Wmultichar]
    6 |   if (S='abc'||'acb'||'bca'||'bac'||'cab'||'cba')
      |                                            ^~~~~
a.cc:7:11: warning: multi-character character constant [-Wmultichar]
    7 |     cout<<'Yes'<<endl;
      |           ^~~~~
a.cc:9:11: warning: multi-character character constant [-Wmultichar]
    9 |     cout<<'No'<<endl;
      |           ^~~~
a.cc: In function 'int main()':
a.cc:6:8: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((int)((char)(((((true || true) || true) || true) || true) || true))))' from 'std::__cxx11::basic_string<char>' to 'bool'
    6 |   if (S='abc'||'acb'||'bca'||'bac'||'cab'||'cba')
      |       ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |        |
      |        std::__cxx11::basic_string<char>
Language: C++

#include<cmath>
#include<cstdio>
#include<stdlib.h>
#include<algorithm>
#include<cstring>
#include<iostream>
#include<iomanip>
#include<string>
using namespace std;
int main()
{
	while(cin>>s)
	{
string s;
	sort(s.begin(),s.end());
	if(s=="abc")
		cout<<"Yes";
	else cout<<"NO";
	cout<<endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: 's' was not declared in this scope
   12 |         while(cin>>s)
      |                    ^
Language: C++

s=input()
if s in ['abc','acb','bac','bca','cab','cba']:
    print('Yes')
else:
    print('No')


Compiler output:
a.cc:2:10: warning: multi-character character constant [-Wmultichar]
    2 | if s in ['abc','acb','bac','bca','cab','cba']:
      |          ^~~~~
a.cc:2:16: warning: multi-character character constant [-Wmultichar]
    2 | if s in ['abc','acb','bac','bca','cab','cba']:
      |                ^~~~~
a.cc:2:22: warning: multi-character character constant [-Wmultichar]
    2 | if s in ['abc','acb','bac','bca','cab','cba']:
      |                      ^~~~~
a.cc:2:28: warning: multi-character character constant [-Wmultichar]
    2 | if s in ['abc','acb','bac','bca','cab','cba']:
      |                            ^~~~~
a.cc:2:34: warning: multi-character character constant [-Wmultichar]
    2 | if s in ['abc','acb','bac','bca','cab','cba']:
      |                                  ^~~~~
a.cc:2:40: warning: multi-character character constant [-Wmultichar]
    2 | if s in ['abc','acb','bac','bca','cab','cba']:
      |                                        ^~~~~
a.cc:3:11: warning: multi-character character constant [-Wmultichar]
    3 |     print('Yes')
      |           ^~~~~
a.cc:5:11: warning: multi-character character constant [-Wmultichar]
    5 |     print('No')
      |           ^~~~
a.cc:1:1: error: 's' does not name a type
    1 | s=input()
      | ^
Language: C++

#include<iostream>
using namespace std;

string s, k;
cin >> s;
int n=s.size();

sort(s, s+3);
	if (s[0] == "a" && s[1] == "b" && s[2] == "c") cout << "Yes" << endl;
	else cout << "No" << endl;
}

Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> s;
      | ^~~
a.cc:8:5: error: expected constructor, destructor, or type conversion before '(' token
    8 | sort(s, s+3);
      |     ^
a.cc:9:9: error: expected unqualified-id before 'if'
    9 |         if (s[0] == "a" && s[1] == "b" && s[2] == "c") cout << "Yes" << endl;
      |         ^~
a.cc:10:9: error: expected unqualified-id before 'else'
   10 |         else cout << "No" << endl;
      |         ^~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
  char buf[5];
  cin >> buf;
  
  if(buf[3] != '\0')
  {
    cout << "No" << endl;
  }
  
  bool a = false, b = false, c = false;
  for(int i = 0; i < 3; i++)
  {
    switch(buf[i])
    {
      case 'a':
        a = true;
        break;
      case 'b':
        b = true;
        break;
      case 'c':
        c = true;
        break;
    }
    
    cout << a && b && c ? "Yes" : "No" << endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:40: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   30 |     cout << a && b && c ? "Yes" : "No" << endl;
      |                                   ~~~~~^~~~~~~
Language: C++

#include <studio.h>
#include <iostream>
#include <string>
using namespace std;


int main()
{
	string S;
	bool p;
	
	cout << "S = ";
	cin >> S;
	
	//計算パート
	if ((S[0] != S[1]) && (S[1] != S[2]) && (S[2] != S[0]))
	{
		p = true;
	}
	else
	{
		p = false;
	}

	if (p)
	{
		cout << "yes\n";
	}
	else
	{
		cout << "no\n";
	}
    return 0;
}

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

#include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;


int main()
{
	string S;
	bool p;
	
	cout << "S = ";
	cin >> S;
	
	//計算パート
	if (S[1] != S[2] != S[3])
	{
		p = true;
	}
	else
	{
		p = false;
	}

	if (p)
	{
		cout << "条件を満たすabcは存在します\n";
	}
	else
	{
		cout << "条件を満たすabcは存在しません";
	}
    return 0;
}



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

import std.stdio;
import std.string;
import std.range;
import std.conv;

void main()
{
    auto S = readln.split.to!(int[]),　a = S[0], b = S[1], c = S[2];
    if{(abc).or.(acb).or.(bac).or.(bca).or.(cab).or.(cba)}{
    	writeln("YES");
    }else{
    	writeln("NO");
    }
}

Compiler output:
a.cc:8:38: error: extended character 　 is not valid in an identifier
    8 |     auto S = readln.split.to!(int[]),　a = S[0], b = S[1], c = S[2];
      |                                      ^
a.cc:1:1: error: 'import' does not name a type
    1 | import std.stdio;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import std.string;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import std.range;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import std.conv;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: '::main' must return 'int'
    6 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:14: error: 'readln' was not declared in this scope
    8 |     auto S = readln.split.to!(int[]),　a = S[0], b = S[1], c = S[2];
      |              ^~~~~~
a.cc:9:7: error: expected '(' before '{' token
    9 |     if{(abc).or.(acb).or.(bac).or.(bca).or.(cab).or.(cba)}{
      |       ^
      |       (
a.cc:10:9: error: 'writeln' was not declared in this scope
   10 |         writeln("YES");
      |         ^~~~~~~
a.cc:11:6: error: 'else' without a previous 'if'
   11 |     }else{
      |      ^~~~
a.cc:12:9: error: 'writeln' was not declared in this scope
   12 |         writeln("NO");
      |         ^~~~~~~
Language: C++

import std.stdio;
import std.string;
import std.range;
import std.conv;

void main()
{
    auto S = readln.split.to!(int[]),　a = S[0], b = S[1], c = S[2];
    if{(abc).or.(acb).or.(bac).or.(bca).or.(cab).or(cba)}{
    	writeln("YES");
    }else{
    	writeln("NO");
    }
}

Compiler output:
a.cc:8:38: error: extended character 　 is not valid in an identifier
    8 |     auto S = readln.split.to!(int[]),　a = S[0], b = S[1], c = S[2];
      |                                      ^
a.cc:1:1: error: 'import' does not name a type
    1 | import std.stdio;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import std.string;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import std.range;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import std.conv;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: '::main' must return 'int'
    6 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:14: error: 'readln' was not declared in this scope
    8 |     auto S = readln.split.to!(int[]),　a = S[0], b = S[1], c = S[2];
      |              ^~~~~~
a.cc:9:7: error: expected '(' before '{' token
    9 |     if{(abc).or.(acb).or.(bac).or.(bca).or.(cab).or(cba)}{
      |       ^
      |       (
a.cc:10:9: error: 'writeln' was not declared in this scope
   10 |         writeln("YES");
      |         ^~~~~~~
a.cc:11:6: error: 'else' without a previous 'if'
   11 |     }else{
      |      ^~~~
a.cc:12:9: error: 'writeln' was not declared in this scope
   12 |         writeln("NO");
      |         ^~~~~~~
Language: C++

import std.stdio;
import std.string;
import std.range;
import std.conv;

void main()
{   /*
	auto r = readln.split.to!(int[]), a = r[0], b = r[1], x = r[2];
    if(a+b){
    	writeln("YES");
    }else{
    	writeln("NO");
    }*/
    auto S = readln.split.to!(int[]),　a = S[0], b = S[1], c = S[2];
    if(abc){
    	writeln("YES");
    }else{
    	writeln("NO");
    }
}

Compiler output:
a.cc:14:38: error: extended character 　 is not valid in an identifier
   14 |     auto S = readln.split.to!(int[]),　a = S[0], b = S[1], c = S[2];
      |                                      ^
a.cc:1:1: error: 'import' does not name a type
    1 | import std.stdio;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import std.string;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import std.range;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import std.conv;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: '::main' must return 'int'
    6 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:14:14: error: 'readln' was not declared in this scope
   14 |     auto S = readln.split.to!(int[]),　a = S[0], b = S[1], c = S[2];
      |              ^~~~~~
a.cc:15:8: error: 'abc' was not declared in this scope
   15 |     if(abc){
      |        ^~~
a.cc:16:9: error: 'writeln' was not declared in this scope
   16 |         writeln("YES");
      |         ^~~~~~~
a.cc:18:9: error: 'writeln' was not declared in this scope
   18 |         writeln("NO");
      |         ^~~~~~~
Language: C++

#include<iostream>
using namespace std;

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

    int a_count = 0;
    int b_count = 0;
    int c_count = 0;

    for(int i = 0; i < 3; i++){
        if(str[i] = 'a') a_count++;
        if(str[i] = 'b') b_count++;
        if(str[i] = 'c') c_count++;

    }

    if(a_count == 1 && b_count == 1 && c_count == 1) {
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: 'str' was not declared in this scope; did you mean 'std'?
   13 |         if(str[i] = 'a') a_count++;
      |            ^~~
      |            std
a.cc:14:12: error: 'str' was not declared in this scope; did you mean 'std'?
   14 |         if(str[i] = 'b') b_count++;
      |            ^~~
      |            std
a.cc:15:12: error: 'str' was not declared in this scope; did you mean 'std'?
   15 |         if(str[i] = 'c') c_count++;
      |            ^~~
      |            std
Language: C++

#include "stdafx.h"
#include<iostream>
#include<string>
using namespace std;
int main()
{
	string s;
	cin >> s;
	if (s == "abc" ||s== "acb" || s=="bca" ||s== "bac" ||s== "bca" ||s== "cab" ||s== "cba") {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}
	
	
		

	
		return 0;
}



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

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

int main() {
    string s;
    cin >> s;
    int counter = 0;
    if (s[0] == 'a'&& s[1] == 'b'&& s[2] == 'c') cout << Yes;
    if (s[0] == 'a'&& s[1] == 'c'&& s[2] == 'b') cout << Yes;
    if (s[0] == 'b'&& s[1] == 'a'&& s[2] == 'c') cout << Yes;
    if (s[0] == 'b'&& s[1] == 'c'&& s[2] == 'a') cout << Yes;
    if (s[0] == 'c'&& s[1] == 'a'&& s[2] == 'b') cout << Yes;
    if (s[0] == 'c'&& s[1] == 'b'&& s[2] == 'a') cout << Yes;
	
    cout << No
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:58: error: 'Yes' was not declared in this scope
    9 |     if (s[0] == 'a'&& s[1] == 'b'&& s[2] == 'c') cout << Yes;
      |                                                          ^~~
a.cc:10:58: error: 'Yes' was not declared in this scope
   10 |     if (s[0] == 'a'&& s[1] == 'c'&& s[2] == 'b') cout << Yes;
      |                                                          ^~~
a.cc:11:58: error: 'Yes' was not declared in this scope
   11 |     if (s[0] == 'b'&& s[1] == 'a'&& s[2] == 'c') cout << Yes;
      |                                                          ^~~
a.cc:12:58: error: 'Yes' was not declared in this scope
   12 |     if (s[0] == 'b'&& s[1] == 'c'&& s[2] == 'a') cout << Yes;
      |                                                          ^~~
a.cc:13:58: error: 'Yes' was not declared in this scope
   13 |     if (s[0] == 'c'&& s[1] == 'a'&& s[2] == 'b') cout << Yes;
      |                                                          ^~~
a.cc:14:58: error: 'Yes' was not declared in this scope
   14 |     if (s[0] == 'c'&& s[1] == 'b'&& s[2] == 'a') cout << Yes;
      |                                                          ^~~
a.cc:16:13: error: 'No' was not declared in this scope
   16 |     cout << No
      |             ^~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main()
{
     string str;
     cin >> str;
     sort(str.begin(), str.end());
     cout << (s=="abc" ? "Yes":"No") << endl;
     return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: 'sort' was not declared in this scope; did you mean 'short'?
    8 |      sort(str.begin(), str.end());
      |      ^~~~
      |      short
a.cc:9:15: error: 's' was not declared in this scope
    9 |      cout << (s=="abc" ? "Yes":"No") << endl;
      |               ^
Language: C++

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

int main() {
  string s;
  cin >> s;
  sort(s.begin(),s.end());
  cout << (s=="abc" ? "Yes":"No") << endl;
  return 0;
}

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

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

void main() {
    int i, j;
    char S[100], a ,abc[] = "abc";
    
    scanf("%s", S);

    for(i=0; S[i]!=0; i++) {
        for(j=i+1; S[j]!=0; j++) {
            if(S[i] > S[j]) {
                a = S[i];
                S[i] = S[j];
                S[j] = a;
            }
        }
    }

    if(strcmp(S, abc) == 0) {
        printf("Yes\n");
    } else {
        printf("No\n");
    }
}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main() {
      | ^~~~
Language: C++

#include <iostream>

using namespace std;

int main() {
  string s;
  cin >> s;
  sort(s.begin(), s.end());
  if (s == "abc") {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }

  return 0;
}


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

#include<iostream>
#include<string>
using namespace std;
int main(void){
int count=0;
char s[3];
cin>>s[0]>>s[1]>>s[2];
if(s[0]=='a'&&s[1]=='b'&&s[2]=='c')
cout<<"Yes"<<endl;
else if(s[0]=='a'&&s[2]=='b'&&s[1]=='c')
cout<<"Yes"<<endl;
else if(s[1]=='a'&&s[0]=='c'&&s[2]=='b')
cout<<"Yes"<<endl;
else if(s[1]=='a'&&s[2]=='c'&&s[0]=='b')
cout<<"Yes"<<endl;
else if(s[2]=='a'&&s[1]=='c'&&s[0]=='b')
cout<<"Yes"<<endl;
else if(s[2]=='a'&&s[0]=='c'&&s[1]=='b')
cout<<"Yes"<<endl;
  else cout<<"No"<<endl;

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

(define s (read))

(cond[(symbol=? s 'abc) (display "Yes")]
     [(symbol=? s 'acb) (display "Yes")]
     [(symbol=? s 'bac) (display "Yes")]
     [(symbol=? s 'bca) (display "Yes")]
     [(symbol=? s 'cab) (display "Yes")]
     [(symbol=? s 'cba) (display "Yes")]
     [else (display "No")])

Compiler output:
a.cc:3:19: warning: missing terminating ' character
    3 | (cond[(symbol=? s 'abc) (display "Yes")]
      |                   ^
a.cc:3:19: error: missing terminating ' character
    3 | (cond[(symbol=? s 'abc) (display "Yes")]
      |                   ^~~~~~~~~~~~~~~~~~~~~~
a.cc:4:19: warning: missing terminating ' character
    4 |      [(symbol=? s 'acb) (display "Yes")]
      |                   ^
a.cc:4:19: error: missing terminating ' character
    4 |      [(symbol=? s 'acb) (display "Yes")]
      |                   ^~~~~~~~~~~~~~~~~~~~~~
a.cc:5:19: warning: missing terminating ' character
    5 |      [(symbol=? s 'bac) (display "Yes")]
      |                   ^
a.cc:5:19: error: missing terminating ' character
    5 |      [(symbol=? s 'bac) (display "Yes")]
      |                   ^~~~~~~~~~~~~~~~~~~~~~
a.cc:6:19: warning: missing terminating ' character
    6 |      [(symbol=? s 'bca) (display "Yes")]
      |                   ^
a.cc:6:19: error: missing terminating ' character
    6 |      [(symbol=? s 'bca) (display "Yes")]
      |                   ^~~~~~~~~~~~~~~~~~~~~~
a.cc:7:19: warning: missing terminating ' character
    7 |      [(symbol=? s 'cab) (display "Yes")]
      |                   ^
a.cc:7:19: error: missing terminating ' character
    7 |      [(symbol=? s 'cab) (display "Yes")]
      |                   ^~~~~~~~~~~~~~~~~~~~~~
a.cc:8:19: warning: missing terminating ' character
    8 |      [(symbol=? s 'cba) (display "Yes")]
      |                   ^
a.cc:8:19: error: missing terminating ' character
    8 |      [(symbol=? s 'cba) (display "Yes")]
      |                   ^~~~~~~~~~~~~~~~~~~~~~
a.cc:1:8: error: expected ')' before 's'
    1 | (define s (read))
      | ~      ^~
      |        )
Language: C++

#include<iostream>
#include<algorithm>
#include<string>
using namespace std;
int main(){
  string str;
  int flag[3],cnt=0;
  for(int i=0;i<3;i++)flag[i]=0;
  cin>>str;
  for(int i=0;i<3;i++){
  	if(str[i]=="a")flag[0]=1;
  	if(str[i]=="b")flag[1]=1;
  	if(str[i]=="c")flag[2]=1;
  }
  for(int i=0;i<3;i++){
  	if(flag[i]==1)cnt++;
  }
  if(cnt==3)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         if(str[i]=="a")flag[0]=1;
a.cc:12:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |         if(str[i]=="b")flag[1]=1;
a.cc:13:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |         if(str[i]=="c")flag[2]=1;
Language: C++

#include <bits/stdc++.h>

using namespace std;

string s;

int main(){
  cin >> s;
  if(s.sort(s.begin(),s.end())=="abc"){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'sort'
    9 |   if(s.sort(s.begin(),s.end())=="abc"){
      |        ^~~~
Language: C++

S=str(input())
if 'a' in S and 'b' in S and 'c' in S:
    print('Yes')
else:
    print('No')


Compiler output:
a.cc:3:11: warning: multi-character character constant [-Wmultichar]
    3 |     print('Yes')
      |           ^~~~~
a.cc:5:11: warning: multi-character character constant [-Wmultichar]
    5 |     print('No')
      |           ^~~~
a.cc:1:1: error: 'S' does not name a type
    1 | S=str(input())
      | ^
Language: C

#include <stdio.h>
#include<string.h>
#include<limits.h>
#include<queue>
#include <cmath>
#include<stack>


using namespace std;

int main()
{
    char a;
    int v[3]={0};

    scanf("%c",&a);
    int k=(int)(a-'a');
    v[k]=1;
      scanf("%c",&a);
    k=(int)(a-'a');
    v[k]=1;
      scanf("%c",&a);
    k=(int)(a-'a');
    v[k]=1;
    bool b=true;
    for(int i=0;i<3;i++){
        if(v[i]==0){
            b=false;}
    }
    if(b){
        printf("Yes\n");
    }else{
    printf("No\n");
    }
    return 0;
}

Compiler output:
main.c:4:9: fatal error: queue: No such file or directory
    4 | #include<queue>
      |         ^~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
#include<iostream>
#include<string.h>
using namespace std;
bool c[5];
int main(){
char a[5];
memset(c,0,sizeof(c));
cin>>a;
for(int i=0;i<3;i++){
    if(a[i]=='a'){c[0]=1;}
    if(a[i]=='b'){c[1]=1;}
    if(a[i]=='c'){c[2]=1;}
}
int j;
for( j=0;j<3;j++){
    if(c[j]==0){break;}
}
if(j==3){
    printf("Yes");
}
else{printf("No");}
return 0;

}




Compiler output:
main.c:2:9: fatal error: iostream: No such file or directory
    2 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.