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

include<stdio.h>
int main()
{
	int a,b,c;
	scanf("%d%d%d",&a,&b,&c);
	if(a==b==c)
	printf("%d\n",a);
    if(a==b&&a!=c)
    printf("%d %d\n",a,c);
    if(a==c&&a!=b)
    printf("%d %d\n",a,b);
    if(b==c&&a!=b)
    printf("%d %d\n",a,b);
    if(a!=b&&a!=c&&b!=c)
    printf("%d %d %d\n",a,b,c);
	return 0;
 } 

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C++

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

int main() {
  vector<int>color(3);
  int ans;
  ans=0;
  for(int i=0;i<3;i++){
    cin>>color.at(i);
  }
 if(color.at(0)!=color.at(1)){
   ans++;
 }
  if(color.at(1)!=color.at(2)){
    ans++;
  }
  if(color.at(1)!=color.at(2)){
    ans++;
  }
  if(color.at(0)==color.at(1)){
    if(color.at(1)==color.at(2)){
    ans++;
    }
  }

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

#include<iostream>
#include<string>
#include<algorithm>

using namespace std;

int main(){
  int a,b,c; cin>>a>>b>>c;
  int ans=3;
  if(a==b) ans-=;
  if(a==c) ans-=;
  if(b==c) ans-=;
  if(a==b && b==c) ans+=;
  cout<<ans;
  
 
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: expected primary-expression before ';' token
   10 |   if(a==b) ans-=;
      |                 ^
a.cc:11:17: error: expected primary-expression before ';' token
   11 |   if(a==c) ans-=;
      |                 ^
a.cc:12:17: error: expected primary-expression before ';' token
   12 |   if(b==c) ans-=;
      |                 ^
a.cc:13:25: error: expected primary-expression before ';' token
   13 |   if(a==b && b==c) ans+=;
      |                         ^
Language: Java

046A'

import java.util.*;

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();
Set<Integer> hs = new HashSet<>();
hs.add(a);
hs.add(b);
hs.add(c);
System.out.println(hs.size());

}
}



Compiler output:
Main.java:1: error: class, interface, enum, or record expected
046A'
^
Main.java:1: error: illegal line end in character literal
046A'
    ^
2 errors
Language: Java

046A'

import java.util.*;

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();
Set<> hs = new HashSet<>();
hs.add(a);
hs.add(b);
hs.add(c);
System.out.println(hs.size());

}
}



Compiler output:
Main.java:1: error: class, interface, enum, or record expected
046A'
^
Main.java:1: error: illegal line end in character literal
046A'
    ^
Main.java:12: error: illegal start of type
Set<> hs = new HashSet<>();
    ^
3 errors
Language: Java


import java.util.*;

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();
Set<int> hs = new HashSet<>();
hs.add(a);
hs.add(b);
hs.add(c);
System.out.println(hs.size());

}
}



Compiler output:
Main.java:11: error: unexpected type
Set<int> hs = new HashSet<>();
    ^
  required: reference
  found:    int
1 error
Language: Java

046A'

import java.util.*;

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();
HashSet<int> hs = new HashSet<>();
hs.add(a);
hs.add(b);
hs.add(c);
System.out.println(hs.size());

}
}



Compiler output:
Main.java:1: error: class, interface, enum, or record expected
046A'
^
Main.java:1: error: illegal line end in character literal
046A'
    ^
2 errors
Language: Java


import java.util.*;

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();
Set<int> hs = new HashSet<int>();
hs.add(a);
hs.add(b);
hs.add(c);
System.out.println(hs.size());

}
}

p

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

046A'

import java.util.*;

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();
HashSet<int> hs = new HashSet<int>();
hs.add(a);
hs.add(b);
hs.add(c);
System.out.println(hs.size());

}
}



Compiler output:
Main.java:1: error: class, interface, enum, or record expected
046A'
^
Main.java:1: error: illegal line end in character literal
046A'
    ^
2 errors
Language: Java

import java.util.*;

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();
HashSet< int > hs = new HashSet<int>();
hs.add(a);
hs.add(b);
hs.add(c);
System.out.println(hs.size());

}
}



Compiler output:
Main.java:10: error: unexpected type
HashSet< int > hs = new HashSet<int>();
         ^
  required: reference
  found:    int
Main.java:10: error: unexpected type
HashSet< int > hs = new HashSet<int>();
                                ^
  required: reference
  found:    int
2 errors
Language: Java

046A

import java.util.*;

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();
int total = 3;
if(a == b || a == c || b == c){
total = 2;
}
if(a == b && a == c && b == c){
total = 1;
}
System.out.println(total);

}
}



Compiler output:
Main.java:1: error: class, interface, enum, or record expected
046A
^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
int x;
map<int> a;
int main(){
  cin>>x;a[x]++;
  cin>>x;a[x]++;
  cin>>x;a[x]++;
  cout<<a.size()<<endl;
}


Compiler output:
a.cc:4:8: error: wrong number of template arguments (1, should be at least 2)
    4 | map<int> a;
      |        ^
In file included from /usr/include/c++/14/map:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:152,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_map.h:102:11: note: provided for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
  102 |     class map
      |           ^~~
a.cc: In function 'int main()':
a.cc:6:11: error: invalid types 'int[int]' for array subscript
    6 |   cin>>x;a[x]++;
      |           ^
a.cc:7:11: error: invalid types 'int[int]' for array subscript
    7 |   cin>>x;a[x]++;
      |           ^
a.cc:8:11: error: invalid types 'int[int]' for array subscript
    8 |   cin>>x;a[x]++;
      |           ^
a.cc:9:11: error: request for member 'size' in 'a', which is of non-class type 'int'
    9 |   cout<<a.size()<<endl;
      |           ^~~~
Language: C++

#include<iostream>
using namespace std;
int x;
map<int> a;
int main(){
  cin>>x;a[x]++;
  cin>>x;a[x]++;
  cin>>x;a[x]++;
  cout<<a.size()<<endl;
}

Compiler output:
a.cc:4:1: error: 'map' does not name a type
    4 | map<int> a;
      | ^~~
a.cc: In function 'int main()':
a.cc:6:10: error: 'a' was not declared in this scope
    6 |   cin>>x;a[x]++;
      |          ^
Language: C++

#include <iostream>
using namespace std;

typedef long long ll;

int main(){
    
    set<ll>S;
    for(ll i = 0; i < 3; i++){
        ll x;
        cin >> x;
        S.insert(x);
    }
    cout << S.size() << endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'set' was not declared in this scope
    8 |     set<ll>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:8:11: error: expected primary-expression before '>' token
    8 |     set<ll>S;
      |           ^
a.cc:8:12: error: 'S' was not declared in this scope
    8 |     set<ll>S;
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected primary-expression before '=' token
    7 |   if(a!==b && a!==c && b!==c){
      |         ^
a.cc:7:18: error: expected primary-expression before '=' token
    7 |   if(a!==b && a!==c && b!==c){
      |                  ^
a.cc:7:27: error: expected primary-expression before '=' token
    7 |   if(a!==b && a!==c && b!==c){
      |                           ^
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int[] data=new int[3];
    for(int i=0;i<3;i++){
      data[i]=sc.nextInt();
    }
    Arrays.sort(data);
    if(data[0]==data[1]){
      if(data[1]==data[2]){
        System.out.println(1);
      }else{
        System.out.println(2);
      }
    }else{
      if(data[1]==data[2]){
        System.out.println(2)
      }else{
        System.out.println(3);
      }
    }
  }
}

Compiler output:
Main.java:19: error: ';' expected
        System.out.println(2)
                             ^
1 error
Language: C++

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

int main() {
  int a,b;
 
  cin >> a >>b  ;
  
  
  cout << b*((b-1)^(a-1)) << endl;
  


}​

Compiler output:
a.cc:14:2: error: '\U0000200b' does not name a type
   14 | }​
      |
Language: C++

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

int main() {
  int a, b, c, cnt=0;
  cin >> a >> b >> c;
  if (a==b && b==c) {
  	cout << 1;
    return 0;
  }
  if (a!=b) cnt++;
  if (a!=c) cnt++;
  if (b!=c) cnt++;
  cout <<  << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: expected primary-expression before '<<' token
   14 |   cout <<  << 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;
    if(a =! b && a =! c) cout << 3 << endl;
    else cout << 2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: lvalue required as left operand of assignment
    7 |     if(a =! b && a =! c) 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&&a==c)cout << 1 <<endl;
    if(a =! b && a =! c && c =! b) cout << 3 << endl;
    else cout << 2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: lvalue required as left operand of assignment
    7 |     if(a =! b && a =! c && c =! b) cout << 3 << endl;
      |                     ~~~~^~~~
Language: C++

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

int main() {
  int a, b, c;
  cin >> a >> b >> c;
  int color = 3;
  if(a==b || a==c) color--;
  ir(b==c) color--;
  cout << color << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'ir' was not declared in this scope
    9 |   ir(b==c) color--;
      |   ^~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:12: error: lvalue required as left operand of assignment
    5 |   if(a=b&&a=c){
      |            ^
Language: C

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

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

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

int main(){

  map<int,int> num;
  
  rep(i,3){
    int tmp = 0;
    cin >> tmp;
    
    map[tmp]++;
  }
  
  cout << map.size();
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: conflicting declaration 'auto tmp'
   13 |     map[tmp]++;
      |         ^~~
a.cc:10:9: note: previous declaration as 'int tmp'
   10 |     int tmp = 0;
      |         ^~~
a.cc:13:13: error: expected initializer before '++' token
   13 |     map[tmp]++;
      |             ^~
a.cc:16:14: error: missing template arguments before '.' token
   16 |   cout << map.size();
      |              ^
Language: C++

#include<bits/stdc++.h>
int main(){
    map<int,int> m;
    int a,b,c;
    cin>>a>>b>>c;
    m[a]++;
    m[b]++;
    m[c]++;
    cout<<m.size()<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'map' was not declared in this scope
    3 |     map<int,int> m;
      |     ^~~
a.cc:3:5: note: suggested alternatives:
In file included from /usr/include/c++/14/map:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:152,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_map.h:102:11: note:   'std::map'
  102 |     class map
      |           ^~~
/usr/include/c++/14/map:89:13: note:   'std::pmr::map'
   89 |       using map
      |             ^~~
a.cc:3:9: error: expected primary-expression before 'int'
    3 |     map<int,int> m;
      |         ^~~
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin>>a>>b>>c;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:5: error: 'm' was not declared in this scope
    6 |     m[a]++;
      |     ^
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout<<m.size()<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     cout<<m.size()<<endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<stdc.h++>
int main(){
    map<int,int> m;
    int a,b,c;
    cin>>a>>b>>c;
    m[a]++;
    m[b]++;
    m[c]++;
    cout<<m.size()<<endl;
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: 'class std::set<int>' has no member named 'push'
    9 |   colors.push(a);
      |          ^~~~
a.cc:10:10: error: 'class std::set<int>' has no member named 'push'
   10 |   colors.push(b);
      |          ^~~~
a.cc:11:10: error: 'class std::set<int>' has no member named 'push'
   11 |   colors.push(c);
      |          ^~~~
Language: C++

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

int main() {
  int a, b, c;
  cin >> a >> b >> c;
  
  set<int> colors;
  set.push(a);
  set.push(b);
  set.push(c);
  
  cout << set.size() << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: expected unqualified-id before '.' token
    9 |   set.push(a);
      |      ^
a.cc:10:6: error: expected unqualified-id before '.' token
   10 |   set.push(b);
      |      ^
a.cc:11:6: error: expected unqualified-id before '.' token
   11 |   set.push(c);
      |      ^
a.cc:13:14: error: missing template arguments before '.' token
   13 |   cout << set.size() << endl;
      |              ^
Language: C++

#include<iostream>
using namespace std; 


int main() {

  int a,b,c ; cin >> a >> b >> c ;
  
  if ( a==b and b==c ) cout << 1 ; 
  else if (a!=b and b!=c and a!c)  cout << 3 ;
  else cout << 2 ;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:31: error: expected ')' before '!' token
   10 |   else if (a!=b and b!=c and a!c)  cout << 3 ;
      |           ~                   ^
      |                               )
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) && (a != c) && (b != c)) {
    cout << 3 << endl;
  }
  else {
    cout << 2 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected '}' before 'else'
   11 |   else if ((a != b) && (a != c) && (b != c)) {
      |   ^~~~
a.cc:8:28: note: to match this '{'
    8 |   if ((a == b) && (a == c)){
      |                            ^
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;
  }
  if else ((a != b) && (a != c) && (b != c)) {
    cout << 3 << endl;
  }
  else {
    cout << 2 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: expected '(' before 'else'
   11 |   if else ((a != b) && (a != c) && (b != c)) {
      |      ^~~~
      |      (
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else {
      |   ^~~~
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;
  }
  if else ((a != b) && (a != c) && (b != c)) {
    cout << 3 << endl;
  }
  else {
    cout << 2 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: expected ';' before 'if'
    7 |   cin >> a >> b >> c
      |                     ^
      |                     ;
    8 | 
    9 |   if ((a == b) && (a == c)){
      |   ~~                 
a.cc:12:6: error: expected '(' before 'else'
   12 |   if else ((a != b) && (a != c) && (b != c)) {
      |      ^~~~
      |      (
a.cc:15:3: error: 'else' without a previous 'if'
   15 |   else {
      |   ^~~~
Language: C++

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

int a, b, c;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:6: error: expected '(' before 'else'
   14 |   if else ((a != b) && (a != c) && (b != c)) {
      |      ^~~~
      |      (
a.cc:17:3: error: 'else' without a previous 'if'
   17 |   else {
      |   ^~~~
Language: C++

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

int a, b, c;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: expected '(' before 'else'
   11 |   if else ((a != b) && (a != c) && (b != c)) {
      |      ^~~~
      |      (
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else {
      |   ^~~~
Language: C++

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

int a, b, c;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: expected '(' before 'else'
   11 |   if else ((a != b) && (a != c)) {
      |      ^~~~
      |      (
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else {
      |   ^~~~
Language: C++

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

int a, b, c;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: expected '(' before 'else'
   11 |   if else (a != b && a != c) {
      |      ^~~~
      |      (
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else {
      |   ^~~~
Language: C

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>

int main()
{
	scanf("&d\n",a);
		scanf("&d\n", b);
		scanf("&d\n", c);

    if (a == b == c) {
			
		printf("1\n");

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

	

}



Compiler output:
main.c: In function 'main':
main.c:7:22: error: 'a' undeclared (first use in this function)
    7 |         scanf("&d\n",a);
      |                      ^
main.c:7:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:31: error: 'b' undeclared (first use in this function)
    8 |                 scanf("&d\n", b);
      |                               ^
main.c:9:31: error: 'c' undeclared (first use in this function)
    9 |                 scanf("&d\n", c);
      |                               ^
Language: C

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>

int main()
{
	scanf("&d\n",a)
		scanf("&d\n", b)
		scanf("&d\n", c)

    if (a == b == c) {
			
		printf("1\n");

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

	

}



Compiler output:
main.c: In function 'main':
main.c:7:22: error: 'a' undeclared (first use in this function)
    7 |         scanf("&d\n",a)
      |                      ^
main.c:7:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:24: error: expected ';' before 'scanf'
    7 |         scanf("&d\n",a)
      |                        ^
      |                        ;
    8 |                 scanf("&d\n", b)
      |                 ~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
  
int main() {
  vector(int) x(3);
  cin>>x.at(0)>>x.at(1)>>x.at(2);
  sort(x.begin(), x.end());
  
  if(x.at(0)!=x.at(1)){
    cout<<3<<endl;
  }
  if(x.at(0)==x.at(1) && x.at(0)!=x.at(2)){
    cout<<2<<endl;
  }
  if(x.at(0)==x.at(1) && x.at(0)==x.at(2)){
    cout<<1<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: missing template arguments before '(' token
    5 |   vector(int) x(3);
      |         ^
a.cc:5:10: error: expected primary-expression before 'int'
    5 |   vector(int) x(3);
      |          ^~~
a.cc:6:8: error: 'x' was not declared in this scope
    6 |   cin>>x.at(0)>>x.at(1)>>x.at(2);
      |        ^
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:8:21: error: lvalue required as left operand of assignment
    8 |   }else if(a==b||b=c||c=a){
      |                    ~^~~
Language: C++

#include <iostream>
#include <cstdlib>
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>
#include <cassert>
#include <functional>
#include <string>
#include <sstream>
#include <cctype>
using namespace std;


int main(){
  int A, B, C;
  cin >> A >> B >> C;
  int ans = 3;
  if(A == B && B == C) ans = 1;
  else if(A == B) ams = 2;
  else if(B == C) ans = 2;
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:19: error: 'ams' was not declared in this scope; did you mean 'ans'?
   20 |   else if(A == B) ams = 2;
      |                   ^~~
      |                   ans
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> l_l;
typedef pair<int, int> i_i;
template<class T>
inline bool chmax(T &a, T b) {
    if(a < b) {
        a = b;
        return true;
    }
    return false;
}

template<class T>
inline bool chmin(T &a, T b) {
    if(a > b) {
        a = b;
        return true;
    }
    return false;
}

#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
//const ll mod = 1000000007;

int main() {
    //cout.precision(10);
    cin.tie(0);
    ios::sync_with_stdio(false);
    set<int> st;
  for(int i=0;i<3;i++) {
    int a;
    cin>>a;
    st.insert(a);
  }
  cout<<a.size()<<endl;
    return 0;
}


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'unorderded_set' was not declared in this scope
    7 |         unorderded_set<int> s;
      |         ^~~~~~~~~~~~~~
a.cc:7:24: error: expected primary-expression before 'int'
    7 |         unorderded_set<int> s;
      |                        ^~~
a.cc:9:9: error: 's' was not declared in this scope
    9 |         s.insert(a);
      |         ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'unorderded_set' was not declared in this scope
    7 |         unorderded_set s;
      |         ^~~~~~~~~~~~~~
a.cc:9:9: error: 's' was not declared in this scope
    9 |         s.insert(a);
      |         ^
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <cmath> //abs();
using namespace std;
 
int main(void)
{
    int x[10],cnt=1;
  
    cin >> x[0] >> x[1] >> x[2];
    
    sort(x,x+3);
  
    for(i=0;i<3;i++){
        if(x[i]!=x[0]) cnt++;
    }
    cout << cnt;
    return 0;
}

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

#include<iostream>
#include<stdio.h>
#include<math.h>
#include<algorithm>
#include<vector>
#include<cstdlib>
#include<map>
#include<fstream>
#include<string>
#include<sstream>
#include<iomanip>
#include<iostream>
#include<numeric>
#include<cctype>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:20:13: error: redeclaration of 'int c'
   20 |         int c = 1;
      |             ^
a.cc:18:19: note: 'int c' previously declared here
   18 |         int a, b, c;
      |                   ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:1: error: expected primary-expression before ']' token
   13 | ]
      | ^
a.cc:13:2: error: expected '}' at end of input
   13 | ]
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
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 || a==c || b==c){
    cout<<2<<endl;
  }
  else{
    cout<<3<<endl;
  }
}


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

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


Compiler output:
a.cc:3:1: error: 'main' does not name a type
    3 | main int{
      | ^~~~
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 || a==c || b==c){
    cout<<2<<endl;
  }
  else{
    cout<<3<<endl;
  }
}

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

//  Created by liszt on 2019/08/01.
#include<bits/stdc++.h>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected ')' before '!' token
    8 |     if(a!b&&b!c&&c!a){
      |       ~ ^
      |         )
Language: C++

//  Created by liszt on 2019/08/01.
#include<bits/stdc++.h>
using namespace std;

int main(){
    int a,b,c,d[101],cnt;
    cin>>a >>b >>c;
    d[a]=1;
    d[b]=1;
    d[c]=1;
    
    for(int i=0;i<n;i++){
        if(d[i]>0)cnt++;
    }
    
    cout<<cnt<<endl;
    return 0;
}

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

#include "bits/stdc++.h"

using namespace std;

int main() {
    /*int a,b,h,s;
    cin >> a >> b >> h;
    
    s=(a+b)*h/2;
    
    cout << s << endl;*/
    
    /*int N,A,B;
    cin >> N >> A;
    B=N*N-A;
    
    cout << B << endl;*/
    
   /* int A,B,C,D,s1,s2;
    cin >> A >> B >> C >> D;
    
    s1=A*B;
    s2=C*D;
    
    if(s1>s2){
        cout << s1 << endl;
    }
    else if(s1<s2){
        cout << s2 << endl;
    }
    else{
        cout << s1 << endl;
    }*/
    
    int a,b,c,s;
    cin >> a >> b >> c;
    
    s=0;
    if(a!=b){
        s=s+1
    }
    if(a!=c){
        s=s+1;
    }
    if(b!=c){
        s=s+1;
    }
    
    cout << s << endl;
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:40:14: error: expected ';' before '}' token
   40 |         s=s+1
      |              ^
      |              ;
   41 |     }
      |     ~
Language: C++

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

int main() {
  int a, b, c, i=3;
  cin >>a >>b >>c ;

  if(a==b) i--1;
  if(a==c) i--1;
  else if(b==c)i--1
   cout << "i" << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: expected ';' before numeric constant
    8 |   if(a==b) i--1;
      |               ^
      |               ;
a.cc:9:15: error: expected ';' before numeric constant
    9 |   if(a==c) i--1;
      |               ^
      |               ;
a.cc:10:19: error: expected ';' before numeric constant
   10 |   else if(b==c)i--1
      |                   ^
      |                   ;
Language: Java

import java.util.Scanner;

public class  AtCoDeerAndPaintCans{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in); //台形の面積を求める
        int a = sc.nextInt(); //ペンキa
        int b = sc.nextInt(); //ペンキb
        int c = sc.nextInt(); //ペンキc
        
        if(a == b && b == c){
            System.out.println(1);
        }
        else if(a != b && b != c && a != c){
            System.out.println(3);
        }
        else{
            System.out.println(2);
        }
    }     
}


Compiler output:
Main.java:3: error: class AtCoDeerAndPaintCans is public, should be declared in a file named AtCoDeerAndPaintCans.java
public class  AtCoDeerAndPaintCans{
       ^
1 error
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(); //ペンキa
        int b = sc.nextInt(); //ペンキb
        int c = sc.nextInt(); //ペンキc
        
        if(a == b && b == c){
            System.out.println(1);
        }
        else if(a != b && b !=c　&& a != c){
            System.out.println(3);
        }
        else{
            System.out.println(2);
        }
    }     
}


Compiler output:
Main.java:14: error: illegal character: '\u3000'
        else if(a != b && b !=c?&& a != c){
                               ^
Main.java:14: error: not a statement
        else if(a != b && b !=c?&& a != c){
                                     ^
Main.java:14: error: ';' expected
        else if(a != b && b !=c?&& a != c){
                                         ^
Main.java:17: error: 'else' without 'if'
        else{
        ^
4 errors
Language: C++

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

int main(){
  int a[3];
  cin >> a[0] >> a[1] >> a[2];
  
  int ans=0;
  sort(a.begin(),a.end());
  
  if(a[0]==a[2]){
    ans=1;
  }else if(a[0]==a[1]||a[1]==a[2]){
    ans=2;
  }else{
    ans=3;
  }
  
  return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: request for member 'begin' in 'a', which is of non-class type 'int [3]'
    9 |   sort(a.begin(),a.end());
      |          ^~~~~
a.cc:9:20: error: request for member 'end' in 'a', which is of non-class type 'int [3]'
    9 |   sort(a.begin(),a.end());
      |                    ^~~
Language: C++

#include <bits/stdc++.h>
#define ALL(v) v.begin(), v.end()
#define RALL(a) (a).rbegin(), (a).rend()
#define SORT(c) sort((c).begin(),(c).end())
#define dbug(x) cout<<#x<<"="<<x<<endl
#define m0(x) memset(x,0,sizeof(x))
#define rep(i, n) for(int i = 0; i < n; i++)
#define repr(i, n) for(int i = n; i >= 0; i--)
#define reps(i, m, n) for(int i = m; i < n; i++)
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))

using namespace std;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int, int> pii;
typedef long long ll;
typedef pair<ll, ll> pl;

template<typename T>
istream& operator >> (istream& is, vector<T>& vec){
  for(T& x: vec) is >> x;
  return is;
}

int man(){

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

  if(a==b){
    if(a==c)return 1;
    return 2;
  }
  if(a==c||b==c) return 2;
  return 3;
}
int main{

  std::cout << man() << '\n';
}


Compiler output:
a.cc:39:5: error: cannot declare '::main' to be a global variable
   39 | int main{
      |     ^~~~
a.cc:41:29: error: expected '}' before ';' token
   41 |   std::cout << man() << '\n';
      |                             ^
a.cc:39:9: note: to match this '{'
   39 | int main{
      |         ^
a.cc:41:22: error: invalid user-defined conversion from 'std::basic_ostream<char>' to 'int' [-fpermissive]
   41 |   std::cout << man() << '\n';
      |   ~~~~~~~~~~~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/istream:40,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_ios.h:121:16: note: candidate is: 'std::basic_ios<_CharT, _Traits>::operator bool() const [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
  121 |       explicit operator bool() const
      |                ^~~~~~~~
/usr/include/c++/14/bits/basic_ios.h:121:16: note:   return type 'bool' of explicit conversion function cannot be converted to 'int' with a qualification conversion
a.cc:42:1: error: expected declaration before '}' token
   42 | }
      | ^
Language: Java

import java.util.*;

public class Main {
  public static void main() {
    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 && c != b ||
             b == c && a != b) {
      Sytem.out.println(2);
    }else {
      Sytem.out.println(3);
    }
  }
}


Compiler output:
Main.java:11: error: incomparable types: boolean and int
    if (a == b == c) {
               ^
Main.java:16: error: package Sytem does not exist
      Sytem.out.println(2);
           ^
Main.java:18: error: package Sytem does not exist
      Sytem.out.println(3);
           ^
3 errors
Language: Java

import java.util.*;

public class Main {
  public static void main() {
    Scanner sc = new Scanner();
    
    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 && c != b ||
             b == c && a != b) {
      Sytem.out.println(2);
    }else {
      Sytem.out.println(3);
    }
  }
}

Compiler output:
Main.java:5: 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)
Main.java:11: error: incomparable types: boolean and int
    if (a == b == c) {
               ^
Main.java:16: error: package Sytem does not exist
      Sytem.out.println(2);
           ^
Main.java:18: error: package Sytem does not exist
      Sytem.out.println(3);
           ^
4 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef unsigned long long int ll;
const int INF = 1<<30;

int main(){
  map<int> mp;
  for(int i=0;i<3;i++){
    int a;cin>>a;
    mp[a]++;
  }
  cout<<(int)mp.size()<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: wrong number of template arguments (1, should be at least 2)
    7 |   map<int> mp;
      |          ^
In file included from /usr/include/c++/14/map:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:152,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_map.h:102:11: note: provided for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
  102 |     class map
      |           ^~~
a.cc:10:7: error: invalid types 'int[int]' for array subscript
   10 |     mp[a]++;
      |       ^
a.cc:12:17: error: request for member 'size' in 'mp', which is of non-class type 'int'
   12 |   cout<<(int)mp.size()<<endl;
      |                 ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define REP(i, n) for(int i = 0; i < (int)n; i++)
const int MOD = 1000000007;
// long long a;
int main(){
  int a,b,c;
  cin >> a>>b>> c;
  int Max = max(a,max(b,c));
  int Min = min(a,min(b,c));
  int Mid = a + b+ c - Max -Min;
  if(Max == Min) cout << 1 << endl;
  else(Max == Mid || Mid == Min) cout << 2 << endl;
  else cout << 3 << endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:33: error: expected ';' before 'cout'
   13 |   else(Max == Mid || Mid == Min) cout << 2 << endl;
      |                                 ^~~~~
      |                                 ;
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else cout << 3 << endl;
      |   ^~~~
Language: Java

import java.util.*;
 
public class Main{
 
	public static void main(String[] args) {
		Scanner sc= new Scanner(System.in);
		Hashset set = new HashSet();
		set.add(sc.nextInt());
		set.add(sc.nextInt());
		set.add(sc.nextInt());
		System.out.println(set.size());
	}
}

Compiler output:
Main.java:7: error: cannot find symbol
		Hashset set = new HashSet();
		^
  symbol:   class Hashset
  location: class Main
1 error
Language: Java

import java.util.Sccaner;
import java.util.Hashset;
 
public class Main{
 
	public static void main(String[] args) {
		Scanner sc= new Scanner(System.in);
		Hashset set = new Hashset();
		set.add(sc.nextInt());
		set.add(sc.nextInt());
		set.add(sc.nextInt());
		System.out.println(set.size());
	}
}

Compiler output:
Main.java:1: error: cannot find symbol
import java.util.Sccaner;
                ^
  symbol:   class Sccaner
  location: package java.util
Main.java:2: error: cannot find symbol
import java.util.Hashset;
                ^
  symbol:   class Hashset
  location: package java.util
Main.java:7: error: cannot find symbol
		Scanner sc= new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
		Scanner sc= new Scanner(System.in);
		                ^
  symbol:   class Scanner
  location: class Main
Main.java:8: error: cannot find symbol
		Hashset set = new Hashset();
		^
  symbol:   class Hashset
  location: class Main
Main.java:8: error: cannot find symbol
		Hashset set = new Hashset();
		                  ^
  symbol:   class Hashset
  location: class Main
6 errors
Language: Java

import java.util.Sccaner;
import java.util.Hasnset;
 
public class Main{
 
	public static void main(String[] args) {
		Scanner sc= new Scanner(System.in);
		Hashset set = new Hashset();
		set.add(sc.nextInt());
		set.add(sc.nextInt());
		set.add(sc.nextInt());
		System.out.println(set.size());
	}
}

Compiler output:
Main.java:1: error: cannot find symbol
import java.util.Sccaner;
                ^
  symbol:   class Sccaner
  location: package java.util
Main.java:2: error: cannot find symbol
import java.util.Hasnset;
                ^
  symbol:   class Hasnset
  location: package java.util
Main.java:7: error: cannot find symbol
		Scanner sc= new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
		Scanner sc= new Scanner(System.in);
		                ^
  symbol:   class Scanner
  location: class Main
Main.java:8: error: cannot find symbol
		Hashset set = new Hashset();
		^
  symbol:   class Hashset
  location: class Main
Main.java:8: error: cannot find symbol
		Hashset set = new Hashset();
		                  ^
  symbol:   class Hashset
  location: class Main
6 errors
Language: Java

import java.util.*;
 
public class Main{
 
	public static void main(String[] args) {
		Scanner sc= new Scanner(System.in);
		Hashset set = new Hashset();
		set.add(sc.nextInt());
		set.add(sc.nextInt());
		set.add(sc.nextInt());
		System.out.println(set.size());
	}
}

Compiler output:
Main.java:7: error: cannot find symbol
		Hashset set = new Hashset();
		^
  symbol:   class Hashset
  location: class Main
Main.java:7: error: cannot find symbol
		Hashset set = new Hashset();
		                  ^
  symbol:   class Hashset
  location: class Main
2 errors
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';
  if else(a!=b&&b!=c&&c!=a)
    cout <<'3';
  else
    cout <<'2';
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: expected '(' before 'else'
    9 |   if else(a!=b&&b!=c&&c!=a)
      |      ^~~~
      |      (
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else
      |   ^~~~
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';
  if else(a==b||a==c||b==c)
    cout <<'2';
  else
    cout <<'3';
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: expected '(' before 'else'
    9 |   if else(a==b||a==c||b==c)
      |      ^~~~
      |      (
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else
      |   ^~~~
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';
  else(a==b||a==c||b==c)
    cout <<'2';
  else
    cout <<'3';
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: expected ';' before 'cout'
    9 |   else(a==b||a==c||b==c)
      |                         ^
      |                         ;
   10 |     cout <<'2';
      |     ~~~~                 
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else
      |   ^~~~
Language: C++

#include<cstdio>
int main(){
  int a[2];
  scanf("%d %d %d", &a[0], &a[1], &a[2]);
  
  for(int i=0; i<3; i++){
    int tmp, n=0;
    if(tmp = a[[i]){
      n++;
    }
    print("%d", n);
  }
  return 0;
}               

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: two consecutive '[' shall only introduce an attribute before '[' token
    8 |     if(tmp = a[[i]){
      |               ^
a.cc:8:15: error: expected ')' before '[' token
    8 |     if(tmp = a[[i]){
      |       ~       ^
      |               )
a.cc:11:5: error: 'print' was not declared in this scope; did you mean 'printf'?
   11 |     print("%d", n);
      |     ^~~~~
      |     printf