criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    
    // 標準入力から整数a,b,cの数値を取得
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    int c = scanner.nextInt();
    
    // 3つの数値を比較し、色が全てが同じ場合1を出力
    if(a == b && a == c) {
      System.out.println(1);
    
    // 3つの数値を比較し、色が1つでも同じ場合2を出力  
    } else if(a == b || b == c || c == a) {
      System.out.println(2);
    
    // 3つの数値を比較し、すべて違う場合3を出力
    } else {
      System.out.println(3);
  }
}

Compiler output:
Main.java:24: error: reached end of file while parsing
}
 ^
1 error
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<set>
#include<iomanip>
#define rep(i, a, n) for(int i = a; i < n; i++)
using namespace std;
int main(){
  int a[3], c = 3;
  cin >> a[0];
  rep(i, 1, 2){
    cin >> a[i];
    if(a[i] == a[i - 1]){
      c--;
    }
  }
  
  if(c == 3){
    if(a[1] == a[2]){
      cout << 2 << "\n";
    }
  }
  else{
    cout << c << "\n";
  }
    

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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for (ll i = 0; i < (ll)(n); ++i)

int main() {
	set<int> s;
	rep(i,3) {
		int a; cin >> a;
		s.insert(a);
	}
	cout << a.size() << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: 'a' was not declared in this scope
   12 |         cout << a.size() << endl;
      |                 ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for (ll i = 0; i < (ll)(n); ++i)

int main() {
	set<int> s;
	rep(i,3) {
		int a; cin >> a;
		s.insert(a);
	}
	cout << s.seze() << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: 'class std::set<int>' has no member named 'seze'; did you mean 'size'?
   12 |         cout << s.seze() << endl;
      |                   ^~~~
      |                   size
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for (ll i = 0; i < (ll)(n); ++i)

int main() {
	set<int> s;
	rep(i,3) {
		int a; cin >> a;
		s.insert(a);
	}
	cout << a.seze() << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: 'a' was not declared in this scope
   12 |         cout << a.seze() << endl;
      |                 ^
Language: C++

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

int main() {
  int a, b, c;
  cin >> a >> b >> c;
  if (a == b && a == c) {
    cout << 1 << endl;
  }
  else if (a == b || b == c || a == c) {
    cout << 2 << endl;
  }
  else {
    cout << 3 endl;
  }  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: expected ';' before 'endl'
   14 |     cout << 3 endl;
      |              ^~~~~
      |              ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c; 
  cin >> a >> b >> c; 
  if ((a == b) && (b == c))
    cout << 1; 
  else if ((a == b) || (b == c)) || (a == c))
    cout << 2; 
 else
   cout << 3; 
  return 0; 
}

Compiler output:
a.cc:8:36: error: extended character   is not valid in an identifier
    8 |   else if ((a == b) || (b == c)) || (a == c))
      |                                    ^
a.cc: In function 'int main()':
a.cc:8:34: error: expected primary-expression before '||' token
    8 |   else if ((a == b) || (b == c)) || (a == c))
      |                                  ^~
a.cc:8:36: error: '\U000000a0' was not declared in this scope
    8 |   else if ((a == b) || (b == c)) || (a == c))
      |                                    ^
Language: C++

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

signed main(){
	int a, b, c, ans = 0, i;
	scnaf("%d%d%d", &a, &b, &c);
	vector<int> count(101, 0);
	count[a] = 1;
	count[b] = 1;
	count[c] = 1;
	for(i = 0; i <= 100; i++){
		ans += count[i];
	}
	printf("%d\n", ans);
	return 0;
}

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

#include <bits/stdc++.h>
#define rep(i,n) for (int i=0;i<(n);i++)
using namespace std;
using ll = long long;
using P = pair<int,int>;
 
 
int main() {
    vector<int> a(3);
    rep(i,3)cin >> a.at(i);
    sort(a.begin(),a.end());
    int ans=3;
    rep(i,n-1){
        if(a.at(i)==a.at(i+1))ans--;
    }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: 'n' was not declared in this scope
   13 |     rep(i,n-1){
      |           ^
a.cc:2:34: note: in definition of macro 'rep'
    2 | #define rep(i,n) for (int i=0;i<(n);i++)
      |                                  ^
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<iomanip>
#include<string>
#include<queue>
#include<utility>
#include<cmath>
#include<sstream>
#include<istream>
#include<numeric>
#include<stdlib.h>

using namespace std;

int main()
{

  int a, b, c;
  cin >> a >> b >> c;

  int cnt = 0;
  if(a != b){
    cnt++;
  }
  if(a != c){
    cnt++;
  }
  if(b != c){
    cnt++;
  }

  if(ans == 0){
    cnt = 1;
  }

  cout << cnt << endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:6: error: 'ans' was not declared in this scope; did you mean 'abs'?
   33 |   if(ans == 0){
      |      ^~~
      |      abs
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
    int a,b,c;
    cin>>a>>b>>c;
     if (a=b && a!=c ){
        cout<<2<<"\n"<<"Two different color: "<<a<<" , "<<c<<endl;
    }
    else if (b=c && a!=b ){
        cout<<2<<"\n"<<"Two different colors: "<<a<<" , "<<b<<endl;
    }
    else if (b=c && a!=c ){
        cout<<2<<"\n"<<"Two different colors: "<<a<<" , "<<c<<endl;
    }
    else if (a=c && a!=b ){
        cout<<2<<"\n"<<"Two different colors: "<<a<<" , "<<b<<endl;
        }
    else if (a!=b && b!=c  ){
        cout<<3<<"\n"<<"three different colors: "<<a<<" , "<<b<<" , "<<c<<endl;
    }
    else {
            cout<<1<<"\n"<<"only one color: "<<a<<endl;

    }








    return 0;
}




    return 0;
}


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

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

int main() {
    vector<int> a;
    for (int i = 0; i < N; i++) {
        cin >> a.at(i);
    }
    sort(a.begin(), a.end());
    a.erase(unique(a.begin(), a.end()), a.end());
    cout << a.size();
    return 0;
}

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

#inlcude<bits/stdc++.h>

using namespace std;

int main() {
  set<int> s;
  int n = 3,num;
  while(n-- && cin >> num) {
    s.insert(num);
  }
  cout << s.size() << endl;
  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'set' was not declared in this scope
    6 |   set<int> s;
      |   ^~~
a.cc:1:1: note: 'std::set' is defined in header '<set>'; this is probably fixable by adding '#include <set>'
  +++ |+#include <set>
    1 | #inlcude<bits/stdc++.h>
a.cc:6:7: error: expected primary-expression before 'int'
    6 |   set<int> s;
      |       ^~~
a.cc:8:16: error: 'cin' was not declared in this scope
    8 |   while(n-- && cin >> num) {
      |                ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlcude<bits/stdc++.h>
a.cc:9:5: error: 's' was not declared in this scope
    9 |     s.insert(num);
      |     ^
a.cc:11:3: error: 'cout' was not declared in this scope
   11 |   cout << s.size() << endl;
      |   ^~~~
a.cc:11:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:11: error: 's' was not declared in this scope
   11 |   cout << s.size() << endl;
      |           ^
a.cc:11:23: error: 'endl' was not declared in this scope
   11 |   cout << s.size() << endl;
      |                       ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inlcude<bits/stdc++.h>
Language: C

#include<stdio.h>

int main()
{
 int a,b,c;

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

 if((a==b)&&(b==c))printf("1\n");
 else if(((a==b)&&(b==c))||((a==c)&&(c!=b))||((b==c)&&(c!=a))i)printf("2\n");
 else printf("3\n");

 return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:62: error: expected ')' before 'i'
   10 |  else if(((a==b)&&(b==c))||((a==c)&&(c!=b))||((b==c)&&(c!=a))i)printf("2\n");
      |         ~                                                    ^
      |                                                              )
Language: C

#include<stdio.h>

int main()
{
 int a,b,c;

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

 if((a==b)&&(b==c))printf("1\n");
 else if(((a==b)&&(b!=c))||((a!=b)&&(a==c))||((a!=c)&&(b==c))i)printf("2\n");
 else printf("3\n");

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:62: error: expected ')' before 'i'
   10 |  else if(((a==b)&&(b!=c))||((a!=b)&&(a==c))||((a!=c)&&(b==c))i)printf("2\n");
      |         ~                                                    ^
      |                                                              )
Language: C++

 #include<bits/stdc++.h>
using namespace std;
int main()
{
  int a[3],count=1;
  for(int i = 0;i<3;i++)
  {
    cin>>a[i];
   
  }
  for(int i=0;i<2;i++)
{

   if(a[i]!=a[i+1])
    {
      count++;
    }
}
  cout<<count<<endl;
  return 0;


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

#include<bits//stdc++.h>>
using namespace std;
int main(){
  set<int> st;int n;
  for(int i = 0; i <3;i++){
    cin >> n;st.insert(n);
  }cout <<st.dize()<<endl;
}

Compiler output:
a.cc:1:25: warning: extra tokens at end of #include directive
    1 | #include<bits//stdc++.h>>
      |                         ^
a.cc: In function 'int main()':
a.cc:7:14: error: 'class std::set<int>' has no member named 'dize'; did you mean 'size'?
    7 |   }cout <<st.dize()<<endl;
      |              ^~~~
      |              size
Language: C++

#include<iostream>
using namespace std;

int main(){
  int a,b,c;
  cin>>a>>b>>c;
  set<int> s;
  s.insert(a);
  s.insert(b);
  s.insert(c);
  cout<<s.size();
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'set' was not declared in this scope
    7 |   set<int> s;
      |   ^~~
a.cc:2:1: note: 'std::set' is defined in header '<set>'; this is probably fixable by adding '#include <set>'
    1 | #include<iostream>
  +++ |+#include <set>
    2 | using namespace std;
a.cc:7:7: error: expected primary-expression before 'int'
    7 |   set<int> s;
      |       ^~~
a.cc:8:3: error: 's' was not declared in this scope
    8 |   s.insert(a);
      |   ^
Language: C++

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

int main(int argc, char const *argv[]) {
  int a,b,d;
  std::cin >> a>>b>>c;

  if (a==b || b==c || a==c){
    cout << "2" << endl;
  }
  else if (a==b==c) {
    /* code */cout << "2" << endl;
  }  
  else{
    cout << "3" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:6:21: error: 'c' was not declared in this scope
    6 |   std::cin >> a>>b>>c;
      |                     ^
Language: C

 #include<stdio.h>
 int main(void)
 {
     int a,b,c;

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

     if((a==b)&&(a==c)) printf("1\n");
     if((a==b)&&(a!=c)) printf("2\n");
     if((a!=b)&&(a==c)) printf("2\n");
     if((a!=b)&&(a!=c)) printf("3\n");

     return 0;
 }



Compiler output:
main.c: In function 'main':
main.c:6:20: error: invalid operands to binary & (have 'char *' and 'int')
    6 |      scanf("%d%d%d"&a,&b,&c);
      |            ~~~~~~~~^
      |            |
      |            char *
Language: Java

import java.util.*;
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner();
    // 整数の入力
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    //　条件分岐と出力
    if (a==b && a==c) {
      System.out.println(1);
    } else if (a==b) {
      System.out.println(2);
    } else if (b==c) {
      System.out.println(2);
    } else {
      System.out.println(3);
    }
  }
}

Compiler output:
Main.java:4: error: no suitable constructor found for Scanner(no arguments)
    Scanner sc = new Scanner();
                 ^
    constructor Scanner.Scanner(Readable,Pattern) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Readable) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,CharsetDecoder) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,Charset) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main{
 	int a , b , c;
  cin a >> b >> c;
  if(a == b == c){
    cout << 1 << end1;
    else if(a == b || a == c){
      cout << 2 << end1;
      else{
       count << 3 << end1; 
      }
    
}
  //3 1 4
  //3 3 33

Compiler output:
a.cc:6:5: error: cannot declare '::main' to be a global variable
    6 | int main{
      |     ^~~~
a.cc:7:9: error: expected primary-expression before 'int'
    7 |         int a , b , c;
      |         ^~~
a.cc:7:9: error: expected '}' before 'int'
a.cc:6:9: note: to match this '{'
    6 | int main{
      |         ^
a.cc:8:3: error: 'cin' does not name a type
    8 |   cin a >> b >> c;
      |   ^~~
a.cc:9:3: error: expected unqualified-id before 'if'
    9 |   if(a == b == c){
      |   ^~
Language: C

#include<stdio.h>

int main(void)
{
  int a,b,c;
  scanf("%d%d%d",&a,&b,&c);
  if(a = b = c)printf("1");
  if(a =! b = c)printf("2");
  if(a =! b =! c)printf("3");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:13: error: lvalue required as left operand of assignment
    8 |   if(a =! b = c)printf("2");
      |             ^
main.c:9:13: error: lvalue required as left operand of assignment
    9 |   if(a =! b =! c)printf("3");
      |             ^
Language: C++

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

int main(){
  int a,b,c;
  cin >> a >> b >> c;
  if(a!=b && b!=c && a!=c){
    cout << 3 << endl;
  }
  else if((a==b && b!=c) || (b==c && b!=a) || (a==c && b!=c)){
    cout << 2 << endl;
  }
  else{
    cout << 1 << endl;
  }
}
  

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

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

 int main(){
   
   int a,b,c;
   cin >> a >> b >> c;
   
   if ( a == b == c ){
     
     cout << 1 << endl;
     
   }
   
   else if ( (a == b && a != c) || (a == c && a != b) || (b == c && b != a) ){
     
     cout << 2 << endl;
     
   }
   
   else if {
     
     cout << 3 << endl;
     
   }
   
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:21:12: error: expected '(' before '{' token
   21 |    else if {
      |            ^
      |            (
Language: C++

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

int main() {
  int a, b, c;
  cin >> a >> b >> c;
  
  if (a == b && B == c) {
    cout << 1 << endl;
  }
  else if (a != b && b != c && a != c) {
    cout << 3 << endl;
  }
  else {
    cout << 2 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'B' was not declared in this scope
    8 |   if (a == b && B == c) {
      |                 ^
Language: C++

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

 int main(){
   
   int a,b,c;
   cin >> a >> b >> c;
   
   if ( a = b = c ){
     
     cout << 1 << endl;
     
   }
   
   else if ( a = b != c || a = c != b || b = c != a ){
     
     cout << 2 << endl;
     
   }
   
   else {
     
     cout << 3 << endl;
     
   }
   
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:15:39: error: lvalue required as left operand of assignment
   15 |    else if ( a = b != c || a = c != b || b = c != a ){
      |                                ~~~~~~~^~~~
Language: C++

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

 int main(){
   
   int a,b,c;
   cin >> a >> b >> c;
   
   if ( a != b != c ){
     
     cout << 1 << endl;
     
   }
   
   else if ( a = b != c || a = c != b || b = c != a ){
     
     cout << 2 << endl;
     
   }
   
   else {
     
     cout << 3 << endl;
     
   }
   
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:15:39: error: lvalue required as left operand of assignment
   15 |    else if ( a = b != c || a = c != b || b = c != a ){
      |                                ~~~~~~~^~~~
Language: C++

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

 int main(){
   
   int a,b,c;
   cin >> a >> b >> c;
   
   if ( a != b != c ){
     
     cout << 1 << endl;
     
   }
   
   else if ( a = b != c || a =c != b || b = c != a ){
     
     cout << 2 << endl;
     
   }
   
   else {
     
     cout << 3 << endl;
     
   }
   
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:15:38: error: lvalue required as left operand of assignment
   15 |    else if ( a = b != c || a =c != b || b = c != a ){
      |                               ~~~~~~~^~~~
Language: Java

import java.util.*;
 
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
  }
  
  if(a==b && b==c) {
    System.out.println(1);
  } else if(a==b || b==c || c==a) {
    System.out.println(2);
  } else {
    System.out.println(3);
  }
}

Compiler output:
Main.java:11: error: illegal start of type
  if(a==b && b==c) {
  ^
Main.java:11: error: <identifier> expected
  if(a==b && b==c) {
      ^
Main.java:11: error: <identifier> expected
  if(a==b && b==c) {
         ^
Main.java:11: error: <identifier> expected
  if(a==b && b==c) {
              ^
Main.java:11: error: <identifier> expected
  if(a==b && b==c) {
                 ^
Main.java:13: error: illegal start of type
  } else if(a==b || b==c || c==a) {
    ^
Main.java:13: error: <identifier> expected
  } else if(a==b || b==c || c==a) {
             ^
Main.java:13: error: <identifier> expected
  } else if(a==b || b==c || c==a) {
                ^
Main.java:13: error: <identifier> expected
  } else if(a==b || b==c || c==a) {
                     ^
Main.java:13: error: <identifier> expected
  } else if(a==b || b==c || c==a) {
                        ^
Main.java:13: error: <identifier> expected
  } else if(a==b || b==c || c==a) {
                             ^
Main.java:13: error: <identifier> expected
  } else if(a==b || b==c || c==a) {
                                ^
Main.java:15: error: illegal start of type
  } else {
    ^
13 errors
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
  }
  
  if(a==b && b==c) {
    System.out.println(1);
  } else if(a==b || b==c || c==a) {
    System.out.println(2);
  } else {
    System.out.println(3);
  }
}

Compiler output:
Main.java:5: error: ';' expected
    Scanner sc new Scanner(System.in);
              ^
Main.java:11: error: illegal start of type
  if(a==b && b==c) {
  ^
Main.java:11: error: <identifier> expected
  if(a==b && b==c) {
      ^
Main.java:11: error: <identifier> expected
  if(a==b && b==c) {
         ^
Main.java:11: error: <identifier> expected
  if(a==b && b==c) {
              ^
Main.java:11: error: <identifier> expected
  if(a==b && b==c) {
                 ^
Main.java:13: error: illegal start of type
  } else if(a==b || b==c || c==a) {
    ^
Main.java:13: error: <identifier> expected
  } else if(a==b || b==c || c==a) {
             ^
Main.java:13: error: <identifier> expected
  } else if(a==b || b==c || c==a) {
                ^
Main.java:13: error: <identifier> expected
  } else if(a==b || b==c || c==a) {
                     ^
Main.java:13: error: <identifier> expected
  } else if(a==b || b==c || c==a) {
                        ^
Main.java:13: error: <identifier> expected
  } else if(a==b || b==c || c==a) {
                             ^
Main.java:13: error: <identifier> expected
  } else if(a==b || b==c || c==a) {
                                ^
Main.java:15: error: illegal start of type
  } else {
    ^
14 errors
Language: C++

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

int main(){
  map<int,num> s;
  int a;
  for(int i=0;i<3;i++){
    cin>>a;
    s[a]=1;
  }
  cout<<s.size();
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'num' was not declared in this scope; did you mean 'enum'?
    6 |   map<int,num> s;
      |           ^~~
      |           enum
a.cc:6:14: error: template argument 2 is invalid
    6 |   map<int,num> s;
      |              ^
a.cc:6:14: error: template argument 4 is invalid
a.cc:10:6: error: invalid types 'int[int]' for array subscript
   10 |     s[a]=1;
      |      ^
a.cc:12:11: error: request for member 'size' in 's', which is of non-class type 'int'
   12 |   cout<<s.size();
      |           ^~~~
Language: C++

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

int main(){
  int a,b,c;
  cin >> a >> b >> c;
  
  if(a==b==c){
    cout << 1 << endl;
  }
  else if(a==b||b==c||c==a){
    cout << 2 << endl;
  }
  else if(a=!b&&b=!c&&c=!a){
    cout << 3 << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: lvalue required as left operand of assignment
   14 |   else if(a=!b&&b=!c&&c=!a){
      |                   ~~^~~
Language: C

#include<stdio.h>
int main(void){
  int a,b,c;
  scanf("%d %d %d",&a,&b,&c);
  if(a==b && b==c && c==a){
    printf("1");
  }else if(a==b && b!=c &&c!=a){
    printf("2");
  }else if(a!=b && b!=c &&c==a){
    printf("2");
  }else if(a!=b && b==c &&c!=a){
    printf("2");
  }else{
    printf("3");
  }

Compiler output:
main.c: In function 'main':
main.c:15:3: error: expected declaration or statement at end of input
   15 |   }
      |   ^
Language: C

/*
AtCoder Problems in C
#A - AtCoDeerくんとペンキ
https://atcoder.jp/contests/abc046/tasks/abc046_a
提出コードの解答例
https://neguse-atama.hatenablog.com
*/
#include<stdio.h>
int main(void){
  int a,b,c;
  scanf("%d %d %d",&a,&b,&c);
  if(a==b && b==c && c==a){
    printf("1");
  }else if(a==b && b!=c &&c!=a){
    printf("2");
  }else if(a!=b && b!=c &&c==a){
    printf("2");
  }else if(a!=b && b==c &&c!=a){
    printf("2");
  }else{
    printf("3");
  }

Compiler output:
main.c: In function 'main':
main.c:22:3: error: expected declaration or statement at end of input
   22 |   }
      |   ^
Language: C++

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

int main() {
int a, b, c;
  cin >> a >> b >> c;
  if (a == b == c) cout << 3 << endl;
  else if (a == b != c || a == c != b || b == C != a) cout << 2 << endl;
  else cout << 1 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:47: error: 'C' was not declared in this scope
    8 |   else if (a == b != c || a == c != b || b == C != a) cout << 2 << endl;
      |                                               ^
Language: Java

import java.util.Scanner;
import java.util.HashSet;
import java.lang.String;

public class Main {
  
  public static void main (String[] arg) {
    Scanner sc = new Scanner(System.in);
    HashSet<Integer> colors = new HashSet<Integer>();
    colors.add(sc.nextInt());
    colors.add(sc.nextInt());
    colors.add(sc.nextInt());    
    sc.close();
    
    int result = colors.size();
    System.out.println(result);
  }


Compiler output:
Main.java:17: error: reached end of file while parsing
  }
   ^
1 error
Language: Java

import java.util.Scanner;
import java.util.HashSet;

public class Main {
  
  public static void main (String[] arg) {
    Scanner sc = new Scanner(System.in);
    HashSet<Integer> colors = new HashSet<Integer>(3);
    colors.add(sc.nextInt());
    colors.add(sc.nextInt());
    colors.add(sc.nextInt());    
    sc.close();
    
    int result = colors.size();
    System.out.println(result);
  }

Compiler output:
Main.java:16: error: reached end of file while parsing
  }
   ^
1 error
Language: Java

import java.util.Scanner;
import java.lang.String;
 
public class Main {
  
  public static void main (String[] arg) {
    Scanner sc = new Scanner(System.in);
    int res = rockpaper(sc);
    sc.close();
    System.out.println(res);
  }
  
  public static int rockpaper(Scanner sc) {
    String tcdSequence = sc.next();
    int tcdLength = tcdSequence.length();
    char[] acdSequence = new char[tcdLength];
    for (int i = 0; i < acdSequence.length; i++) {
      if (i % 2 == 0) {
        acdSequence[i] = 'g';
      } else {
        acdSequence[i] = 'p';
      }
    }
    
    int acdScore = 0;
    for (int k = 0; k < tcdSequence.length(); k++) {
      if ((tcdSequence.charAt(k) == 'g') && (acdSequence[k] == 'p')) {
        acdScore++;
      } else if ((tcdSequence.charAt(k) == 'p') && (acdSequence[k] == 'g')) {
        acdScore--;
      }
      return acdScore;
    }
  }
}


Compiler output:
Main.java:34: error: missing return statement
  }
  ^
1 error
Language: C++

#include <iostream>d
#include <map>
#include <algorithm>
#include <vector>
#include <iomanip>
#include <sstream>
#include <cmath>
#include <math.h>
#include <string>
using namespace std;
          
 
int main() {
    int a[3] , b = 1;
    cin >> a[0] >> a[1] >> a[2];
    sort( a , a + 3 );
    if ( a[0] != a[1] ) b++;
    if ( a[1] != a[2] ) b++;
    cout << b;
}



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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef string str;
typedef vector<ll> vel;
typedef vector<str> ves;
#define REP(i, a, b) for (ll i = (ll)(a); i < (ll)(b); i++)
#define rep(i, b) REP(i, 0, b)

int main() {
    ll a, b, c;
    cin >> a >> b >> c;
    ll count = 0;
    if (a != b) {
        count ++;
    }
    if (b != c) {
        count ++;
    }
    if (c != a) {
        count ++
    }
    cout << count << endl;
}

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

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

int main( void )
{
    int a,b,c;
    cin >> a >> b >> c;
    
    int ans = 3;
    
    if ( a == b && b == c)
    
    else
    {
        if ( a == b)
            ans--;
        if ( a == c)
            ans--;
        if ( c == b)
            ans--;
    }
    
    cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: expected primary-expression before 'else'
   15 |     else
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using ll = long long;
#define FOR(i, k, n) for(ll i = (k); i < (n); i++)
#define FORe(i, k, n) for(ll i = (k); i <= (n); i++)
#define FORr(i, k, n) for(ll i = (k)-1; i > (n); i--)
#define FORre(i, k, n) for(ll i = (k)-1; i >= (n); i--)
#define REP(i, n) FOR(i, 0, n)
#define REPr(i, n) FORre(i, n, 0)
#define ALL(x) (x).begin(), (x).end()
#define ALLr(x) (x).rbegin(), (x).rend()
#define chmin(x, y) x = min(x, y)
#define chmax(x, y) x = max(x, y)
using namespace std;

const int INF = 1001001001;

int main(void){
  int a, b, c;
  cin >> a >> b >> c;
  map<int, int> mp;
  mp[a]++;
  mp[b]++;
  mp[c]++;
  cout << mp.size(); << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:22: error: expected primary-expression before '<<' token
   24 |   cout << mp.size(); << endl;
      |                      ^~
Language: C++

#include <iostream>
using namespace std;

int main() {
  int a,b,c,d;
  cin >> a >> b >> c;
  if (a!=b) d++;
  if (a!=c) d++;
  if (b!=c) d++;
  cout << d
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected ';' before '}' token
   10 |   cout << d
      |            ^
      |            ;
   11 | }
      | ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  cin >> a >> b >> c;
  if (a=b && a!= c && b!=c ){
    cout<<"2"<<endl;
    
  }
    else if (a=c && a!= b && c!=b ){
    cout<<"2"<<endl;
    
  }   
 else if (b=c && b!= a && c!=a ){
    cout<<"2"<<endl;
    
  }
     else if (a!=b && b!= c && a!=c ){
    cout<<"3"<<endl;
    
  }
     else if (a = b =c ){
    cout<<"1"<<endl;
    
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:10: error: 'a' was not declared in this scope
    4 |   cin >> a >> b >> c;
      |          ^
a.cc:4:15: error: 'b' was not declared in this scope
    4 |   cin >> a >> b >> c;
      |               ^
a.cc:4:20: error: 'c' was not declared in this scope
    4 |   cin >> a >> b >> c;
      |                    ^
Language: C++

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

int main() {
  int an[3];rep(i,3)cin>>an[i];
  an.sort(an, an+3);
  int c=3;
  if (an[0]==an[1])c--;
  if (an[1]==an[2])c--;
  cout << c;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: request for member 'sort' in 'an', which is of non-class type 'int [3]'
    8 |   an.sort(an, an+3);
      |      ^~~~
Language: Java

class Main  {
	public static void main(String[] args)throws Exception{
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        int a = Integer.parseInt(br.readLine());
        int b = Integer.parseInt(br.readLine());
        int c = Integer.parseInt(br.readLine());
        if((a < b)&&(b < c)){
            System.out.print(3);
        }
        else if((a == b)&&(b == c)) {
            System.out.print(1);
        }
        else{
            System.out.print(2);
        }
	}
}


Compiler output:
Main.java:3: error: cannot find symbol
        InputStreamReader isr = new InputStreamReader(System.in);
        ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:3: error: cannot find symbol
        InputStreamReader isr = new InputStreamReader(System.in);
                                    ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:4: error: cannot find symbol
        BufferedReader br = new BufferedReader(isr);
        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:4: error: cannot find symbol
        BufferedReader br = new BufferedReader(isr);
                                ^
  symbol:   class BufferedReader
  location: class Main
4 errors
Language: C

#include<Stdio.h>
int main(void){
  int a,b,c;
  scanf("%d %d %d",&a,&b,&c);
  if(a==b && b==c && c==a){
    printf("1");
  }else if(a==b && b!=c &&c!=a){
    printf("2");
  }else if(a!=b && b!=c &&c==a){
    printf("2");
  }else if(a!=b && b==c &&c!=a){
    printf("2");
  }else{
    printf("3");
  }
  printf("\n");
  return 0;
}

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

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

int main() {
  int a,b,c;
  cin >> a >> b >> c;
  if(a==b&&b=c){
    cout << 1 << endl;
  }
  else if(a!=b&&b!=c&&c!=a){
    cout << 3 << endl;
  }else{
    cout << 2 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: lvalue required as left operand of assignment
    8 |   if(a==b&&b=c){
      |      ~~~~^~~
Language: C++

#include<bits/stdc++.h>
#deifne fast ios::sync_with_stdio(false), cin.tie(0);
#define ll long long
#define endl '\n'

using namespace std;

main()
{
  fast;
  int a,b,c;
  cin>>a>>b>>c;
  set<int> s;
  s.insert(a);
  s.insert(b);
  s.insert(c);
  cout<<s.size()<<endl;
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #deifne; did you mean #define?
    2 | #deifne fast ios::sync_with_stdio(false), cin.tie(0);
      |  ^~~~~~
      |  define
a.cc:8:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    8 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:10:3: error: 'fast' was not declared in this scope
   10 |   fast;
      |   ^~~~
Language: C++

l=list(map(int,input().split()))
tmp = []
count=0
for i in l:
    if not i in tmp:
        count+=1
        tmp.append(i)
print(count)

Compiler output:
a.cc:1:1: error: 'l' does not name a type
    1 | l=list(map(int,input().split()))
      | ^
Language: C++

#include<bits/stdc++.h>
    using namespace std;
    int main()
    {
      int i,a,b,c,count=0;
      cin>>a>>b>>c;
      if(a!=b)
      	count++;
      if(b!=c)
      	count++;
      if(c!=a)
      	count++;
      if(a==b && b==c)
      	count=1
      cout<<count<<endl;
      return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: expected ';' before 'cout'
   14 |         count=1
      |                ^
      |                ;
   15 |       cout<<count<<endl;
      |       ~~~~
Language: C++

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

int main(){
  int a,b,c;
  cin>>a>>b>>c;
  if(a==b&&b==c) cout<<"1"<<endl;
  else if(a==b||b==c||c==a) cout<<"2"<<endl;
  else cout<<"3"<,endl;
}

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

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;

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

	ll lastT = 1, lastA = 1;
	for (int i = 0; i < n; i++) {
		ll t, a;
		cin >> t >> a;

		ll factor=max(a/x,b/y);
        while(true){
            if(factor * t >= lastT && percent * a >= lastA)
                break;
            factor++;
        }

		lastT = t * factor;
		lastA = a * factor;
	}

	//cout << "ans: " << lastT << " " << lastA << '\n';
	cout << (lastT + lastA) << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:33: error: 'x' was not declared in this scope
   19 |                 ll factor=max(a/x,b/y);
      |                                 ^
a.cc:19:35: error: 'b' was not declared in this scope
   19 |                 ll factor=max(a/x,b/y);
      |                                   ^
a.cc:19:37: error: 'y' was not declared in this scope
   19 |                 ll factor=max(a/x,b/y);
      |                                     ^
a.cc:21:39: error: 'percent' was not declared in this scope
   21 |             if(factor * t >= lastT && percent * a >= lastA)
      |                                       ^~~~~~~
Language: C++

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

 int main(){
    int a,b,c,ans = 3;
    cin >> a >> b >> c;
    if(a == b == c){
    cout << 1 << endl;
}else if(a == b != c||a != c == b||a != b == c){
    cout << 2 << endl;
}else{
    cout << 3 << endl;
}

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

import java.util.HashMap;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		HashMap<Integer, Integer> hmap = new HashMap<Integer, Integer>();
		hmap.put(sc.nextInt(), 1);
		hmap.put(sc.nextInt(), 1);
		hmap.put(sc.nextInt(), 1);
		
		System.out.println(hmap.size());

		
	}
	

}


Compiler output:
Main.java:6: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		
		if (a == b == c) {
			System.out.println(1);
		} else if (a == b || b == c || a == c) {
			System.out.println(2);	
		} else {
			System.out.println(3);
		}
	}

}

Compiler output:
Main.java:10: error: incomparable types: boolean and int
		if (a == b == c) {
		           ^
1 error
Language: C++


using namespace std;

int main()
{
  int a, b, c;

  cin >> a >> b >> c;
  if( (a == b) && (a == c))
    cout << 1;
  else if((a == b) || (b == c))
    cout << 2;
  else
    cout << 3;
    return 0;
}


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

#include<bits/stdc++.h>
using namespace std;
 
int main()
{
  int a,b,c;
  cin>>a>>b>>c;
  set<int> s;
  s.insert(a);
  s.insert(b);
  s,insert(c);
  
  cout<<s.size();
 return 0; 
}

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

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

int main()
{
  int a,b,c;
  cin>>a>>b>>c;
  set<int> s;
  s.insert(a);
  s.insert(b);
  s,insert(c);
  
  cout<<s.size();
 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: C++

#include <iostream>
#include <vector>
#include <map>
#include <cmath>
#include <algorithm>
#define endl "\n"
using namespace std;

int main()
{
    map <int, int> mp;
    cin >> a >> b >> c;
    mp[a] ++;
    mp[b] ++;
    mp[c] ++;

    cout << mp.size();
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: 'a' was not declared in this scope
   12 |     cin >> a >> b >> c;
      |            ^
a.cc:12:17: error: 'b' was not declared in this scope
   12 |     cin >> a >> b >> c;
      |                 ^
a.cc:12:22: error: 'c' was not declared in this scope
   12 |     cin >> a >> b >> c;
      |                      ^
Language: C++

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

int main (){
  int a, b, c;
  cin >> a >> b >> c; 
  
  if(a == b || b == c || a == c){
    cout << 2 << endl;
  }
  else if(a == b == c){
    cout << 1 << endl;
  }
  else(a != b != c){
    cout << 3 << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:20: error: expected ';' before '{' token
   14 |   else(a != b != c){
      |                    ^
      |                    ;
Language: C++

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

int main (){
  int a, b, c;
  cin a >> b >> c;
  
  if(a == b || b == c || a == c){
    cout << 2 << endl;
  }
  else if(a == b == c){
    cout << 3 << endl;
  }
  else {
    cout << 1 << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'a'
    6 |   cin a >> b >> c;
      |      ^~
      |      ;
Language: C++

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

int main (){
  int a, b, c;
  cin a >> b >> c;
  
  if(a == b || b == c || a == c){
    cout << 2 << endl;
  }
  else if(a == b == c){
    cout << 3 << endl;
  }
  else {
    cout << 1 << endl;
  }
}

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

 #include <iostream>
 using namespace std;

    int main()
    {
   int a , b , c ;
   cin >> a >> b >> c ;
   
    if ( (a==c && a != b )  || (a==b && a != c ) )
   cout << "2";
   
    else if ( a == b &&   b == c  )
   cout <<"1";
   
   else //if (a!=b && a!=c && b != c )
   cout <<"3";
        return 0;
    }

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


       #include <iostream>
    using namespace std;

    int main()
    {
   int a , b , c ;
   cin >> a >> b >> c ;
   
    if ( (a==c && a != b )  || (a==b && a != c ) )
   cout << "2";
   
    else if ( a == b &&   b == c  )
   cout <<"1";
   
   else //if (a!=b && a!=c && b != c )
   cout <<"3";
        return 0;
    }

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

 int main()
    {
   int a , b , c ;
   cin >> a >> b >> c ;
   
    if ( (a==c && a != b )  || (a==b && a != c ) )
   cout << "2";
   
    else if ( a == b &&   b == c  )
   cout <<"1";
   
   else //if (a!=b && a!=c && b != c )
   cout <<"3";
        return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:4:4: error: 'cin' undeclared (first use in this function)
    4 |    cin >> a >> b >> c ;
      |    ^~~
main.c:4:4: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:4: error: 'cout' undeclared (first use in this function)
    7 |    cout << "2";
      |    ^~~~
Language: C++

#include<iostram>
using namespace std;
int main(){
  int a,b,c;cin>>a>>b>>c;
  if(a==b and b==c)cout<<1<<endl;
  else if(a!=b and b!=c and a!=c)cout<<3<<endl;
  else cout<<2<<endl;
}

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

using namespace std;

int main()
{
    int a , b , c;
    cin >> a >> b >> c;
    if (1<=a && a<=100 && 1<=b && b<=100 && 1<=c && c<=100 )
    {
    if (a!=b && a!=c && b!=c)
        cout << 3;
    else if (a==b && a!=c && b!=c)
        cout << 2;
    else if (a!=b && a==c && b!=c)
        cout << 2;
    else if (a!=b && a!=c && b==c)
        cout << 2;
    else if (a==b && a==c && b==c)
        cout << 0;
    }
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> a >> b >> c;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << 3;
      |         ^~~~
a.cc:10:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout << 2;
      |         ^~~~
a.cc:12:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:9: error: 'cout' was not declared in this scope
   14 |         cout << 2;
      |         ^~~~
a.cc:14:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:9: error: 'cout' was not declared in this scope
   16 |         cout << 2;
      |         ^~~~
a.cc:16:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:9: error: 'cout' was not declared in this scope
   18 |         cout << 0;
      |         ^~~~
a.cc:18:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>

using namespace std;

int main()
{
    int a , b , c;
    cin >> a >> b >> c;
    if (1<= a, b , c <=100)
    {
    if (a!=b && a!=c && b!=c)
        cout << 3;
    else if (a==b && a!=c && b!=c)
        cout << 2;
    else if (a!=b && a==c && b!=c)
        cout << 2;
    else if (a!=b && a!=c && b==c)
        cout << 2;
    else if (a==b && a==c && b!=c)
        cout << 2;
    else if (a!=b && a==c && b==c)
        cout << 2;
    else if (a==b && a!=c && b==c)
        cout << 2;
    else if (a==b && a==c && b==c)
        cout << 0;
    }
    else
        cout <<"incorrect";

Compiler output:
a.cc: In function 'int main()':
a.cc:29:28: error: expected '}' at end of input
   29 |         cout <<"incorrect";
      |                            ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++



#include <iostream>
using namespace std;

int main()
{
    int color_11 = (cin >> (color_11), color_11),
        color_2=(cin >> (color_2), color_2),
        color_3=(cin >> (color_3), color_3);

    if ((color_11 == color_2) || (color_11 == color_3) ){
		cout << "1" ;}
    else if ((color_11 == color_2) || (color_11 == color_3) || (color_2 == color_3){
		cout << "2";}
    else{
		cout << "3";}

	
    return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:84: error: expected ';' before '{' token
   14 |     else if ((color_11 == color_2) || (color_11 == color_3) || (color_2 == color_3){
      |                                                                                    ^
      |                                                                                    ;
a.cc:16:5: error: expected primary-expression before 'else'
   16 |     else{
      |     ^~~~
a.cc:15:30: error: expected ')' before 'else'
   15 |                 cout << "2";}
      |                              ^
      |                              )
   16 |     else{
      |     ~~~~                      
a.cc:14:13: note: to match this '('
   14 |     else if ((color_11 == color_2) || (color_11 == color_3) || (color_2 == color_3){
      |             ^