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

#include <stdio.h>
#include <limits.h>
char S[3];
int sum=0;
int x=y=z=0;
string str("No");
int main{
	cin>>S;
	for(int i = 0; i<3; i++;){
		if(S[i]=='a'){
			x=1;
		}	
	}
	for(int i = 0; i<3; i++;){
		if(S[i]=='b'){
			y=1;
		}	
	}
	for(int i = 0; i<3; i++;){
		if(S[i]=='c'){
			z=1;
		}	
	}
	sum=a+b+c;
	if (sum==3){
		str="Yes";
	}
	cout << str;
	return 0;
}

Compiler output:
a.cc:5:7: error: 'y' was not declared in this scope
    5 | int x=y=z=0;
      |       ^
a.cc:5:9: error: 'z' was not declared in this scope
    5 | int x=y=z=0;
      |         ^
a.cc:6:1: error: 'string' does not name a type; did you mean 'stdin'?
    6 | string str("No");
      | ^~~~~~
      | stdin
a.cc:7:5: error: cannot declare '::main' to be a global variable
    7 | int main{
      |     ^~~~
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin>>S;
      |         ^~~
a.cc:8:15: error: expected '}' before ';' token
    8 |         cin>>S;
      |               ^
a.cc:7:9: note: to match this '{'
    7 | int main{
      |         ^
a.cc:9:9: error: expected unqualified-id before 'for'
    9 |         for(int i = 0; i<3; i++;){
      |         ^~~
a.cc:9:24: error: 'i' does not name a type
    9 |         for(int i = 0; i<3; i++;){
      |                        ^
a.cc:9:29: error: 'i' does not name a type
    9 |         for(int i = 0; i<3; i++;){
      |                             ^
a.cc:9:33: error: expected unqualified-id before ')' token
    9 |         for(int i = 0; i<3; i++;){
      |                                 ^
a.cc:14:9: error: expected unqualified-id before 'for'
   14 |         for(int i = 0; i<3; i++;){
      |         ^~~
a.cc:14:24: error: 'i' does not name a type
   14 |         for(int i = 0; i<3; i++;){
      |                        ^
a.cc:14:29: error: 'i' does not name a type
   14 |         for(int i = 0; i<3; i++;){
      |                             ^
a.cc:14:33: error: expected unqualified-id before ')' token
   14 |         for(int i = 0; i<3; i++;){
      |                                 ^
a.cc:19:9: error: expected unqualified-id before 'for'
   19 |         for(int i = 0; i<3; i++;){
      |         ^~~
a.cc:19:24: error: 'i' does not name a type
   19 |         for(int i = 0; i<3; i++;){
      |                        ^
a.cc:19:29: error: 'i' does not name a type
   19 |         for(int i = 0; i<3; i++;){
      |                             ^
a.cc:19:33: error: expected unqualified-id before ')' token
   19 |         for(int i = 0; i<3; i++;){
      |                                 ^
a.cc:24:9: error: 'sum' does not name a type
   24 |         sum=a+b+c;
      |         ^~~
a.cc:25:9: error: expected unqualified-id before 'if'
   25 |         if (sum==3){
      |         ^~
a.cc:28:9: error: 'cout' does not name a type
   28 |         cout << str;
      |         ^~~~
a.cc:29:9: error: expected unqualified-id before 'return'
   29 |         return 0;
      |         ^~~~~~
a.cc:30:1: error: expected declaration before '}' token
   30 | }
      | ^
Language: C

#include<stdio.h>
int main() {

	char s[2];
	scanf("%s", s);

	if (s[0]== a || s[1]== a || s[2]== a) {
		if (s[0] == b || s[1] == b || s[2] == b) {
			if (s[0] == c || s[1] == c || s[2] == c) {
printf("Yes");
			}
		}
	}
	else {
		printf("No");
	}
}

Compiler output:
main.c: In function 'main':
main.c:7:20: error: 'a' undeclared (first use in this function)
    7 |         if (s[0]== a || s[1]== a || s[2]== a) {
      |                    ^
main.c:7:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:29: error: 'b' undeclared (first use in this function)
    8 |                 if (s[0] == b || s[1] == b || s[2] == b) {
      |                             ^
main.c:9:37: error: 'c' undeclared (first use in this function)
    9 |                         if (s[0] == c || s[1] == c || s[2] == c) {
      |                                     ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
    string s;

    int i=0;a

    cin>>s;

    if((s[i]=='a' && s[i+1]=='b' && s[i+2]=='c')||(s[i]=='b' && s[i+1]=='a' && s[i+2]=='c') || (s[i]=='b' && s[i+1]=='c' && s[i+2]=='a') || (s[i]=='a' && s[i+1]=='c' && s[i+2]=='b') || (s[i]=='c' && s[i+1]=='a' && s[i+2]=='b')||(s[i]=='c' && s[i+1]=='b' && s[i+2]=='a'))

        cout<<"Yes";

    else
        cout<<"No";


    return 0;
}


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

#include <iostream>
using namespace std;

int main(){
    char S;
    cin >> S;
    int result;
    if (S[0]=="a" ||S[0]=="b"||S[0]=="c"){
        if (S[1]=="a" ||S[1]=="b"||S[1]=="c"){
            if (S[2]=="a" ||S[2]=="b"||S[2]=="c"){
                int result = 1;
            }
        }
    }
    if (result == 1){
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: invalid types 'char[int]' for array subscript
    8 |     if (S[0]=="a" ||S[0]=="b"||S[0]=="c"){
      |          ^
a.cc:8:22: error: invalid types 'char[int]' for array subscript
    8 |     if (S[0]=="a" ||S[0]=="b"||S[0]=="c"){
      |                      ^
a.cc:8:33: error: invalid types 'char[int]' for array subscript
    8 |     if (S[0]=="a" ||S[0]=="b"||S[0]=="c"){
      |                                 ^
a.cc:9:14: error: invalid types 'char[int]' for array subscript
    9 |         if (S[1]=="a" ||S[1]=="b"||S[1]=="c"){
      |              ^
a.cc:9:26: error: invalid types 'char[int]' for array subscript
    9 |         if (S[1]=="a" ||S[1]=="b"||S[1]=="c"){
      |                          ^
a.cc:9:37: error: invalid types 'char[int]' for array subscript
    9 |         if (S[1]=="a" ||S[1]=="b"||S[1]=="c"){
      |                                     ^
a.cc:10:18: error: invalid types 'char[int]' for array subscript
   10 |             if (S[2]=="a" ||S[2]=="b"||S[2]=="c"){
      |                  ^
a.cc:10:30: error: invalid types 'char[int]' for array subscript
   10 |             if (S[2]=="a" ||S[2]=="b"||S[2]=="c"){
      |                              ^
a.cc:10:41: error: invalid types 'char[int]' for array subscript
   10 |             if (S[2]=="a" ||S[2]=="b"||S[2]=="c"){
      |                                         ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         if(s[0]=="a"&&s[1]=="b"&&s[2]=="c"){
      |            ~~~~^~~~~
a.cc:11:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         if(s[0]=="a"&&s[1]=="b"&&s[2]=="c"){
      |                       ~~~~^~~~~
a.cc:11:38: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         if(s[0]=="a"&&s[1]=="b"&&s[2]=="c"){
      |                                  ~~~~^~~~~
Language: C

#include <stdio.h>

int main()
{
 char S[3];
 int check_char[3]={0,0,0};
 scanf("%s",S);
 for(int i=0;i<3;i++){
  if(S[i]=='a') check_char[0]=1;
  if(S[i]=='b') check_char[1]=1;
  if(S[i]=='c') check_char[2]=1;
 }
 if(check_char[0]==0 || check_char[1]==0 || check_char[2]==0)　printf("No\n");
 else printf("Yes\n");
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:62: error: stray '\343' in program
   13 |  if(check_char[0]==0 || check_char[1]==0 || check_char[2]==0)<U+3000>printf("No\n");
      |                                                              ^~~~~~~~
Language: C++

#include<bits/stdc++.h>
int main()
{
	int i,flag1,flag2,flag3;
	flag1=flag2=flag3=0;
	char a[4];
	gets(a);
	for(i=0;i<3;i++)
	{
		if(a[i]=='a')
		{
			flag1++;
		}
		if(a[i]=='b')
		{
			flag2++;
		}
		if(a[i]=='c')
		{
			flag3++;
		}
	}
	if(flag1==flag2==flag3)
	{
		printf("Yes");
	}
	else
	{
		printf("No");
	}
	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(a);
      |         ^~~~
      |         getw
Language: C++

#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main(void){
    // Your code here!
    string str;
    
    cin >> str;
    for(int i=0;i<3;i++)
        if(str.at(i) =="a"){
            if(str.at(i) =="b")
                if(str.at(i) == "c")
                cout << "Yes";
    }
    else cout << "No";
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         if(str.at(i) =="a"){
      |            ~~~~~~~~~~^~~~~
a.cc:11:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |             if(str.at(i) =="b")
      |                ~~~~~~~~~~^~~~~
a.cc:12:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |                 if(str.at(i) == "c")
      |                    ~~~~~~~~~~^~~~~~
Language: C++

#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main(void){
    // Your code here!
    string str;
    
    cin >> str;
    for(int i=0;i<3;i++)
        char s = str.at(i);
        if(s =="a"){
            if(s =="b")
                if(s == "c")
                cout << "Yes";
    }
    else cout << "No";
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: 's' was not declared in this scope
   11 |         if(s =="a"){
      |            ^
Language: Java

 import java.util.Scanner;

public class Main {
public static void main(String args[]){
Scanner sn=null;
sn= new Scanner(System.in);
if(S.equals("abc")){
System.out.println("Yes");
}
if(S.equals("acb")){
System.out.println("Yes");
}
if(S.equals("bac")){
System.out.println("Yes");
}
if(S.equals("bca")){
System.out.println("Yes");
}
if(S.equals("cab")){
System.out.println("Yes");
}
if(S.equals("cba")){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
}

Compiler output:
Main.java:7: error: cannot find symbol
if(S.equals("abc")){
   ^
  symbol:   variable S
  location: class Main
Main.java:10: error: cannot find symbol
if(S.equals("acb")){
   ^
  symbol:   variable S
  location: class Main
Main.java:13: error: cannot find symbol
if(S.equals("bac")){
   ^
  symbol:   variable S
  location: class Main
Main.java:16: error: cannot find symbol
if(S.equals("bca")){
   ^
  symbol:   variable S
  location: class Main
Main.java:19: error: cannot find symbol
if(S.equals("cab")){
   ^
  symbol:   variable S
  location: class Main
Main.java:22: error: cannot find symbol
if(S.equals("cba")){
   ^
  symbol:   variable S
  location: class Main
6 errors
Language: Java

import java.util.*;
public class Main4 {
		public static void main(String[] args){
    		Scanner sc = new Scanner(System.in);
        int a =sc.nextInt();
        int b =sc.nextInt();
        int k =sc.nextInt();
				int i = 0;
				int j = 0;
				if(a - b + 1 >= 2 * k - 1){
						for(;a + i <= b;i++){
						System.out.println(a + i);
						}
				}
				else{
						for(;j <= k-1;j++){
								System.out.println(a + j);
						}
						for(j = 0;j <= k-1;j++){
								System.out.println(b - k + 1 + j);
						}
				}
    }
}


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

import java.util.*;

public class Main2{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String[] n = new String[3];
		int counterA = 0;
		int counterB = 0;
		int counterC = 0;

		for(int i = 0; i < 3; i++){
			String a = sc.next();
			n[i] = a;
		}

		for(int j = 0; j < 3; j++){
			if(n[j].equals("a")){
				counterA++;
			}else if(n[j].equals("b")){
				counterB++;
			}else if(n[j].equals("c")){
				counterC++;
			}
		}

		if(counterA == 1 && counterB == 1 && counterC == 1){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
}

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

#include<iostream>

using namespace std;
int main()
{
   char a[8];
   string s;
  
        int i,c=0,a=0,b=0;
     getline(cin,s);



   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){
        cout<<"Yes"<<endl;
   }
   else{
        cout<<"No"<<endl;
   }



  

}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: conflicting declaration 'int a'
    9 |         int i,c=0,a=0,b=0;
      |                   ^
a.cc:6:9: note: previous declaration as 'char a [8]'
    6 |    char a[8];
      |         ^
a.cc:16:8: error: lvalue required as increment operand
   16 |        a++;
      |        ^
a.cc:25:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   25 |    if(a==1&&b==1&&c==1){
      |       ~^~~
Language: Java

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

Compiler output:
Main.java:14: error: ')' expected
       	if(text.matches(".*" + b + ".*"){
       	                                ^
Main.java:15: error: ')' expected
      			 if(text.matches(".*" + c + ".*"){
      			                                 ^
2 errors
Language: Java

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

Compiler output:
Main.java:31: error: class, interface, enum, or record expected
import java.util.*;
^
Main.java:44: error: ')' expected
       	if(text.matches(".*" + b + ".*"){
       	                                ^
Main.java:45: error: ')' expected
      			 if(text.matches(".*" + c + ".*"){
      			                                 ^
3 errors
Language: C++

include<iostream>
using namespace std;
int main(){
  string s;
  int c[3];
  cin>>s;
  string m[6];
  m[0]="abc";
  m[1]="acb";
  m[2]="bac";
  m[3]="bca";
  m[4]="cab";
  m[5]="cba";
  for(int i=0;i<6;i++){
    if(s==m[i]){
      cout<<"Yes";
      return 0;
    }
  }
  cout<<"No";
  return 0;
  }

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string s;
      |   ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>s;
      |   ^~~
a.cc:6:8: error: 's' was not declared in this scope
    6 |   cin>>s;
      |        ^
a.cc:7:9: error: expected ';' before 'm'
    7 |   string m[6];
      |         ^~
      |         ;
a.cc:8:3: error: 'm' was not declared in this scope
    8 |   m[0]="abc";
      |   ^
a.cc:16:7: error: 'cout' was not declared in this scope
   16 |       cout<<"Yes";
      |       ^~~~
a.cc:20:3: error: 'cout' was not declared in this scope
   20 |   cout<<"No";
      |   ^~~~
Language: C

#include <stdio.h>

int main(){
  char ins[5];
  int flg=0;
  scanf("%s",ins);

  if(s[0] == s[1]){
    flg=1;
  }else if(s[1] == s[2]){
    flg=1;
  }else if(s[2] == s[0]){
    flg=1;
  }

  if(flg == 1){
    printf("No\n");
  }else{
    printf("Yes\n", );
  }

  return 0;


}

Compiler output:
main.c: In function 'main':
main.c:8:6: error: 's' undeclared (first use in this function)
    8 |   if(s[0] == s[1]){
      |      ^
main.c:8:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:21: error: expected expression before ')' token
   19 |     printf("Yes\n", );
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
	char c[4];
	int p[4]={0};
	scanf("%s",c);
	for(i=0;i<3;i++)
	{
		if(c[i]=='a')
			p[0]=1;
		if(c[i]=='b')
			p[1]=1;
		if(c[i]=='c')
			p[2]=1;
	}
	if(p[0]==1&&p[2]==1&&p[3]==1)
		printf("Yes");
	else
		printf("No");
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'i' was not declared in this scope
    8 |         for(i=0;i<3;i++)
      |             ^
Language: Java

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

Compiler output:
Main.java:16: error: bad operand types for binary operator '||'
       	if((a==bb)||(b==bb)||(c=bb)){
       	                   ^
  first type:  boolean
  second type: String
Main.java:17: error: bad operand types for binary operator '||'
      			 if((a=cc)||(b==cc)||(c=cc)){
      			          ^
  first type:  String
  second type: boolean
Main.java:29: error: cannot find symbol
        System.out.println((a+b+c) + " " + s);
                                           ^
  symbol:   variable s
  location: class Main
3 errors
Language: Java

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

    }
}

Compiler output:
Main.java:18: error: cannot find symbol
      				System.out.printIn("Yes");
      				          ^
  symbol:   method printIn(String)
  location: variable out of type PrintStream
Main.java:20: error: cannot find symbol
    			  System.out.printIn("No");
    			            ^
  symbol:   method printIn(String)
  location: variable out of type PrintStream
Main.java:23: error: cannot find symbol
     	 System.out.printIn("No");
     	           ^
  symbol:   method printIn(String)
  location: variable out of type PrintStream
Main.java:26: error: cannot find symbol
      System.out.printIn("No");
                ^
  symbol:   method printIn(String)
  location: variable out of type PrintStream
4 errors
Language: Java

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

Compiler output:
Main.java:16: error: bad operand types for binary operator '||'
       	if((a==bb)||(b==bb)||(c=bb)){
       	                   ^
  first type:  boolean
  second type: String
Main.java:17: error: bad operand types for binary operator '||'
      			 if((a=cc)||(b==cc)||(c=cc)){
      			          ^
  first type:  String
  second type: boolean
Main.java:18: error: cannot find symbol
      				System.out.printIn("Yes");
      				          ^
  symbol:   method printIn(String)
  location: variable out of type PrintStream
Main.java:20: error: cannot find symbol
    			  System.out.printIn("No");
    			            ^
  symbol:   method printIn(String)
  location: variable out of type PrintStream
Main.java:23: error: cannot find symbol
     	 System.out.printIn("No");
     	           ^
  symbol:   method printIn(String)
  location: variable out of type PrintStream
Main.java:26: error: cannot find symbol
      System.out.printIn("No");
                ^
  symbol:   method printIn(String)
  location: variable out of type PrintStream
Main.java:29: error: cannot find symbol
        System.out.println((a+b+c) + " " + s);
                                           ^
  symbol:   variable s
  location: class Main
7 errors
Language: C++

include<iostream>
using namespace std;
int main(){
  string s;
  int c[3];
  cin>>s;
  for(int i=0;i<3;i++){
    if(s[i]!='a' || s[i]!='b' || s[i]!='c'){
      cout<<"No";
      return 0;
    }
   if(s[i]=='a') {
     c[0]+=1;
   }
   if(s[i]=='b') {
     c[1]+=1;
   }
   if(s[i]=='c') { 
     c[2]+=1;
   }
  }
   for(int i=0;i<3;i++){
     if(c[i]==1)continue;
     else{
       cout<<"No";
       return 0;
     }
   }
   cout<<"Yes";
   return 0;
  }
  

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string s;
      |   ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>s;
      |   ^~~
a.cc:6:8: error: 's' was not declared in this scope
    6 |   cin>>s;
      |        ^
a.cc:9:7: error: 'cout' was not declared in this scope
    9 |       cout<<"No";
      |       ^~~~
a.cc:25:8: error: 'cout' was not declared in this scope
   25 |        cout<<"No";
      |        ^~~~
a.cc:29:4: error: 'cout' was not declared in this scope
   29 |    cout<<"Yes";
      |    ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(void)
{
  string S;
  cin >> S;
  bool f[3] = { false, false, false }
  for(int i = 0; i < 3; i++) {
    if(S[i] == 'a') {
      f[0] = true;
    }
    if(S[i] == 'b') {
      f[1] = true;
    }
    if(S[i] == 'c') {
      f[2] = true;
    }
  }
  if(bool[1] & bool[2] & bool[3]) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'for'
    9 |   for(int i = 0; i < 3; i++) {
      |   ^~~
a.cc:9:18: error: 'i' was not declared in this scope
    9 |   for(int i = 0; i < 3; i++) {
      |                  ^
a.cc:20:10: error: expected unqualified-id before '[' token
   20 |   if(bool[1] & bool[2] & bool[3]) {
      |          ^
Language: C++



#include "bits/stdc++.h"
using namespace std;
string result;
string str;
int main(){
	cin>>str;
	char x = str[1];
 	char y = str[2];
	char z = str[3];
	result="No"	
	if(x='a')
		if(y='b')	
			if(z='c')
				result="Yes";
		elseif(y='c')
			if(z='b')
				result="Yes";
	
	if(x='b')
		if(y='a')	
			if(z='c')
				result="Yes";
		elseif(y='c')
			if(z='a')
				result="Yes";
	if(x='c')
		if(y='b')	
			if(z='a')
				result="Yes";
		elseif(y='a')
			if(z='b')
				result="Yes";
	cout<<result;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: expected ';' before 'if'
   12 |         result="No"
      |                    ^    
      |                        ;
   13 |         if(x='a')
      |         ~~          
a.cc:17:17: error: 'elseif' was not declared in this scope
   17 |                 elseif(y='c')
      |                 ^~~~~~
Language: C

#include<stdio.h>

int main() {
	char s[3];
	int i,n = 0;
	scanf_s("%s",s);
	for (i = 0; i < 3; i++) {
		if(s[i] = 'a'){
			n = n + 1;
			break;
        }
	}
	for (i = 0; i < 3; i++) {
		if(s[i] = 'b'){
			n = n + 2;
            break;
        }
	}
	for (i = 0; i < 3; i++) {
		if(s[i] = 'c'){
			n = n + 3;
			break;
        }
	}
	if (n == 6)
		printf("Yes\n");
	else
		printf("No\n");
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanf_s("%s",s);
      |         ^~~~~~~
      |         scanf
Language: Java

import java.util.*;
public class Main3 {
		public static void main(String[] args){
    		Scanner sc = new Scanner(System.in);
        String s =sc.nextLine();
				if((s.indexOf("a") !=-1)&&(s.indexOf("b") !=-1)&&(s.indexOf("c") !=-1)){
						System.out.println("Yes");
				}
				else{
						System.out.println("No");
				}
    }
}


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

#include <cstdio>
using namespace std;


int main(){
    int A,B,K;

    scanf("%d %d %d",&A,&B,&K);

    for{int i=A;i<A+K;i++}{
        printf("%d \n", i);   
    }
    for{int i=B-K+1;i<=B;i++}{
        printf("%d \n", i);   
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: expected '(' before '{' token
   10 |     for{int i=A;i<A+K;i++}{
      |        ^
      |        (
a.cc:10:8: error: expected primary-expression before '{' token
a.cc:10:27: error: expected primary-expression before '{' token
   10 |     for{int i=A;i<A+K;i++}{
      |                           ^
a.cc:10:27: error: expected ';' before '{' token
   10 |     for{int i=A;i<A+K;i++}{
      |                           ^
      |                           ;
a.cc:10:27: error: expected primary-expression before '{' token
a.cc:10:27: error: expected ')' before '{' token
   10 |     for{int i=A;i<A+K;i++}{
      |        ~                  ^
      |                           )
a.cc:11:25: error: 'i' was not declared in this scope
   11 |         printf("%d \n", i);
      |                         ^
a.cc:13:8: error: expected '(' before '{' token
   13 |     for{int i=B-K+1;i<=B;i++}{
      |        ^
      |        (
a.cc:13:8: error: expected primary-expression before '{' token
a.cc:13:30: error: expected primary-expression before '{' token
   13 |     for{int i=B-K+1;i<=B;i++}{
      |                              ^
a.cc:13:30: error: expected ';' before '{' token
   13 |     for{int i=B-K+1;i<=B;i++}{
      |                              ^
      |                              ;
a.cc:13:30: error: expected primary-expression before '{' token
a.cc:13:30: error: expected ')' before '{' token
   13 |     for{int i=B-K+1;i<=B;i++}{
      |        ~                     ^
      |                              )
a.cc:14:25: error: 'i' was not declared in this scope
   14 |         printf("%d \n", i);
      |                         ^
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
int main()
{
   char s[8],i;

        int c=0;
    gets(s);
   for(i=0;i<3;i++){
    if(s[i]=='a'||s[i]=='b'||s[i]=='c'){
        c++;
    }
   }
   if(c==3){
        cout<<"Yes"<<endl;
   }
   else{
        cout<<"No"<<endl;
   }



}



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

#include <stdio.h>
int main()
{
    char s[5];
    gets(s);
    int a=0,b=0,c=0,i;
    for(i=0;s[i];i++)
    {
        if(s[i]=='a')
            a=a+1;
        if(s[i]=='b')
            b=b+1;
        if(s[i]=='c')
            c=c+1;
    }
    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:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    5 |     gets(s);
      |     ^~~~
      |     getw
Language: Java

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

Compiler output:
Main.java:32: error: class, interface, enum, or record expected
import java.util.*;
^
1 error
Language: Java

import java.util.*;
public class Main3 {
		public static void main(String[] args){
    		Scanner sc = new Scanner(System.in);
        String s =sc.nextLine();
				if((s.IndexOf("a") !=-1)&&(s.IndexOf("b") !=-1)&&(s.indexOf("c") !=-1)){
						System.out.println("Yes");
				}
				else{
						System.out.println("No");
				}
    }
}



Compiler output:
Main.java:2: error: class Main3 is public, should be declared in a file named Main3.java
public class Main3 {
       ^
Main.java:6: error: cannot find symbol
				if((s.IndexOf("a") !=-1)&&(s.IndexOf("b") !=-1)&&(s.indexOf("c") !=-1)){
				     ^
  symbol:   method IndexOf(String)
  location: variable s of type String
Main.java:6: error: cannot find symbol
				if((s.IndexOf("a") !=-1)&&(s.IndexOf("b") !=-1)&&(s.indexOf("c") !=-1)){
				                            ^
  symbol:   method IndexOf(String)
  location: variable s of type String
3 errors
Language: C++

#include<cstdio>

int main(){
    char s[3];
    for(int 1=0;i<3;i++){
        scanf("%c",s[i]);
    }

    int na=0,nb=0,nc=0;
    for(int i=0;i<3;i++){
        if(s[i]=='a')na++;
        else if(s[i]=='b')nb++;
        else if(s[i]=='c')nc++;
    }

    if(na==1&&nb==1&&nc==1){
        printf("Yes");
    }else{
        printf("No");
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: expected unqualified-id before numeric constant
    5 |     for(int 1=0;i<3;i++){
      |             ^
a.cc:5:12: error: expected ';' before numeric constant
    5 |     for(int 1=0;i<3;i++){
      |            ^~
      |            ;
a.cc:5:13: error: lvalue required as left operand of assignment
    5 |     for(int 1=0;i<3;i++){
      |             ^
a.cc:5:17: error: 'i' was not declared in this scope
    5 |     for(int 1=0;i<3;i++){
      |                 ^
a.cc:5:20: error: expected ')' before ';' token
    5 |     for(int 1=0;i<3;i++){
      |        ~           ^
      |                    )
a.cc:5:21: error: 'i' was not declared in this scope
    5 |     for(int 1=0;i<3;i++){
      |                     ^
Language: C++

#include <iostream>
#include <cstdio>
#include <string>

using namespace std;

int main(){
    char s;
    cin >> s;
    if(s = "abc"||s = "acb"|| s = "bac"|| s = "bca"|| s = "cab"|| s = "cba"){
        cout << "Yes" << endl;
    } else {
        cout << "No" <<  endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:64: error: lvalue required as left operand of assignment
   10 |     if(s = "abc"||s = "acb"|| s = "bac"|| s = "bca"|| s = "cab"|| s = "cba"){
      |                                                           ~~~~~^~~~
Language: C++

#include <stdio.h>
int main()
{
    char s[5];
    while(gets(s)!=NULL)
    {
        int a=0,b=0,c=0,i;
        for(i=0;s[i];i++)
        {
            if(s[i]=='a')
                a=a+1;
            if(s[i]=='b')
                b=b+1;
            if(s[i]=='c')
                c=c+1;
        }
        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:11: error: 'gets' was not declared in this scope; did you mean 'getw'?
    5 |     while(gets(s)!=NULL)
      |           ^~~~
      |           getw
Language: C++

int alph[3]={0};
std::string str;
scanf("%d",&str);
for(int i=0;i<=2;i++){
  if()
}


Compiler output:
a.cc:2:6: error: 'string' in namespace 'std' does not name a type
    2 | std::string str;
      |      ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | int alph[3]={0};
a.cc:3:6: error: expected constructor, destructor, or type conversion before '(' token
    3 | scanf("%d",&str);
      |      ^
a.cc:4:1: error: expected unqualified-id before 'for'
    4 | for(int i=0;i<=2;i++){
      | ^~~
a.cc:4:13: error: 'i' does not name a type
    4 | for(int i=0;i<=2;i++){
      |             ^
a.cc:4:18: error: 'i' does not name a type
    4 | for(int i=0;i<=2;i++){
      |                  ^
Language: C++

#include<stdio.h>
#include<math.h>
#include<string.h>
int main ()
{
	int i,j,k;
	char a[4];
	k=0;
	gets(a);
	for(i=0;i<3;i++)
		for(j=i+1;j<3;j++)
		{
			if(a[i]==a[j])
			{
				printf("No\n");
				break;	
			}
			else
				k++;	
		}
	if(k==3)
	printf("Yes\n");
	return 0;
}

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

#include <cstdio>
#include <cstring>
#include <algorithm>

using namespace std;

int main()
{
    char s[5];
    while(gets(s)!=NULL)
    {
        sort(s,s+strlen(s));
        if(s[0]=='a'&&s[1]=='b'&&s[2]=='c')
            printf("Yes\n");
        else
            printf("No\n");
    }
}


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

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


}



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

import java.util.*;
public class Main {
		public static void main(String[] args){
    		Scanner sc = new Scanner(System.in);
        String s =sc.nextInt();
				if((s.IndexOf(a) !=-1)&&(s.IndexOf(b) !=-1)&&(s.indexOf(c) !=-1)){
						System.out.println("Yes");
				}
				else{
						System.out.println("No");
				}
    }
}


Compiler output:
Main.java:5: error: incompatible types: int cannot be converted to String
        String s =sc.nextInt();
                            ^
Main.java:6: error: cannot find symbol
				if((s.IndexOf(a) !=-1)&&(s.IndexOf(b) !=-1)&&(s.indexOf(c) !=-1)){
				              ^
  symbol:   variable a
  location: class Main
Main.java:6: error: cannot find symbol
				if((s.IndexOf(a) !=-1)&&(s.IndexOf(b) !=-1)&&(s.indexOf(c) !=-1)){
				                                   ^
  symbol:   variable b
  location: class Main
Main.java:6: error: cannot find symbol
				if((s.IndexOf(a) !=-1)&&(s.IndexOf(b) !=-1)&&(s.indexOf(c) !=-1)){
				                                                        ^
  symbol:   variable c
  location: class Main
4 errors
Language: C++

#include<stdio.h>
char s[4];
int main{

	scanf("%s",s);
	int cnta=0,cntb=0,cntc=0;
	for(int i = 0; i < 3;i++){
		if (s[i]=='a') cnta++;
		if (s[i]=='b') cntb++;
		if (s[i]=='c') cntc++;
	}
	if(cnta == 1&& cntb==1&& cntc==1) puts("Yes");
	else puts("No");
}

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:5:22: error: expected '}' before ';' token
    5 |         scanf("%s",s);
      |                      ^
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:7:9: error: expected unqualified-id before 'for'
    7 |         for(int i = 0; i < 3;i++){
      |         ^~~
a.cc:7:24: error: 'i' does not name a type
    7 |         for(int i = 0; i < 3;i++){
      |                        ^
a.cc:7:30: error: 'i' does not name a type
    7 |         for(int i = 0; i < 3;i++){
      |                              ^
a.cc:12:9: error: expected unqualified-id before 'if'
   12 |         if(cnta == 1&& cntb==1&& cntc==1) puts("Yes");
      |         ^~
a.cc:13:9: error: expected unqualified-id before 'else'
   13 |         else puts("No");
      |         ^~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: Java

import java.util.*;
public class Main {
		public static void main(String[] args){
    		Scanner sc = new Scanner(System.in);
        String s =sc.nextInt();
				if(s.IndexOf(a) !=-1)&&(s.IndexOf(b) !=-1)&&(s.indexOf(c) !=-1){
						System.out.println("Yes");
				}
				else{
						System.out.println("No");
				}
    }
}


Compiler output:
Main.java:6: error: illegal start of expression
				if(s.IndexOf(a) !=-1)&&(s.IndexOf(b) !=-1)&&(s.indexOf(c) !=-1){
				                     ^
Main.java:6: error: not a statement
				if(s.IndexOf(a) !=-1)&&(s.IndexOf(b) !=-1)&&(s.indexOf(c) !=-1){
				                                          ^
Main.java:6: error: ';' expected
				if(s.IndexOf(a) !=-1)&&(s.IndexOf(b) !=-1)&&(s.indexOf(c) !=-1){
				                                                               ^
Main.java:9: error: 'else' without 'if'
				else{
				^
4 errors
Language: C++

#include <cstdio>
using namespace std;

int main(){
    char a[3];
    bool f1 = false, f2 = false, f3 = false;
    for(int i = 0; i < 3; i++)
    {
        scanf("%c", &a[i]);
    }
    for(int i = 0; i < 3; i++)
    {
        if(a[i] == 'a')
        {
            f1 = true;
        }
        else if(a[i] == 'b')
        {
            f2 = true;
        }
        else
        {
            f3 = true;
    }
    if(f1 == true && f2 == true && f3 == true)
    {
        print("Yes");
    }
    else
    {
        print("No");
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:9: error: 'print' was not declared in this scope; did you mean 'printf'?
   27 |         print("Yes");
      |         ^~~~~
      |         printf
a.cc:31:9: error: 'print' was not declared in this scope; did you mean 'printf'?
   31 |         print("No");
      |         ^~~~~
      |         printf
a.cc:33:2: error: expected '}' at end of input
   33 | }
      |  ^
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 a = sc.next();
        // スペース区切りの整数の入力
        String b = sc.next();
        String c = sc.next();
      
      	String aa="a";
      	String bb="b";
      	String cc="c";
  
      if(a||b||c==a){
       	if(a||b||c==b){
      			 if(a||b||c==c){
      				System.out.printIn("Yes");
      			}else{
    			  System.out.printIn("No");
    			  }
     	 }else{
     	 System.out.printIn("No");
     	 }
      }else{
      System.out.printIn("No");
      }
        // 出力
        System.out.println((a+b+c) + " " + s);
    }
}

Compiler output:
Main.java:15: error: bad operand types for binary operator '||'
      if(a||b||c==a){
          ^
  first type:  String
  second type: String
Main.java:16: error: bad operand types for binary operator '||'
       	if(a||b||c==b){
       	    ^
  first type:  String
  second type: String
Main.java:17: error: bad operand types for binary operator '||'
      			 if(a||b||c==c){
      			     ^
  first type:  String
  second type: String
Main.java:18: error: cannot find symbol
      				System.out.printIn("Yes");
      				          ^
  symbol:   method printIn(String)
  location: variable out of type PrintStream
Main.java:20: error: cannot find symbol
    			  System.out.printIn("No");
    			            ^
  symbol:   method printIn(String)
  location: variable out of type PrintStream
Main.java:23: error: cannot find symbol
     	 System.out.printIn("No");
     	           ^
  symbol:   method printIn(String)
  location: variable out of type PrintStream
Main.java:26: error: cannot find symbol
      System.out.printIn("No");
                ^
  symbol:   method printIn(String)
  location: variable out of type PrintStream
Main.java:29: error: cannot find symbol
        System.out.println((a+b+c) + " " + s);
                                           ^
  symbol:   variable s
  location: class Main
8 errors
Language: C++

#include <bits/stdc++.h>
#define f first
#define s second
#define mp make_pair
#define pb push_back
using namespace std;

string in;

int main()
{
	cin.sync_with_stdio(0);		cin.tie(0);		cout.tie(0);

	cin >> in;
	int a = 0;
	int b = 0;
	int c = 0;
	for(int x = 0 ; x < (int)s.size(); x++){
		if(in[x] =='a') a++;
		else if(in[x] == 'b') b++;
		else c++;
	}
	if(a == 1 && b ==1 && c == 1){
		printf("Yes\n");
	}else{
		printf("No\n");
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:11: error: 'second' was not declared in this scope
    3 | #define s second
      |           ^~~~~~
a.cc:18:34: note: in expansion of macro 's'
   18 |         for(int x = 0 ; x < (int)s.size(); x++){
      |                                  ^
Language: C++

#include<stdio.h>

int main{
	char s[4];
	scanf("%s",&s);
	int cnta=0,cnth=0,cntc=0;
	for(int i = 0; i < 3;i++){
		if s([i]=='a') cnta++;
		if s([i]=='b') cntb++;
		if s([i]=='c') cntc++;
	}
	if(cnta == 1&& cntb==1&& cntc==1) puts("Yes");
	else puts("No");
}

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:9: error: expected primary-expression before 'char'
    4 |         char s[4];
      |         ^~~~
a.cc:4:9: error: expected '}' before 'char'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:14: error: expected constructor, destructor, or type conversion before '(' token
    5 |         scanf("%s",&s);
      |              ^
a.cc:7:9: error: expected unqualified-id before 'for'
    7 |         for(int i = 0; i < 3;i++){
      |         ^~~
a.cc:7:24: error: 'i' does not name a type
    7 |         for(int i = 0; i < 3;i++){
      |                        ^
a.cc:7:30: error: 'i' does not name a type
    7 |         for(int i = 0; i < 3;i++){
      |                              ^
a.cc:12:9: error: expected unqualified-id before 'if'
   12 |         if(cnta == 1&& cntb==1&& cntc==1) puts("Yes");
      |         ^~
a.cc:13:9: error: expected unqualified-id before 'else'
   13 |         else puts("No");
      |         ^~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

#include <cstdio>
using namespace std;

int main(){
    char a[3];
    bool f1 = false, f2 = false, f3 = false
    for(int i = 0; i < 3; i++)
    {
        scanf("%c", &a[i]);
    }
    for(int i = 0; i < 3; i++)
    {
        if(a[i] == 'a')
        {
            f1 = true;
        }
        else if(a[i] == 'b')
        {
            f2 = true;
        }
        else
        {
            f3 = true;
    }
    if(f1 == true && f2 == true && f3 == true)
    {
        print("Yes");
    }
    else
    {
        print("No");
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected ',' or ';' before 'for'
    7 |     for(int i = 0; i < 3; i++)
      |     ^~~
a.cc:7:20: error: 'i' was not declared in this scope
    7 |     for(int i = 0; i < 3; i++)
      |                    ^
a.cc:27:9: error: 'print' was not declared in this scope; did you mean 'printf'?
   27 |         print("Yes");
      |         ^~~~~
      |         printf
a.cc:31:9: error: 'print' was not declared in this scope; did you mean 'printf'?
   31 |         print("No");
      |         ^~~~~
      |         printf
a.cc:33:2: error: expected '}' at end of input
   33 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <cstdio>
#include <cstring>
#include <algorithm>

using namespace std;

int main()
{
    char s[5];
    while(gets(s)!=NULL)
    {
        sort(s,s+3);
        if(s[0]=='a'&&s[1]=='b'&&s[2]=='c')
            printf("Yes\n");
        else
            printf("No\n");
    }
}


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

# coding: utf-8
import re
S = input()
find_a= re.findall("a")
find_b = re.findall("b")
find_c = re.findall("c")
if find_a and find_b and find_c:
    print("Yes")
else:
    print("No")

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #coding
    1 | # coding: utf-8
      |   ^~~~~~
a.cc:2:1: error: 'import' does not name a type
    2 | import re
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
Language: Java

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

Compiler output:
Main.java:18: error: ';' expected
      				System.out.printIn("Yes")
      				                         ^
1 error