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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:45: error: expected ')' before 'b'
    6 |                 if(S.at(0) == 'a' && S.at(1) 'b' && S.at(2) == 'c'){
      |                   ~                         ^~~~
      |                                             )
a.cc:8:51: error: expected ')' before 'c'
    8 |                 }else if(S.at(0) == 'a' && S.at(1) 'c' && S.at(2) == 'b'){
      |                         ~                         ^~~~
      |                                                   )
a.cc:10:51: error: expected ')' before 'a'
   10 |                 }else if(S.at(0) == 'b' && S.at(1) 'a' && S.at(2) == 'c'){
      |                         ~                         ^~~~
      |                                                   )
a.cc:12:51: error: expected ')' before 'c'
   12 |                 }else if(S.at(0) == 'b' && S.at(1) 'c' && S.at(2) == 'a'){
      |                         ~                         ^~~~
      |                                                   )
a.cc:14:51: error: expected ')' before 'a'
   14 |                 }else if(S.at(0) == 'c' && S.at(1) 'a' && S.at(2) == 'b'){
      |                         ~                         ^~~~
      |                                                   )
a.cc:16:51: error: expected ')' before 'b'
   16 |                 }else if(S.at(0) == 'c' && S.at(1) 'b' && S.at(2) == 'a'){
      |                         ~                         ^~~~
      |                                                   )
Language: C++

S = input()

if S == 'abc' or S == 'acb' or S == 'bac' or S == 'bca' or S == 'cab' or S == 'cba':
  print('Yes')
else:
  print('No')
  

Compiler output:
a.cc:3:9: warning: multi-character character constant [-Wmultichar]
    3 | if S == 'abc' or S == 'acb' or S == 'bac' or S == 'bca' or S == 'cab' or S == 'cba':
      |         ^~~~~
a.cc:3:23: warning: multi-character character constant [-Wmultichar]
    3 | if S == 'abc' or S == 'acb' or S == 'bac' or S == 'bca' or S == 'cab' or S == 'cba':
      |                       ^~~~~
a.cc:3:37: warning: multi-character character constant [-Wmultichar]
    3 | if S == 'abc' or S == 'acb' or S == 'bac' or S == 'bca' or S == 'cab' or S == 'cba':
      |                                     ^~~~~
a.cc:3:51: warning: multi-character character constant [-Wmultichar]
    3 | if S == 'abc' or S == 'acb' or S == 'bac' or S == 'bca' or S == 'cab' or S == 'cba':
      |                                                   ^~~~~
a.cc:3:65: warning: multi-character character constant [-Wmultichar]
    3 | if S == 'abc' or S == 'acb' or S == 'bac' or S == 'bca' or S == 'cab' or S == 'cba':
      |                                                                 ^~~~~
a.cc:3:79: warning: multi-character character constant [-Wmultichar]
    3 | if S == 'abc' or S == 'acb' or S == 'bac' or S == 'bca' or S == 'cab' or S == 'cba':
      |                                                                               ^~~~~
a.cc:4:9: warning: multi-character character constant [-Wmultichar]
    4 |   print('Yes')
      |         ^~~~~
a.cc:6:9: warning: multi-character character constant [-Wmultichar]
    6 |   print('No')
      |         ^~~~
a.cc:1:1: error: 'S' does not name a type
    1 | S = input()
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    9 |                 if (s.at[i] == 'a') {
      |                         ^
a.cc:12:30: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   12 |                 else if (s.at[i] == 'b') {
      |                              ^
Language: C++

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'str' was not declared in this scope; did you mean 'std'?
    5 |   str s;
      |   ^~~
      |   std
a.cc:6:8: error: 's' was not declared in this scope
    6 |   cin>>s;
      |        ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

int main(){
    string s;
    cin >> s;
    int a = 0;
    int b = 0;
    int c = 0;
    for (int i = 0; i < s.size(); ++i) {
        if(s[i] == 'a'){
            a++;
        }else if(s[i] == 'b'){
            b++;
        }else{
            c++;
        }
        if(a == b == c == 1){
            cout << "Yes" << endl;
        }else{
            cout << "No" << endl;
        }
    }


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

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
const long long INF = 1LL << 60;
 
typedef pair<ll,ll> pairs;
vector<pairs> p;
bool pairCompare(const pair<double,ll>& firstElof, const pair<double,ll>& secondElof){
    return firstElof.first < secondElof.first;
}
#define MAX_N 1000100
bool x[MAX_N];
ll num[MAX_N];
ll fibl[MAX_N]={0};
 
ll fib(ll a){
    if (fibl[a]!=0)return fibl[a];
    if (a==0){
        return 0;
    }else if (a==1){
        return 1;
    }
    return fibl[a]=fib(a-1)+fib(a-2);
}
 
ll eratosthenes(ll n) {
    int p = 0;
    for (ll i=0; i<=n; ++i) x[i] = true;
    x[0] = x[1] = false;
    for(int i=2; i<=n; ++i) {
        if(x[i]) {
            p++;
            for(int j=2*i; j<=n; j+=i) x[j] = false;
        }
        
        num[i] = p;
    }
    return p;
}
 
ll gcd(ll a,ll b){
    if (a%b==0)return(b);
    else return(gcd(b,a%b));
}
 
ll keta(ll N){
    int tmp{};
    while( N > 0 ){
        tmp += ( N % 10 );
        N /= 10;
    }
    N = tmp;
    return N;
}

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



Compiler output:
a.cc: In function 'int main()':
a.cc:63:41: error: 'S' was not declared in this scope
   63 |     if (s[0] != s[1] && s[1] != s[2] && S[0] != S[2])cout << "Yes" << endl;
      |                                         ^
Language: C++

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

int main() {
  string s;
  cin>>s;
  a=0;
  for(int i=0; i<2; i++){
    if(s[i]==s[i+1])
      a=1;
  }
  if(a==0)
    cout<<"Yes"<<endl;
  else
    cout<<"No"<<endl;
  
  
}


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

#include <bits/stdc++.h>

using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
typedef long long ll;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: expected ')' before ']' token
   12 |   if(s[0]!=s[1] && s[1]]!=s[2])cout << "Yes" << endl;
      |     ~                  ^
      |                        )
a.cc:12:24: error: expected primary-expression before ']' token
Language: C++

#include <iostream>

using namespace std;

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

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

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int man()':
a.cc:14:1: warning: no return statement in function returning non-void [-Wreturn-type]
   14 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int man()':
a.cc:14:1: warning: no return statement in function returning non-void [-Wreturn-type]
   14 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>

using namespace std;

int man(){
    string s;
    cin >> s;
    if(s[0] != s[1] && s[1] != s[2] && s[0] != s[2]){
        cout << << endl;
    }
    else{
        cout << << endl;
    }
}

Compiler output:
a.cc: In function 'int man()':
a.cc:9:17: error: expected primary-expression before '<<' token
    9 |         cout << << endl;
      |                 ^~
a.cc:12:17: error: expected primary-expression before '<<' token
   12 |         cout << << endl;
      |                 ^~
a.cc:14:1: warning: no return statement in function returning non-void [-Wreturn-type]
   14 | }
      | ^
Language: C++

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



    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'else' without a previous 'if'
   11 |     else
      |     ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before string constant
    8 |   else cout "Yes";
      |            ^~~~~~
      |            ;
Language: C++

#include<bits/stdc++.h>

#define rep(i,n) for(int i = 0; i < (n); i++)
#define ll long long

using namespace std;

int main(){
  string abc;
  cin>>abc;
  sort(abc.begin(), abc.end())

  if(abc=="abc"){
    cout<<"Yes";
  }else{
    cout<<"No";
  }


  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:31: error: expected ';' before 'if'
   11 |   sort(abc.begin(), abc.end())
      |                               ^
      |                               ;
   12 | 
   13 |   if(abc=="abc"){
      |   ~~                           
a.cc:15:4: error: 'else' without a previous 'if'
   15 |   }else{
      |    ^~~~
Language: C++

#include<bits/stdc++.h>

#define rep(i,n) for(int i = 0; i < (n); i++)
#define ll long long

using namespace std;

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

  if(sort(abc.begin(), abc.end())=="abc"){
    cout<<"Yes";
  }else{
    cout<<"No";
  }


  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:34: error: invalid operands of types 'void' and 'const char [4]' to binary 'operator=='
   12 |   if(sort(abc.begin(), abc.end())=="abc"){
      |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
      |          |                         |
      |          void                      const char [4]
Language: C++

#include<bits/stdc++.h>

#define rep(i,n) for(int i = 0; i < (n); i++)
#define ll long long

using namespace std;

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

  if(sort(abc.begin(), ebc.end())=="abc"){
    cout<<"Yes";
  }else{
    cout<<"No";
  }


  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: 'ebc' was not declared in this scope; did you mean 'abc'?
   12 |   if(sort(abc.begin(), ebc.end())=="abc"){
      |                        ^~~
      |                        abc
Language: C++

import java.util.Scanner

fun main() {
    val scanner = Scanner(System.`in`);
    val S = scanner.nextLine()
    for ( c in "abc") {
        if (c !in S) {
            println("No")
            return
        }
    }
    println("Yes")
}

Compiler output:
a.cc:4:34: error: stray '`' in program
    4 |     val scanner = Scanner(System.`in`);
      |                                  ^
a.cc:4:37: error: stray '`' in program
    4 |     val scanner = Scanner(System.`in`);
      |                                     ^
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include<bits/stdc+.h>
using namespace std;
int main(){
  string s;
  cin >>s;
  if(s[0]=='a' && s[1]=='b' && s[2]=='c') cout << "Yes" << endl;
  else if(s[0]=='a' && s[1]=='c' && s[2]=='b') cout << "Yes" << endl;
  else if(s[0]=='b' && s[1]=='a' && s[2]=='c') cout << "Yes" << endl;
  else if(s[0]=='b' && s[1]=='c' && s[2]=='a') cout << "Yes" << endl;
  else if(s[0]=='c' && s[1]=='b' && s[2]=='a') cout << "Yes" << endl;
  else if(s[0]=='c' && s[1]=='a' && s[2]=='b') cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}

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



import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Stack;
import java.util.StringTokenizer;

public class Pr_5 {

    public static void main(String[] args) {
        FastReader f = new FastReader();
        // int [] arr = { 1 , 6 , 120 , 496 , 2016, 8128 ,32640 , 130816};
        
        String s = f.next();
        byte aCounter=0 , bCounter=0 , cCounter=0;
        for(byte i =0;i<3 ; i++){
            switch(s.charAt(i)){
                case'a':
                    aCounter++;
                    break;
                case'b':
                    bCounter++;
                    break;
                case'c':
                    cCounter++;
                    break;
            }
        }
        if(aCounter!=0 && bCounter!=0 && cCounter!=0)System.out.println("Yes");
        else { System.out.println("No");}
    
}

     
     
     
 }

// }
//    public static int bin(int [] arr,int num){
//        int low=0;
//        int high = arr.length;
//        int res=-1;
//        int mid=0;
//        while(low<=high){
//            
//             mid=(low+high)/2;
//            if(arr[mid]==num){  res=mid+1;  arr[mid]=0;  }
//           else if(arr[mid] < num){ low=mid+1; }
//           else if(arr[mid]>num && arr[mid-1] <num){ high=mid-1;  res=mid+1; arr[mid]=0;}
//           else{ high=mid-1;}
//        }
//        return res;
//    }
//        
//        
//}


class FastReader 
    { 
        BufferedReader br; 
        StringTokenizer st; 
  
        public FastReader() 
        { 
            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 nextInt() 
        { 
            return Integer.parseInt(next()); 
        } 
  
        byte nextByte() 
        { 
            return Byte.parseByte(next()); 
        } 
  
        long nextLong() 
        { 
            return Long.parseLong(next()); 
        } 
  
        double nextDouble() 
        { 
            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: class Pr_5 is public, should be declared in a file named Pr_5.java
public class Pr_5 {
       ^
1 error
Language: Java


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Stack;
import java.util.StringTokenizer;

public class Pr_5 {

    public static void main(String[] args) {
        FastReader f = new FastReader();
        // int [] arr = { 1 , 6 , 120 , 496 , 2016, 8128 ,32640 , 130816};
        
        String s = f.next();
        byte aCounter=0 , bCounter=0 , cCounter=0;
        for(byte i =0;i<3 ; i++){
            switch(s.charAt(i)){
                case'a':
                    aCounter++;
                    break;
                case'b':
                    bCounter++;
                    break;
                case'c':
                    cCounter++;
                    break;
            }
        }
        if(aCounter!=0 && bCounter!=0 && cCounter!=0)System.out.println("Yes");
        else { System.out.println("No");}
    
}

     
     
     
 }



Compiler output:
Main.java:10: error: class Pr_5 is public, should be declared in a file named Pr_5.java
public class Pr_5 {
       ^
Main.java:13: error: cannot find symbol
        FastReader f = new FastReader();
        ^
  symbol:   class FastReader
  location: class Pr_5
Main.java:13: error: cannot find symbol
        FastReader f = new FastReader();
                           ^
  symbol:   class FastReader
  location: class Pr_5
3 errors
Language: C++

#include<bits/stdc++.h>
#define ll  long long
#define endl '\n'
const ll mod = 1000000007;
const double PI = 3.141592653589793238463;
using namespace std;
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    string s;
    cin>>s;
    if(s[0]=='a'&&s[1]=='b'&&s[2]=='c')
        cout<<"Yes";
    else{
        if(s[0]=='b'&&s[1]=='a'&&s[2]=='c')
            cout<<"Yes\n"ك
        else if(s[0]=='c'&&s[1]=='b'&&s[2]=='a')
            cout<<"Yes\n";
        else if(s[0]=='a'&&s[1]=='c'&&s[2]=='b')
            cout<<"Yes\n";
        else {
            cout<<"No";
        }

    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:19: error: unable to find string literal operator 'operator""\U00000643' with 'const char [5]', 'long unsigned int' arguments
   18 |             cout<<"Yes\n"ك
      |                   ^~~~~~~~
Language: C++

#include <iostream>

using namespace std;

int main()
{
    string a="abc";
    string b="abc";
    string c="abc"b;
    cin>>a>>b>>c;
    if(a!=b&&a!=c&&b!=c)
    cout<<"Yes"<<' ';
    else
    cout<<"No"<<' ';
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: unable to find string literal operator 'operator""b' with 'const char [4]', 'long unsigned int' arguments
    9 |     string c="abc"b;
      |              ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: 'i' was not declared in this scope
    6 | if(!(s.at(0)==s.at(i)) && !(s.at(1)=s.at(2)) && !(s.at(1)==s.at(2)) && !(s.at(0)==s.at(2)))cout << "Yes" <<endl;
      |                    ^
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
int main() {
  string s;
  std::cin >> s;
  std::sort(s);
  std::cout << s << "\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string s;
      |   ^~~~~~
a.cc:5:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:15: error: 's' was not declared in this scope
    6 |   std::cin >> s;
      |               ^
Language: Java

import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    String s=sc.next();
//    int x=sc.nextInt();
//    int a=sc.nextInt();
//    int b=sc.nextInt();
    System.out.println((s.indexOf('a')!=-1&&s.indexOf('b')!=-1&&s.indexOf('c'))?"Yes":"No");
  }
}

Compiler output:
Main.java:10: error: bad operand types for binary operator '&&'
    System.out.println((s.indexOf('a')!=-1&&s.indexOf('b')!=-1&&s.indexOf('c'))?"Yes":"No");
                                                              ^
  first type:  boolean
  second type: int
1 error
Language: C

#include<stdio.h>

void main(){
  char s[4].c[4];
  scanf("%s",s);
  c[3]='\0';
  for(int i=2;i>=0;i--){
    c[i]=s[2-i];
  }
  printf("%s",c);
}

Compiler output:
main.c: In function 'main':
main.c:4:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    4 |   char s[4].c[4];
      |            ^
main.c:4:12: error: expected expression before '.' token
main.c:5:14: error: 's' undeclared (first use in this function)
    5 |   scanf("%s",s);
      |              ^
main.c:5:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:3: error: 'c' undeclared (first use in this function)
    6 |   c[3]='\0';
      |   ^
Language: C++

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

int main() {
string abc;
  cin >> abc;
  bool a=false,b=false,c=false;
  for(int i=0;i<3;i++){
    if(abc.at(i)=="a") a=true;
    if(abc.at(i)=="b") b=true;
    if(abc.at(i)=="C") c=true;
  }
if(a){
  if(b){
    if(c)cout << "Yes" << endl;
  }
}
  else cout << "No" << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if(abc.at(i)=="a") a=true;
      |        ~~~~~~~~~^~~~~
a.cc:13:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |     if(abc.at(i)=="b") b=true;
      |        ~~~~~~~~~^~~~~
a.cc:14:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     if(abc.at(i)=="C") c=true;
      |        ~~~~~~~~~^~~~~
Language: C++

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:1: error: expected '}' before 'else'
   15 | else cout << "No" << endl;
      | ^~~~
a.cc:13:52: note: to match this '{'
   13 | if(abc[0] == "a" && abc[1] == "b" && abc[2] == "c"){
      |                                                    ^
a.cc: At global scope:
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: Java

class Rp1ABC093A{
 static public void main(String args[]){
 String a,b,c;
 String S;
 Scanner sc = new Scanner(System.in);
  if (S .equals("abc" , "acb" , "bac" , "bca" , "bac" , "cab" , "cba"));
｛
  System.out.println("Yes");
 }
  else
 {System.out.println("No");
}
 }


Compiler output:
Main.java:7: error: illegal character: '\uff5b'
?
^
Main.java:10: error: illegal start of type
  else
  ^
2 errors
Language: Java

import java.util.Scanner;
class Rp1ABC093{
  static public void main(String args[]){
    String S;
    Scanner sc = new Scanner(System.in);
    
  if
    (S.equals(abc)||S.equals(bca)||S.equals(cba)||S.equals(acb)||S.equals(bac)||S.equals(cab))
    {
    System.out.println("Yes");
    }
  else{
  System.out.println("No");
  }
  }
}

Compiler output:
Main.java:8: error: cannot find symbol
    (S.equals(abc)||S.equals(bca)||S.equals(cba)||S.equals(acb)||S.equals(bac)||S.equals(cab))
              ^
  symbol:   variable abc
  location: class Rp1ABC093
Main.java:8: error: cannot find symbol
    (S.equals(abc)||S.equals(bca)||S.equals(cba)||S.equals(acb)||S.equals(bac)||S.equals(cab))
                             ^
  symbol:   variable bca
  location: class Rp1ABC093
Main.java:8: error: cannot find symbol
    (S.equals(abc)||S.equals(bca)||S.equals(cba)||S.equals(acb)||S.equals(bac)||S.equals(cab))
                                            ^
  symbol:   variable cba
  location: class Rp1ABC093
Main.java:8: error: cannot find symbol
    (S.equals(abc)||S.equals(bca)||S.equals(cba)||S.equals(acb)||S.equals(bac)||S.equals(cab))
                                                           ^
  symbol:   variable acb
  location: class Rp1ABC093
Main.java:8: error: cannot find symbol
    (S.equals(abc)||S.equals(bca)||S.equals(cba)||S.equals(acb)||S.equals(bac)||S.equals(cab))
                                                                          ^
  symbol:   variable bac
  location: class Rp1ABC093
Main.java:8: error: cannot find symbol
    (S.equals(abc)||S.equals(bca)||S.equals(cba)||S.equals(acb)||S.equals(bac)||S.equals(cab))
                                                                                         ^
  symbol:   variable cab
  location: class Rp1ABC093
6 errors
Language: Java

import java.util.Scanner;
class Rp1ABC093{
  static public void main(String args[]){
    String S;
    Scanner sc = new Scanner(System.in);
    
  if
    (S.equals(abc)||S.equals(bca)||S.equals(cba)||S.equals(acb)||S.equals(bac)|S.equals"cab")
    {
    System.out.println("Yes");
    }
  else{
  System.out.println("No");
  }
  }
}
import java.util.Scanner;
class Rp1ABC093{
  static public void main(String args[]){
    String S;
    Scanner sc = new Scanner(System.in);
    
  if
    (S.equals(abc)||S.equals(bca)||S.equals(cba)||S.equals(acb)||S.equals(bac)||S.equals(cab))
    {
    System.out.println("Yes");
    }
  else{
  System.out.println("No");
  }
  }
}
提出情報

Compiler output:
Main.java:8: error: ')' expected
    (S.equals(abc)||S.equals(bca)||S.equals(cba)||S.equals(acb)||S.equals(bac)|S.equals"cab")
                                                                                       ^
Main.java:8: error: ';' expected
    (S.equals(abc)||S.equals(bca)||S.equals(cba)||S.equals(acb)||S.equals(bac)|S.equals"cab")
                                                                                            ^
Main.java:12: error: 'else' without 'if'
  else{
  ^
Main.java:17: error: class, interface, enum, or record expected
import java.util.Scanner;
^
Main.java:33: error: reached end of file while parsing
????
^
5 errors
Language: Java

import java.util.Scanner;
class Rp1ABC093{
  static public void main(String args[]){
    String S;
    Scanner sc = new Scanner(System.in);
    
  if
    (S.equals(abc)||S.equals(bca)||S.equals(cba)||S.equals(acb)||S.equals(bac)|S.equals"cab")
    {
    System.out.println("Yes");
    }
  else{
  System.out.println("No");
  }
  }
}

Compiler output:
Main.java:8: error: ')' expected
    (S.equals(abc)||S.equals(bca)||S.equals(cba)||S.equals(acb)||S.equals(bac)|S.equals"cab")
                                                                                       ^
Main.java:8: error: ';' expected
    (S.equals(abc)||S.equals(bca)||S.equals(cba)||S.equals(acb)||S.equals(bac)|S.equals"cab")
                                                                                            ^
Main.java:12: error: 'else' without 'if'
  else{
  ^
3 errors
Language: Java

import java.util.Scanner;
class Rp1ABC093{
  static public void main(String args[]){
    String S;
    Scanner sc = new Scanner(System.in);
    
  if
    (S.equals"abc"||S.equals"bca"||S.equals"cba"||S.equals"acb"||S.equals"bac"||S.equals"cab")
    {
    System.out.println("Yes");
    }
  else{
  System.out.println("No");
  }
  }
}

Compiler output:
Main.java:8: error: ')' expected
    (S.equals"abc"||S.equals"bca"||S.equals"cba"||S.equals"acb"||S.equals"bac"||S.equals"cab")
             ^
Main.java:8: error: not a statement
    (S.equals"abc"||S.equals"bca"||S.equals"cba"||S.equals"acb"||S.equals"bac"||S.equals"cab")
                  ^
Main.java:8: error: ';' expected
    (S.equals"abc"||S.equals"bca"||S.equals"cba"||S.equals"acb"||S.equals"bac"||S.equals"cab")
                            ^
Main.java:8: error: not a statement
    (S.equals"abc"||S.equals"bca"||S.equals"cba"||S.equals"acb"||S.equals"bac"||S.equals"cab")
                                    ^
Main.java:8: error: ';' expected
    (S.equals"abc"||S.equals"bca"||S.equals"cba"||S.equals"acb"||S.equals"bac"||S.equals"cab")
                                           ^
Main.java:8: error: not a statement
    (S.equals"abc"||S.equals"bca"||S.equals"cba"||S.equals"acb"||S.equals"bac"||S.equals"cab")
                                                   ^
Main.java:8: error: ';' expected
    (S.equals"abc"||S.equals"bca"||S.equals"cba"||S.equals"acb"||S.equals"bac"||S.equals"cab")
                                                          ^
Main.java:8: error: not a statement
    (S.equals"abc"||S.equals"bca"||S.equals"cba"||S.equals"acb"||S.equals"bac"||S.equals"cab")
                                                                  ^
Main.java:8: error: ';' expected
    (S.equals"abc"||S.equals"bca"||S.equals"cba"||S.equals"acb"||S.equals"bac"||S.equals"cab")
                                                                         ^
Main.java:8: error: not a statement
    (S.equals"abc"||S.equals"bca"||S.equals"cba"||S.equals"acb"||S.equals"bac"||S.equals"cab")
                                                                                 ^
Main.java:8: error: ';' expected
    (S.equals"abc"||S.equals"bca"||S.equals"cba"||S.equals"acb"||S.equals"bac"||S.equals"cab")
                                                                                        ^
Main.java:12: error: 'else' without 'if'
  else{
  ^
12 errors
Language: Java

import java.util.Scanner;
class Rp1ABC093{
  static public void main(String args[]){
    String S;
    Scanner sc = new Scanner(System.in);
    
  if
    (S="abc"||S="bca"||S="cba"||S="acb"||S="bac"||S="cab")
    
  {System.out.println("Yes");
    }
  else{
  System.out.println("No");
  }
  }
}

Compiler output:
Main.java:8: error: bad operand types for binary operator '||'
    (S="abc"||S="bca"||S="cba"||S="acb"||S="bac"||S="cab")
            ^
  first type:  String
  second type: String
Main.java:8: error: bad operand types for binary operator '||'
    (S="abc"||S="bca"||S="cba"||S="acb"||S="bac"||S="cab")
                     ^
  first type:  String
  second type: String
Main.java:8: error: bad operand types for binary operator '||'
    (S="abc"||S="bca"||S="cba"||S="acb"||S="bac"||S="cab")
                              ^
  first type:  String
  second type: String
Main.java:8: error: bad operand types for binary operator '||'
    (S="abc"||S="bca"||S="cba"||S="acb"||S="bac"||S="cab")
                                       ^
  first type:  String
  second type: String
Main.java:8: error: bad operand types for binary operator '||'
    (S="abc"||S="bca"||S="cba"||S="acb"||S="bac"||S="cab")
                                                ^
  first type:  String
  second type: String
Main.java:8: error: incompatible types: String cannot be converted to boolean
    (S="abc"||S="bca"||S="cba"||S="acb"||S="bac"||S="cab")
      ^
6 errors
Language: Java

import java.util.Scanner;
class Rp1ABC093{
  static public void main(String args[]){
    String S;
    Scanner sc = new Scanner(System.in);
    
  if
    (S1="abc"||S2="bca"||S3="cba"||S4="acb"||S5="bac"||S6="cab")
    {Sytem.out.print(S1.equals(S2).equals(S3).equals(S4).equals(S5).equals(s6));
    System.out.println("Yes");
    }
  else{
  System.out.println("No");
  }
  }
}

Compiler output:
Main.java:8: error: cannot find symbol
    (S1="abc"||S2="bca"||S3="cba"||S4="acb"||S5="bac"||S6="cab")
     ^
  symbol:   variable S1
  location: class Rp1ABC093
Main.java:8: error: cannot find symbol
    (S1="abc"||S2="bca"||S3="cba"||S4="acb"||S5="bac"||S6="cab")
               ^
  symbol:   variable S2
  location: class Rp1ABC093
Main.java:8: error: cannot find symbol
    (S1="abc"||S2="bca"||S3="cba"||S4="acb"||S5="bac"||S6="cab")
                         ^
  symbol:   variable S3
  location: class Rp1ABC093
Main.java:8: error: cannot find symbol
    (S1="abc"||S2="bca"||S3="cba"||S4="acb"||S5="bac"||S6="cab")
                                   ^
  symbol:   variable S4
  location: class Rp1ABC093
Main.java:8: error: cannot find symbol
    (S1="abc"||S2="bca"||S3="cba"||S4="acb"||S5="bac"||S6="cab")
                                             ^
  symbol:   variable S5
  location: class Rp1ABC093
Main.java:8: error: cannot find symbol
    (S1="abc"||S2="bca"||S3="cba"||S4="acb"||S5="bac"||S6="cab")
                                                       ^
  symbol:   variable S6
  location: class Rp1ABC093
Main.java:9: error: package Sytem does not exist
    {Sytem.out.print(S1.equals(S2).equals(S3).equals(S4).equals(S5).equals(s6));
          ^
Main.java:9: error: cannot find symbol
    {Sytem.out.print(S1.equals(S2).equals(S3).equals(S4).equals(S5).equals(s6));
                                                                           ^
  symbol:   variable s6
  location: class Rp1ABC093
Main.java:9: error: cannot find symbol
    {Sytem.out.print(S1.equals(S2).equals(S3).equals(S4).equals(S5).equals(s6));
                                                                ^
  symbol:   variable S5
  location: class Rp1ABC093
Main.java:9: error: cannot find symbol
    {Sytem.out.print(S1.equals(S2).equals(S3).equals(S4).equals(S5).equals(s6));
                                                     ^
  symbol:   variable S4
  location: class Rp1ABC093
Main.java:9: error: cannot find symbol
    {Sytem.out.print(S1.equals(S2).equals(S3).equals(S4).equals(S5).equals(s6));
                                          ^
  symbol:   variable S3
  location: class Rp1ABC093
Main.java:9: error: cannot find symbol
    {Sytem.out.print(S1.equals(S2).equals(S3).equals(S4).equals(S5).equals(s6));
                               ^
  symbol:   variable S2
  location: class Rp1ABC093
Main.java:9: error: cannot find symbol
    {Sytem.out.print(S1.equals(S2).equals(S3).equals(S4).equals(S5).equals(s6));
                     ^
  symbol:   variable S1
  location: class Rp1ABC093
13 errors
Language: Java

import java.util.Scanner;
class Rp1ABC093{
  static public void main(String args[]){
    String S;
    Scanner sc = new Scanner(System.in);
    
  if
    S1="abc";
    S2="bca";
    S3="cba";
    S4="acb";
    S5="bac";
    S6="cab";
    {Sytem.out.print(S1.equals(S2).equals(S3).equals(S4).equals(S5).equals(s6));
    System.out.println("Yes");
    }
  else{
  System.out.println("No");
  }
  }
}
import java.util.Scanner;
class Rp1ABC093{
  static public void main(String args[]){
    String S;
    Scanner sc = new Scanner(System.in);
    
  if
    (S1="abc"||S2="bca"||S3="cba"||S4="acb"||S5="bac"||S6="cab")
    {Sytem.out.print(S1.equals(S2).equals(S3).equals(S4).equals(S5).equals(s6));
    System.out.println("Yes");
    }
  else{
  System.out.println("No");
  }
  }
}
提出情報
提出日時


Compiler output:
Main.java:7: error: '(' expected
  if
    ^
Main.java:8: error: ')' expected
    S1="abc";
            ^
Main.java:17: error: 'else' without 'if'
  else{
  ^
Main.java:22: error: class, interface, enum, or record expected
import java.util.Scanner;
^
Main.java:38: error: class, interface, enum, or record expected
????
^
5 errors
Language: Java

import java.util.Scanner;
class Rp1ABC093{
  static public void main(String args[]){
    String S;
    Scanner sc = new Scanner(System.in);
    
  if
    S1="abc";
    S2="bca";
    S3="cba";
    S4="acb";
    S5="bac";
    S6="cab";
    {Sytem.out.print(S1.equals(S2).equals(S3).equals(S4).equals(S5).equals(s6));
    System.out.println("Yes");
    }
  else{
  System.out.println("No");
  }
  }
}

Compiler output:
Main.java:7: error: '(' expected
  if
    ^
Main.java:8: error: ')' expected
    S1="abc";
            ^
Main.java:17: error: 'else' without 'if'
  else{
  ^
3 errors
Language: Java

import java.util.Scanner;
class Rp1ABC093{
  static public void main(String args[]){
    String S;
    Scanner sc = new Scanner(System.in);
    
  if
    S1="abc";
    S2="bca";
    S3="cba";
    S4="acb";
    S5="bac";
    S6="cab";
    Sytem.out.print(S1.equals(S2).equals(S3).equals(S4).equals(S5).equals(s6));
    System.out.println("Yes");
  else
    System.out.println("No");
  }
}


Compiler output:
Main.java:7: error: '(' expected
  if
    ^
Main.java:8: error: ')' expected
    S1="abc";
            ^
Main.java:16: error: 'else' without 'if'
  else
  ^
3 errors
Language: Java

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


Compiler output:
Main.java:7: error: '(' expected
  if
    ^
Main.java:8: error: ')' expected
    S.equals(abc);
                 ^
Main.java:15: error: 'else' without 'if'
  else
  ^
3 errors
Language: Java

import java.util.Scanner;
class Rp1ABC093{
  static public void main(String args[]){
    String S;
    Scanner sc = new Scanner(System.in);
    
  if (S.equals(abc));
    (S.equals(bca));
    (S.equals(cba));
    (S.equals(acb));
    (S.equals(bac));
    (S.equals(cab));
    System.out.println("Yes");
  else
    System.out.println("No");
  }
}
import java.util.Scanner;
class Rp1ABC093{
  static public void main(String args[]){
    String S;
    Scanner sc = new Scanner(System.in);
    
  if 
    S.equals(abc);
    S.equals(bca);
    S.equals(cba);
    S.equals(acb);
    S.equals(bac);
    S.equals(cab);
    System.out.println("Yes");
  else
    System.out.println("No");
  }
}
提出情報

Compiler output:
Main.java:8: error: not a statement
    (S.equals(bca));
    ^
Main.java:9: error: not a statement
    (S.equals(cba));
    ^
Main.java:10: error: not a statement
    (S.equals(acb));
    ^
Main.java:11: error: not a statement
    (S.equals(bac));
    ^
Main.java:12: error: not a statement
    (S.equals(cab));
    ^
Main.java:14: error: 'else' without 'if'
  else
  ^
Main.java:18: error: class, interface, enum, or record expected
import java.util.Scanner;
^
Main.java:24: error: '(' expected
  if 
    ^
Main.java:25: error: ')' expected
    S.equals(abc);
                 ^
Main.java:32: error: 'else' without 'if'
  else
  ^
Main.java:36: error: reached end of file while parsing
????
^
11 errors
Language: Java

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

Compiler output:
Main.java:8: error: not a statement
    (S.equals(bca));
    ^
Main.java:9: error: not a statement
    (S.equals(cba));
    ^
Main.java:10: error: not a statement
    (S.equals(acb));
    ^
Main.java:11: error: not a statement
    (S.equals(bac));
    ^
Main.java:12: error: not a statement
    (S.equals(cab));
    ^
Main.java:14: error: 'else' without 'if'
  else
  ^
6 errors
Language: Java

import java.util.Scanner;
class Rp1ABC093{
  static public void main(String args[]){
    String S;
    Scanner sc = new Scanner(System.in);
    
  if (S.equals(abc)) or (S.equals(bca)) or (S.equals(cba)) or (S.equals(acb)) or (S.equals(bac)) or (S.equals(cab))
    System.out.println("Yes");
  else
    System.out.println("No");
  }
}

Compiler output:
Main.java:7: error: ';' expected
  if (S.equals(abc)) or (S.equals(bca)) or (S.equals(cba)) or (S.equals(acb)) or (S.equals(bac)) or (S.equals(cab))
                                       ^
Main.java:7: error: ';' expected
  if (S.equals(abc)) or (S.equals(bca)) or (S.equals(cba)) or (S.equals(acb)) or (S.equals(bac)) or (S.equals(cab))
                                                          ^
Main.java:7: error: ';' expected
  if (S.equals(abc)) or (S.equals(bca)) or (S.equals(cba)) or (S.equals(acb)) or (S.equals(bac)) or (S.equals(cab))
                                                                             ^
Main.java:7: error: ';' expected
  if (S.equals(abc)) or (S.equals(bca)) or (S.equals(cba)) or (S.equals(acb)) or (S.equals(bac)) or (S.equals(cab))
                                                                                                ^
Main.java:7: error: ';' expected
  if (S.equals(abc)) or (S.equals(bca)) or (S.equals(cba)) or (S.equals(acb)) or (S.equals(bac)) or (S.equals(cab))
                                                                                                                   ^
Main.java:9: error: 'else' without 'if'
  else
  ^
6 errors
Language: Java

import java.util.Scanner;
class Rp1ABC093{
  static public void main(String args[]){
    String S;
    Scanner sc equals new Scanner(System.in);
    
  if (S.equals(abc)) or (S.equals(bca)) or (S.equals(cba)) or (S.equals(acb)) or (S.equals(bac)) or (S.equals(cab))
    System.out.println("Yes");
  else
    System.out.println("No");
  }
}

Compiler output:
Main.java:5: error: ';' expected
    Scanner sc equals new Scanner(System.in);
              ^
Main.java:5: error: not a statement
    Scanner sc equals new Scanner(System.in);
               ^
Main.java:5: error: ';' expected
    Scanner sc equals new Scanner(System.in);
                     ^
Main.java:7: error: ';' expected
  if (S.equals(abc)) or (S.equals(bca)) or (S.equals(cba)) or (S.equals(acb)) or (S.equals(bac)) or (S.equals(cab))
                                       ^
Main.java:7: error: ';' expected
  if (S.equals(abc)) or (S.equals(bca)) or (S.equals(cba)) or (S.equals(acb)) or (S.equals(bac)) or (S.equals(cab))
                                                          ^
Main.java:7: error: ';' expected
  if (S.equals(abc)) or (S.equals(bca)) or (S.equals(cba)) or (S.equals(acb)) or (S.equals(bac)) or (S.equals(cab))
                                                                             ^
Main.java:7: error: ';' expected
  if (S.equals(abc)) or (S.equals(bca)) or (S.equals(cba)) or (S.equals(acb)) or (S.equals(bac)) or (S.equals(cab))
                                                                                                ^
Main.java:7: error: ';' expected
  if (S.equals(abc)) or (S.equals(bca)) or (S.equals(cba)) or (S.equals(acb)) or (S.equals(bac)) or (S.equals(cab))
                                                                                                                   ^
Main.java:9: error: 'else' without 'if'
  else
  ^
9 errors
Language: Java

import java.util.Scanner;
class Rp1ABC093{
  static public void main(String args[]){
    String S;
    Scanner sc equals new Scanner(System.in);
    
  if (S=="abc") or (S=="bca") or (S=="cba") or (S=="acb") or (S=="bac") or (S=="cab")
    System.out.println("Yes");
  else
    System.out.println("No");
  }
}

Compiler output:
Main.java:5: error: ';' expected
    Scanner sc equals new Scanner(System.in);
              ^
Main.java:5: error: not a statement
    Scanner sc equals new Scanner(System.in);
               ^
Main.java:5: error: ';' expected
    Scanner sc equals new Scanner(System.in);
                     ^
Main.java:7: error: ';' expected
  if (S=="abc") or (S=="bca") or (S=="cba") or (S=="acb") or (S=="bac") or (S=="cab")
                             ^
Main.java:7: error: ';' expected
  if (S=="abc") or (S=="bca") or (S=="cba") or (S=="acb") or (S=="bac") or (S=="cab")
                                           ^
Main.java:7: error: ';' expected
  if (S=="abc") or (S=="bca") or (S=="cba") or (S=="acb") or (S=="bac") or (S=="cab")
                                                         ^
Main.java:7: error: ';' expected
  if (S=="abc") or (S=="bca") or (S=="cba") or (S=="acb") or (S=="bac") or (S=="cab")
                                                                       ^
Main.java:7: error: ';' expected
  if (S=="abc") or (S=="bca") or (S=="cba") or (S=="acb") or (S=="bac") or (S=="cab")
                                                                                     ^
Main.java:9: error: 'else' without 'if'
  else
  ^
9 errors