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


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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> a >> b >> c;
      |   ^~~
a.cc:9:13: error: 'cout' was not declared in this scope
    9 |   if(d > 0) cout << d;
      |             ^~~~
a.cc:10:8: error: 'cout' was not declared in this scope
   10 |   else cout << 1;
      |        ^~~~
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:1: error: expected primary-expression before ']' token
   19 | ]
      | ^
a.cc:19:2: error: expected '}' at end of input
   19 | ]
      |  ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

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

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

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

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

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

#include<bits/stdc++.h>
using namespace std;
int main(){
 
  vector<int>ans(3);
  cin>>ans.at(0)>>ans.at(1)>>ans.at(2);
  
  int sum=0;
  
 
  for(int i=0;i<3;i++){
    if(i==0){
      sum++;
    }
    
    if(i==1&&ans.at(i)!=ans.at(i-1)){
      sum++;
    }
    if(i==2&&ans.at(i)!=ans.at(i-1)&&ans.at(i)!=ans.at(i-2)){
      sum++
    }
  }
  cout<<sum<<endl;
}

    
    
    
    

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

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

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

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

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

    
  

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected ')' before '!' token
    7 |   if((a!b)&&(a!c)&&(b!c)){
      |      ~ ^
      |        )
a.cc:9:4: error: expected ')' before 'else'
    9 |   }else if((a==b)&&(a==c)){
      |    ^~~~
      |    )
a.cc:7:5: note: to match this '('
    7 |   if((a!b)&&(a!c)&&(b!c)){
      |     ^
a.cc:14:1: error: expected primary-expression before '}' token
   14 | }
      | ^
Language: C++

#include<stdio.h>
int main(void)
{
	int a,b,c,s;
	scanf("%d",&a);
	scanf("%d",&b);
	scanf("%d",&c);
	s=3;
	if(a==b)	{
		s=s-1;
	}
	if(b==c)	{
     s=s-1;
	}
	if(a==c)	{
		s=s-1;
	}
	if(s==0)	{
		s=s+1;
	}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 's' was not declared in this scope
    9 |         s=1;
      |         ^
a.cc:13:17: error: 's' was not declared in this scope
   13 |                 s=2+
      |                 ^
a.cc:14:9: error: expected primary-expression before '}' token
   14 |         }
      |         ^
a.cc:16:17: error: 's' was not declared in this scope
   16 |                 s=3;
      |                 ^
a.cc:18:23: error: 's' was not declared in this scope
   18 |         printf("%d\n",s);
      |                       ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 's' was not declared in this scope
    9 |         s=1;
      |         ^
a.cc:13:17: error: 's' was not declared in this scope
   13 |                 s=2+
      |                 ^
a.cc:14:9: error: expected primary-expression before '}' token
   14 |         }
      |         ^
a.cc:16:17: error: 's' was not declared in this scope
   16 |                 s=3;
      |                 ^
a.cc:18:23: error: 's' was not declared in this scope
   18 |         printf("%d\n",s);
      |                       ^
Language: C++

#include<stdio.h>
int main(void) {
	int a, b, c;
	int count = 0;
	scanf("%d", &a);
	scanf("%d", &b);
	scanf("%d", &c);

	int color[1];

	color[0] = a;
	int count = 1;
	if (color[0] == b) {
		if (color[0] == c) {
		}
	}
	else if (color[0] != c) {
		count = 3;
	}
	else {
		count = 2;
	}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: redeclaration of 'int count'
   12 |         int count = 1;
      |             ^~~~~
a.cc:4:13: note: 'int count' previously declared here
    4 |         int count = 0;
      |             ^~~~~
Language: C++

#include<stdio.h>
int main(void) {
	int a, b, c;
	int count = 0;
	scanf("%d", &a);
	scanf("%d", &b);
	scanf("%d", &c);

	int color[1];

	color[0] = a;
	int count = 1;
	if (color[0] == b) {
		if (color[0] == c) {

		}
	}
	else if (color[0] != c) {
		count = 3;
	}
	else {
		count = 2;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: redeclaration of 'int count'
   12 |         int count = 1;
      |             ^~~~~
a.cc:4:13: note: 'int count' previously declared here
    4 |         int count = 0;
      |             ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c;
  cin>>a>>b>>c;
  int ans=1;
  if(a!=b){ans++;}
  if(b!=c){ans++;}
  if(a==c){ans--+}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected primary-expression before '}' token
    9 |   if(a==c){ans--+}
      |                  ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:11:24: error: expected ';' before '}' token
   11 |         printf("%d", 2)
      |                        ^
      |                        ;
   12 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
  int a[3];
  map<int,int>mp;
  for(int i=0;i<3;i++)
  {
    cin>>a[i];
    mp[a[i]]++;
  }
  cout<<mp.size():
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: expected ';' before ':' token
   12 |   cout<<mp.size():
      |                  ^
      |                  ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected ';' before 'if'
    6 |   count = 0
      |            ^
      |            ;
    7 |   if (a==c)
      |   ~~
Language: C++

#include <bits/stdc++.h> //JuniorMonster a.k.a Sho10
#define ll long long
#pragma GCC optimize("O3")
#pragma GCC optimize("Ofast")
#define all(a) (a).begin(), (a).end()
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#define sz size
#define f first
#define s second
#define pb push_back
#define er erase
#define in insert
#define mp make_pair
#define pi pair
#define rc(s) return cout<<s,0
#define mod 1000000007
#define PI 3.14159265359
#define CODE_START  ios_base::sync_with_stdio();cin.tie();cout.tie();
using namespace std;
ll a[4],ans=3;
int32_t main(){
CODE_START;
cin >> a[0] >> a[1] >> a[2];
sort(a,a+n);
for(ll i=0;i<1;i++)
if(a[i]==a[i+1]){
    ans--;
}
cout << ans;
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:24:10: error: 'n' was not declared in this scope; did you mean 'yn'?
   24 | sort(a,a+n);
      |          ^
      |          yn
Language: C++

#include <iostream>
using namespace std;
   int rr(int b,int N){
      int c=N-1;
     int d=0;
      b=K-1;
      while(c>0){
        d=b;
        b=b*d;
        
        c-=1;
      }
      return b;
    }
int main() {
   int N,K,a,b,e;
    cin >>N>>K;
 
  
  if(N==1){
    a=N*K;
  }else{
    e=K+(N-1)*rr(K,N);
  }
  
}


Compiler output:
a.cc: In function 'int rr(int, int)':
a.cc:6:9: error: 'K' was not declared in this scope
    6 |       b=K-1;
      |         ^
Language: C++

#include <iostream>
using namespace std;
   int rr(int b){
      int c=N-1;
     int d=0;
      b=K-1;
      while(c>0){
        d=b;
        b=b*d;
        
        c-=1;
      }
      return b;
    }
int main() {
   int N,K,a,b,e;
    cin >>N>>K;
 
  
  if(N==1){
    a=N*K;
  }else{
    e=K+(N-1)*rr(K);
  }
  
}

Compiler output:
a.cc: In function 'int rr(int)':
a.cc:4:13: error: 'N' was not declared in this scope
    4 |       int c=N-1;
      |             ^
a.cc:6:9: error: 'K' was not declared in this scope
    6 |       b=K-1;
      |         ^
Language: C++

#include <iostream>
using namespace std;
 
int main() {
   int N,K,a,b,e;
    cin >>N>>K;
   int rr(int b){
      int c=N-1;
     int d=0;
      b=K-1;
      while(c>0){
        d=b;
        b=b*d;
        
        c-=1;
      }
      return b;
    }
  
  if(N==1){
    a=N*K;
  }else{
    e=K+(N-1)*rr(K);
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: a function-definition is not allowed here before '{' token
    7 |    int rr(int b){
      |                 ^
a.cc:23:15: error: 'rr' was not declared in this scope
   23 |     e=K+(N-1)*rr(K);
      |               ^~
Language: C++

#include <iostream>
using namespace std;
 
int main() {
   int N,K,a,b,e;
    cin >>N>>K;
   int rr(int b){
      int c=N-1;
     int d=0;
      b=K-1;
      while(c>0){
        d=b;
        b=b*d;
        
        c-=1;
      }
      return b;
    }
  
  if(N==1){
    a=N*K;
  }else{
    e=K+(N-1)*rr(K);
  }
  
   
 
cout << e;
 
 
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: a function-definition is not allowed here before '{' token
    7 |    int rr(int b){
      |                 ^
a.cc:23:15: error: 'rr' was not declared in this scope
   23 |     e=K+(N-1)*rr(K);
      |               ^~
Language: C++

#include <iostream>
using namespace std;
 
int main() {
   int N,K,a,b,e;
    cin >>N>>K;
   int rr(int b) {
      int c=N-1;
     int d=0;
      b=K-1;
      while(c>0){
        d=b;
        b=b*d;
        
        c-=1;
      }
      return b;
    }
  
  if(N==1){
    a=N*K;
  }else{
    e=K+(N-1)*rr(K);
  }
  
   
 
cout << e;
 
 
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: a function-definition is not allowed here before '{' token
    7 |    int rr(int b) {
      |                  ^
a.cc:23:15: error: 'rr' was not declared in this scope
   23 |     e=K+(N-1)*rr(K);
      |               ^~
Language: C++

#include <iostream>
using namespace std;
 
int main() {
   int N,K,a,b,e;
    cin >>N>>K;
   int rr(int b){
      int c=N-1;
      b=K-1;
      while(c>0){
        b=b*b;
        c-=1;
      }
      return b;
    }
  for(int i=1;i<N;i++){
  if(N==1){
    a=N*K;
  }else{
    e=K+(N-1)*rr(K);
  }
  }
   
 
cout << e;
 
 
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: a function-definition is not allowed here before '{' token
    7 |    int rr(int b){
      |                 ^
a.cc:20:15: error: 'rr' was not declared in this scope
   20 |     e=K+(N-1)*rr(K);
      |               ^~
Language: C++

#include <iostream>
using namespace std;
 
int main() {
   int N,K,a,b,e;
    cin >>N>>K;
   int rr(int b){
      int c=N-1;
      b=K-1;
      while(c>0){
        b=b*b;
        c-=1
      }
      return b;
    }
  for(int i=1;i<N;i++){
  if(N==1){
    a=N*K;
  }else{
    e=K+(N-1)*rr(K);
  }
  }
   
 
cout << e;
 
 
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: a function-definition is not allowed here before '{' token
    7 |    int rr(int b){
      |                 ^
a.cc:20:15: error: 'rr' was not declared in this scope
   20 |     e=K+(N-1)*rr(K);
      |               ^~
Language: C++

#include <iostream>
using namespace std;
 
int main() {
   int N,K,a,b,e;
    cin >>N>>K;
  for(int i=1;i<N;i++){
  if(N==1){
    a=N*K;
  }else{
    e=K+(N-1)*rr(K);
  }
  }
    int rr(int b){
      int c=N-1;
      b=K-1;
      while(c>0){
        b=b*b;
        c-=1
      }
      return b;
    }

cout << e;
 

    }
 

Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: 'rr' was not declared in this scope
   11 |     e=K+(N-1)*rr(K);
      |               ^~
a.cc:14:18: error: a function-definition is not allowed here before '{' token
   14 |     int rr(int b){
      |                  ^
Language: C++

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

int main(void){

  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
    cout<<3<<endl;
}
  
  

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

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

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


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

#include <iostream>

using namespace std;

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

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:41: error: expected ';' before '{' token
   12 |     else if((a == b || b == c || c == a){
      |                                         ^
      |                                         ;
a.cc:15:5: error: expected primary-expression before 'else'
   15 |     else {
      |     ^~~~
a.cc:14:6: error: expected ')' before 'else'
   14 |     }
      |      ^
      |      )
   15 |     else {
      |     ~~~~
a.cc:12:12: note: to match this '('
   12 |     else if((a == b || b == c || c == a){
      |            ^
Language: C++

#include <iostream>
#include <sstream>
#include <cstdio>
#include <cmath>
#include <vector>
#include <string>
#include <algorithm>
#include <map>
#include <set>
#include <queue>

#ifdef _DEBUG
#define DMP(x) cerr << #x << ": " << x << "\n"
#else
#define DMP(x) ((void)0)
#endif

const int MOD = 1000000007, INF = 1111111111; 
using namespace std;
typedef long long lint;

int main() {

	cin.tie(nullptr);
	ios::sync_with_stdio(false);

	int A, B, C;
	cin >> A >> B >> C;

    if(A==B&&B==C) {
      cout<< 1;
    }
    else if(A==B||B==C||C==A){
      cout << 2;
    }
    else{
	  cout << 3
    }

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:20: error: expected ';' before '}' token
   37 |           cout << 3
      |                    ^
      |                    ;
   38 |     }
      |     ~
Language: C

#include <iostream>
#include <sstream>
#include <cstdio>
#include <cmath>
#include <vector>
#include <string>
#include <algorithm>
#include <map>
#include <set>
#include <queue>

#ifdef _DEBUG
#define DMP(x) cerr << #x << ": " << x << "\n"
#else
#define DMP(x) ((void)0)
#endif

const int MOD = 1000000007, INF = 1111111111; 
using namespace std;
typedef long long lint;

int main() {

	cin.tie(nullptr);
	ios::sync_with_stdio(false);

	int A, B, C;
	cin >> A >> B >> C;

    if(A==B&&B==C) {
      cout<< 1;
    }
    else if(A==B||B==C||C==A){
      cout << 2;
    }
    else{
	  cout << 3
    }

	return 0;
}


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

#include"bits/srdc++.h"

using namespace std;
int main() {
	/*int a, b, h;
	int sqer=0;
	cin >> a >> b >> h;
	if (h%2==0)
	{
		sqer=((a + b)*h) / 2;
	}
	else
	{
		cout << "error" << endl;
	}

	cout << sqer << endl;*/
	int a,b,c;
	int ristrict = 3;
	cin >> a >> b >> c;

	if (a==b)
	{
		ristrict--;
	}
	if (b == c) {
		ristrict--;
	}
	if (a==c)
	{
		ristrict--;
	}

	cout << ristrict << endl;
}

Compiler output:
a.cc:1:9: fatal error: bits/srdc++.h: No such file or directory
    1 | #include"bits/srdc++.h"
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h> using namespace std; int main() {set<int> s;int x;cin >> x;s.insert(x);cin >> x;s.insert(x);cin >> x;s.insert(x);cout << s.size() << endl;}

Compiler output:
a.cc:1:25: warning: extra tokens at end of #include directive
    1 | #include<bits/stdc++.h> using namespace std; int main() {set<int> s;int x;cin >> x;s.insert(x);cin >> x;s.insert(x);cin >> x;s.insert(x);cout << s.size() << endl;}
      |                         ^~~~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <bits/stdc++.h>
#define ll long long
#define INIT std::ios::sync_with_stdio(false);std::cin.tie(0);
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define dump(x)  cerr << #x << " = " << (x) << endl;
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;

using namespace std;

int main() {
  INIT;
  
  int a,b,c;
  cin >> a >> b >> c;
  std::set<int> s{a,b,c};
  cout <<  s.length() << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:14: error: 'class std::set<int>' has no member named 'length'
   17 |   cout <<  s.length() << endl;
      |              ^~~~~~
Language: C++

#include <stdio.h>
#include <algorithm>
#include <math.h>
using namespace std;
int main()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c)
int ans=1;
if(a!=b){ans++;}
if(a!=c&&b!=c){ans++;}
printf("%d\n",ans);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: expected ';' before 'int'
    8 | scanf("%d %d %d",&a,&b,&c)
      |                           ^
      |                           ;
    9 | int ans=1;
      | ~~~                        
a.cc:10:10: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 | if(a!=b){ans++;}
      |          ^~~
      |          abs
a.cc:11:16: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 | if(a!=c&&b!=c){ans++;}
      |                ^~~
      |                abs
a.cc:12:15: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 | printf("%d\n",ans);
      |               ^~~
      |               abs
Language: C++

#include <stdio.h>
#include <algorithm>
#include <math.h>
using namespace std;
int main()
{
int a,b,c
scanf("%d %d %d",&a,&b,&c)
int ans=1;
if(a!=b){ans++;}
if(a!=c&&b!=c){ans++;}
printf("%d\n",ans);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: expected initializer before 'scanf'
    8 | scanf("%d %d %d",&a,&b,&c)
      | ^~~~~
a.cc:10:10: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 | if(a!=b){ans++;}
      |          ^~~
      |          abs
a.cc:11:7: error: 'c' was not declared in this scope
   11 | if(a!=c&&b!=c){ans++;}
      |       ^
a.cc:11:16: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 | if(a!=c&&b!=c){ans++;}
      |                ^~~
      |                abs
a.cc:12:15: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 | printf("%d\n",ans);
      |               ^~~
      |               abs
Language: C++

#include <iostream>
using namespace std;

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

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

#include<bits/stdc++>
using namespace stdc;

int main(){
  int count=0;
  vector<int> vec(4);
  for(int i=0; i<3; i++){
    cin >> ve.at(i); 
  }
  for(int i=0; i<2; i++){
    if(vec.at(i)=vec.at(i+1)){
      count += 1;
    }
  }
  cout << 3-count << endl;
}

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

#include<iostream>
using namespace std;


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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ';' before '{' token
    8 |     if((a==b)&&(b==c){
      |                      ^
      |                      ;
a.cc:11:5: error: expected primary-expression before 'else'
   11 |     else if((a==b)||(b==c)||(c==a)){
      |     ^~~~
a.cc:10:6: error: expected ')' before 'else'
   10 |     }
      |      ^
      |      )
   11 |     else if((a==b)||(b==c)||(c==a)){
      |     ~~~~
a.cc:8:7: note: to match this '('
    8 |     if((a==b)&&(b==c){
      |       ^
Language: C++

#include<iostream>
using namespace std;


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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:35: error: expected ';' before '{' token
   11 |     else if((a==b)||(b==c)||(c==a){
      |                                   ^
      |                                   ;
a.cc:14:5: error: expected primary-expression before 'else'
   14 |     else{
      |     ^~~~
a.cc:13:6: error: expected ')' before 'else'
   13 |     }
      |      ^
      |      )
   14 |     else{
      |     ~~~~
a.cc:11:12: note: to match this '('
   11 |     else if((a==b)||(b==c)||(c==a){
      |            ^
Language: C++

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

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

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

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

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

  return 0;
}


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

#include<iostream>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   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:10:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   cout << ans << 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:10:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   cout << ans << 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(void){
    int a,b,c;
    cin>>a>>b>>>c;
    if(a==b&&b==c)
        cout<<3<<<endl;
    else if(a!=b&&b!=c&&c!=a)
        cout<<1<<endl;
    else
        cout<<2<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected primary-expression before '>' token
    6 |     cin>>a>>b>>>c;
      |                ^
a.cc:8:18: error: expected primary-expression before '<' token
    8 |         cout<<3<<<endl;
      |                  ^
Language: C++

import java.util.Scanner;

public class Main{
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();

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


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
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 <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>

#define _CRT_SECURE_NO_WARNINGS
#define TLong long long 

// fact(n)
int fact(int n){
	if(n == 1)	return 1;
	else return (n * fact(n - 1));
}

// combination(n,r)
int combination(int n, int r){
	if(r == 0 || r == n)	return 1;
	else if(r == 1)	return n;
	return (combination(n - 1, r - 1) + combination(n - 1, r));
}

int gcd(int a,int b){
	if(!(a % b)) return b;
	return gcd(b,a % b);
}

// lcm(a.b)
int lcm(int a,int b){
	return (a * b) / gcd(a,b);
}

// qsort(array, size, sizeof(int),comp);
int comp(const int *a,const int *b){
	return (*a - *b);
}

// append(array,*size,addNum)
void append(int *array,int *size,int num){
	realloc(array, sizeof(int) * (*size + 1));
	array[(*size)] = num;
	++(*size);
}

// pop(array,*size) & nongetpop(array,*size)
int pop(int *array,int *size){
	int temp = array[(*size - 1)];
	nongetpop(array,&(*size));
	return temp;
}

void nongetpop(int *array,int *size){
	realloc(array,sizeof(int) * (*size - 1));
	--(*size);
}

int main(int argc, char const *argv[]){
	TLong n,k;
	scanf("%d%d",&n,&k);
	ans = k;
	for(int i = 1;i < n; ++i) ans *= (k - 1);
	printf("%lld\n",ans);
	return 0;
}


Compiler output:
main.c: In function 'pop':
main.c:48:9: error: implicit declaration of function 'nongetpop' [-Wimplicit-function-declaration]
   48 |         nongetpop(array,&(*size));
      |         ^~~~~~~~~
main.c: At top level:
main.c:52:6: warning: conflicting types for 'nongetpop'; have 'void(int *, int *)'
   52 | void nongetpop(int *array,int *size){
      |      ^~~~~~~~~
main.c:48:9: note: previous implicit declaration of 'nongetpop' with type 'void(int *, int *)'
   48 |         nongetpop(array,&(*size));
      |         ^~~~~~~~~
main.c: In function 'main':
main.c:60:9: error: 'ans' undeclared (first use in this function); did you mean 'abs'?
   60 |         ans = k;
      |         ^~~
      |         abs
main.c:60:9: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 'append':
main.c:40:9: warning: ignoring return value of 'realloc' declared with attribute 'warn_unused_result' [-Wunused-result]
   40 |         realloc(array, sizeof(int) * (*size + 1));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c: In function 'nongetpop':
main.c:53:9: warning: ignoring return value of 'realloc' declared with attribute 'warn_unused_result' [-Wunused-result]
   53 |         realloc(array,sizeof(int) * (*size - 1));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: expected ';' before 'cout'
    9 |     else s=3
      |             ^
      |             ;
   10 |     cout<<s<<endl;
      |     ~~~~
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
	vector<int> vec;
	int a;
	for(int i=0; i<3; ++i){
		cin >> a;
		vec.emplace_back(a);
	}
	sort(vec.begin(),vec.end());
	vec.erase(unique(vec.begin(), vec.end()), vec.end());
	cout << vec.size() << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'vector' was not declared in this scope
    5 |         vector<int> vec;
      |         ^~~~~~
a.cc:3:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    2 | #include<algorithm>
  +++ |+#include <vector>
    3 | using namespace std;
a.cc:5:16: error: expected primary-expression before 'int'
    5 |         vector<int> vec;
      |                ^~~
a.cc:9:17: error: 'vec' was not declared in this scope
    9 |                 vec.emplace_back(a);
      |                 ^~~
a.cc:11:14: error: 'vec' was not declared in this scope
   11 |         sort(vec.begin(),vec.end());
      |              ^~~
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
int A,B,C,D,E,N,M,x,y,cou=0,cou2,v[1000000],w[1000000],min_i,en=0;
    char S[20],W[100],s[10],X,Y;
   scanf("%d %d %d",&A,&B,&C);
   if((A==C)||(A==B)||(B==A)){
       if((A==C)||(A==B)||(B==A)){
           printf("1");
       }else{
           printf("2");
       }
   }else{
       printf("3");
   
    return 0;
}

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

#include<stdio.h>
#include<string.h>
int main(void){
int A,B,C,D,E,N,M,x,y,cou=0,cou2,v[1000000],w[1000000],min_i,en=0;
    char S[20],W[100],s[10],X,Y;
   scanf("%d %d %d",&A,&B,&C);
   if((A==C)||(A==B)||(B==A)){
       if((A==C)||(A==B)||(B==A)){
           printf("1");
       }else{
           printf("2")
       }
   }else{
       printf("3");
   
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:23: error: expected ';' before '}' token
   11 |            printf("2")
      |                       ^
      |                       ;
   12 |        }
      |        ~               
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: C++

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

int main()
{
    vector<int> v;
    int a = 3;
    for(int i = 0; i < 3; i++){
        int x;
        cin >> x;
        v.push_back(x);
    }
    sort(v.begin(),v.end());

    if(s[0] == s[1]){
        a--;
    }
    if(s[1] == s[2]){
        a--;
    }
    cout << a endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:8: error: 's' was not declared in this scope
   15 |     if(s[0] == s[1]){
      |        ^
a.cc:18:8: error: 's' was not declared in this scope
   18 |     if(s[1] == s[2]){
      |        ^
a.cc:21:14: error: expected ';' before 'endl'
   21 |     cout << a endl;
      |              ^~~~~
      |              ;
Language: C++

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

int main(){
  vector<int> s(3);
  
  for(int i = 0; i < 3 ; i ++){
    	cin >> s[i];
  }
  
  s.erase(unique(s.begin(), s.end()), s.end());
  if(s.size != NULL){
     cout << s.size() << endl;
  } else {
    cout << 1 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: invalid use of member function 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; size_type = long unsigned int]' (did you forget the '()' ?)
   14 |   if(s.size != NULL){
      |      ~~^~~~
      |            ()
Language: C++

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

int main(){
  vector<int> s(3);
  
  for(int i = 0; i < 3 ; i ++){
    	cin >> s[i];
  }
  
  s.erase(unique(s.begin(), s.end()), s.end());
  
  if(s.size > 0){
     cout << s.size() << endl;
  } 
  else {
    cout << 1 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:8: error: invalid use of member function 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; size_type = long unsigned int]' (did you forget the '()' ?)
   15 |   if(s.size > 0){
      |      ~~^~~~
      |            ()
Language: C++

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

int main(){
  vector<int> s(3);
  
  for(int i = 0; i < 3 ; i ++){
    	cin >> s[i];
  }
  
  s.erase(unique(s.begin(), s.end()), s.end());
  if(s.size != 0){
     cout << s.size() << endl;
  } else {
    cout << 1 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: invalid use of member function 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; size_type = long unsigned int]' (did you forget the '()' ?)
   14 |   if(s.size != 0){
      |      ~~^~~~
      |            ()
Language: C++

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

int main(){
  vector<int> s(3);
  
  for(int i = 0; i < 3 ; i ++){
    	cin >> s[i];
  }
  
  erase(unique(s.begin(), s.end()), s.end());
  
  cout << s.size() << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'erase' was not declared in this scope
   13 |   erase(unique(s.begin(), s.end()), s.end());
      |   ^~~~~
Language: C++

#include<iostraem>
#include<vector>
#include<algorithm>
using namespace std;

int main(){
  vector<int> s(3);
  
  for(int i = 0; i < 3 ; i ++){
    	cin >> s[i];
  }
  
  erase(unique(s.begin(), s.end()), s.end());
  
  cout << s.size() << endl;
}

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

a, b, c = [int(x) for x in input().split()]

print(len({a, b, c}))

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a, b, c = [int(x) for x in input().split()]
      | ^
a.cc:3:20: error: expected unqualified-id before ')' token
    3 | print(len({a, b, c}))
      |                    ^
Language: C++

#include<iostream>
using namespace std;

int main(void)
{
  int a,b,c,ans=3
  cin >> a >> b >> c;
  if(a == b)
  {
    if(a == c)
    {
      cout << ans - 2;
      return 0;
    }
    else
    {
      cout << ans - 1;
      return 0;
    }
  }
  else
  {
    if(b == c)
    {
      cout << ans - 1;
      return 0;
    }
    else
    {
      cout << ans;
      return 0;
    }
  }
}

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

#include<iostream>
#include<string>
#include<vector>
#include<iomanip>
#include<algorithm>
#include<queue>
#include<stack>
#include<map>
using namespace std;
#define ll long long
int main(){
    int a,b,c,ans;
    cin >> a >> b >> c;
    ans=3;
    if(a==b)ans--;
    if(a==c|b==c)ams--;
    cout <<ans;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:18: error: 'ams' was not declared in this scope; did you mean 'ans'?
   16 |     if(a==c|b==c)ams--;
      |                  ^~~
      |                  ans
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: expected unqualified-id before ';' token
    5 |   int a, b, c,;
      |               ^
Language: C

#include <stdio.h>
#include <iostream>
#include <string>
int main(void)
{
	int a, b, h, s;
	std::cin >> a >> b >> h;

	if (a == b && a == h && b == h)
	{
		s = 1;
	}
	else if (a != b && a != h && b != h)
	{
		s = 3;
	}
	else
		s = 2;
	std::cout << s;
	return 0;
}
	

		
	

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

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

set<int> set;
int a, b, c;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: reference to 'set' is ambiguous
   10 |   set.insert(a);
      |   ^~~
In file included from /usr/include/c++/14/set:63,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_set.h:96:11: note: candidates are: 'template<class _Key, class _Compare, class _Alloc> class std::set'
   96 |     class set
      |           ^~~
a.cc:5:10: note:                 'std::set<int> set'
    5 | set<int> set;
      |          ^~~
a.cc:11:3: error: reference to 'set' is ambiguous
   11 |   set.insert(b);
      |   ^~~
/usr/include/c++/14/bits/stl_set.h:96:11: note: candidates are: 'template<class _Key, class _Compare, class _Alloc> class std::set'
   96 |     class set
      |           ^~~
a.cc:5:10: note:                 'std::set<int> set'
    5 | set<int> set;
      |          ^~~
a.cc:12:3: error: reference to 'set' is ambiguous
   12 |   set.insert(c);
      |   ^~~
/usr/include/c++/14/bits/stl_set.h:96:11: note: candidates are: 'template<class _Key, class _Compare, class _Alloc> class std::set'
   96 |     class set
      |           ^~~
a.cc:5:10: note:                 'std::set<int> set'
    5 | set<int> set;
      |          ^~~
a.cc:13:12: error: reference to 'set' is ambiguous
   13 |   cout  << set.size() << endl;
      |            ^~~
/usr/include/c++/14/bits/stl_set.h:96:11: note: candidates are: 'template<class _Key, class _Compare, class _Alloc> class std::set'
   96 |     class set
      |           ^~~
a.cc:5:10: note:                 'std::set<int> set'
    5 | set<int> set;
      |          ^~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:38: error: expected primary-expression before ')' token
   12 |   else if(a != b && b != c && c != a))
      |                                      ^
Language: C++

#include<iostream>

using namespace stdl;

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

Compiler output:
a.cc:3:17: error: 'stdl' is not a namespace-name
    3 | using namespace stdl;
      |                 ^~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   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:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout<<1<<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:11:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     cout<<1<<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)
      |     ^~~~
a.cc:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     cout<<2<<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:13:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |     cout<<2<<endl;
      |              ^~~~
      |              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:15:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |     cout<<3<<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:15:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |     cout<<3<<endl;
      |              ^~~~
      |              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>
#include <map>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> plglg;
typedef pair<double, ll> pdlg;
typedef tuple<int, int, int> tiii;
typedef tuple<ll, ll, ll> tlglglg;
typedef tuple<double, double, double> tddd;
static const int giga pow(10,9);

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

  return 0;
}

Compiler output:
a.cc:15:23: error: expected initializer before 'pow'
   15 | static const int giga pow(10,9);
      |                       ^~~
Language: C++

#include <cstdio>
#include <vector>
#include <algorithm>
#include <iostream>
#include <cstring>
using namespace std ;

typedef long long ll ;
#define rep (i , n ) for ( int i =0; i < n ; i++)
#define _sort(arg) sort(begin(arg), end(arg))
#define MOD 1000000007
#define pb push_back
#define DEBUG(x) cout << #x << ": " << x << endl;

/*
__attribute__((constructor))
void initial()
{
	cin.tie(NULL);
	ios::sync_with_stdio(false);
}
*/

int main()
{
	cin.tie(NULL);
	ios::sync_with_stdio(false);

	int A, B, C;
	
	cin >> A >> B >> C;

	//int a[100];
	if ( a == b )
	{
		if (a == c)
		{
			cout << 1 << endl;
		}
		else
		{
			cout << 2 << endl;
		}
	}
	else 
	{
		if (a == c)
		{
			cout << 2 << endl;
		}
		else if (b == c)
		{
			cout << 2 << endl;
		}
		else
		{
			cout << 3 << endl;
		}
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:14: error: 'a' was not declared in this scope
   34 |         if ( a == b )
      |              ^
a.cc:34:19: error: 'b' was not declared in this scope
   34 |         if ( a == b )
      |                   ^
a.cc:36:26: error: 'c' was not declared in this scope
   36 |                 if (a == c)
      |                          ^
a.cc:47:26: error: 'c' was not declared in this scope
   47 |                 if (a == c)
      |                          ^
Language: C

#include <stdio.h>

int power(int x, int y){
	int i,z;
	 
	 z = 1;
	 
	 for(i = 0; i < y; i;+){
	 	z = z * x
	 }
	 
	 return z;
	 
}
int main (void){
	
	int N,K;
	int sum = 0, ans = 0;
		
	scanf("%d\t", &N);
	scanf("%d\n", &K);
	
	sum = power(K - 1, N - 1);
	ans = sum * K;
	
	printf("%d",ans);
	
	return 0;
}


Compiler output:
main.c: In function 'power':
main.c:8:29: error: expected ')' before ';' token
    8 |          for(i = 0; i < y; i;+){
      |             ~               ^
      |                             )
main.c:9:26: error: expected ';' before '}' token
    9 |                 z = z * x
      |                          ^
      |                          ;
   10 |          }
      |          ~
Language: C++

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

typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> P;

#define pb push_back
#define rep(i, a, n) for(int i = (a); i < (n); i++)
#define dep(i, a, n) for(int i = (a); i >= (n); i--)
#define mod (ll)(1e9+7)
#define int ll

__attribute__((constructor))
void initial() {
  cin.tie(0);
  ios::sync_with_stdio(false);
}

signed main() {
  int a, b, c;
  cin >> a >> b >> c;
  int ans = 3;
  if(a == b) ans--;
  if(b == c) ans--;
  if(a == c) ans--;
  cout << max(1, ans) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:14: error: no matching function for call to 'max(int, ll&)'
   28 |   cout << max(1, ans) << endl;
      |           ~~~^~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 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:   template argument deduction/substitution failed:
a.cc:28:14: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'll' {aka 'long long int'})
   28 |   cout << max(1, ans) << endl;
      |           ~~~^~~~~~~~
/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, 2 provided