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

#include<iostream>
using namespace std;

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

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

#include <iostream>
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 << 3 << endl;
	}else if{
		cout << 2 << endl;
	}
	return 0;
}

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:19: error: 'C' was not declared in this scope
   16 |   }else if (a!=b!=C){
      |                   ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: expected primary-expression before '||' token
    8 |   if(a == b)||(b == c)||(a == c)
      |             ^~
a.cc:10:15: error: expected identifier before '(' token
   10 |   if(a == b)&&(b == c)&&(a == c)
      |               ^
Language: C

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

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

Compiler output:
main.c:15:6: error: expected identifier or '(' before 'else'
   15 |     }else if (a!=b&&a!=c&&b!=c){
      |      ^~~~
main.c:19:5: error: expected identifier or '(' before 'return'
   19 |     return 0;
      |     ^~~~~~
main.c:20:1: error: expected identifier or '(' before '}' token
   20 | }
      | ^
Language: C++

sed 's/ /\n/g' | sort -u | wc -l

Compiler output:
a.cc:1:5: warning: multi-character literal with 7 characters exceeds 'int' size of 4 bytes
    1 | sed 's/ /\n/g' | sort -u | wc -l
      |     ^~~~~~~~~~
a.cc:1:1: error: 'sed' does not name a type
    1 | sed 's/ /\n/g' | sort -u | wc -l
      | ^~~
Language: C

#include <stdio.h>

int main(void)
{int i,h,a,b,c,k,l,m,N,K,j,v,g,flag,sum;
	int a[3];
scanf("%d%d%d",&a[0],&a[1],&a[2]);
if(((a[0]==a[1])&&(a[1]!=a[2]))||((a[0]==a[2])&&(a[0]!=a[1]))||((a[1]==a[2])&&(a[1]!=a[0])))
printf("%d",2);
else if((a[0]==a[1])&&(a[1]==a[2]))
printf("%d",3);
else printf("%d",1);

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:13: error: conflicting types for 'a'; have 'int[3]'
    5 |         int a[3];
      |             ^
main.c:4:10: note: previous declaration of 'a' with type 'int'
    4 | {int i,h,a,b,c,k,l,m,N,K,j,v,g,flag,sum;
      |          ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:14: error: lvalue required as left operand of assignment
    6 |   if(a=b && b=c) p=1;
      |              ^
Language: C++

// ------------------------------------
// Date:2018/ 2/23
// Problem:ABC 046 AtCoDeerAndPaintCans a.cpp
//
// ------------------------------------

#include <bits/stdc++.h>

using namespace std;

#define EACH(i,a) for (auto&& i : a)
#define FOR(i,a,b) for(int i=(int)a;i<(int)b;++i)
#define RFOR(i,a,b) for(int i=(int)b-1;i>=(int)a;--i)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) RFOR(i,0,n)
#define ALL(a) (a).begin(),(a).end()

using ll = long long;

#define MOD 1000000007

int main()
{
  vector<int> n(3);
  REP(i,n) cin >> n[i];
  sort(ALL(n));
  n.erase(unique(ALL(n)));
  cout << n.size() << endl;
  
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:39: error: invalid cast from type 'std::vector<int>' to type 'int'
   12 | #define FOR(i,a,b) for(int i=(int)a;i<(int)b;++i)
      |                                       ^
a.cc:14:18: note: in expansion of macro 'FOR'
   14 | #define REP(i,n) FOR(i,0,n)
      |                  ^~~
a.cc:25:3: note: in expansion of macro 'REP'
   25 |   REP(i,n) cin >> n[i];
      |   ^~~
Language: C++


#include <iostream>
using namespace std;

int main(){
  int a,b,c,Answer = 0,checks[100];
  for (int j = 0 ; j < 100 ; j++){
    checks[j - 1] = 0;
  }
  cin >> a >> b >> c;
  checks[a - 1] = 1 ; checks[b - 1] = 1 ; checks[c - 1] = 1
  for (int j = 0 ; j < 100 ; j++){
    if (checks[j] != 0){
      Answer ++;
    }
  }
  cout << Answer <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:60: error: expected ';' before 'for'
   11 |   checks[a - 1] = 1 ; checks[b - 1] = 1 ; checks[c - 1] = 1
      |                                                            ^
      |                                                            ;
   12 |   for (int j = 0 ; j < 100 ; j++){
      |   ~~~                                                       
a.cc:12:20: error: 'j' was not declared in this scope
   12 |   for (int j = 0 ; j < 100 ; j++){
      |                    ^
Language: C++

#include <iostream>
using namespace std;

int main(){
  int a,b,c,Answer = 0,checks[100];
  for (int j == 0 ; j < 100 ; j++){
    checks[j - 1] = 0;
  }
  cin >> a >> b >> c;
  checks[a - 1] = 1 ; checks[b - 1] = 1 ; checks[c - 1] = 1
  for (int j == 0 ; j < 100 ; j++){
    if (checks[j] != 0){
      Answer ++;
    }
  }
  cout << Answer <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected ';' before '==' token
    6 |   for (int j == 0 ; j < 100 ; j++){
      |             ^~~
      |             ;
a.cc:6:14: error: expected primary-expression before '==' token
    6 |   for (int j == 0 ; j < 100 ; j++){
      |              ^~
a.cc:6:28: error: expected ')' before ';' token
    6 |   for (int j == 0 ; j < 100 ; j++){
      |       ~                    ^~
      |                            )
a.cc:6:31: error: 'j' was not declared in this scope
    6 |   for (int j == 0 ; j < 100 ; j++){
      |                               ^
a.cc:10:60: error: expected ';' before 'for'
   10 |   checks[a - 1] = 1 ; checks[b - 1] = 1 ; checks[c - 1] = 1
      |                                                            ^
      |                                                            ;
   11 |   for (int j == 0 ; j < 100 ; j++){
      |   ~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  int a,b,c,Answer;
  int memo[101]
  cin >> a >> b >> c;

  memo[a] = 1;memo [b] = 1;memo[c] = 1;
  for(int j = 0;j < 102 ; j++){
    if (memo[j] == 1){
      Answer ++;
    }
  }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'cin'
    7 |   cin >> a >> b >> c;
      |   ^~~
a.cc:9:3: error: 'memo' was not declared in this scope
    9 |   memo[a] = 1;memo [b] = 1;memo[c] = 1;
      |   ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  int a,b,c,Answer;
  int memo[101]
  cin >> a >> b >> c;

  memo[a] = 1;memo [b] = 1;memo[c] = 1;
  for(int j = 0;j < 102 ; j++){
    if (memo[j] == 1){
      Answer ++;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'cin'
    7 |   cin >> a >> b >> c;
      |   ^~~
a.cc:9:3: error: 'memo' was not declared in this scope
    9 |   memo[a] = 1;memo [b] = 1;memo[c] = 1;
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
// #include "bits/stdc++.h"

#define rep(i,a,n) for (int i = a;i < n;i++)
#define per(i,n,a) for (int i = n-1;i >= a;i--)
 
typedef long long ll;
using namespace std;
 
int main(){
  int a,b,c;
  cin >> a >> b >> c;

  if(a==b){
    if(b==c){
      printf("1\n");
      }else{
        printf("2\n");
      }
  }else{
    if(b==c){
      printf("2\n");
      }else if(a==c){
        printf("2\n");
        }else{
          printf("3\n");
        }
  return 0;
}

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

#include <stdio.h>
main() {

char str[100];
int a,b;
printf("色の種類\n");
scanf("%s",str);

b=0;
for(a=0;str[a];a++) {
if(str[i]=='a') {
j++;
}
}

printf("b=%d",b);
}


Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main() {
      | ^~~~
main.c: In function 'main':
main.c:11:8: error: 'i' undeclared (first use in this function)
   11 | if(str[i]=='a') {
      |        ^
main.c:11:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:1: error: 'j' undeclared (first use in this function)
   12 | j++;
      | ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int s,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;
 }
  return 0;
}

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

#include<stdio.h>
 
int main(void){
    int i=0,count=0,p;
    int str[10001];
    printf(" ");
    scanf("%s",str);
    while(str[i]=='p'||str[i]=='q'){
        i++;
        if(str[i]==112){
            count++;
        }
    }
    p=i/2;
    printf("%d\n",p-count);
return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:1: error: 'return0' was not declared in this scope
   16 | return0;
      | ^~~~~~~
Language: C++

# -*- coding: utf-8 -*-
import math
import sys
import itertools
import numpy as np
import functools
import collections
mo = 1000000007
INF = 10**100
r = range

class infix(object):
    def __init__(self, function):
        self.function = function

    def __ror__(self, other):
        self.left = other
        return self

    def __or__(self, other):
        return self.function(self.left, other)

    def __call__(self, value1, value2):
        return self.function(value1, value2)

@infix
def c(f_t_u, f_u_r): return lambda t: f_u_r(f_t_u(t))

class _Ap(object):
    def __rlshift__(self, other):
        self.value = other
        return self

    def __rshift__(self, other):
        return other(self.value)
Ap = _Ap()
ap = Ap

#d = {1:2, 3:5, 6:10, 1000043:3814}
#zip(d.keys(), d.values())<<ap>>(list |c| sorted |c| reversed |c| list |c| print)



a = map(int,input().split())<<ap>>(sorted)
if a[0] == a[1] and a[1] == a[2]:
    print(1);
elif a[0] != a[1] and a[1] != a[2]:
    print(3);
else:
    print(2);



Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8 -*-
      |   ^
a.cc:26:1: error: stray '@' in program
   26 | @infix
      | ^
a.cc:39:2: error: invalid preprocessing directive #d
   39 | #d = {1:2, 3:5, 6:10, 1000043:3814}
      |  ^
a.cc:40:2: error: invalid preprocessing directive #zip
   40 | #zip(d.keys(), d.values())<<ap>>(list |c| sorted |c| reversed |c| list |c| print)
      |  ^~~
a.cc:2:1: error: 'import' does not name a type
    2 | import math
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:47:1: error: 'elif' does not name a type
   47 | elif a[0] != a[1] and a[1] != a[2]:
      | ^~~~
a.cc:49:1: error: expected unqualified-id before 'else'
   49 | else:
      | ^~~~
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==b && b!=c)
cout<<"2";
else
cout<<"3";
}


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: redeclaration of 'int c'
    5 | int a,b,c,c=0;
      |           ^
a.cc:5:9: note: 'int c' previously declared here
    5 | int a,b,c,c=0;
      |         ^
a.cc:6:13: error: expected ';' before 'if'
    6 | cin>>a>>b>>c
      |             ^
      |             ;
    7 | if(a==b && b==c)
      | ~~           
a.cc:9:1: error: 'else' without a previous 'if'
    9 | else
      | ^~~~
Language: C

#include <stdio.h>
int main(void)
{
  int c[30]={0};
  char x[200]={0};
  scanf("%d %d %d", c+0,c+1,c+2);
  for(int *color=c; *color!=0; ++color){
    if(x[*color]++==0){
      ++count;
    }
  }
  printf("%d\n", count);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:9: error: 'count' undeclared (first use in this function)
    9 |       ++count;
      |         ^~~~~
main.c:9:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

using namespace std;
int hako[111];
int main(){
int a,b,c;
cin>>a>>b>>c;
hako[a]=1;
hako[b]=1;
hako[c]=1;
a=0;
for(int i=0;i<111;i++){
a+=hako[i];
}
cout<<a<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | 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:13:1: error: 'cout' was not declared in this scope
   13 | cout<<a<<endl;
      | ^~~~
a.cc:13:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:10: error: 'endl' was not declared in this scope
   13 | cout<<a<<endl;
      |          ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

int hako[111];
int main(){
int a,b,c;
std::cin>>a>>b>>c;
hako[a]=1;
hako[b]=1;
hako[c]=1;
a=0;
for(int i=0;i<111;i++){
a+=hako[i];
}
std::cout<<a<<std::endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:6: error: 'cin' is not a member of 'std'
    4 | std::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 | int hako[111];
a.cc:12:6: error: 'cout' is not a member of 'std'
   12 | std::cout<<a<<std::endl;
      |      ^~~~
a.cc:12:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:20: error: 'endl' is not a member of 'std'
   12 | std::cout<<a<<std::endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | int hako[111];
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main (){
    int N,K;
    cin >>N >>K;
    int ans = K
    for (int i=0; i<N-1;i++){
          ans = ans * (K-1);
    }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: expected ',' or ';' before 'for'
    9 |     for (int i=0; i<N-1;i++){
      |     ^~~
a.cc:9:19: error: 'i' was not declared in this scope
    9 |     for (int i=0; i<N-1;i++){
      |                   ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: expected ')' before 'b'
    9 |   } else if(a == b  b == c || a == c) {
      |            ~      ^ ~
      |                   )
Language: C++

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


int main()
{
	int a[3];
	cin >> a[0] >> a[1] >> a[2];
	sort(a, a + 3);
	int n = 3;
	if (a[1] == a[2]) {
		n = n - 1;
	}
	if(a[0]==a[1])
	{
		n = n - 1;
	}
	cout << n << endl;
	return 0;
}


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

#include <iostream>
using namespace std;
int main(void){
    int a,c,b=1,d;
    cin>>a;
    cin>>c;
    if(c!=a){
        b++;
    }
    cin>>d;
    if(d!=a&&d!=c){
        b++;
    }
    }
    cout<<b<<endl;
    
}


Compiler output:
a.cc:15:5: error: 'cout' does not name a type
   15 |     cout<<b<<endl;
      |     ^~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

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

typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<double> vd;
typedef vector<vd> vvd;
typedef vector<vvd> vvvd;
typedef pair<int, int> pii;
typedef vector<pii> vpii;

#define LL long long;
#define REP(i,s,N) for (int i=s; i<N; i++)

int main() {
	vi a(3,0);
	int ans = 1;
	REP(i,0,3) cin >> vi[i];
	sort(vi.begin(), vi.end());
	if(vi[0]!=vi[1]) ans++;
	if(vi[1]!=vi[2]) ans++;
	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:29: error: expected primary-expression before '[' token
   18 |         REP(i,0,3) cin >> vi[i];
      |                             ^
a.cc:19:16: error: expected primary-expression before '.' token
   19 |         sort(vi.begin(), vi.end());
      |                ^
a.cc:19:28: error: expected primary-expression before '.' token
   19 |         sort(vi.begin(), vi.end());
      |                            ^
a.cc:20:14: error: expected unqualified-id before '[' token
   20 |         if(vi[0]!=vi[1]) ans++;
      |              ^
a.cc:21:14: error: expected unqualified-id before '[' token
   21 |         if(vi[1]!=vi[2]) ans++;
      |              ^
Language: C++

import std.algorithm,
       std.string,
       std.array,
       std.range,
       std.stdio,
       std.conv;

void main() {
  readln.chomp.split.to!(int[]).sort!"a<b".uniq.array.length.writeln;
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import std.algorithm,
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:8:1: error: '::main' must return 'int'
    8 | void main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:3: error: 'readln' was not declared in this scope
    9 |   readln.chomp.split.to!(int[]).sort!"a<b".uniq.array.length.writeln;
      |   ^~~~~~
Language: C++

import java.util.*;
public class Main {
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int sum =3;
		if(a == b) sum-=1;
		if(a == c) sum-=1;
		if(b == c) sum-=1;
		System.out.println(sum);
	}
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int sum =3;
		if(a == b) sum-=1;
		if(a == c) sum-=1;
		if(b == c) sum-=1;
		System.out.println(sum);
	}
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: Java

import java.util.*;
public class Main {
public class A_AtCoDeerandPaintCans {
	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 || a == c){
			System.out.println(2);
		}else{
			System.out.println(3);
		}
	}
}


Compiler output:
Main.java:17: error: reached end of file while parsing
}
 ^
1 error
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 || a == c || b == c){
            System.out.println("2");
        }elseif(a == b == c){
            System.out.println("1");
        }else{
            System.out.println("3");
        }
    }
}

Compiler output:
Main.java:10: error: ';' expected
        }elseif(a == b == c){
                            ^
Main.java:12: error: 'else' without 'if'
        }else{
         ^
2 errors
Language: Java

import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        double N = sc.nextInt();
        double K = sc.nextInt();
        double cnt = K * (Math.pow(K-1.0,N-1.0));
        System.out.println(int)(cnt);
    }
}

Compiler output:
Main.java:8: error: '.class' expected
        System.out.println(int)(cnt);
                              ^
Main.java:8: error: ';' expected
        System.out.println(int)(cnt);
                               ^
Main.java:8: error: not a statement
        System.out.println(int)(cnt);
                                ^
Main.java:8: error: ';' expected
        System.out.println(int)(cnt);
                                   ^
4 errors
Language: Java

import java.util.*;
 
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String c = sc.next();
        double N = sc.nextInt();
        double K = sc.nextInt();
        double cnt = K * (Math.(K-1,N-1));
        System.out.println(cnt);
    }
}

Compiler output:
Main.java:9: error: <identifier> expected
        double cnt = K * (Math.(K-1,N-1));
                               ^
1 error
Language: Java

import java.util.*;
 
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String c = sc.next();
        int N = sc.nextInt();
        int K = sc.nextInt();
        int cnt = K * (int)(Math.(K-1,N-1));
        System.out.println(cnt);
    }
}

Compiler output:
Main.java:9: error: <identifier> expected
        int cnt = K * (int)(Math.(K-1,N-1));
                                 ^
1 error
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) || (b==c && b!=a) ||(a=c && b!=a)){
	System.out.println("2");
	}else{
	System.out.println("3");
	}
	}
	}

Compiler output:
Main.java:10: error: bad operand types for binary operator '&&'
	}else if((a==b && b!=c) || (b==c && b!=a) ||(a=c && b!=a)){
	                                                 ^
  first type:  int
  second type: boolean
Main.java:10: error: bad operand types for binary operator '||'
	}else if((a==b && b!=c) || (b==c && b!=a) ||(a=c && b!=a)){
	                                          ^
  first type:  boolean
  second type: int
2 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==c){
	System.out.println("1");
	}else if((a==b && b!=c) || (b==c && b!=a)){
	System.out.println("2");
	}else{
	System.out.println("3");
	}
	}
	}

Compiler output:
Main.java:8: error: incomparable types: boolean and int
	if(a==b==c){
	       ^
1 error
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==c){
	System.out.println("1");
	}else if(a==b!=c || b==c!=a){
	System.out.println("2");
	}else{
	System.out.println("3");
	}
	}
	}

Compiler output:
Main.java:8: error: incomparable types: boolean and int
	if(a==b==c){
	       ^
Main.java:10: error: incomparable types: boolean and int
	}else if(a==b!=c || b==c!=a){
	             ^
Main.java:10: error: incomparable types: boolean and int
	}else if(a==b!=c || b==c!=a){
	                        ^
3 errors
Language: C++

#include<bits/stdc++.h>using namespace std;main(){long long n,t[1000],a[1000],j;cin>>n>>t[0]>>a[0];for(int i=1;i<n;i++){cin>>t[i]>>a[i];j=max((a[i-1]-1)/a[i],(t[i-1]-1)/t[i])+1;a[i]*=j;t[i]*=j;}cout<<a[n-1]+t[n-1]<<endl;}

Compiler output:
a.cc:1:30: warning: extra tokens at end of #include directive
    1 | #include<bits/stdc++.h>using namespace std;main(){long long n,t[1000],a[1000],j;cin>>n>>t[0]>>a[0];for(int i=1;i<n;i++){cin>>t[i]>>a[i];j=max((a[i-1]-1)/a[i],(t[i-1]-1)/t[i])+1;a[i]*=j;t[i]*=j;}cout<<a[n-1]+t[n-1]<<endl;}
      |                              ^~~~~~~~~
a.cc:1:9: fatal error: bits/stdc++.h>usin: No such file or directory
    1 | #include<bits/stdc++.h>using namespace std;main(){long long n,t[1000],a[1000],j;cin>>n>>t[0]>>a[0];for(int i=1;i<n;i++){cin>>t[i]>>a[i];j=max((a[i-1]-1)/a[i],(t[i-1]-1)/t[i])+1;a[i]*=j;t[i]*=j;}cout<<a[n-1]+t[n-1]<<endl;}
      |         ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
 long long n,t[1000]={},a[1000]={};
 cin>>n;
 for(int i=0;i<n;i++){
  cin>>t[i]>>a[i];
  if(i)
   long long j=1;
   if((a[i-1]-1)/a[i]>(t[i-1]-1)/t[i]) j+=(a[i-1]-1)/a[i];
   else j+=(t[i-1]-1)/t[i];
   a[i]*=j;
   t[i]*=j;
 }
 cout<<a[n-1]+t[n-1]<<endl;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:40: error: 'j' was not declared in this scope
   10 |    if((a[i-1]-1)/a[i]>(t[i-1]-1)/t[i]) j+=(a[i-1]-1)/a[i];
      |                                        ^
a.cc:11:9: error: 'j' was not declared in this scope
   11 |    else j+=(t[i-1]-1)/t[i];
      |         ^
a.cc:12:10: error: 'j' was not declared in this scope
   12 |    a[i]*=j;
      |          ^
Language: C++

#include<bit/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)cout<<3<<endl;
 else  cout<<2<<endl;
 return 0;
}

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

#include<bit/stdc++.h>
int main(){
int a,b,c;
cin>>a>>b>>c;
if(a==b==c)cout<<1<<endl;
else if(a!=b && b!=c)cout<<3<<endl;
else  cout<<2<<endl;
return 0;
}

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

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

public class ABC046A {
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
        HashSet<Integer> hs = new HashSet<Integer>();
        hs.add(scanner.nextInt());		
		System.out.println(hs.size());
		scanner.close();
	}


}


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

#include <bits/stdc++.h>

using namespace std;

#define FOR(i, j, k) for(int i = j; i < k; ++i)
#define rep(i, j) FOR(i, 0, j)
#define INF (1 << 30)

int main() {
	int a[3];
	rep(i, n) cin >> a[i];
	sort(a, a + 3);
	if(a[0] == a[1] && a[0] == a[2]) cout << 3 << endl;
	else if(a[0] == a[1] || a[1] == a[2]) cout << 2 << endl;
	else cout << 1 << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: 'n' was not declared in this scope
   11 |         rep(i, n) cin >> a[i];
      |                ^
a.cc:5:41: note: in definition of macro 'FOR'
    5 | #define FOR(i, j, k) for(int i = j; i < k; ++i)
      |                                         ^
a.cc:11:9: note: in expansion of macro 'rep'
   11 |         rep(i, n) cin >> a[i];
      |         ^~~
Language: C++

#include <iostream>

using namespace std;

int main(void) {

    int a[3];

    cin >> a[0] >> a[1] >> a[2];

    sort(a, a + 3);

    if(a[0] == a[1] && a[1] == a[2]) cout << 1 << endl;
    else if(a[0] == a[1] || a[1] == a[2] || a[2] == a[0]) cout << 2 << endl;
    else cout << 3 << endl;

    return 0;

}

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

//#include "IntMod.h"
//typedef IntMod<1000000007> MInt;

//#include "Union_Find.h"

#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <string>
#include <vector>
#include <utility>
#include <algorithm>
#include <functional>
#include <cmath>
#include <stack>
#include <queue>
#include <set>
#include <map>
//#include <unordered_set>
//#include <unordered_map>
#include <iomanip>
#include <sstream>

using namespace std;
#define REP(i,a,n) for(int i = a; i < n; ++i)
#define REPM(i,n,a) for(int i = n - 1; i >= a; --i)
#define EPS 0.0001
#define INF 0x3FFFFFFF
#define INFLL 0x3FFFFFFF3FFFFFFF
#define INFD 1.0e+308
typedef long long LL;
typedef unsigned long long ULL;

class SplitStream {
	typedef basic_ostream<char, char_traits<char> > BaseOst;
	std::ostream& ost_m;
	bool line_is_empty_m;
public:
	SplitStream(std::ostream& ost);
	template <typename T>
	SplitStream& operator<<(T right);
	SplitStream& operator<<(BaseOst& (*right)(BaseOst&));
};
SplitStream::SplitStream(std::ostream& ost) : ost_m(ost), line_is_empty_m(true) {}
template <typename T>
SplitStream& SplitStream::operator<<(T right) {
	if (!line_is_empty_m) ost_m << ' ';
	line_is_empty_m = false;
	ost_m << right;
	return *this;
}
/* std::endl のみ */
SplitStream& SplitStream::operator<<(BaseOst& (*right)(BaseOst&)) {
	ost_m << '\n';
	ost_m.flush();
	line_is_empty_m = true;
	return *this;
}
SplitStream Scout(cout);

template <typename T, int Begin, int End>
class OffsetArray {
	T arr_m[End - Begin];
public:
	OffsetArray();

	T& operator[](int index);
	T operator[](int index) const;
};
template<typename T, int Begin, int End>
OffsetArray<T, Begin, End>::OffsetArray() : arr_m() {}

template<typename T, int Begin, int End>
T & OffsetArray<T, Begin, End>::operator[](int index) {
	return arr_m[index - Begin];
}

template<typename T, int Begin, int End>
T OffsetArray<T, Begin, End>::operator[](int index) const {
	return arr_m[index - Begin];
}

int A, B, C;
int main() {
	cin >> A >> B >> C;
	cout << (A == B&&B == C ? 1 : A != B &&B != C&&C != A ? 3 : 2) << endl;
2	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:88:8: error: expected ';' before 'return'
   88 | 2       return 0;
      |  ^~~~~~~~~~~~~
      |        ;
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:1: error: expected ';' before '}' token
   19 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:16: error: 'cont' was not declared in this scope; did you mean 'const'?
    4 | #define out(x) cont<<(x)<<"\n"
      |                ^~~~
a.cc:18:1: note: in expansion of macro 'out'
   18 | out(A)
      | ^~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  int color[3];
  int rel=1;

  for(int i=0;i<3;i++) cin>>color[i];

  for(int i=1;i<3;i++){
    bool flag=true;
    for(int j=0;j<3;j++){
      if(i!=j&&color[i]==color[j]) flag=false;
    }
    if(flag&&1<=color[i]&&color[j]<=100) rel++;
  }
  
  cout<<rel<<endl;

 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:33: error: 'j' was not declared in this scope
   15 |     if(flag&&1<=color[i]&&color[j]<=100) rel++;
      |                                 ^
Language: C++

#include <iostream>
#include <stdio.h>
using namespace std;
int main(){
  int i;input[3],count=0;
  for(i=0;i<3;i++){
    cin>>input[i];
  }
  for(i=0;i<2;i++){
    if(input[i]==input[i+1]){
      count++;
    }
  }
  if(input[0]==input[3]){
    count++;
  }
  cout<<count<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'input' was not declared in this scope; did you mean 'int'?
    5 |   int i;input[3],count=0;
      |         ^~~~~
      |         int
a.cc:5:18: error: 'count' was not declared in this scope
    5 |   int i;input[3],count=0;
      |                  ^~~~~
Language: C

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

	return 0;

}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scan'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |         scan("%d%d%d", &a, &b, &c);
      |         ^~~~
      |         scanf
Language: C++

import sys
abc = sys.stdin.readline().split()
abc_uniq = []
for x in abc:
    if x not in abc_uniq:
        abc_uniq.append(x)
print len(abc_uniq)

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

s = raw_input()
abc = s.split()
abc_uniq = []
for x in abc:
    if x not in abc_uniq:
        abc_uniq.append(x)
print len(abc_uniq)

Compiler output:
a.cc:1:1: error: 's' does not name a type
    1 | s = raw_input()
      | ^
Language: C++

#include <stdio.h>
#include <iostream>
#include <pair>
#include <algorithm>
#include <cmath>
#include <map>

int main(){
  bool num[100];
  int input,count=0;
  for(int i=0; i<100;i++){
    num[i]=false;
  }
  while(cin >> input){
    if(!num[input-1]){
      num[input-1]=true;
      count++;
    }
  }
  cout << count << endl;
}


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

#include<stdio.h>

int  main(){
 int a,b,c,r;
 scanf("%d %d %d",&a,&b,&c);
 if(a==b){
   if(b==c)
     r=1;
   else r=2;
 else if(b==c){
    r=2;
      if(a==c) r=2;
      else     r=3;
      }
 else if(a==c) r=2;
 else          r=3;
 }
printf("%d",r);
}

Compiler output:
main.c: In function 'main':
main.c:10:2: error: expected '}' before 'else'
   10 |  else if(b==c){
      |  ^~~~
main.c: At top level:
main.c:18:8: error: expected declaration specifiers or '...' before string constant
   18 | printf("%d",r);
      |        ^~~~
main.c:18:13: error: unknown type name 'r'
   18 | printf("%d",r);
      |             ^
main.c:19:1: error: expected identifier or '(' before '}' token
   19 | }
      | ^
Language: C

#include<stdio.h>

int  main(){
 int a,b,c,r;
 scanf("%d %d %d",a,b,c);
 if(a==b){
   if(b==c)
     r=1;
   else r=2;
 else if(b==c){
    r=2;
      if(a==c) r=2;
      else     r=3;
      }
 else if(a==c) r=2;
 else          r=3;
 }
printf("%d",r);
}

Compiler output:
main.c: In function 'main':
main.c:10:2: error: expected '}' before 'else'
   10 |  else if(b==c){
      |  ^~~~
main.c: At top level:
main.c:18:8: error: expected declaration specifiers or '...' before string constant
   18 | printf("%d",r);
      |        ^~~~
main.c:18:13: error: unknown type name 'r'
   18 | printf("%d",r);
      |             ^
main.c:19:1: error: expected identifier or '(' before '}' token
   19 | }
      | ^
Language: C++

#include <iostream>

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

    std::cin >> a >> b >> c;
    if(a == b && b == c) cnt = 1;
    else if(a == b && b != c) cnt = 2;
    else if(c == b && a != c) cnt = 2;
    else if(a == c && b != a) cnt = 2;
    else cnt = 3;

    std::cout << cnt << std:endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:28: error: found ':' in nested-name-specifier, expected '::'
   13 |     std::cout << cnt << std:endl;
      |                            ^
      |                            ::
Language: C++

#include"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:1:9: fatal error: stdc++.h: No such file or directory
    1 | #include"stdc++.h"
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

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

using namespace std;

int main(void){

  int i,j,k,t,tmp;
  string s;
  int a,b,c;

  cin>>a>>b>>c;

  if(a==b&&b==c) cout<<1;
  else if((a==b&&b!=c)||(b==c&&c!=a)||(a==c&&c!=b)) cout<<2;
  else cout<<3;

  cout<<endl
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:13: error: expected ';' before 'return'
   20 |   cout<<endl
      |             ^
      |             ;
   21 |   return 0;
      |   ~~~~~~
Language: C++

#include<cstdio>
using namespace std;

int a,b,c;
int d = 2;
int main(){
	scanf_s("%d %d %d\n",&a,&b,&c);
	if(a==b && a==c && b==c)d=1;
	if(a!=b && a!=c && b!=c)d=3;
	printf_s("%d\n",d);
	return 0;
}

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

//
#include <iostream>
#include <cstdio>
#include <string>
#include <cmath>
#include <algorithm>
#include <vector>
#include <map>
#include <set>
#include <array>
#include <numeric>
#include <functional>
#include<list>
#include<queue>
#include<deque>
#include<algorithm>
#include<utility>
#include<complex>

using namespace std;

#define REP(i,m,n) for(int i=m;i<(n);i++)
#define rep(i,n) REP(i,0,n)
#define ALL(x) (x).begin(),(x).end()

typedef long long ll;
typedef pair<int, int> pii;

const ll inf = INT_MAX;
const double eps = 1e-10;
const double pi = acos(-1.0);
const int di[][2] = {{1,0},{0,1},{-1,0},{0,-1},{1,1},{1,-1},{-1,1},{-1,-1}};

int main(){

	int a,b,c;
	cin >> a >> b >>c;
	if(a != b && b != c && c != a)
		printf("3\n");
	else{
		if(a == b && b == c)
			printf("1\n");
		else{
			printf("2\n");
		}
	}
	return 0;
}


Compiler output:
a.cc:29:16: error: 'INT_MAX' was not declared in this scope
   29 | const ll inf = INT_MAX;
      |                ^~~~~~~
a.cc:19:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
   18 | #include<complex>
  +++ |+#include <climits>
   19 |
Language: Java

import java.util.Scanner;


public class ProbD {
	public static void main(String[] args) {
		int a,b,c;
		Scanner foo = new Scanner(System.in);
		a = new Integer(foo.next()).intValue();
		b = new Integer(foo.next()).intValue();
		c = new Integer(foo.next()).intValue();
		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:4: error: class ProbD is public, should be declared in a file named ProbD.java
public class ProbD {
       ^
Main.java:8: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal
		a = new Integer(foo.next()).intValue();
		    ^
Main.java:9: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal
		b = new Integer(foo.next()).intValue();
		    ^
Main.java:10: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal
		c = new Integer(foo.next()).intValue();
		    ^
1 error
3 warnings
Language: C++

#include <iostream>
int main()
{
	int a,b,c;
	int n = 6;
	std::cin >> a >> b >> c;
	a==b: (n--) ? ;
	a==c: (n--) ? ;
	b==c: (n--) ? ;
	(a==b && a==c && b==c): (n++) ? ;
	cout << n << "¥n";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: expected ';' before ':' token
    7 |         a==b: (n--) ? ;
      |             ^
      |             ;
a.cc:8:13: error: expected ';' before ':' token
    8 |         a==c: (n--) ? ;
      |             ^
      |             ;
a.cc:9:13: error: expected ';' before ':' token
    9 |         b==c: (n--) ? ;
      |             ^
      |             ;
a.cc:10:31: error: expected ';' before ':' token
   10 |         (a==b && a==c && b==c): (n++) ? ;
      |                               ^
      |                               ;
a.cc:11:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |         cout << n << "¥n";
      |         ^~~~
      |         std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
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){
    printf("2¥n")
  } else{
    printf("3¥n")
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:18: error: expected ';' before '}' token
    9 |     printf("2¥n")
      |                  ^
      |                  ;
   10 |   } else{
      |   ~               
main.c:11:18: error: expected ';' before '}' token
   11 |     printf("3¥n")
      |                  ^
      |                  ;
   12 |   }
      |   ~
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Main {

    private static Scanner sc;

    public static void main(String[] args) {

        sc = new Scanner();
        this.solve();
    }

    private static void solve() {
        try {
          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 && a != c && b != c) {
            System.out.println(3);
          } else {
            System.out.println(2);
          }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

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

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

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

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

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

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

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

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


Compiler output:
Main.java:36: error: class Scanner is public, should be declared in a file named Scanner.java
public class Scanner {
       ^
Main.java:15: error: non-static variable this cannot be referenced from a static context
        this.solve();
        ^
Main.java:49: warning: [removal] finalize() in Object has been deprecated and marked for removal
    protected void finalize() throws Throwable {
                   ^
Main.java:51: warning: [removal] finalize() in Object has been deprecated and marked for removal
            super.finalize();
                 ^
2 errors
2 warnings
Language: Java

import java.io.*;
import java.util.Scanner;

public class Main {

   public static void main(String args[]) {

    Scanner scan = new Scanner(System.in);

     String a = scan.next();
	 String b =scan.next();     
	 String c = scan.next();     

    
          	if ((a == b && b == c)&&(a==c))  {
          		System.out.println("1");
          	   } else if ((a != b || b !=c)&&(b !=c || c != a)) {
          	   	 System.out.println("2");
          	   	} else {
          	   	 System.out.println("3");
   } 
   

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

#include <iostream>
#include<vector>
#include<string>
#include<array>
#include<algorithm>
#include<list>
#include<cmath>
#include<iomanip>
#include<queue>
#include<functional>
#include<climits>
#include<iterator>
#include<unordered_set>
#include<unordered_map>
#include<map>
#include<set>
#include<typeinfo>
 
#include<chrono>
#include<initializer_list>
using namespace std;
 


const double pi=4*atan(1.0);
 
constexpr long long mod=static_cast<long long>(1e9+7);

 
int main() {
	long long N,K,A;
 
	cin >> N >> K ;
        
        A=K;
        
	for(int i=1;i<N;i++)) {
		A*=(K-1);
	}
	
	cout<<A<<endl;
 
	
 
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:29: error: expected primary-expression before ')' token
   37 |         for(int i=1;i<N;i++)) {
      |                             ^
Language: C++

#include<vector>
#include<string>
#include<array>
#include<algorithm>
#include<list>
#include<cmath>
#include<iomanip>
#include<queue>
#include<functional>
#include<climits>
#include<iterator>
#include<unordered_set>
#include<unordered_map>
#include<map>
#include<set>
#include<typeinfo>
 
#include<chrono>
#include<initializer_list>
using namespace std;
 
#include <iostream>
using namespace std;
 
int main() {
	long long N,K,A;
 
	cin >> N >> K ;
        
        A=K;
        
	for(int i=1;i<N;i++)) {
		A*=(K-1);
	}
	
	cout<<A<<endl;
 
	
 
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:29: error: expected primary-expression before ')' token
   32 |         for(int i=1;i<N;i++)) {
      |                             ^
Language: C++

#include<vector>
#include<string>
#include<array>
#include<algorithm>
#include<list>
#include<cmath>
#include<iomanip>
#include<queue>
#include<functional>
#include<climits>
#include<iterator>
#include<unordered_set>
#include<unordered_map>
#include<map>
#include<set>
#include<typeinfo>
 
#include<chrono>
#include<initializer_list>
using namespace std;
 
#include <iostream>
using namespace std;
 
int main() {
	long long N,K,A;
 
	cin >> N >> K ;
        
        A=K;
        
	for(int i=1;i<N;i++)) {
		A=A*(K-1);
	}
	
	cout<<A<<endl;
 
	
 
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:29: error: expected primary-expression before ')' token
   32 |         for(int i=1;i<N;i++)) {
      |                             ^