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

#include<stdio.h>
int main(void)
{
 char a[4];
  scanf("%s",a);
 if((a[0]!=a[1])&&(a[1]!=a[2])&&(a[2]!=a[0]))
printf("YES\n");

else printf("NO\n");
return 0;
}


~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                  

Compiler output:
a.cc:15:1: error: expected class-name before '~' token
   15 | ~
      | ^
Language: C++

#include<stdio.h>
int main(void)
{
 char a[4];
  scanf("%s",&a);
 if((a[0]!=a[1])&&(a[1]!=a[2])&&(a[2]!=a[0]))
printf("YES\n");

else printf("NO\n");
return 0;
}


~                          

Compiler output:
a.cc:14:2: error: expected class-name at end of input
   14 | ~
      |  ^
Language: C++

#include<stdio.h>
int main()
{
 char a[4];
  scanf("%s",a);
 if((a[0]!=a[1])&&(a[1]!=a[2])&&(a[2]!=a[0]))
printf("YES\n");

else printf("NO\n");
return 0;
}


~                                                                              
~           

Compiler output:
a.cc:15:1: error: expected class-name before '~' token
   15 | ~
      | ^
Language: C++

#include<stdio.h>
int main()
{
 char a[4];
  scanf("%s",a);
 if(a[0]!=a[1]&&a[1]!=a[2]&&a[2]!=a[0])
printf("YES\n");
else printf("NO\n");
return 0;
}


~                                                                              
~                          

Compiler output:
a.cc:14:1: error: expected class-name before '~' token
   14 | ~
      | ^
Language: C++

int main()
{
 char s[10];
  scanf("%s",s);
 if(s[0]!=s[1]&&s[1]!=s[2]&&s[2]!=s[0])
printf("YES\n");
else printf("NO\n");
return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'scanf' was not declared in this scope
    4 |   scanf("%s",s);
      |   ^~~~~
a.cc:6:1: error: 'printf' was not declared in this scope
    6 | printf("YES\n");
      | ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main()
a.cc:7:6: error: 'printf' was not declared in this scope
    7 | else printf("NO\n");
      |      ^~~~~~
a.cc:7:6: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:8:10: error: expected '}' at end of input
    8 | return 0;
      |          ^
a.cc:2:1: note: to match this '{'
    2 | {
      | ^
Language: C++

#include<stdio.h>
int main(void)
{
 char a[4];
  scanf("%s",a);
 if((a[0]!=a[1])&&(a[1]!=a[2])&&(a[2]!=a[0]))
printf("YES\n");
else printf("NO\n");
return 0;
}


~                   

Compiler output:
a.cc:13:2: error: expected class-name at end of input
   13 | ~
      |  ^
Language: C++

#include <stdio.h>

int main(void)
{
   char s[4];
   scanf("%s",s);

   if (s[0] != s[1] && s[1] != s[2] && s[2] != s[0])
     printf("YES\n");
   else
     printf("NO\n");

   return 0;
}
~      

Compiler output:
a.cc:15:2: error: expected class-name at end of input
   15 | ~
      |  ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b,c;
	a=b=c=0;
	char f[3];
	
	for(int i=0;i<3;i++){
		scnaf("%c",&f[i])
		if(f[i]=='a') a++;
		if(f[i]=='b') b++;
		if(f[i]=='c') c++;
	}
	if(a&&b&&c)cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'scnaf' was not declared in this scope; did you mean 'scanf'?
    9 |                 scnaf("%c",&f[i])
      |                 ^~~~~
      |                 scanf
Language: C++

#include<stdio.h>
int main()
{
	int i,a=0,b=0,c=0;
	char s[3];
	gets(s);
	for(i=0;i<3;i++){
	if(s[i]=='a') a++;
	if(s[i]=='b') b++;
	if(s[i]=='c') c++;}
	 if(a==b&&b==c&&c==1)
	 printf("YES\n");
	 else printf("NO\n");
	 return 0;


}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b,c;
	a=b=c=0;
	char f[3];
	gets(f);
	for(int i=0;i<3;i++){
		if(f[i]=='a') a++;
		if(f[i]=='b') b++;
		if(f[i]=='c') c++;
	}
	if(a&&b&&c)cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
	
	return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b,c;
	a=b=c=0;
	char f[3];
	gets(f);
	for(int i=0;i<3;i++){
		if(f[i]=='a') a++;
		if(f[i]=='b') b++;
		if(f[i]=='c') c++;
	}
	if(a&&b&&c)cout<<"YES"<<endl;
	else cout<<"NO"<<endl;
	
	return 0;
}

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

import java.util.Scanner;

public class Main{
public static void main(String[] args){
 Scanner sc = new Scanner(System.in);
  static String str = sc.next();
  boolean judge=false;
  sort(str,"abc");
  sort(str,"acb");
  sort(str,"bac");
  sort(str,"bca");
  sort(str,"cab");
  sort(str,"cba");
  if(judge)
    System.out.println("Yes");
  else
    System.out.println("No");
}
  void sort(String str,String A){
    if(!judge)
      judge = sc.equals(A);
  }
  
}


Compiler output:
Main.java:6: error: illegal start of expression
  static String str = sc.next();
  ^
Main.java:8: error: invalid method declaration; return type required
  sort(str,"abc");
  ^
Main.java:8: error: <identifier> expected
  sort(str,"abc");
          ^
Main.java:8: error: illegal start of type
  sort(str,"abc");
           ^
Main.java:9: error: invalid method declaration; return type required
  sort(str,"acb");
  ^
Main.java:9: error: <identifier> expected
  sort(str,"acb");
          ^
Main.java:9: error: illegal start of type
  sort(str,"acb");
           ^
Main.java:10: error: invalid method declaration; return type required
  sort(str,"bac");
  ^
Main.java:10: error: <identifier> expected
  sort(str,"bac");
          ^
Main.java:10: error: illegal start of type
  sort(str,"bac");
           ^
Main.java:11: error: invalid method declaration; return type required
  sort(str,"bca");
  ^
Main.java:11: error: <identifier> expected
  sort(str,"bca");
          ^
Main.java:11: error: illegal start of type
  sort(str,"bca");
           ^
Main.java:12: error: invalid method declaration; return type required
  sort(str,"cab");
  ^
Main.java:12: error: <identifier> expected
  sort(str,"cab");
          ^
Main.java:12: error: illegal start of type
  sort(str,"cab");
           ^
Main.java:13: error: invalid method declaration; return type required
  sort(str,"cba");
  ^
Main.java:13: error: <identifier> expected
  sort(str,"cba");
          ^
Main.java:13: error: illegal start of type
  sort(str,"cba");
           ^
Main.java:14: error: illegal start of type
  if(judge)
  ^
Main.java:14: error: <identifier> expected
  if(judge)
          ^
Main.java:15: error: <identifier> expected
    System.out.println("Yes");
                      ^
Main.java:15: error: illegal start of type
    System.out.println("Yes");
                       ^
Main.java:16: error: illegal start of type
  else
  ^
Main.java:17: error: <identifier> expected
    System.out.println("No");
                      ^
Main.java:17: error: illegal start of type
    System.out.println("No");
                       ^
Main.java:19: error: unnamed classes are a preview feature and are disabled by default.
  void sort(String str,String A){
  ^
  (use --enable-preview to enable unnamed classes)
Main.java:24: error: class, interface, enum, or record expected
}
^
28 errors
Language: Java

import java.util.Scanner;

public class Main{
public static void main(String[] args){
 Scanner sc = new Scanner(System.in);
  String str = sc.next();
  boolean judge=false;
  sort(str,"abc");
  sort(str,"acb");
  sort(str,"bac");
  sort(str,"bca");
  sort(str,"cab");
  sort(str,"cba");
  if(judge)
    System.out.println("Yes");
  else
    System.out.println("No");
}
  void sort(String str,String A){
    if(!judge)
      judge = sc.equals(A);
  }
  
}


Compiler output:
Main.java:8: error: non-static method sort(String,String) cannot be referenced from a static context
  sort(str,"abc");
  ^
Main.java:9: error: non-static method sort(String,String) cannot be referenced from a static context
  sort(str,"acb");
  ^
Main.java:10: error: non-static method sort(String,String) cannot be referenced from a static context
  sort(str,"bac");
  ^
Main.java:11: error: non-static method sort(String,String) cannot be referenced from a static context
  sort(str,"bca");
  ^
Main.java:12: error: non-static method sort(String,String) cannot be referenced from a static context
  sort(str,"cab");
  ^
Main.java:13: error: non-static method sort(String,String) cannot be referenced from a static context
  sort(str,"cba");
  ^
Main.java:20: error: cannot find symbol
    if(!judge)
        ^
  symbol:   variable judge
  location: class Main
Main.java:21: error: cannot find symbol
      judge = sc.equals(A);
      ^
  symbol:   variable judge
  location: class Main
Main.java:21: error: cannot find symbol
      judge = sc.equals(A);
              ^
  symbol:   variable sc
  location: class Main
9 errors
Language: Java

import java.util.Scanner;

public class Main{
public static void main(String[] args){
 static Scanner sc = new Scanner(System.in);
  boolean judge=false;
  sort("abc");
  sort("acb");
  sort("bac");
  sort("bca");
  sort("cab");
  sort("cba");
  if(judge)
    System.out.println("Yes");
  else
    System.out.println("No");
}
  void sort(String A){
    if(!judge)
      judge = sc.equals(A);
  }
  
}

Compiler output:
Main.java:5: error: illegal start of expression
 static Scanner sc = new Scanner(System.in);
 ^
Main.java:7: error: invalid method declaration; return type required
  sort("abc");
  ^
Main.java:7: error: illegal start of type
  sort("abc");
       ^
Main.java:8: error: invalid method declaration; return type required
  sort("acb");
  ^
Main.java:8: error: illegal start of type
  sort("acb");
       ^
Main.java:9: error: invalid method declaration; return type required
  sort("bac");
  ^
Main.java:9: error: illegal start of type
  sort("bac");
       ^
Main.java:10: error: invalid method declaration; return type required
  sort("bca");
  ^
Main.java:10: error: illegal start of type
  sort("bca");
       ^
Main.java:11: error: invalid method declaration; return type required
  sort("cab");
  ^
Main.java:11: error: illegal start of type
  sort("cab");
       ^
Main.java:12: error: invalid method declaration; return type required
  sort("cba");
  ^
Main.java:12: error: illegal start of type
  sort("cba");
       ^
Main.java:13: error: illegal start of type
  if(judge)
  ^
Main.java:13: error: <identifier> expected
  if(judge)
          ^
Main.java:14: error: <identifier> expected
    System.out.println("Yes");
                      ^
Main.java:14: error: illegal start of type
    System.out.println("Yes");
                       ^
Main.java:15: error: illegal start of type
  else
  ^
Main.java:16: error: <identifier> expected
    System.out.println("No");
                      ^
Main.java:16: error: illegal start of type
    System.out.println("No");
                       ^
Main.java:18: error: unnamed classes are a preview feature and are disabled by default.
  void sort(String A){
  ^
  (use --enable-preview to enable unnamed classes)
Main.java:23: error: class, interface, enum, or record expected
}
^
22 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'set' was not declared in this scope
    7 |   set<char> d;
      |   ^~~
a.cc:2:1: note: 'std::set' is defined in header '<set>'; this is probably fixable by adding '#include <set>'
    1 | #include<iostream>
  +++ |+#include <set>
    2 | using namespace std;
a.cc:7:7: error: expected primary-expression before 'char'
    7 |   set<char> d;
      |       ^~~~
a.cc:9:5: error: 'd' was not declared in this scope
    9 |     d.insert(s[i]);
      |     ^
a.cc:11:6: error: 'd' was not declared in this scope
   11 |   if(d.size() == 3){
      |      ^
Language: C++

#include <iostream>
void main() {
	char x, y, z;
	std::cin >> x >> y >> z;
	int a = 0, b = 0, c = 0;

	a += (x == 'a');
	a += (y == 'a');
	a += (z == 'a');

	b += (x == 'b');
	b += (y == 'b');
	b += (z == 'b');

	c += (x == 'c');
	c += (y == 'c');
	c += (z == 'c');

	if (a && b && c)
		std::cout << "Yes";
	else
		std::cout << "No";

}

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

#include <stdio.h>

int main(void)
{
   int a,b,k,i,j;

   scanf("%d%d%d",&a,&b,&k);

   for (i = 0;i < k;i++)
     printf("%d\n",a+i);
   for (j = k-1;-1 < j;j--)
     printf("%d\n",b-j);
     
   return 0;
}
~          

Compiler output:
a.cc:16:2: error: expected class-name at end of input
   16 | ~
      |  ^
Language: C++

int main(void){
	int i, a, b, c;
	char s[4];

	scanf("%s", s);
	a = b = c = 0;
	for(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\n");
	else
		printf("NO\n");

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'scanf' was not declared in this scope
    5 |         scanf("%s", s);
      |         ^~~~~
a.cc:14:17: error: 'printf' was not declared in this scope
   14 |                 printf("YES\n");
      |                 ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void){
a.cc:16:17: error: 'printf' was not declared in this scope
   16 |                 printf("NO\n");
      |                 ^~~~~~
a.cc:16:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include <stdio.h>

int main(void)
{
   char s[3] = {'a','b','c'};
   
   scanf("%s",s);
   
   if ((s[0] != s[1]) && (s[1] != s[2]) && (s[2] != s[0]))
     printf("YES\n");
   else
     printf("NO\n");
   
   return 0;
}
~                           

Compiler output:
a.cc:16:2: error: expected class-name at end of input
   16 | ~
      |  ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  char s[2];
  cin >> s[2];
  for(i=0;i<=2;i++){
    if(s[0]!=s[1]!=s[2]){
      cout << "YES";
      return 0;
    }else{
      cout << "NO";
      return 0;
    }
  }
  
  
}

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

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

int main() {
	int A, B, C;
	cin >> A >> B >> C;
	
	int D = 3 * max(a, max(b, c)) - (a + b + c);
	D += D % 2 * 3;
	cout << D / 2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: 'a' was not declared in this scope
   10 |         int D = 3 * max(a, max(b, c)) - (a + b + c);
      |                         ^
a.cc:10:32: error: 'b' was not declared in this scope
   10 |         int D = 3 * max(a, max(b, c)) - (a + b + c);
      |                                ^
a.cc:10:35: error: 'c' was not declared in this scope
   10 |         int D = 3 * max(a, max(b, c)) - (a + b + c);
      |                                   ^
Language: C++

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

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

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

import com.sun.deploy.util.ArrayUtil;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public class Main {

    private static Scanner sc;

    public static void main(String[] args) {
        Main instance = new Main();
        sc = instance.new Scanner();
        instance.solve();
    }

    private void solve() {
        try {
            System.out.println();
            char[] input = sc.next().toCharArray();
            Arrays.sort(input);
            String sorted = new String(input);;
            if(sorted.equals("abc")) {
                System.out.println("Yes");
            } else {
                System.out.println("No");
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private class Scanner {
        String[] s;
        int i;
        BufferedReader br;
        String regex = " ";

        public Scanner() {
            s = new String[0];
            i = 0;
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        @Override
        protected void finalize() throws Throwable {
            try {
                super.finalize();
            } finally {
                destruction();
            }
        }

        private void destruction() throws IOException {
            if (br != null) br.close();
        }

        public String next() throws IOException {
            if (i < s.length) return s[i++];
            String st = br.readLine();
            while (st == "") st = br.readLine();
            s = st.split(regex, 0);
            i = 0;
            return s[i++];
        }

        public int nextInt() throws NumberFormatException, IOException {
            return Integer.parseInt(next());
        }

        public Long nextLong() throws NumberFormatException, IOException {
            return Long.parseLong(next());
        }

        public Double nextDouble() throws NumberFormatException, IOException {
            return Double.parseDouble(next());
        }
    }
}


Compiler output:
Main.java:1: error: package com.sun.deploy.util does not exist
import com.sun.deploy.util.ArrayUtil;
                          ^
Main.java:51: warning: [removal] finalize() in Object has been deprecated and marked for removal
        protected void finalize() throws Throwable {
                       ^
Main.java:53: warning: [removal] finalize() in Object has been deprecated and marked for removal
                super.finalize();
                     ^
1 error
2 warnings
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'all' was not declared in this scope; did you mean 'std::filesystem::perms::all'?
    7 |     sort(all(s));
      |          ^~~
      |          std::filesystem::perms::all
In file included from /usr/include/c++/14/filesystem:51,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200,
                 from a.cc:1:
/usr/include/c++/14/bits/fs_fwd.h:158:7: note: 'std::filesystem::perms::all' declared here
  158 |       all               =  0777,
      |       ^~~
Language: Java

import java.util.Scanner;

class Main {
    public static void main(String[] args){
        Scanner io = new Scanner(System.in);
        String str = new io.next();

        int a = 0;
        int b = 0;
        int c = 0;
        int e = 0;

        for(int i = 0; i < str.length; i++){
            char c = str.charAt(i);

            switch(c){
            case 'a' : a++; break;
            case 'b' : b++; break;
            case 'c' : c++; break;
            default  : e++; break;
            }
        }

        if(a < 2 && b < 2 && c < 2 && e == 0 )
            System.out.println("Yes");
        else
            System.out.println("No");
    }
}

Compiler output:
Main.java:6: error: package io does not exist
        String str = new io.next();
                           ^
Main.java:13: error: cannot find symbol
        for(int i = 0; i < str.length; i++){
                              ^
  symbol:   variable length
  location: variable str of type String
Main.java:14: error: variable c is already defined in method main(String[])
            char c = str.charAt(i);
                 ^
3 errors
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <map>
#include <queue>
#include <deque>
#include <string.h>
#include <math.h>
typedef long long ll;
#define INF			100000
#define MAX(x, y)	(((x) > (y))? (x) : (y))
#define MIN(x, y)	(((x) < (y))? (x) : (y))
#define ABS(x)		(((x) < 0)? (-1*(x)) : (x))
#define REP(i,x,y)	for (int (i)=(x);(i)<(y);(i)++)
#define REP_(i,x,y)	for ((i)=(x);(i)<(y);(i)++)
#define MEMCLR(X)	memset((X),0,sizeof((X)))

using namespace std;
typedef pair<int, int> Point;
typedef vector<vector<Point>> Graph;

int A,B,K;
string s;

int main() {
	
 	cin >> s;

	if (
		(s[0]=='a' || s[1]=='a' || s[2]=='a') 
	&&	(s[0]=='b' || s[1]=='b' || s[2]=='b') 
	&&	(s[0]=='c' || s[1]=='c' || s[2]=='c') 
		cout << "Yes";
	) else
		cout << "No";

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:54: error: expected ';' before 'cout'
   32 |         &&      (s[0]=='c' || s[1]=='c' || s[2]=='c')
      |                                                      ^
      |                                                      ;
   33 |                 cout << "Yes";
      |                 ~~~~                                  
a.cc:34:9: error: expected primary-expression before ')' token
   34 |         ) else
      |         ^
a.cc:34:11: error: expected primary-expression before 'else'
   34 |         ) else
      |           ^~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <map>
#include <queue>
#include <deque>
#include <string.h>
#include <math.h>
typedef long long ll;
#define INF			100000
#define MAX(x, y)	(((x) > (y))? (x) : (y))
#define MIN(x, y)	(((x) < (y))? (x) : (y))
#define ABS(x)		(((x) < 0)? (-1*(x)) : (x))
#define REP(i,x,y)	for (int (i)=(x);(i)<(y);(i)++)
#define REP_(i,x,y)	for ((i)=(x);(i)<(y);(i)++)
#define MEMCLR(X)	memset((X),0,sizeof((X)))

using namespace std;
typedef pair<int, int> Point;
typedef vector<vector<Point>> Graph;

int A,B,K;
string s;

int main() {
	
 	cin >> s;

	if (
		(s[0]=='a' || s[1]=='a' || s[2]=='a') 
	&&	(s[0]=='b' || s[1]=='b' || s[2]=='b') 
	&&	(s[0]=='c' || s[1]=='c' || s[2]=='c') 
		cout "Yes";
	) else
		cout "No";

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:54: error: expected ';' before 'cout'
   32 |         &&      (s[0]=='c' || s[1]=='c' || s[2]=='c')
      |                                                      ^
      |                                                      ;
   33 |                 cout "Yes";
      |                 ~~~~                                  
a.cc:34:9: error: expected primary-expression before ')' token
   34 |         ) else
      |         ^
a.cc:34:11: error: expected primary-expression before 'else'
   34 |         ) else
      |           ^~~~
Language: Java

import java.util.*;


public class S{

  public static void main(String args[]){

     Scanner s = new Scanner(System.in);
     String str =s.nextLine();

     int n = str.length();

      int arr[] = new int[3];

     for(int i=0;i<n;i++){
     	arr[str.charAt(i)-'a']++;
     }

if(arr[0]==1 && arr[1]==1 && arr[2]==1)
	System.out.println("YES");
else
	System.out.println("NO");

  }

}


Compiler output:
Main.java:4: error: class S is public, should be declared in a file named S.java
public class S{
       ^
1 error
Language: Java

import java.util.*;


public class String{

  public static void main(String args[]){

     Scanner s = new Scanner(System.in);
     String str =s.nextLine();

     int n = str.length();

      int arr[] = new int[3];

     for(int i=0;i<n;i++){
     	arr[str.charAt(i)-'a']++;
     }

if(arr[0]==1 && arr[1]==1 && arr[2]==1)
	System.out.println("YES");
else
	System.out.println("NO");

  }

}


Compiler output:
Main.java:4: error: class String is public, should be declared in a file named String.java
public class String{
       ^
Main.java:9: error: incompatible types: java.lang.String cannot be converted to String
     String str =s.nextLine();
                           ^
Main.java:11: error: cannot find symbol
     int n = str.length();
                ^
  symbol:   method length()
  location: variable str of type String
Main.java:16: error: cannot find symbol
     	arr[str.charAt(i)-'a']++;
     	       ^
  symbol:   method charAt(int)
  location: variable str of type String
4 errors
Language: C++

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

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

#include <bits/stdc++.h>
using namespace std;
int main(){
	char s[3];
	map<char>mp;
	for(int i=0; i<3; ++i){
		cin>>s[i];
		mp[s[i]]++;
	}
	if(mp['a'] && mp['b'] && mp['c'])cout<<"Yes";
	else cout<<"No";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: wrong number of template arguments (1, should be at least 2)
    5 |         map<char>mp;
      |                 ^
In file included from /usr/include/c++/14/map:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:152,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_map.h:102:11: note: provided for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
  102 |     class map
      |           ^~~
a.cc:8:19: error: invalid types 'int[char]' for array subscript
    8 |                 mp[s[i]]++;
      |                   ^
a.cc:10:14: error: invalid types 'int[char]' for array subscript
   10 |         if(mp['a'] && mp['b'] && mp['c'])cout<<"Yes";
      |              ^
a.cc:10:25: error: invalid types 'int[char]' for array subscript
   10 |         if(mp['a'] && mp['b'] && mp['c'])cout<<"Yes";
      |                         ^
a.cc:10:36: error: invalid types 'int[char]' for array subscript
   10 |         if(mp['a'] && mp['b'] && mp['c'])cout<<"Yes";
      |                                    ^
Language: C++

#include<iostream>
using namespace std;

int main(){

	char A,B,C;

	cin>>A>>B>>C;
	int ans=0;
	if(A=='a')ans++;
	if(B=='b')ans++;
	if(C=='c')ans++;

	ans==3 ? cout<<"Yes"<<endl : cout<<"No"<<endl;

	return 0
}


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

#include <iostream>
using namespace std;
int main()
{
  string s;cin>>s;
  
  if(s[0] != s[1] && s[1] != s[2] && s[2] !=s[0]) cout << "Yes"<<endl;
  else cout << "No" ,< endl;
  
  return 0;
  
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected primary-expression before '<' token
    8 |   else cout << "No" ,< endl;
      |                      ^
Language: C++

int main(void)
{
    int i,t=0,k=0,g=0;
    char S[4];

    scanf("%s",S);

    for(i=0;i<3;i++){
       if(S[i]=='a')
         t=t+1;}
    for(i=0;i<3;i++){
       if(S[i]=='b')
         k=k+1;}
    for(i=0;i<3;i++){
       if(S[i]=='c')
         g=g+1;}
    if(t==1 && k==1 && g==1)
      printf("yes\n");
    else
      printf("no\n");
   return 0;
}


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

#include <stdio.h>

int main(void)
{
    int i,t=0,k=0,g=0;
    char S[4];
    
    scanf("%s",S);
    
    for(i=0;i<3;i++){
       if(S[i]=='a')
         t=t+1;}
    for(i=0;i<3;i++){
       if(S[i]=='b')
         k=k+1;}
    for(i=0;i<3;i++){
       if(S[i]=='c')
         g=g+1;}
    if(t==1 && k==1 && g==1)
      printf("yes\n");
    else
      printf("no\n");
   return 0;
｝

Compiler output:
a.cc: In function 'int main()':
a.cc:24:1: error: '\U0000ff5d' was not declared in this scope
   24 | ｝
      | ^~
a.cc:24:3: error: expected '}' at end of input
   24 | ｝
      |   ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

      else if(s[i] == 'b')
         a[i] = 2;
      else if(s[i] == 'c')
         a[i] = 3;
      else {
            printf("No");
            return 1;}
}
      if (a[0] * a[1] * a[2] == 6){
           printf("yes\n");
}

Compiler output:
a.cc:1:7: error: expected unqualified-id before 'else'
    1 |       else if(s[i] == 'b')
      |       ^~~~
a.cc:3:7: error: expected unqualified-id before 'else'
    3 |       else if(s[i] == 'c')
      |       ^~~~
a.cc:5:7: error: expected unqualified-id before 'else'
    5 |       else {
      |       ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
a.cc:9:7: error: expected unqualified-id before 'if'
    9 |       if (a[0] * a[1] * a[2] == 6){
      |       ^~
Language: C++

#include<stdio.h>

int main(void)
{
   char s[2];
   int i, a[2];
   scanf("%c%c%c",a[0],a[1],a[2]);

   for(i=0;i<3;i++){
      if(s[i] == 'a')
         a[i] = 1;
      else if(s[i] == 'b')
         a[i] = 2;
      else if(s[i] == 'c')
         a[i] = 3;
      else {
            printf("No");
            return 1;}
}
      if (a[0] * a[1] * a[2] == 6){
           printf("yes\n");
}
      else printf("No\n");

   return 0;
}
~                                                                               
~                                                                               
~                

Compiler output:
a.cc:28:1: error: expected class-name before '~' token
   28 | ~
      | ^
Language: C++

#include <stdio.h>
int main(void)
{
   int i,a=0, b=0, c=0;
   char s[4];

   scanf("%s",s);

   for(i=0;i<4;i++){
      if(s[i]=='a')
         a++;
      else if(s[i]=='b')
         b++;
      else if(s[i]=='c')
         c++;
   }

   if((c==1)&&(b==1)&&(a==1))
      printf("Yes\n");
   else
      printf("N0\n");

   return 0;
}
~

Compiler output:
a.cc:25:2: error: expected class-name at end of input
   25 | ~
      |  ^
Language: C++

#include <stdio.h>
int main(void)
{
   int i,a=0, b=0, c=0;
   char s[4];

   scanf("%s",s);

   for(i=0;i<4;i++){
      if(s[i]=='a')
         a++;
      else if(s[i]=='b')
         b++;
      else if(s[i]=='c')
         c++;
   }

   if((c==1)&&(b==1)&&(a==1))
      printf("Yes\n");
   else
      printf("N0\n");

   return 0;


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

#include<iostream>
using namespace std;
 
int main()
{
  char S[2];
  if(S[0] != S[1] && S[1] != S[2] && S[2] != S[0])
    cout << "Yes";
  else
    cout << "No";
  
  return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: expected ';' before '}' token
   12 |   return 0
      |           ^
      |           ;
   13 | }
      | ~
Language: C++

#include<iostream>
using namespace std;

int main()
{
  char S[2];
  if(S[0] != S[1] && S[1] != S[2] && S[2] != S[0])
    cout << "YES";
  else
    cout << "NO";
  
  return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: expected ';' before '}' token
   12 |   return 0
      |           ^
      |           ;
   13 | }
      | ~
Language: C++

#include<bits/stdc++.h>
#define f first
#define s second
#define pli pair<long long,int>
#define pii pair<int,int>
#define vi vector<int>
#define vl vector<long long>
#define pb push_back

const int maxn=1e6+10;
const int maxt=2e5+10;
const long long inf=1e16;
const int mod=1e9;

using namespace std;

string s;
int a,b,c;

inline void init(){
    cin>>n;
}

inline void prepare(){
    for(int i=0;i<3;i++){
        if(s[i]=='a') a++;
        if(s[i]=='b') b++;
        if(s[i]=='c') c++;
    }
}

inline void solve(){
    if(a==1&&b==1&&c==1) cout<<"Yes";
    else cout<<"No";
}

inline void file(){
    #define task "TEST"
    ios_base::sync_with_stdio(false);
    cin.tie(NULL); cout.tie(NULL);
    freopen(task".INP","r",stdin);
    freopen(task".OUT","w",stdout);
}

int main(){
    //file();
    init();
    prepare();
    //while(t--)
    solve();
    return 0;
}


Compiler output:
a.cc: In function 'void init()':
a.cc:21:10: error: 'n' was not declared in this scope; did you mean 'yn'?
   21 |     cin>>n;
      |          ^
      |          yn
Language: C++

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

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

	map<char, int> ada;
	for(char c : abc) {
		ada[c]++;
	}

	cout << ((int) mp.size() == 3 ? "Yes" : "No") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: 'mp' was not declared in this scope
   13 |         cout << ((int) mp.size() == 3 ? "Yes" : "No") << endl;
      |                        ^~
Language: C++

#include<iostream>
int main(){char a,b,c;std::cin>>a>>b>>c;cout<<((a==b || b==c || c==a)?"No":"Yes")<<endl;}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:41: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    2 | int main(){char a,b,c;std::cin>>a>>b>>c;cout<<((a==b || b==c || c==a)?"No":"Yes")<<endl;}
      |                                         ^~~~
      |                                         std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:2:84: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    2 | int main(){char a,b,c;std::cin>>a>>b>>c;cout<<((a==b || b==c || c==a)?"No":"Yes")<<endl;}
      |                                                                                    ^~~~
      |                                                                                    std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
int main(){char a,b,c;std::cin>>a>>b>>c;if(a==b || b==c || c==a)cout<<"No"<<endl;else std::cout<<"Yes"<<endl;}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:65: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    2 | int main(){char a,b,c;std::cin>>a>>b>>c;if(a==b || b==c || c==a)cout<<"No"<<endl;else std::cout<<"Yes"<<endl;}
      |                                                                 ^~~~
      |                                                                 std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:2:77: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    2 | int main(){char a,b,c;std::cin>>a>>b>>c;if(a==b || b==c || c==a)cout<<"No"<<endl;else std::cout<<"Yes"<<endl;}
      |                                                                             ^~~~
      |                                                                             std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:2:105: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    2 | int main(){char a,b,c;std::cin>>a>>b>>c;if(a==b || b==c || c==a)cout<<"No"<<endl;else std::cout<<"Yes"<<endl;}
      |                                                                                                         ^~~~
      |                                                                                                         std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
        int a,b,c;
        int res=0;
        cin>>a>>b>>c;
        while(1){
	if(a==b&&a==c)break;
        if(a>b&&a>c){
                   b++;c++;res++;     
        }else if(b>a&&b>c){
                        a++;c++;res++;
        }else if(c>>a&&c>>b){
                        b++;a++;res++;
        }else{
        if(a==b){
                while(1){
                        if(b-1==c){a++;b++;res++;}
                        c+=2;
                        res++;
                        if(a==c)break;
                }
        }else if(a==c){
                while(1){
                        if(a-1==b){a++;c++;res++;}
                        b+=2;res++;if(a==b)break;
                }
        }else if(b==c){
                while(1){
                        if(b-1==a){b++;c++;res++;}
                        a+=2;res++;if(a==c)break;
                }
        }
        if(a==b&&a==c)break;
        }
        cout<<res<<endl;
}

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

import java.util.*;
 
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
 
              String[] strArray = strArray[10];
              strArray = sc.split("");
               if(strArray[1] != strArray[2] && strArray[2] != strArray[3] &&  strArray[3] != strArray[1]) System.out.print("Yes");
               else System.out.print("No");
	}
}

Compiler output:
Main.java:7: error: incompatible types: String cannot be converted to String[]
              String[] strArray = strArray[10];
                                          ^
Main.java:8: error: cannot find symbol
              strArray = sc.split("");
                           ^
  symbol:   method split(String)
  location: variable sc of type Scanner
2 errors
Language: Java

import java.util.*;
 
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
 
              String[] strArray = sc.split("");
               if(strArray[1] != strArray[2] && strArray[2] != strArray[3] &&  strArray[3] != strArray[1]) System.out.print("Yes");
               else System.out.print("No");
	}
}

Compiler output:
Main.java:7: error: cannot find symbol
              String[] strArray = sc.split("");
                                    ^
  symbol:   method split(String)
  location: variable sc of type Scanner
1 error
Language: Java

import java.util.*;
 
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
 
              String[] strArray = sc.sprit("");
               if(strArray[1] != strArray[2] && strArray[2] != strArray[3] &&  strArray[3] != strArray[1]) System.out.print("Yes");
               else System.out.print("No");
	}
}

Compiler output:
Main.java:7: error: cannot find symbol
              String[] strArray = sc.sprit("");
                                    ^
  symbol:   method sprit(String)
  location: variable sc of type Scanner
1 error
Language: Java

import java.util.*;
 
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
 
              String[] strArray = str.sprit("");
               if(strArray[1] != strArray[2] && strArray[2] != strArray[3] &&  strArray[3] != strArray[1]) System.out.print("Yes");
               else System.out.print("No");
	}
}

Compiler output:
Main.java:7: error: cannot find symbol
              String[] strArray = str.sprit("");
                                  ^
  symbol:   variable str
  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 [] strArray = str.sprit("");
               if(strArray[1] != strArray[2] && strArray[2] != strArray[3] &&  strArray[3] != strArray[1]) System.out.print("Yes");
               else System.out.print("No");
	}
}

Compiler output:
Main.java:7: error: cannot find symbol
              String [] strArray = str.sprit("");
                                   ^
  symbol:   variable str
  location: class Main
1 error
Language: C++

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

int main()
{
	string s;
	cin >> s;
	if (s[0] != s[1] && s[1] != s[2] && s[2] != s[0]) {
		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: Java

import java.util.*;
import java.io.*;
import java.math.*;
import java.awt.geom.*;
public class Main{
    public static void main(String[] args) {
      MyScanner sc=new MyScanner();
      char a[]={'a','b','c'};
      char b[]=(sc.next()).toCharArray();
      Arrays.sort(b);
      if(Arrays..equals(a,b)) System.out.println("Yes");
      else System.out.println("No");
  }
    private static class MyScanner {
      BufferedReader br;
      StringTokenizer st;

      public MyScanner() {
         br = new BufferedReader(new InputStreamReader(System.in));
      }

      String next() {
          while (st == null || !st.hasMoreElements()) {
              try {
                  st = new StringTokenizer(br.readLine());
              } catch (IOException e) {
                  e.printStackTrace();
              }
          }
          return st.nextToken();
      }

      int ni() {
          return Integer.parseInt(next());
      }
      float nf() {
        return Float.parseFloat(next());
      }
      long nl() {
          return Long.parseLong(next());
      }

      double nd() {
          return Double.parseDouble(next());
      }

      String nextLine(){
          String str = "";
    try {
       str = br.readLine();
    } catch (IOException e) {
       e.printStackTrace();
    }
    return str;
      }
   }
}

Compiler output:
Main.java:11: error: illegal '.'
      if(Arrays..equals(a,b)) System.out.println("Yes");
                ^
Main.java:11: error: ';' expected
      if(Arrays..equals(a,b)) System.out.println("Yes");
                            ^
Main.java:12: error: 'else' without 'if'
      else System.out.println("No");
      ^
3 errors
Language: Java

import java.util.*;
import java.io.*;
import java.math.*;
import java.awt.geom.*;
public class Main{
    public static void main(String[] args) {
      MyScanner sc=new MyScanner();
      char a[]={'a','b','c'};
      char b[]=(sc.next()).toCharArray();
      Arrays.sort(b);
      if(Arrays..equals(a,b)) System.out.println("YES");
      else System.out.println("NO");
  }
    private static class MyScanner {
      BufferedReader br;
      StringTokenizer st;

      public MyScanner() {
         br = new BufferedReader(new InputStreamReader(System.in));
      }

      String next() {
          while (st == null || !st.hasMoreElements()) {
              try {
                  st = new StringTokenizer(br.readLine());
              } catch (IOException e) {
                  e.printStackTrace();
              }
          }
          return st.nextToken();
      }

      int ni() {
          return Integer.parseInt(next());
      }
      float nf() {
        return Float.parseFloat(next());
      }
      long nl() {
          return Long.parseLong(next());
      }

      double nd() {
          return Double.parseDouble(next());
      }

      String nextLine(){
          String str = "";
    try {
       str = br.readLine();
    } catch (IOException e) {
       e.printStackTrace();
    }
    return str;
      }
   }
}

Compiler output:
Main.java:11: error: illegal '.'
      if(Arrays..equals(a,b)) System.out.println("YES");
                ^
Main.java:11: error: ';' expected
      if(Arrays..equals(a,b)) System.out.println("YES");
                            ^
Main.java:12: error: 'else' without 'if'
      else System.out.println("NO");
      ^
3 errors
Language: Java

import java.util.*;
import java.io.*;
import java.math.*;
import java.awt.geom.*;
public class Test{
    public static void main(String[] args) {
      MyScanner sc=new MyScanner();
      char a[]={'a','b','c'};
      char b[]=(sc.next()).toCharArray();
      Arrays.sort(b);
      if(Arrays..equals(a,b)) System.out.println("YES");
      else System.out.println("NO");
  }
    private static class MyScanner {
      BufferedReader br;
      StringTokenizer st;

      public MyScanner() {
         br = new BufferedReader(new InputStreamReader(System.in));
      }

      String next() {
          while (st == null || !st.hasMoreElements()) {
              try {
                  st = new StringTokenizer(br.readLine());
              } catch (IOException e) {
                  e.printStackTrace();
              }
          }
          return st.nextToken();
      }

      int ni() {
          return Integer.parseInt(next());
      }
      float nf() {
        return Float.parseFloat(next());
      }
      long nl() {
          return Long.parseLong(next());
      }

      double nd() {
          return Double.parseDouble(next());
      }

      String nextLine(){
          String str = "";
    try {
       str = br.readLine();
    } catch (IOException e) {
       e.printStackTrace();
    }
    return str;
      }
   }
}

Compiler output:
Main.java:11: error: illegal '.'
      if(Arrays..equals(a,b)) System.out.println("YES");
                ^
Main.java:11: error: ';' expected
      if(Arrays..equals(a,b)) System.out.println("YES");
                            ^
Main.java:12: error: 'else' without 'if'
      else System.out.println("NO");
      ^
3 errors
Language: C++

puts gets.strip.chars.sort().join() == 'abc' ? 'Yes' : 'No'


Compiler output:
a.cc:1:40: warning: multi-character character constant [-Wmultichar]
    1 | puts gets.strip.chars.sort().join() == 'abc' ? 'Yes' : 'No'
      |                                        ^~~~~
a.cc:1:48: warning: multi-character character constant [-Wmultichar]
    1 | puts gets.strip.chars.sort().join() == 'abc' ? 'Yes' : 'No'
      |                                                ^~~~~
a.cc:1:56: warning: multi-character character constant [-Wmultichar]
    1 | puts gets.strip.chars.sort().join() == 'abc' ? 'Yes' : 'No'
      |                                                        ^~~~
a.cc:1:1: error: 'puts' does not name a type
    1 | puts gets.strip.chars.sort().join() == 'abc' ? 'Yes' : 'No'
      | ^~~~
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		String a = sc.nextString();
		// スペース区切りの整数の入力
		// 出力
      if(a.contains("a") &&
        a.contains("b") &&
        a.contains("c") ){
		System.out.println("Yes");
    }else{
      System.out.println("No");
    }
	}
}


Compiler output:
Main.java:6: error: cannot find symbol
		String a = sc.nextString();
		             ^
  symbol:   method nextString()
  location: variable sc of type Scanner
1 error