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

#include <cstdio>
int main()
{
	int a, b, c, d;
	scanf ("%d %d %d",&a,&b,&c);
	if (a == b && b == c) {
		printf ("1\n");
	}
	else if (a != b && b != c && a != c) {printf ("3\n");
                                       	printf ("Three different colors: %d, %d, and %d.",a,b,c);
	}
	else {if (a == b && a != c )
	{printf ("2\n");
	      printf ("Two different colors: %d and %d.",a,c);}
          if (a != b && b == c)
	{printf ("2\n");
	      printf ("Two different colors: %d and %d.",a,c);}
          if (b != c && a == c)
	{printf ("2\n");
	      printf ("Two different colors: %d and %d.",b,c);}
}
    return 0;
	}

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

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

	
    return 0;
	}

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

#include <stdio.h>

int main(){
	int a, b, c, n;
	n = 0;
	scanf("%d %d %d", &a,&b,&c);
	if(a>=1&&b>=1&&c<=100){
		if(a != b) n++;
		if(a != c) n++;
		if(b != c) n++;
		if(n=0) printf("1")
		else
			printf("%d\n", n);}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:36: error: expected ';' before 'else'
   11 |                 if(n=0) printf("1")
      |                                    ^
      |                                    ;
   12 |                 else
      |                 ~~~~
Language: C++

=#include <stdio.h>

int main(){
	int a, b, c, n;
	n = 0;
	scanf("%d %d %d", &a,&b,&c);
	if(a>=1&&b>=1&&c<=100){
		if(a != b) n++;
		if(a != c) n++;
		if(b != c) n++;
		if(n=0) printf("1")
		else
			printf("%d\n", n);}

	return 0;
}

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | =#include <stdio.h>
      |  ^
a.cc:1:1: error: expected unqualified-id before '=' token
    1 | =#include <stdio.h>
      | ^
Language: C

#include<cstdio>

int main(){
	int a, b, c, n;
	n = 0;
	scanf("%d %d %d", &a,&b,&c);
	if(a>=1&&b>=1&&c<=100){
	if(a != b) n++;
	if(a != c) n++;
	if(b != c) n++;
	printf("%d\n", n);}

	return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:31: error: expected ';' before 'printf'
    6 |         else (a == b && b ==c) printf("1\n");
      |                               ^~~~~~~
      |                               ;
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: redeclaration of 'int ans'
    7 |   int ans = 0;
      |       ^~~
a.cc:5:13: note: 'int ans' previously declared here
    5 |   int a,b,c,ans;
      |             ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  int a,b,c,ans;
  cin >> a>>b>>c;
  vector<int> v;
  v = {a,b,c};
  sort(v);
  ans =1;
  ans += (v[0] != v[1]);
  ans += (v[1] != v[2]);
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: no matching function for call to 'sort(std::vector<int>&)'
    9 |   sort(v);
      |   ~~~~^~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4762:5: note: candidate: 'template<class _RAIter> void std::sort(_RAIter, _RAIter)'
 4762 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4762:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algo.h:4793:5: note: candidate: 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)'
 4793 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator, _Compare)'
  292 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note:   candidate expects 4 arguments, 1 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator)'
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note:   candidate expects 3 arguments, 1 provided
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:71: error: expected ')' before ';' token
    7 |   printf("%d", (a == b ? a == c ? 1 : 2 : a == c ? 2 : b == c ? 2 : 3);
      |         ~                                                             ^
      |                                                                       )
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:71: error: expected ')' before '}' token
    7 |   printf("%d", (a == b ? a == c ? 1 : 2 : a == c ? 2 : b == c ? 2 : 3)
      |         ~                                                             ^
      |                                                                       )
    8 | }
      | ~
Language: C++

#include <stdio.h>
#include <algorithm>
#include<math.h>
#include<cstdlib>
#include<cstring>
using namespace std;

 int main()
{
	int a,b,c;
	scanf("%d%d%d",&a,&b,&c);
	int aa,bb,cc;
	if(a >= max(b,c)){aa = min(b,c);bb = max(b,c);cc = a;}
	if(a <max(b,c) && a > min(b,c)){aa= min(b,c);bb = a;cc =max(b,c);}
	if(a <=min(b,c)){ aa = a;bb=min(b,c);cc=max(b,c);}
	a=aa;b=bb;c=cc;
	if (a==b&&b==c)
{   printf("1\n);
    return 0;
}
    if(a==b)
{   printf("2\n);
    return 0;
}
    if(b==c)
{   printf("2\n);
    return 0;
}
    if(a!=b&&b!=c)
{   printf("3\n);
    return 0;
}
}

Compiler output:
a.cc:18:12: warning: missing terminating " character
   18 | {   printf("1\n);
      |            ^
a.cc:18:12: error: missing terminating " character
   18 | {   printf("1\n);
      |            ^~~~~~
a.cc:22:12: warning: missing terminating " character
   22 | {   printf("2\n);
      |            ^
a.cc:22:12: error: missing terminating " character
   22 | {   printf("2\n);
      |            ^~~~~~
a.cc:26:12: warning: missing terminating " character
   26 | {   printf("2\n);
      |            ^
a.cc:26:12: error: missing terminating " character
   26 | {   printf("2\n);
      |            ^~~~~~
a.cc:30:12: warning: missing terminating " character
   30 | {   printf("3\n);
      |            ^
a.cc:30:12: error: missing terminating " character
   30 | {   printf("3\n);
      |            ^~~~~~
a.cc: In function 'int main()':
a.cc:19:5: error: expected primary-expression before 'return'
   19 |     return 0;
      |     ^~~~~~
a.cc:23:5: error: expected primary-expression before 'return'
   23 |     return 0;
      |     ^~~~~~
a.cc:27:5: error: expected primary-expression before 'return'
   27 |     return 0;
      |     ^~~~~~
a.cc:31:5: error: expected primary-expression before 'return'
   31 |     return 0;
      |     ^~~~~~
Language: C++

#include <stdio.h>
#include <algorithm>
#include<math.h>
#include<cstdlib>
#include<cstring>
using namespace std;

 int main()
{
	int a,b,c;
	scanf("%d%d%d",&a,&b,&c);
	int aa,bb,cc;
	if(a >= max(b,c)){aa = min(b,c);bb = max(b,c);cc = a;}
	if(a <max(b,c) && a > min(b,c)){aa= min(b,c);bb = a;cc =max(b,c);}
	if(a <=min(b,c)){ aa = a;bb=min(b,c);cc=max(b,c);}
	a=aa;b=bb;c=cc;
	if (a==b&&b==c)
{   printf("1\nOne different colors: %d.",a);
    return 0;
}
    if(a==b)
{   printf("2\nTwo different colors: %d and %d.",b,c);
    return 0;
}
    if(b==c)
{   printf("2\nTwo different colors: %d and %d.",a,b);
    return 0;
}
    if(a!=b||b!=c)
{   printf("3\nThree different colors: %d, %d, and %d.",a,b,c);
    return 0;
}

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

#include <stdio.h>
#include <algorithm>
#include<math.h>
#include<cstdlib>
#include<cstring>
using namespace std;

 int main()
{
	int a,b,c;
	scanf("%d%d%d",&a,&b,&c);
	int aa,bb,cc;
	if(a >= max(b,c)){aa = min(b,c);bb = max(b,c);cc = a;}
	if(a <max(b,c) && a > min(b,c)){aa= min(b,c);bb = a;cc =max(b,c);}
	if(a <=min(b,c)){ aa = a;bb=min(b,c);cc=max(b,c);}
	a=aa;b=bb;c=cc;
	if (a==b&&b==c)
{   printf("1\nOne different colors:%d.",a);
    return 0;
}
    else if(a==b||c==a)
{   printf("2\nTwo different colors:%d and %d.",b,c);
    return 0;
}
    else if(b==c)
{   printf("2\nTwo different colors:%d and %d.",a,b);
    return 0;
}
    else 
{   printf("3\nThree different colors:%d, %d, and %d.",a,b,c);
    return 0;
}
}

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

#include<iostream>

int routine(int t,int a,int num){
  int i=1;
  int n=a+t;
  while(n>=num){
    n=n*i;
    i++;
  }
  return n;
}


int main(){
  int t,a;
  int turn;
  int num=0;
  int i=1;
  std::cin>>turn;

  while(turn!=i){
    std::cin>>t>>a;
    num=routine(t,a,num);
    i++;
  }

  std::cout<<n<<std::endl;
}


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

/*input
codefestival
*/
#include <bits/stdc++.h>
#pragma GCC optimize("unroll-loops,no-stack-protector")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
typedef pair<double,double> pdd;
#define IOS ios_base::sync_with_stdio(0); cin.tie(0)
#define ALL(a) a.begin(),a.end()
#define SZ(a) ((int)a.size())
#define F first
#define S second
#define REP(i,n) for(int i=0;i<((int)n);i++)
#define pb push_back
#define MP(a,b) make_pair(a,b)
#define SORT_UNIQUE(c) (sort(c.begin(),c.end()), c.resize(distance(c.begin(),unique(c.begin(),c.end()))))
#define GET_POS(c,x) (lower_bound(c.begin(),c.end(),x)-c.begin())
#ifdef leowang
#define debug(...) do{\
	fprintf(stderr,"%s - %d : (%s) = ",__PRETTY_FUNCTION__,__LINE__,#__VA_ARGS__);\
	_DO(__VA_ARGS__);\
}while(0)
template<typename I> void _DO(I&&x){cerr<<x<<endl;}
template<typename I,typename...T> void _DO(I&&x,T&&...tail){cerr<<x<<", ";_DO(tail...);}
#else
#define debug(...)
#endif
template<typename T1,typename T2>
ostream& operator<<(ostream& out,pair<T1,T2> P){
	out<<'('<<P.F<<','<<P.S<<')';
	return out;
}
//}}}
const ll maxn=300005;
const ll maxlg=__lg(maxn)+2;
const ll INF64=8000000000000000000LL;
const int INF=0x3f3f3f3f;
const ll MOD=ll(1e9+7);
const double PI=acos(-1);
//const ll p=880301;
//const ll P=31;

ll mypow(ll a,ll b){
	ll res=1LL;
	while(b){
		if(b&1) res=res*a%MOD;
		a=a*a%MOD;
		
		b>>=1;
	}
	return res;
}
set<int> st;
int main()
{
	IOS;
	REP(i,3){
		cin>>tmp;
		st.insert(tmp);
	}
	cout<<SZ(st);
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:62:22: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   62 |                 cin>>tmp;
      |                      ^~~
      |                      tm
Language: C

#include<stdio.h>
int n[5],sum=0;
int main()
{
	scanf("%d %d %d",&n[1],&n[2],&n[3]);
	sum=3;
	for(int i=1;i<=3;i++)
	{
		for(int j=0;j<=i-1;j++)

		{
				if(n[i]==n[j]){
				sum--;
				break;
							}
		}
	}i
	printf("%d",sum);
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:17:10: error: unknown type name 'i'
   17 |         }i
      |          ^
main.c:18:16: error: expected declaration specifiers or '...' before string constant
   18 |         printf("%d",sum);
      |                ^~~~
main.c:18:21: error: expected declaration specifiers or '...' before 'sum'
   18 |         printf("%d",sum);
      |                     ^~~
Language: C

1aaaaaaaaaaaaaaaaaaa1aaaaaaaaaaaaaaaaaaa1aaaaaaaaaaaaaaaaaaa1aaaaaaaaaaaaaaaaaaa1aaaaaaaaaaaaaaaaaaa1aaaaaaaaaaaaaaaaaaa

Compiler output:
main.c:1:1: error: invalid suffix "aaaaaaaaaaaaaaaaaaa1aaaaaaaaaaaaaaaaaaa1aaaaaaaaaaaaaaaaaaa1aaaaaaaaaaaaaaaaaaa1aaaaaaaaaaaaaaaaaaa1aaaaaaaaaaaaaaaaaaa" on integer constant
    1 | 1aaaaaaaaaaaaaaaaaaa1aaaaaaaaaaaaaaaaaaa1aaaaaaaaaaaaaaaaaaa1aaaaaaaaaaaaaaaaaaa1aaaaaaaaaaaaaaaaaaa1aaaaaaaaaaaaaaaaaaa
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:1:1: error: expected identifier or '(' before numeric constant
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <map>
#include <queue>
using namespace std;



int main()
{
	int a, b, c;
	cin >> a >> b >> c;
	map<int, int> ans;
	ans.insert<a, 1>;
	ans.insert<b, 1>;
	ans.insert<c, 1>;
	cout << ans.size() << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: statement cannot resolve address of overloaded function
   17 |         ans.insert<a, 1>;
      |         ~~~~^~~~~~~~~~~~
a.cc:18:13: error: statement cannot resolve address of overloaded function
   18 |         ans.insert<b, 1>;
      |         ~~~~^~~~~~~~~~~~
a.cc:19:13: error: statement cannot resolve address of overloaded function
   19 |         ans.insert<c, 1>;
      |         ~~~~^~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef unsigned long long ull;
int hash[101];
int main(){
	int a,b,c,ans=0;
	cin>>a>>b>>c;
	hash[a]++;
	hash[b]++;
	hash[c]++;
	for(int i=1;i<=100;i++){
		if(hash[i]!=0){
			ans++;
		}
	}
	cout<<ans;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: reference to 'hash' is ambiguous
   10 |         hash[a]++;
      |         ^~~~
In file included from /usr/include/c++/14/string_view:50,
                 from /usr/include/c++/14/bits/basic_string.h:47,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash'
   59 |     struct hash;
      |            ^~~~
a.cc:6:5: note:                 'int hash [101]'
    6 | int hash[101];
      |     ^~~~
a.cc:11:9: error: reference to 'hash' is ambiguous
   11 |         hash[b]++;
      |         ^~~~
/usr/include/c++/14/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash'
   59 |     struct hash;
      |            ^~~~
a.cc:6:5: note:                 'int hash [101]'
    6 | int hash[101];
      |     ^~~~
a.cc:12:9: error: reference to 'hash' is ambiguous
   12 |         hash[c]++;
      |         ^~~~
/usr/include/c++/14/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash'
   59 |     struct hash;
      |            ^~~~
a.cc:6:5: note:                 'int hash [101]'
    6 | int hash[101];
      |     ^~~~
a.cc:14:20: error: reference to 'hash' is ambiguous
   14 |                 if(hash[i]!=0){
      |                    ^~~~
/usr/include/c++/14/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash'
   59 |     struct hash;
      |            ^~~~
a.cc:6:5: note:                 'int hash [101]'
    6 | int hash[101];
      |     ^~~~
Language: C

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


}

Compiler output:
main.c: In function 'main':
main.c:17:64: warning: comparison between pointer and integer
   17 |                                                 return 0; && a != b)
      |                                                                ^~
main.c:17:68: error: expected ';' before ')' token
   17 |                                                 return 0; && a != b)
      |                                                                    ^
      |                                                                    ;
main.c:17:68: error: expected statement before ')' token
main.c:17:49: error: label 'a' used but not defined
   17 |                                                 return 0; && a != b)
      |                                                 ^~~~~~
Language: C++

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


}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:64: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |                                                 return 0; && a != b)
      |                                                           ~~~~~^~~~
a.cc:17:68: error: expected ';' before ')' token
   17 |                                                 return 0; && a != b)
      |                                                                    ^
      |                                                                    ;
a.cc:17:62: error: label 'a' used but not defined
   17 |                                                 return 0; && a != b)
      |                                                              ^
Language: C

#incude <stdio.h>
int main(){
  int a,b,c;
  scanf("%d%d%d",&a,&b,&c);
  if(a==b && b==c) puts("1");
  else puts((a-b)*(b-c)*(c-a)?"3":"2");
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #incude; did you mean #include?
    1 | #incude <stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   scanf("%d%d%d",&a,&b,&c);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #incude <stdio.h>
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%d%d%d",&a,&b,&c);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:20: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    5 |   if(a==b && b==c) puts("1");
      |                    ^~~~
main.c:5:20: note: include '<stdio.h>' or provide a declaration of 'puts'
Language: C

#incude <stdio.h>
int main(){
  int a,b,c;
  scanf("%d%d%d",&a,&b,&c);
  if(a==b && b==c) puts("1");
  else puts((a-b)(b-c)(c-a)?"3":"2");
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #incude; did you mean #include?
    1 | #incude <stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   scanf("%d%d%d",&a,&b,&c);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #incude <stdio.h>
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%d%d%d",&a,&b,&c);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:20: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    5 |   if(a==b && b==c) puts("1");
      |                    ^~~~
main.c:5:20: note: include '<stdio.h>' or provide a declaration of 'puts'
main.c:6:15: error: called object is not a function or function pointer
    6 |   else puts((a-b)(b-c)(c-a)?"3":"2");
      |             ~~^~~
Language: C++

#include "bits/stdc++.h"
using namespace std;
int main(){
    int n;cin>>n;--n;
    int a,b,t,s,tmpa,tmpb;cin>>a>>b;
    for(int i=0;i<n;++i){
        cin>>t>>s;tmpa=t,tmpb=s;
        int m=max((a+t-1)/t),(b+s-1)/s));
        a=m*t;b=m*s;
    }cout<<a+b;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: no matching function for call to 'max(int)'
    8 |         int m=max((a+t-1)/t),(b+s-1)/s));
      |               ~~~^~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   template argument deduction/substitution failed:
a.cc:8:18: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
    8 |         int m=max((a+t-1)/t),(b+s-1)/s));
      |               ~~~^~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   candidate expects 2 arguments, 1 provided
Language: C++

#include <iostream>
using namespace std;
int main(){
  int a,b,c,ans;
  cin>>a>>b>>c;
  if(a!=b)ans++;
  if(b!=c)ans++;
  if(a!=c)ans++;
  if(ans==0)ans++
  cout<<ans<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected ';' before 'cout'
    9 |   if(ans==0)ans++
      |                  ^
      |                  ;
   10 |   cout<<ans<<endl;
      |   ~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:33: error: expected statement before ')' token
    7 |   if((a==b) && (b==c) && (c==a)))
      |                                 ^
main.c:9:3: error: 'else' without a previous 'if'
    9 |   else if((a==b) || (b==c) || (c==a))
      |   ^~~~
Language: C

#include <stdio.h.

int main(void)
{
  int a, b, c, sum = 0;
  scanf("%d %d %d", &a, &b, &c);
  
  if((a==b) &&(b==c) && (c==a))
    sum = a+b+c;
  else if(a==b)
    sum = a+c;
  else if(b==c)
    sum = b+a;
  else if(c==a)
    sum = c+b;
  else 
    sum = a+b+c;
  
  printf("%d", sum);
  
  return 0;
}

Compiler output:
main.c:1:19: error: missing terminating > character
    1 | #include <stdio.h.
      |                   ^
main.c:1:10: fatal error: stdio.h.: No such file or directory
    1 | #include <stdio.h.
      |          ^
compilation terminated.
Language: C++

#include <iostream>

usign namespace std;
int main(){

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

Compiler output:
a.cc:3:1: error: 'usign' does not name a type
    3 | usign namespace 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 >> a;
      |         ^~~
      |         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:9: 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:27: 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)
      |     ^~~~
Language: C++

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

int main()
{
  int a, s, d,;
  cin >> a >> s >> d ;
  
 if(a==s&&s==d)
   cout << "1";
   else if(a!=s&&a!=d&&s!=d)
     cout << "3";
     else
       cout << "2";
     cout << endl;     
  

}  


Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected unqualified-id before ';' token
    6 |   int a, s, d,;
      |               ^
Language: C++

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

int main() {
    int a, b, c;
    cin >> a >> b >> c;
    vector<int> l = {a, b, c};
    sort(l.begin(), l.end());
    l.erase(unique(l.begin(), l.end()), l.end());
    cout << l.size() << endl;
    return 0;
}

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

#include<iostream>
#include<set>
using namespace std;
int main(){
  int a, b, c;	cin >> a >> b >> c;
  set<int> st{a, b, c};
  
  cout << s.size() << endl;
  return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 's' was not declared in this scope; did you mean 'st'?
    8 |   cout << s.size() << endl;
      |           ^
      |           st
Language: C++

#include<iostream>
using namespace std;
int main() {
 int a,b,c;	
 cin>>a>>b>>c;
 else if(a==b&&b==c){cout<<1<<endl;}
 if (a==b||a==c||b==c){cout<<2<<endl;}
 else{cout<<3<<endl;}
 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:2: error: 'else' without a previous 'if'
    6 |  else if(a==b&&b==c){cout<<1<<endl;}
      |  ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int a[3];

int main(){
  cin>>a[0]>>a[1]>>a[2];
  sort(a,a+3);
  int res = 0;
  for(i=0;i<2;++i){
    if(a[i] - a[i+1] == 0){
      res++;
    }
  }
}

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

import java.util.Scanner;

class Main{
	public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		int n[]=new int[3],s=1,i,j,t;
		for(i=0;i<3;i++) n[i]=stdIn.nextInt();
		for(i=0;i<2;i++) {
			for(j=2;j>i;j--) {
				if(n[j-1]>n[j]) {
					t=n[j-1];
					n[j-1]=n[j];
					n[j]=t;
				}
			}
		}
		for(i=0;i<2;i++) if(n[i]!=n[i+1]) s++;
		System.out.print(s);
	}
}

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.Scanner;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.Scanner;
      |            ^
main.c:3:1: error: unknown type name 'class'
    3 | class Main{
      | ^~~~~
main.c:3:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | class Main{
      |           ^
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
using namespace std;
typedef long long lng;
#define UP(i,a,b) for(int i=(a); i<=(b); ++i)
#define DOWN(i,b,a) for(int i=(b); i>=(a); --i)
#define REP(i,n) UP(i,0,n-1)
#define ALL(a) (a).begin(), (a).end()
#define UNIQUE(a) a.erase(unique(ALL(a)), a.end()) //NOTE: <a> must be sorted in advance

lng power(lng b, lng n) {lng sol=1; while(n>0) {if(n&1) {sol=sol*b;} n>>=1; b*= b;} return sol;} //calculate b^n

const int MOD = 1000000007; //10^9+7


/*********** variables ************/

/**********************************/

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    int a,b,c;
    cin>>a>>b>>c;
    if(a==b&&b==c) cout 1 << endl;
    else if(a==b||b==c||c==a) cout << 2 << endl;
    else cout<< 3 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:24: error: expected ';' before numeric constant
   27 |     if(a==b&&b==c) cout 1 << endl;
      |                        ^~
      |                        ;
Language: C

#include<stdio.h>
 
int main(void) {
  int a, b, c;
  int x[101];
  sum = 0;
 
  scanf("%d %d %d", &a, &b, &c);
 
  x[a]++; x[b]++; x[c]++;
 
  for(int i = 0; i < 101; i++) {
    if(x[i]) {
      sum++;
    }
  }
}#include<stdio.h>
 
int main(void) {
  int a, b, c;
  int x[101];
  int sum = 0;
 
  scanf("%d %d %d", &a, &b, &c);
 
  x[a]++; x[b]++; x[c]++;
 
  for(int i = 0; i < 101; i++) {
    if(x[i]) {
      sum++;
    }
  }
}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: 'sum' undeclared (first use in this function)
    6 |   sum = 0;
      |   ^~~
main.c:6:3: note: each undeclared identifier is reported only once for each function it appears in
main.c: At top level:
main.c:17:2: error: stray '#' in program
   17 | }#include<stdio.h>
      |  ^
main.c:17:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   17 | }#include<stdio.h>
      |          ^
Language: C

#include<stdio.h>

int main(void) {
  int a, b, c;
  int x[101];
  sum = 0;

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

  x[a]++; x[b]++; x[c]++;

  for(int i = 0; i < 101; i++) {
    if(x[i]) {
      sum++;
    }
  }
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: expected '}' before 'else'
   10 |     else if(a==b||b==c||c==a){
      |     ^~~~
a.cc:8:14: note: to match this '{'
    8 |   if(a==b==c){
      |              ^
Language: C++

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();

    int sameCount = 0 ;

    if( a == b ){
      sameCount ++ ;
    }
    if( b == c ){
      sameCount ++ ;
    }
    if( c == a ){
      sameCount ++ ;
    }

    switch(sameCount){
      case 0:
        System.out.println(3);
      break;
      case 1:
        System.out.println(2);
      break;
      case 3:
        System.out.println(1);
      break;
    }
  }
}


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:3:1: error: expected unqualified-id before 'public'
    3 | public class Main{
      | ^~~~~~
Language: C++

#include <bits/stdc++.h>
#include <typeinfo>
#include <cxxabi.h>
#ifdef LOCAL
  #include "dbgtoki.hpp"
  #define DUMP(i) dump((string)TOSTRING(i), demangle(typeid(i).name()), __LINE__ , i) 
DbgTimer D_t;
  #define TSTART() D_t.start()
  #define TSTOP() D_t.stop()
#else
  #define DUMP(i) 
  #define TSTART()
  #define TSTOP()  
#endif
 
#define TOSTRING(x) #x
#define SZ(x) (int)(x).size()
#define REP(i,n) for(int i=0;i<(n);i++)
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define ALL(s) (s).begin(), (s).end()
#define UNIQUE(v) v.erase( unique(v.begin(), v.end()) , v.end());
using namespace std;
typedef long long unsigned int llu;
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vll;

const int EPS = 1e-9;



int main (){
  cin.tie(0);
  ios::sync_with_stdio(false);
  vi color(3);
  while(cin >> color[0] >> color[1] >> color[2]){
    TSTART();
    int ans;
    sort(color);//忘れないように!
    UNIQUE(color);
    ans = SZ(color);

    cout << ans << endl;
    TSTOP();
  }
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:39:9: error: no matching function for call to 'sort(vi&)'
   39 |     sort(color);//忘れないように!
      |     ~~~~^~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4762:5: note: candidate: 'template<class _RAIter> void std::sort(_RAIter, _RAIter)'
 4762 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4762:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algo.h:4793:5: note: candidate: 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)'
 4793 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator, _Compare)'
  292 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note:   candidate expects 4 arguments, 1 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator)'
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note:   candidate expects 3 arguments, 1 provided
Language: C++

#include<iostream>
#include<algorithm>
#include<math.h>
#include<set>
#include<vector>
#include<map>
#include <numeric>
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)
cout<<2<<endl;
else if(b==c&&c!=a)
cout<<2<<endl;
else if(c==a&&a!=b)
cout<<2<<endl;
else if(a!=b!&&b!=c&&c!=a)
cout<<1<<endl;
}

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

#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <cmath>
#include <utility>
typedef long long ll;
ll MOD = 1e9+7;

using namespace std;

int main()
{
	int a,b,c;
	bool co[100];
	fill(co,co+100,false);
	int ans=0;
	
	cin>>a>>b>>c;
	co[a-1]=true;
	co[b-1]=true;
	co[c-1]=true;
	for(int i=0;i<100;i++)
	{
		if(c[i])
			ans++;
	}
	cout<<ans<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:21: error: invalid types 'int[int]' for array subscript
   25 |                 if(c[i])
      |                     ^
Language: C++

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

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



#include <iostream>
#include <string>
#include<algorithm>
#include <cstdlib>
#include <cmath>

using namespace std;
int main()
{
	int a, b, h;
	cin >> a >> b >> h;
	int count = 3;
	if (a == b) count--;
	else if (a == h) count--;
	if (b == h) count--;
	cout, < count << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:15: error: expected primary-expression before '<' token
   18 |         cout, < count << endl;
      |               ^
a.cc:18:23: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   18 |         cout, < count << endl;
      |                 ~~~~~~^~~~~~~
Language: C++

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {
    int a, b, c;

    public static void main(String args[]) {
        new Main().run();
    }

    void run() {
        FastReader sc = new FastReader();
        a = sc.nextInt();
        b = sc.nextInt();
        c = sc.nextInt();
        solve();
    }

    void solve() {
        int ans = 3;
        if (a == b && b == c) {
            ans = 1;
        } else if (a == b || b == c || c == a) {
            ans = 2;
        }
        System.out.println(ans);
    }

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements())
            {
                try
                {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException e)
                {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt()
        {
            return Integer.parseInt(next());
        }

        long nextLong()
        {
            return Long.parseLong(next());
        }

        double nextDouble()
        {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try
            {
                str = br.readLine();
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
            return str;
        }
    }
}


Compiler output:
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.IOException;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.io.InputStreamReader;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import java.util.StringTokenizer;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: expected unqualified-id before 'public'
    6 | public class Main {
      | ^~~~~~
Language: C++

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

int A[4];
int main(){ 
    cin >> A[0] >> A[1] >> A[2];
    int cc=0

    for(int i=0;i<=3;i++){
        if(A[i]!=A[i+1])    cc++;
    }

    cout << cc << endl; 

    return 0;
}


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

#include <stdio.h>

int main() {

		int a, b, c, dd = 0;


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

		if (a == b)dd++;

		if (a == c)dd++;

		if (b == c)dd++;

		if (dd == 3) dd = 2;

		printf("%d", 3 - dd);






		return 0;
	

}

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

#include <stdio.h>

int main() {

		int a, b, c, dd = 0;


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

		if (a == b)dd++;

		if (a == c)dd++;

		if (b == c)dd++;

		if (dd == 3) dd = 2;

		printf("%d", 3 - dd);






		return 0;
	

}

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

#include <stdio.h>

int main() {
	int a, b, c ,dd = 0;
	

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

	if (a == b)dd++;

	if (a == c)dd++;

	if (b == c)dd++;

	if (dd == 3) dd = 2;

	printf("%d", 3 - dd);
	





	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", &a, &b, &c);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <stdio.h>
#include "stdafx.h"

int main() {
	int a, b, c ,dd = 0;
	

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

	if (a == b)dd++;

	if (a == c)dd++;

	if (b == c)dd++;

	if (dd == 3) dd = 2;

	printf("%d", 3 - dd);
	





	return 0;
}

Compiler output:
a.cc:2:10: fatal error: stdafx.h: No such file or directory
    2 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>
#include "stdafx.h"

int main() {
	int a, b, c ,dd = 0;
	

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

	if (a == b)dd++;

	if (a == c)dd++;

	if (b == c)dd++;

	if (dd == 3) dd = 2;

	printf("%d", 3 - dd);
	





	return 0;
}

Compiler output:
main.c:2:10: fatal error: stdafx.h: No such file or directory
    2 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C

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

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: expected '(' before 'else'
   10 |   }if else (a != b && b != c){
      |       ^~~~
      |       (
a.cc:12:4: error: 'else' without a previous 'if'
   12 |   }else {
      |    ^~~~
Language: C++

#include<iostream>
using namespace std;

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

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

#include<iostream>
using namespace std;

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

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'a'
    6 |   cin a>>b>>c;
      |      ^~
      |      ;
a.cc:10:13: error: expected '(' before '!' token
   10 |   } else if !(a == b && a == c){
      |             ^
      |             (
a.cc:14:4: error: expected '}' at end of input
   14 |   }
      |    ^
a.cc:4:13: note: to match this '{'
    4 | int main () {
      |             ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cina' was not declared in this scope
    6 |   cina>>b>>c;
      |   ^~~~
a.cc:10:13: error: expected '(' before '!' token
   10 |   } else if !(a == b && a == c){
      |             ^
      |             (
a.cc:14:4: error: expected '}' at end of input
   14 |   }
      |    ^
a.cc:4:13: note: to match this '{'
    4 | int main () {
      |             ^
Language: C++

#include<iostream>
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){
    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;
      |     ^~~~
      |     (