criyle/codenet-compile-errors huggingface dataset:
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() {
	int N,K,A;
 
	cin >> N >> K ;
        
       int A=K;
        
	for(int i=1;i++;i<N-1)) {
		A=A*(K-1);
	}
	
	cout<<A;
 
	
 
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:12: error: redeclaration of 'int A'
   30 |        int A=K;
      |            ^
a.cc:26:17: note: 'int A' previously declared here
   26 |         int N,K,A;
      |                 ^
a.cc:32:31: error: expected primary-expression before ')' token
   32 |         for(int i=1;i++;i<N-1)) {
      |                               ^
Language: C++

#include <iostream>
using namespace std;
 
int main() {
	int N,K,A;
 
	cin >> N >> K ;
        
       A=K;
        
	for(int i=1;i++;i<N-1)) {
		A=A*(K-1);
	}
	
	cout<<A;
 
	
 
	return 0;
}


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


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

/**
 * Created by Taichi1 on 10/22/16.
 */
public class Main2 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		HashSet<Integer> set = new HashSet<>();
		while (sc.hasNext()) {
			set.add(sc.nextInt());
		}
		System.out.println(set.size();
	}
}

Compiler output:
Main.java:15: error: ')' or ',' expected
		System.out.println(set.size();
		                             ^
1 error
Language: C++

#include<stdio.h>
int main()
{
	//declare the variables//
	int a, b, c;

	//scan the numbers of the colors//
	printf("Please tell me the 3 numbers of the colors.\n");
	scanf_s("%d %d %d", &a, &b, &c);

	//judge weather or not same numbersare included//
	if (a == b) {
		if (a == c) {
			printf("1\n");
		}

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

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

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

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

	return(0);
}

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

public class Main {
    public static void main(String args[])  {

        HashSet<String> hs = new HashSet<String>();
        Scanner sc = new Scanner(System.in);
        for (int i = 0; i < 3; i++) {
            hs.add(sc.next());
        }
        System.out.println(hs.size());
    }
}

Compiler output:
Main.java:4: error: cannot find symbol
        HashSet<String> hs = new HashSet<String>();
        ^
  symbol:   class HashSet
  location: class Main
Main.java:4: error: cannot find symbol
        HashSet<String> hs = new HashSet<String>();
                                 ^
  symbol:   class HashSet
  location: class Main
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
4 errors
Language: C++

line = input()
elems = line.split()
penkis = {int(e) for e in elems}
print(len(penkis))

Compiler output:
a.cc:1:1: error: 'line' does not name a type
    1 | line = input()
      | ^~~~
a.cc:4:6: error: expected constructor, destructor, or type conversion before '(' token
    4 | print(len(penkis))
      |      ^
Language: C

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:10:18: error: expected expression before '%' token
   10 |   }else if(a==b %% b!=c){
      |                  ^
Language: Java

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

public class Ｍａｉｎ {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        HashSet<Integer> a = new HashSet<>();
        for (int i = 0; i < 3; i++){
            a.add(scan.nextInt());
        }
        System.out.println(a.size());
    }
}

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

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

public class A {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        HashSet<Integer> a = new HashSet<>();
        for (int i = 0; i < 3; i++){
            a.add(scan.nextInt());
        }
        System.out.println(a.size());
    }
}

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

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

#define ll long long
using namesace std;

int main(){
	ll n,k;
	cin >> n >> k;
	ll ans = k;
	for(ll i = 0; i < n -1; i++){
		ans *= (k-1)
	}
	cout << ans << '\n';
	return 0;
}

Compiler output:
a.cc:6:7: error: expected nested-name-specifier before 'namesace'
    6 | using namesace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:10:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   10 |         cin >> n >> k;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:13:29: error: expected ';' before '}' token
   13 |                 ans *= (k-1)
      |                             ^
      |                             ;
   14 |         }
      |         ~                    
a.cc:15:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |         cout << ans << '\n';
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>
#include <set>
#define REP(i,n) for(int i=0;i<(n);i++)
using namespace std;
 
int main(){int n;cin>>n;set<int> a;REP(i,n){cin>>a[i];}}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:51: error: no match for 'operator[]' (operand types are 'std::set<int>' and 'int')
    6 | int main(){int n;cin>>n;set<int> a;REP(i,n){cin>>a[i];}}
      |                                                   ^
Language: C

#include<stdio.h>
int main(){
int n,k;
scanf("%d %d",&n,&k);
int answer=k;
for(int i=0;i<k;i++){
answer*=(k-1);
}
printf("%d",answer)
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:20: error: expected ';' before 'return'
    9 | printf("%d",answer)
      |                    ^
      |                    ;
   10 | return 0;
      | ~~~~~~
Language: C

#include<stdio.h>
int main(){
int n,k;
scanf("%d %d",&n,&k);
int answer=k;
for(i=0;i<k;i++){
answer*=(k-1);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:5: error: 'i' undeclared (first use in this function)
    6 | for(i=0;i<k;i++){
      |     ^
main.c:6:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(){
int n,k;
scanf("%d %d",&n,&k);
int answer=k;
for(i=0,i<k,i++){
answer*=(k-1);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:5: error: 'i' undeclared (first use in this function)
    6 | for(i=0,i<k,i++){
      |     ^
main.c:6:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:16: error: expected ';' before ')' token
    6 | for(i=0,i<k,i++){
      |                ^
      |                ;
main.c:6:16: error: expected expression before ')' token
Language: C

#include<stdio.h>
#include<math.h>
int main(){
double N,K;
scanf("%lf %lf",&N,&K);
 
if(N%2==0.0){
int a=N/2;
double c=pow(K,a)*pow(K-1,a);
printf("%f",c);
}
else{
int a=N/2+1;
double c=pow(K,a)*pow(K-1,a-1);
printf("%f",c);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:5: error: invalid operands to binary % (have 'double' and 'int')
    7 | if(N%2==0.0){
      |     ^
Language: C

#include<stdio.h>
#include<math.h>
int main(){
double N,K;
scanf("%f %f",&N,&K);
 
if(N%2==0){
int a=N/2;
double c=pow(K,a)*pow(K-1,a);
printf("%f",c);
}
else{
int a=N/2+1;
double c=pow(K,a)*pow(K-1,a-1);
printf("%f",c);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:5: error: invalid operands to binary % (have 'double' and 'int')
    7 | if(N%2==0){
      |     ^
Language: Java

import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.NoSuchElementException;

public class A {
	public static void main(String[] args) {
		FS r = new FS();
		int a = r.nextInt();
		int b = r.nextInt();
		int c = r.nextInt();
		int count = 1;
		if(a != b) count++;
		if(a != c && b != c) count++;
		System.out.println(count);
	}

	// Read Class
	static class FS {
		private final InputStream in = System.in;
		private final byte[] buffer = new byte[1024];
		private int ptr = 0;
		private int buflen = 0;
		private boolean hasNextByte() {
			if (ptr < buflen) {
				return true;
			} else {
				ptr = 0;
				try {
					buflen = in.read(buffer);
				} catch (IOException e) {
					e.printStackTrace();
				}
				if (buflen <= 0) {
					return false;
				}
			}
			return true;
		}

		private int readByte() { return hasNextByte() ? buffer[ptr++] : -1;}
		private boolean isPrintableChar(int c) {return 33 <= c && c <= 126;}
		private void skipUnprintable() {while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;}

		public boolean hasNext() { skipUnprintable(); return hasNextByte();}
		public String next() {
			if (!hasNext()) throw new NoSuchElementException();
			StringBuilder sb = new StringBuilder();
			int b = readByte();
			while(isPrintableChar(b)) {
				sb.appendCodePoint(b);
				b = readByte();
			}
			return sb.toString();
		}
		public int nextInt() {
			return (int)nextLong();
		}
		public long nextLong() {
			if (!hasNext()) throw new NoSuchElementException();
			long n = 0;
			boolean minus = false;
			int b = readByte();
			if (b == '-') {
				minus = true;
				b = readByte();
			}
			if (b < '0' || '9' < b) {
				throw new NumberFormatException();
			}
			while(true) {
				if ('0' <= b && b <= '9') {
					n *= 10;
					n += b - '0';
				} else if(b == -1 || !isPrintableChar(b)) {
					return minus ? -n : n;
				} else {
					throw new NumberFormatException();
				}
				b = readByte();
			}
		}
	}
}


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

import java.lang.Math;
import java.util.Scanner;
  
class Main{
   public static void main(String[] args){
     Scanner stdId[] = new Scanner(System.in);
     int n = stdId.nextInt(); 
     System.out.println();
  }

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

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

int main() {
    set<int> s;
    for (int i = 0; i < 3; ++i) {
        int t; cin >> t;
        s.insert(t);
    }
    cout << s.size() << endl;
}


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

#include<Bits/stdc++.h>
using namespace std;
int main()
{
    int x,i;
    set<int>s;
    for(i=0;i<3;i++)
    {
        cin>>x;
        s.insert(x);
    }
    cout<<s.size()<<endl;
    return 0;
}


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

#include <stdio.h>

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

	printf("%d\n", count);
	return 0;
}

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

#include <stdio.h>

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

	printf("%d\n", count);
	return 0;
}

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

#include<iostream>
using namespace std;

int main(void){
 int p[3],c=3;
 for(int i=0;i<3;i++){
  cin>>p[i];
  for(int j=i-1;j>=0;j--){
   if(p[j]==p[i])c--;
   }
  }
 cout<<c<<endl;
 return 0;
 }


 return 0;
}

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

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

int main(){
  set<int> s;
  for(int i = 0, t; i < 3; i++)
    cin >> t; s.insert(t);
  cout << s.size() << endl;
  return 0;
}


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


    for(int i = 0, t ; i < 3 ; i++ )
        cin>>t, s.insert(t);
    cout<<s.size()<<endl;
    return 0;
}


Compiler output:
a.cc:2:5: error: expected unqualified-id before 'for'
    2 |     for(int i = 0, t ; i < 3 ; i++ )
      |     ^~~
a.cc:2:24: error: 'i' does not name a type
    2 |     for(int i = 0, t ; i < 3 ; i++ )
      |                        ^
a.cc:2:32: error: 'i' does not name a type
    2 |     for(int i = 0, t ; i < 3 ; i++ )
      |                                ^
a.cc:4:5: error: 'cout' does not name a type
    4 |     cout<<s.size()<<endl;
      |     ^~~~
a.cc:5:5: error: expected unqualified-id before 'return'
    5 |     return 0;
      |     ^~~~~~
a.cc:6:1: error: expected declaration before '}' token
    6 | }
      | ^
Language: C++

#include <iostream>
#include <fstream>
#include <cstdio>
#include <cmath>
#include <vector>
#include <cstring>
#include <string>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <algorithm>
using namespace std;

#define REP(i,n) for(int i=0; i<n; ++i)
#define FOR(i,a,b) for(int i=a; i<=b; ++i)
#define FORR(i,a,b) for (int i=a; i>=b; --i)
#define pi M_PI

typedef long long ll;
typedef vector<int> VI;
typedef vector<ll> VL;
typedef vector<VI> VVI;
typedef pair<int,int> P;
typedef pair<ll,ll> PL;

int main(){
    map<int, int> m;
    int ans = 0;
    REP(i,n){
        int x;
        cin >> x;
        m[x]++;
        if (m[x] > 0) ans++;
    }
    cout << ans << endl;
    return 0;
}

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

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] line = br.readLine().split(" ");
        int a = Integer.parseInt(line[0]),
            b = Integer.parseInt(line[1]),
            c = Integer.parseInt(line[2]);
        
        int colors = 1;
        if(b!=a) colors++;
        if(c!=a && c!=b) colors++;
        System.out.println(colors);
    }
}

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

#include <bits/stdc++.h>
using namespace std;
typedef signed long long ll;

#undef _P
#define _P(...) (void)printf(__VA_ARGS__)
#define FOR(x,to) for(x=0;x<(to);x++)
#define FORR(x,arr) for(auto& x:arr)
#define ITR(x,c) for(__typeof(c.begin()) x=c.begin();x!=c.end();x++)
#define ALL(a) (a.begin()),(a.end())
#define ZERO(a) memset(a,0,sizeof(a))
#define MINUS(a) memset(a,0xff,sizeof(a))
//-------------------------------------------------------

void solve() {
	int i,j,k,l,r,x,y; string s;
	cin>>x>>y>>z;
	set<int> S;
	S.insert(x);
	S.insert(y);
	S.insert(z);
	cout<<S.size()<<endl;
	
}


int main(int argc,char** argv){
	string s;int i;
	if(argc==1) ios::sync_with_stdio(false), cin.tie(0);
	FOR(i,argc-1) s+=argv[i+1],s+='\n';
	FOR(i,s.size()) ungetc(s[s.size()-1-i],stdin);
	solve(); return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:17:20: error: 'z' was not declared in this scope
   17 |         cin>>x>>y>>z;
      |                    ^
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;

namespace ABC046
{
	class Q3
	{
		static void Main()
		{
			int N = int.Parse(Console.ReadLine());
			List<List<int>> datas = Enumerable.Range(1, N).Select(x => Console.ReadLine().Split(' ').Select(y => int.Parse(y)).ToList()).ToList();
			int a = datas[0][0], b = datas[0][1];

			for (int i = 1; i < N; i++)
			{
				int a2 = -1;
				int b2 = -1;
				for (int j = 1; a2 < a || b2 < b; j++)
				{
					a2 = datas[i][0] * j;
					b2 = datas[i][1] * j;
				}
				a = a2;
				b = b2;
			}

			Console.WriteLine(a + b);
		}
	}
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:30:10: error: expected ';' after class definition
   30 |         }
      |          ^
      |          ;
a.cc: In static member function 'static void ABC046::Q3::Main()':
a.cc:11:33: error: expected primary-expression before 'int'
   11 |                         int N = int.Parse(Console.ReadLine());
      |                                 ^~~
a.cc:12:25: error: 'List' was not declared in this scope
   12 |                         List<List<int>> datas = Enumerable.Range(1, N).Select(x => Console.ReadLine().Split(' ').Select(y => int.Parse(y)).ToList()).ToList();
      |                         ^~~~
a.cc:12:35: error: expected primary-expression before 'int'
   12 |                         List<List<int>> datas = Enumerable.Range(1, N).Select(x => Console.ReadLine().Split(' ').Select(y => int.Parse(y)).ToList()).ToList();
      |                                   ^~~
a.cc:13:33: error: 'datas' was not declared in this scope
   13 |                         int a = datas[0][0], b = datas[0][1];
      |                                 ^~~~~
a.cc:19:64: error: 'b' was not declared in this scope
   19 |                                 for (int j = 1; a2 < a || b2 < b; j++)
      |                                                                ^
a.cc:25:33: error: 'b' was not declared in this scope; did you mean 'b2'?
   25 |                                 b = b2;
      |                                 ^
      |                                 b2
a.cc:28:25: error: 'Console' was not declared in this scope
   28 |                         Console.WriteLine(a + b);
      |                         ^~~~~~~
a.cc:28:47: error: 'b' was not declared in this scope
   28 |                         Console.WriteLine(a + b);
      |                                               ^
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;

namespace ABC046
{
	class Q3
	{
		static void Main()
		{
			int N = int.Parse(Console.ReadLine());
			List<List<int>> datas = Enumerable.Range(1, N).Select(x => Console.ReadLine().Split(' ').Select(y => int.Parse(y)).ToList()).ToList();
			int a = datas[0][0], b = datas[0][1];

			for(int i = 1; i < N; i++)
			{
				int a2 = -1;
				int b2 = -1;
				for (int j = 1; a2 < a || b2 < b; j++)
				{
					a2 = datas[i][0] * j;
					b2 = datas[i][1] * j;
				}
				a = a2;
				b = b2;
			}

			Console.WriteLine(a + b);
		}
	}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:30:10: error: expected ';' after class definition
   30 |         }
      |          ^
      |          ;
a.cc: In static member function 'static void ABC046::Q3::Main()':
a.cc:11:33: error: expected primary-expression before 'int'
   11 |                         int N = int.Parse(Console.ReadLine());
      |                                 ^~~
a.cc:12:25: error: 'List' was not declared in this scope
   12 |                         List<List<int>> datas = Enumerable.Range(1, N).Select(x => Console.ReadLine().Split(' ').Select(y => int.Parse(y)).ToList()).ToList();
      |                         ^~~~
a.cc:12:35: error: expected primary-expression before 'int'
   12 |                         List<List<int>> datas = Enumerable.Range(1, N).Select(x => Console.ReadLine().Split(' ').Select(y => int.Parse(y)).ToList()).ToList();
      |                                   ^~~
a.cc:13:33: error: 'datas' was not declared in this scope
   13 |                         int a = datas[0][0], b = datas[0][1];
      |                                 ^~~~~
a.cc:19:64: error: 'b' was not declared in this scope
   19 |                                 for (int j = 1; a2 < a || b2 < b; j++)
      |                                                                ^
a.cc:25:33: error: 'b' was not declared in this scope; did you mean 'b2'?
   25 |                                 b = b2;
      |                                 ^
      |                                 b2
a.cc:28:25: error: 'Console' was not declared in this scope
   28 |                         Console.WriteLine(a + b);
      |                         ^~~~~~~
a.cc:28:47: error: 'b' was not declared in this scope
   28 |                         Console.WriteLine(a + b);
      |                                               ^
a.cc: At global scope:
a.cc:30:10: error: expected '}' at end of input
   30 |         }
      |          ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include <cstdlib>
#include <cmath>
#include <climits>
#include <cfloat>
#include <map>
#include <set>
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <sstream>
#include <complex>
#include <stack>
#include <queue>
#include <cstdio>
#include <cstring>
#include <iterator>
#include <bitset>
#include <unordered_set>
#include <unordered_map>
#include <fstream>
#include <iomanip>
#include <cassert>
//#include <utility>
//#include <memory>
//#include <functional>
//#include <deque>
//#include <cctype>
//#include <ctime>
//#include <numeric>
//#include <list>
//#include <iomanip>

//#if __cplusplus >= 201103L
//#include <array>
//#include <tuple>
//#include <initializer_list>
//#include <forward_list>
//
//#define cauto const auto&
//#else

//#endif

using namespace std;


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

typedef vector<int> vint;
typedef vector<vector<int> > vvint;
typedef vector<long long> vll, vLL;
typedef vector<vector<long long> > vvll, vvLL;

#define VV(T) vector<vector< T > >

template <class T>
void initvv(vector<vector<T> > &v, int a, int b, const T &t = T()){
    v.assign(a, vector<T>(b, t));
}

template <class F, class T>
void convert(const F &f, T &t){
    stringstream ss;
    ss << f;
    ss >> t;
}

#undef _P
#define _P(...) (void)printf(__VA_ARGS__)
#define reep(i,a,b) for(int i=(a);i<(b);++i)
#define rep(i,n) reep((i),0,(n))
#define ALL(v) (v).begin(),(v).end()
#define PB push_back
#define F first
#define S second
#define mkp make_pair
#define RALL(v) (v).rbegin(),(v).rend()
#define DEBUG
#ifdef DEBUG
#define dump(x)  cout << #x << " = " << (x) << endl;
#define debug(x) cout << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;
#else
#define dump(x) 
#define debug(x) 
#endif

#define MOD 1000000007LL
#define EPS 1e-8
#define INF 0x3f3f3f3f
#define INFL 0x3f3f3f3f3f3f3f3fLL
#define maxs(x,y) x=max(x,y)
#define mins(x,y) x=min(x,y)

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


signed main() {
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout<<fixed<<setprecision(20);
    mainmain();
}

Compiler output:
a.cc: In function 'void mainmain()':
a.cc:104:15: error: 'a' was not declared in this scope
  104 |         cout<<a.size()<<endl;
      |               ^
Language: C

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

Compiler output:
main.c:47:1: error: stray '\' in program
   47 | \n
      | ^
main.c:47:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
Language: C++

sum = 0
input = list(map(int,input().split()))
if input[0] != input[1]:
    sum +=1
if input[0] != input[2]:
    sum +=1 
if input[1] != input[2]:
    sum +=1 

print(sum) 


Compiler output:
a.cc:1:1: error: 'sum' does not name a type
    1 | sum = 0
      | ^~~
Language: C++

#include<stdio.h>

int main(viud){

	int a,b,c;

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

	if(a==b || b==c || c==a){
		printf("2");
	}

	
	else if(a==b && b==c && c==a){
		printf("1");
	}

	else{
		printf("3");
	}

	return 0;

}



Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main(viud){
      |     ^~~~
a.cc:3:10: error: 'viud' was not declared in this scope
    3 | int main(viud){
      |          ^~~~
Language: C

#include <stdio.h>

int main(void) {
    int a, b, c;
    scant("%d %d %d\n", &a, &b, &c);
    int count = 3;
    if(a == b) count--;
    if(b == c) count--;
    if(a == c) count--;
    if(count == 0) count++;
    return 0;
}

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

#include <stdio.h>

int main(void) {
    int a, b, c;
    scant("%d %d %d\n", &a, &b, &c);
    int count = 3;
    if(a == b) count--;
    if(b == c) count--;
    if(a == c) count--;
    if(count == 0) count++;

    return 0;
}

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

import java.util.*;
public class Main{
      public static void main(String[] args){
               Scanner sc=new Scanner(System.in);
               int n=sc.nextInt();
               int k=sc.nextInt();
               long ans=Math.pow(k-1,n-1);
               System.out.println(ans*k);
     }
}

Compiler output:
Main.java:7: error: incompatible types: possible lossy conversion from double to long
               long ans=Math.pow(k-1,n-1);
                                ^
1 error
Language: C

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

        int a;
        int b;
        int c;
        int cnt;
 

	// 個数のの入力
        scanf("%d %d %d",&a,&b,&c);


        if(a == b) {
          if (a == c ) {
 	    cnt = 1;
          }
          else {
	    cnt = 2;
          }
        }

        if (a != b) {
          if (a == c) {
	    cnt = 2;
          }
          elseif (b  == c) { 
	    cnt = 2;
          }
          else {
            cnt = 1;
          }
        }
        printf("%d\n",cnt);
      
        
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:30:11: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   30 |           elseif (b  == c) {
      |           ^~~~~~
main.c:30:27: error: expected ';' before '{' token
   30 |           elseif (b  == c) {
      |                           ^~
      |                           ;
Language: C++

#include <stdio.h>


int coler[3];
int answer = 3;
int main(){
	scanf_s("%d %d %d", &(coler[0]), &(coler[1]), &(coler[2]));
	if (coler[0] == coler[1]){
		answer -= 1;
	}
	if (coler[1] == coler[2]){
		answer -= 1;
	}
	if (coler[0] == coler[3]){
		answer -= 1;
	}
	if (coler[0] == coler[1] && coler[1] == coler[2]){
		answer = 1;
	}
	printf("%d\n", answer);
	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", &(coler[0]), &(coler[1]), &(coler[2]));
      |         ^~~~~~~
      |         scanf
Language: Java


import java.util.Arrays;
import java.util.Scanner;

public Main A {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		int a[] = new int[3];
		Scanner sc = new Scanner(System.in);
		a[0] = sc.nextInt();
		a[1] = sc.nextInt();
		a[2] = sc.nextInt();
		sc.close();
		Arrays.sort(a);
		if(a[0]==a[1] && a[1]==a[2]) System.out.println("1");
		else if(a[0]==a[1] || a[1]==a[2])System.out.println("2");
		else System.out.println("3");
	}

}


Compiler output:
Main.java:5: error: class, interface, enum, or record expected
public Main A {
       ^
Main.java:7: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args) {
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:21: error: class, interface, enum, or record expected
}
^
3 errors
Language: C++

#include <iostream>
#include <set>
#include <algorithm>

int main() {
	std::unordered_set<int> penkis;
	for (int i = 0; i < n; i++) {
		int v;
		std::cin >> v;
		penkis.insert(v);
	}

	std::cout << penkis.size() << std::endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 'unordered_set' is not a member of 'std'
    6 |         std::unordered_set<int> penkis;
      |              ^~~~~~~~~~~~~
a.cc:4:1: note: 'std::unordered_set' is defined in header '<unordered_set>'; this is probably fixable by adding '#include <unordered_set>'
    3 | #include <algorithm>
  +++ |+#include <unordered_set>
    4 | 
a.cc:6:28: error: expected primary-expression before 'int'
    6 |         std::unordered_set<int> penkis;
      |                            ^~~
a.cc:7:29: error: 'n' was not declared in this scope
    7 |         for (int i = 0; i < n; i++) {
      |                             ^
a.cc:10:17: error: 'penkis' was not declared in this scope
   10 |                 penkis.insert(v);
      |                 ^~~~~~
a.cc:13:22: error: 'penkis' was not declared in this scope
   13 |         std::cout << penkis.size() << std::endl;
      |                      ^~~~~~
Language: C

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

        int a;
        int b;
        int c;
 

	// 個数のの入力
        scanf("%d %d %d",&a,&b,&c);


        if(a == b) {
          if (a == c ) {
               
	    printf("%d\n",1);
          }
          else {
	    printf("%d\n",2);
          }
        }
        else {
           if (a  == c ) {
	    printf("%d\n",2);
           }
           else {
             if (b == C) {
	        printf("%d\n",2);
             }
             else {
	        printf("%d\n",1);
             }
           }
        }
      
        
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   11 |         scanf("%d %d %d",&a,&b,&c);
      |         ^~~~~
main.c:2:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    1 | #include <stdlib.h>
  +++ |+#include <stdio.h>
    2 | int main()
main.c:11:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   11 |         scanf("%d %d %d",&a,&b,&c);
      |         ^~~~~
main.c:11:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:17:13: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   17 |             printf("%d\n",1);
      |             ^~~~~~
main.c:17:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:17:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:20:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   20 |             printf("%d\n",2);
      |             ^~~~~~
main.c:20:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:25:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   25 |             printf("%d\n",2);
      |             ^~~~~~
main.c:25:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:28:23: error: 'C' undeclared (first use in this function)
   28 |              if (b == C) {
      |                       ^
main.c:28:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:29:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   29 |                 printf("%d\n",2);
      |                 ^~~~~~
main.c:29:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:32:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   32 |                 printf("%d\n",1);
      |                 ^~~~~~
main.c:32:17: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

    #include <iostream>
    using namespace std;
     
    int main(void){
    	int a,b,c,s=0;
    	int[101] arr={};
    	cin >> a >> b >> c;
    	arr[a]=1;
    	arr[b]=1;
    	arr[c]=1;
    	for(int i=0;i<101;i++){
    		s+=arr[i];
    	}
    	cout << s;
    	return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected identifier before numeric constant
    6 |         int[101] arr={};
      |             ^~~
a.cc:6:13: error: expected ']' before numeric constant
    6 |         int[101] arr={};
      |             ^~~
      |             ]
a.cc:6:12: error: structured binding declaration cannot have type 'int'
    6 |         int[101] arr={};
      |            ^
a.cc:6:12: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:6:12: error: empty structured binding declaration
a.cc:6:18: error: expected initializer before 'arr'
    6 |         int[101] arr={};
      |                  ^~~
a.cc:8:9: error: 'arr' was not declared in this scope
    8 |         arr[a]=1;
      |         ^~~
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&&c==a){
                         System.out.println(1);
            }else if(a==b||b==c||c==a){
                         System.out.println(2);
            }else if(a!=b&&b!=c&&c!=a){
                         System.out.println(3);
            }
      }
}

Compiler output:
Main.java:8: error: cannot find symbol
            if(a==b$$b==c&&c==a){
                  ^
  symbol:   variable b$$b
  location: class Main
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&&c==a){
                         System.out.println(1);
            }else if(a==b||b==c||c==a){
                         System.out.println(2);
            }else if(a!=b&&b!=c&&c!=a){
                         System.out.println(3)
            }
      }
}
                     

Compiler output:
Main.java:13: error: ';' expected
                         System.out.println(3)
                                              ^
1 error
Language: Java


public class Main {

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

}


Compiler output:
Main.java:6: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
Main.java:10: error: cannot find symbol
		Arrays.sort(a);
		^
  symbol:   variable Arrays
  location: class Main
3 errors
Language: C++

#include<iostream>
using namespace std;
bool use[110];
int main(){
int i=3,x,ans
while(i>0){
cin>>x;if(!use[x])++ans;
use[x]=true;
--i;
}
cout<<ans<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: expected initializer before 'while'
    6 | while(i>0){
      | ^~~~~
a.cc:11:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 | cout<<ans<<endl;
      |       ^~~
      |       abs
Language: C++

#include <iostream>
using namespace std;

int main(void){
	int a,b,c,s=0;
	int[101] arr={};
	cin >> a >> b >> c;
	int[a]=1;
	int[b]=1;
	int[c]=1;
	for(int i=0;i<101;i++){
		s+=arr[i];
	}
	cout << s;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected identifier before numeric constant
    6 |         int[101] arr={};
      |             ^~~
a.cc:6:13: error: expected ']' before numeric constant
    6 |         int[101] arr={};
      |             ^~~
      |             ]
a.cc:6:12: error: structured binding declaration cannot have type 'int'
    6 |         int[101] arr={};
      |            ^
a.cc:6:12: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:6:12: error: empty structured binding declaration
a.cc:6:18: error: expected initializer before 'arr'
    6 |         int[101] arr={};
      |                  ^~~
a.cc:8:12: error: structured binding declaration cannot have type 'int'
    8 |         int[a]=1;
      |            ^~~
a.cc:8:12: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:8:13: error: conflicting declaration 'auto a'
    8 |         int[a]=1;
      |             ^
a.cc:5:13: note: previous declaration as 'int a'
    5 |         int a,b,c,s=0;
      |             ^
a.cc:9:12: error: structured binding declaration cannot have type 'int'
    9 |         int[b]=1;
      |            ^~~
a.cc:9:12: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:9:13: error: conflicting declaration 'auto b'
    9 |         int[b]=1;
      |             ^
a.cc:5:15: note: previous declaration as 'int b'
    5 |         int a,b,c,s=0;
      |               ^
a.cc:10:12: error: structured binding declaration cannot have type 'int'
   10 |         int[c]=1;
      |            ^~~
a.cc:10:12: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:10:13: error: conflicting declaration 'auto c'
   10 |         int[c]=1;
      |             ^
a.cc:5:17: note: previous declaration as 'int c'
    5 |         int a,b,c,s=0;
      |                 ^
a.cc:12:20: error: 'arr' was not declared in this scope
   12 |                 s+=arr[i];
      |                    ^~~
Language: C++

#include <iostream>
using namespace std;

int main(void){
	int a,b,c,s=0;
	int[101] arr={};
	cin >> a >> b >> c;
	int[a]=1;
	int[b]=1;
	int[c]=1;
	for(int i=0;i<101;i++){
		s+=arr[i]
	}
	cout << s;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected identifier before numeric constant
    6 |         int[101] arr={};
      |             ^~~
a.cc:6:13: error: expected ']' before numeric constant
    6 |         int[101] arr={};
      |             ^~~
      |             ]
a.cc:6:12: error: structured binding declaration cannot have type 'int'
    6 |         int[101] arr={};
      |            ^
a.cc:6:12: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:6:12: error: empty structured binding declaration
a.cc:6:18: error: expected initializer before 'arr'
    6 |         int[101] arr={};
      |                  ^~~
a.cc:8:12: error: structured binding declaration cannot have type 'int'
    8 |         int[a]=1;
      |            ^~~
a.cc:8:12: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:8:13: error: conflicting declaration 'auto a'
    8 |         int[a]=1;
      |             ^
a.cc:5:13: note: previous declaration as 'int a'
    5 |         int a,b,c,s=0;
      |             ^
a.cc:9:12: error: structured binding declaration cannot have type 'int'
    9 |         int[b]=1;
      |            ^~~
a.cc:9:12: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:9:13: error: conflicting declaration 'auto b'
    9 |         int[b]=1;
      |             ^
a.cc:5:15: note: previous declaration as 'int b'
    5 |         int a,b,c,s=0;
      |               ^
a.cc:10:12: error: structured binding declaration cannot have type 'int'
   10 |         int[c]=1;
      |            ^~~
a.cc:10:12: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:10:13: error: conflicting declaration 'auto c'
   10 |         int[c]=1;
      |             ^
a.cc:5:17: note: previous declaration as 'int c'
    5 |         int a,b,c,s=0;
      |                 ^
a.cc:12:20: error: 'arr' was not declared in this scope
   12 |                 s+=arr[i]
      |                    ^~~
Language: C++

#include<iostream>
using namespace std;
bool use[110];
int main(){
int i=3,x,ans
while(i<3){
cin>>x;if(!use[x])++ans;
use[x]=true;
}
cout<<ans<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: expected initializer before 'while'
    6 | while(i<3){
      | ^~~~~
a.cc:10:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 | cout<<ans<<endl;
      |       ^~~
      |       abs
Language: C++

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <stdio.h>
      | ^~~~~~~
Language: C++

#include "bits/stdc++.h"

#ifdef LOCAL_DEBUG
#include "bits/mytest.h"
#endif

using namespace std;


#pragma region user_defined
#define CLR(arr,val) fill(arr.begin(),arr.end(),val);
#define CLR0(arr)  CLR(arr,0)

#define d2clear(arr,data) for(int i =0;i<arr.size();i++){for(int j =0;j<arr[i].size();j++){arr[i][j]=data;}}
#define d2print(arr) for(int i =0;i<arr.size();i++){for(int j =0;j<arr[i].size();j++){cout<<arr[i][j];} cout<<endl;}
#define d2array(name,type,rows,cols,data) vector< vector<type>  > name(rows,vector<type>(cols,data))

#define forit(arr,it) for(auto it=arr.begin();it!=arr.end();it++)
#define rforit(arr,it) for(auto it=arr.rbegin();it!=arr.rend();it++)

#define LL long long
#define A(n) n.begin(),n.end()
#define maxn(a,b) ((a)=((a)>(b)?(a):(b)))
#define minn(a,b) ((a)=((a)<(b)?(a):(b)))

#define min(a,b)  ( (a)<(b)?(a):(b)   )
#define max(a,b)  ( (a)>(b)?(a):(b)  )
#define last(a)   a[a.size()-1]
#define first(a)  a[0]
#define println(a) cout<<a<<endl;
#define mp(a,b)  make_pair(a,b)
#pragma endregion

//#define MULTI_CASE
class Solution{
	
	
	void solve(istream & cin = std::cin, ostream & cout = std::cout){
		int a, b, c; cin >> a >> b >> c;
		vector<int> arr(101, 0);
		arr[a] = 1;
		arr[b] = 1;
		arr[c] = 1;
		int cnt = 0;
		for (int i = 0; i <=100; i++)
		{
			cnt += arr[i];
		}
		cout << cnt << endl;
	}

}


int main() {
#ifdef LOCAL_DEBUG 
 
	MyTest::Judge::JudgeNormal judge;
	MyTest::Config config;
	config.judge = &judge;
	MyTest::Test test(config);

	const string ITEM_NAME("A.cpp");
	const string FILE_NAME(__FILE__);
	auto it=FILE_NAME.find_last_of('\\');
	auto inputfile = FILE_NAME.substr(0, it + 1) + ITEM_NAME.substr(0, ITEM_NAME.find_last_of('.')) + "_input.txt";
	auto outputfile = FILE_NAME.substr(0, it + 1) + ITEM_NAME.substr(0, ITEM_NAME.find_last_of('.')) + "_output.txt";
	freopen(inputfile.c_str(), "r", stdin);
	//freopen(outputfile.c_str(), "w", stdout);
	
	while (test.ReadCaseInOneFile()) {
		test.Begin();
		Solution s;
		s.solve(test.Input(),test.Output());
		test.End();
	}
	test.DisplayInfo();
#else   //online judge
#ifdef MULTI_CASE 
	int t;cin>>t;
	while(t--){
		Solution s; 
		s.solve();
	}
#else
	Solution s;
	s.solve();
#endif
#endif
	

 
	return 0;
}

Compiler output:
a.cc:52:2: error: expected ';' after class definition
   52 | }
      |  ^
      |  ;
a.cc: In function 'int main()':
a.cc:87:16: error: 'void Solution::solve(std::istream&, std::ostream&)' is private within this context
   87 |         s.solve();
      |         ~~~~~~~^~
a.cc:38:14: note: declared private here
   38 |         void solve(istream & cin = std::cin, ostream & cout = std::cout){
      |              ^~~~~
Language: C++

#include <iostream>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 | cin >> a >> b >> c;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:17:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 | cout << count << 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:17:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 | cout << count << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~