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

int main()
{
	int n;
	cin >> n;

	set<string> s;
	for (int i = 0; i < n; i++) {
		string in;
		cin >> in;
		s.insert(in);
	}

	cout << s.size();

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> n;
      |         ^~~
a.cc:6:9: error: 'set' was not declared in this scope
    6 |         set<string> s;
      |         ^~~
a.cc:6:13: error: 'string' was not declared in this scope
    6 |         set<string> s;
      |             ^~~~~~
a.cc:6:21: error: 's' was not declared in this scope
    6 |         set<string> s;
      |                     ^
a.cc:8:23: error: expected ';' before 'in'
    8 |                 string in;
      |                       ^~~
      |                       ;
a.cc:9:24: error: 'in' was not declared in this scope; did you mean 'i'?
    9 |                 cin >> in;
      |                        ^~
      |                        i
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << s.size();
      |         ^~~~
Language: C++

#include <bits/stdc++.h>
#include <math.h>
using namespace std;
#define rep(i,n) for (int i = 0; i < (int)(n); ++i)
#define ll = long long;
#define be(v) v.begin(), v.end()
ll INF = 100001010100;

int main() {
	int n; cin >> n;
	vector<string> s(n);
	set a();
	rep(i,n) {
		cin >> s[i];
		a.insert(s[i]);
	}
	cout << a.size() << endl;
}

Compiler output:
a.cc:5:12: error: expected unqualified-id before '=' token
    5 | #define ll = long long;
      |            ^
a.cc:7:1: note: in expansion of macro 'll'
    7 | ll INF = 100001010100;
      | ^~
a.cc:7:4: error: 'INF' does not name a type
    7 | ll INF = 100001010100;
      |    ^~~
a.cc: In function 'int main()':
a.cc:12:14: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   12 |         set a();
      |              ^~
a.cc:12:14: note: remove parentheses to default-initialize a variable
   12 |         set a();
      |              ^~
      |              --
a.cc:12:14: note: or replace parentheses with braces to value-initialize a variable
a.cc:12:9: error: deduced class type 'set' in function return type
   12 |         set a();
      |         ^~~
In file included from /usr/include/c++/14/set:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:158,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_set.h:96:11: note: 'template<class _Key, class _Compare, class _Alloc> class std::set' declared here
   96 |     class set
      |           ^~~
a.cc:15:17: error: 'a' was not declared in this scope
   15 |                 a.insert(s[i]);
      |                 ^
a.cc:17:17: error: 'a' was not declared in this scope
   17 |         cout << a.size() << endl;
      |                 ^
Language: C++

#include <bits/stdc++.h>
#include <math.h>
using namespace std;
#define rep(i,n) for (int i = 0; i < (int)(n); ++i)
#define ll = long long;
#define be(v) v.begin(), v.end()
int INF = 100001010100;

int main() {
	int n; cin >> n;
	vector<string> s(n);
	set a();
	rep(i,n) {
		cin >> s[i];
		a.insert(s[i]);
	}
	cout << a.size() << endl;
}

Compiler output:
a.cc:7:11: warning: overflow in conversion from 'long int' to 'int' changes value from '100001010100' to '1216762292' [-Woverflow]
    7 | int INF = 100001010100;
      |           ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:12:14: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   12 |         set a();
      |              ^~
a.cc:12:14: note: remove parentheses to default-initialize a variable
   12 |         set a();
      |              ^~
      |              --
a.cc:12:14: note: or replace parentheses with braces to value-initialize a variable
a.cc:12:9: error: deduced class type 'set' in function return type
   12 |         set a();
      |         ^~~
In file included from /usr/include/c++/14/set:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:158,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_set.h:96:11: note: 'template<class _Key, class _Compare, class _Alloc> class std::set' declared here
   96 |     class set
      |           ^~~
a.cc:15:17: error: 'a' was not declared in this scope
   15 |                 a.insert(s[i]);
      |                 ^
a.cc:17:17: error: 'a' was not declared in this scope
   17 |         cout << a.size() << endl;
      |                 ^
Language: C++

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

long long int n,i,ans;
string s[200010];

signed main()
{
    ios_base::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	
	cin>>n;
	for (i=1;i<n+1;i++) cin>>s[i];
	sort(s+1,s+n+1);
	ans=1;
	for (i=2;i<n+1;i++) fi (s[i]!=s[i-1]) ans++;
	cout<<ans;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:29: error: 'fi' was not declared in this scope; did you mean 'i'?
   17 |         for (i=2;i<n+1;i++) fi (s[i]!=s[i-1]) ans++;
      |                             ^~
      |                             i
Language: C++

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

long long int n,i,ans;
string s[200010]

signed main()
{
    ios_base::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	
	cin>>n;
	for (i=1;i<n+1;i++) cin>>s[i];
	sort(s+1,s+n+1);
	ans=1;
	for (i=2;i<n+1;i++) fi (s[i]!=s[i-1]) ans++;
	cout<<ans;
}


Compiler output:
a.cc:7:1: error: expected initializer before 'signed'
    7 | signed main()
      | ^~~~~~
Language: Java

import java.util.HashSet;
import java.util.Scanner;
public class Main2 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        String[] arr=new String[n];
        for (int i = 0; i <arr.length ; i++) {
            arr[i]=sc.next();
        }
        HashSet<String> hs = new HashSet<String>();
        for(int i = 0; i < n; i++)
        {
            // add all the elements to the HashSet
            hs.add(arr[i]);
        }
        System.out.println(hs.size());
    }
}


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

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

int main() {
  int n;
  cin >> n;
  set<string> s;
  for(int i = 0; i<n; i++) {
    string ss; cin >> ss;
    s.insert(ss);
  }
  cout << s.size() << endl;
  
  reutrn 0;
}


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

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

int main() {
  int n;
  cin >> n;
  set<string> s;
  for(int i = 0; i<n; i++) {
    string ss; cin >> ss;
    s.insert(ss);
  }
  cout << s.size() << endl;
  
  reutrn 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'set' was not declared in this scope
    8 |   set<string> s;
      |   ^~~
a.cc:3:1: note: 'std::set' is defined in header '<set>'; this is probably fixable by adding '#include <set>'
    2 | #include <iostream>
  +++ |+#include <set>
    3 | using namespace std;
a.cc:8:13: error: expected primary-expression before '>' token
    8 |   set<string> s;
      |             ^
a.cc:8:15: error: 's' was not declared in this scope
    8 |   set<string> s;
      |               ^
a.cc:15:3: error: 'reutrn' was not declared in this scope
   15 |   reutrn 0;
      |   ^~~~~~
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
  int n;
  int i;
  int a=0;
  char s[200000][10];
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%s",s[i]);
    for(int j=0;j<=i;j++){
      if(strcmp(s[i],s[j])!=0)
        a+=1;
    }
  }
  printf("%d",ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:15: error: 'ans' undeclared (first use in this function)
   16 |   printf("%d",ans);
      |               ^~~
main.c:16:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
#include <algorithm>
#include <cmath>
#include <queue>
#include <set>
#include <map>
#include <vector>
#include <string>
#include <iostream>
#include <algorithm>
#include <cmath>
#include <queue>
#include <set>
#include <map>
#include <vector>
#include <string>
using namespace std;
typedef long long ll;

int main(){
ll N;
cin >> N; 
vector<string> s(N);
for(int i = 0 ; i<N ; i++;){
  cin >> s(i);
}
sort(s.begin(), s.end());
    int count = 1;
    for(int i = 0; i < n-1; i++){
        if(s[i] != s[i+1]){
            count++;
        }
    }
    cout << count;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:26: error: expected ')' before ';' token
   24 | for(int i = 0 ; i<N ; i++;){
      |    ~                     ^
      |                          )
a.cc:24:27: error: expected primary-expression before ')' token
   24 | for(int i = 0 ; i<N ; i++;){
      |                           ^
a.cc:29:24: error: 'n' was not declared in this scope
   29 |     for(int i = 0; i < n-1; i++){
      |                        ^
Language: C++

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

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

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

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


#include<bits/stdc++.h>
using namespace std;
/**
******************* Author:Bisnu sarkar ****************************
**/
/*
#pragma GCC target ("avx2")
#pragma GCC optimization ("O3")
#pragma GCC optimization ("unroll-loops")
*/
#define fRead(x)       freopen(x,"r",stdin)
#define fWrite(x)      freopen (x,"w",stdout)
#define ull            unsigned long long
#define ll             long long
#define pii            pair<int,int>
#define sit            set<int> :: iterator
#define vrit           vector<int> :: reverse iterator
#define ff             first
#define ss             second
#define endl           '\n';
#define sz(s)          (int)s.size()
#define all(s)         s.begin(),s.end()
#define IO             ios_base::sync_with_stdio(false),cin.tie(NULL);  
#define what_is(x)     cerr << #x << " is " << x << endl;
///*....Debugger....*///
#define error(args...) { string _s = #args; replace(_s.begin(), _s.end(), ',', ' '); stringstream _ss(_s); istream_iterator<string> _it(_ss); err(_it, args); }
void err(istream_iterator<string> it) {cout << endl;}
template<typename T, typename... Args> void err(istream_iterator<string> it, T a, Args... args) {
  cerr << *it << " = " << a << ", ";
  err(++it, args...);
}
///*....Input....*///
template <typename T> inline void Int(T &n) {
  n = 0; int f = 1; register int ch = getchar();
  for (; !isdigit(ch); ch = getchar()) if (ch == '-') f = -1;
  for (; isdigit(ch); ch = getchar()) n = (n << 3) + (n << 1) + ch - '0';
  n = n * f;
}
 
template <typename T, typename TT> inline void Int(T &n, TT &m) { Int(n); Int(m); }
template <typename T, typename TT, typename TTT> inline void Int(T &n, TT &m, TTT &l) { Int(n, m); Int(l);}
double ind(){double x; scanf("%lf",&x);return x;}

///*....Bitmask....*///
int set_1(int n,int pos){return n = (n | (1<<pos));}
int reset_0(int n,int pos){return n= n & ~(1<<pos);}
bool check_bit(int n,int pos){return n = n & (1<<pos);}

int dx[8]= {1,0,-1,0,-1,-1,1,1};
int dy[8]= {0,1,0,-1,-1,1,-1,1};

///*....Constraints....*///
const int N = (int) 1e6 + 5;
const int M = (int) 1e9 + 7;
const double pi=2* acos(0.0);
const double eps=1e-9;


int main()
{
    int t=1,te=0;
    //Int(t);
    while(t--){
      int n;
      int(n);

      set<string>s;

      while(n--){
        string ss;
        cin>>ss;

        s.insert(ss);
      }
      printf("%d\n", sz(s));

        //printf("Case %d: ",++te);
    }
    return 0;
}






Compiler output:
a.cc: In function 'void Int(T&)':
a.cc:35:34: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   35 |   n = 0; int f = 1; register int ch = getchar();
      |                                  ^~
a.cc: In function 'int main()':
a.cc:66:11: error: redeclaration of 'int n'
   66 |       int(n);
      |           ^
a.cc:65:11: note: 'int n' previously declared here
   65 |       int n;
      |           ^
Language: C++

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

int32_t main() {

#ifndef ONLINE_JUDGE
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif

	ios_base::sync_with_stdio(false);
	cin.tie(NULL);

	
    int n;
    cin>>n;
    string s[n];
    map<string,int> m;
    for(int i=0;i<n;i++){
    	cin>>s[i];
    	m[s[i]]++
    }

   cout<<m.size();



	return 0;
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:22:18: error: expected ';' before '}' token
   22 |         m[s[i]]++
      |                  ^
      |                  ;
   23 |     }
      |     ~
Language: C++

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

int main()
{
      int64_t n;
      cin>>n;
      
      map<string,int>s;
      int64_t cnt =0;
     for(int i=0;i<n;i++)
     {
           string sn;
           cin>>sn;
        
           if(s.count(sn))
           {
             cnt--;
           }  
           else{
              s.[sn] = 1;
           }
       cnt++;
     
     }
  
      
   cout<<cnt<<endl;




}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:17: error: expected unqualified-id before '[' token
   21 |               s.[sn] = 1;
      |                 ^
Language: C++

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

int main()
{
      int64_t n;
      cin>>n;
      
      map<string,int>s;
      int64_t cnt =0;
     for(int i=0;i<n;i++)
     {
           string sn="";
           cin>>sn;
        
           if(!s.count(sn))
           {
             cnt++;
             s.[sn]=1;
           }
     
     }
  
      
   cout<<cnt<<endl;




}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:16: error: expected unqualified-id before '[' token
   19 |              s.[sn]=1;
      |                ^
Language: C++

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

int main()
{
      int64_t n;
      cin>>n;
      
      map<string,int>s;
      int64_t cnt =0;
     for(int i=0;i<n;i++)
     {
           string sn;
           cin>>sn;
        
           if(!s.count(sn))
           {
             cnt++;
             s.[sn]=1;
           }
     
     }
  
      
   cout<<cnt<<endl;




}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:16: error: expected unqualified-id before '[' token
   19 |              s.[sn]=1;
      |                ^
Language: C++

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

int main()
{
      int64_t n;
      cin>>n;
      
      map<string,int>s;
      int64_t cnt =0;
     for(int =0;i<n;i++)
     {
           string sn;
           cin>>sn;
        
           if(!s.count(sn))
           {
             cnt++;
             s.[sn]=1;
           }
     
     }
  
      
   cout<<cnt<<endl;




}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: expected unqualified-id before '=' token
   11 |      for(int =0;i<n;i++)
      |              ^
a.cc:11:13: error: expected ';' before '=' token
   11 |      for(int =0;i<n;i++)
      |             ^~
      |             ;
a.cc:11:14: error: expected primary-expression before '=' token
   11 |      for(int =0;i<n;i++)
      |              ^
a.cc:11:17: error: 'i' was not declared in this scope
   11 |      for(int =0;i<n;i++)
      |                 ^
a.cc:11:20: error: expected ')' before ';' token
   11 |      for(int =0;i<n;i++)
      |         ~          ^
      |                    )
a.cc:11:21: error: 'i' was not declared in this scope
   11 |      for(int =0;i<n;i++)
      |                     ^
Language: C

#include "bits/stdc++.h"

typedef long long ll;
#define all(x) (x).begin(), (x).end()  // sortなどの引数を省略
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define max3(x, y, z) max(x, max(y, z))
#define min3(x, y, z) min(x, min(y, z))

#ifdef _MSC_FULL_VER  //デバッグ出力
#define dout cout
#define debug() if (true)
#define check(x) std::cout << "★" << #x << "の値:" << (x) << endl
#define pass(x) std::cout << "☆" << x << endl
#else
#define dout \
  if (false) cout
#define debug() if (false)
#define check(x) \
  if (false) cout << "★" << #x << "の値:" << (x) << endl
#define pass(x) \
  if (false) cout << "☆" << x << endl
#endif

using namespace std;
int main(){
  int N;
  cin >> N;
  map<string,int> list;
  string tmp;
  rep(i, N) { cin >> tmp;
  list[tmp]++;}
  cout << list.size();
}
/*
//よく使うやつ
int N;
cin >> N;
vector<int> list(N);
rep(i,N) {
  cin >> list[i];
}
//配列(スタックとしても使える)
vector<int> list;
list.at(i)
vector<vector<int>> list(10, vector<int>(10));
//ソート クイックだからO(NlogN)
sort(all(list));
sort(all(list), greater<int>());

//配列の内容表示
dout << "====listの内容====\n";
for (int edp = 0; edp < N; edp++) dout << list[edp] << endl;
dout << "====ここまで====\n";


//配列の最小最大(Nは要素数)
*min_element(all(c))
*max_element(all(c))

//a[0]からa[N]を逆順にする(計算量はO(N))
reverse(all(a));
//listの末尾に要素を追加
list.push_back(10);
//listの末尾から要素を削除
list.pop_back();
//空ですか？
list.empty()



//キュー(待ち行列)
//定義
queue<int> a;
//追加
a.push(x);
//取る
a.pop();
//チェック
a.front()
//サイズ
a.size()
//空ですか
a.empty()



//優先度付きキュー※全部計算量がO(NlogN)あるので注意
// int 型の要素を持ち、最も小さい値を取り出す形の priority_queue を定義
priority_queue<int, vector<int>, greater<int>> Q1;
// double 型の要素を持ち、最も大きい値を取り出す形の priority_queueを定義
priority_queue<double, vector<double>, less<double>> Q2;
//追加
a.push(x);
//取る
a.pop();
//一番小さいの教えて下さい
a.top()
//サイズ
a.size()
//空ですか
a.empty()



//部分文字列
//添字3から5文字
s.substr(3,5)
//添字3から全部
s.substr(3)

//入れ替え
swap(a,b);



// int 型の番地に string 型の変数を記録する場合（2^31 要素の string型配列と同じような感じ）
map<int, string> mp;
for (auto itr =mp.begin(); itr != mp.end(); itr++) {
    //順番にマップを眺める。itr->firstでキー、itr->secondがバリュー
}

//ソート済みのaの中で初めてx以上になるインデックスを返す
lower_bound(all(a), x) - a

//next_permutation
do {
  //ここにパーテーションがくる
} while (next_permutation(s.begin(), s.end()));

//set
set<int> hoge;
hoge.insert(50);  //hogeに挿入。重複は無視される。
hoge.insert(20);  //内部は小さい順に並ぶ
hoge.erase(50);   //hogeから消し去る。
//40以上である最小の要素を指すイテレーターを返す。
//もちろんそんなものはないからEndが出力される
auto itr1 = Set.lower_bound(40);
if (itr1 == Set.end()) cout << "End" << endl;
else cout << (*itr1) << endl;

//pair
//たくさんつくる
vector<pair<int,string>> hoge(10);
//参照
hoge[0].first
sort(all(hoge), greater<pair<int, string>>());




*/


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include "bits/stdc++.h"
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <vector>
#include<string>
#include <algorithm>
using namespace std;
int main()
{
	int N;
	vector<std::string> S(N);
	cin >> N;
	
	for(int i = 0;i<N;i++){ 
		cin >> S[i];
	}
	
	int cnt = 1; 
	
	sort(S.bigin(), S,end()); 
	
	for(int i = 0;i<N-1;i++){
			if(S[i] != S[i+1]){ 
			cnt++;
		}
		
	}
	
	cout << cnt << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:16: error: 'class std::vector<std::__cxx11::basic_string<char> >' has no member named 'bigin'; did you mean 'begin'?
   18 |         sort(S.bigin(), S,end());
      |                ^~~~~
      |                begin
a.cc:18:30: error: no matching function for call to 'end()'
   18 |         sort(S.bigin(), S,end());
      |                           ~~~^~
In file included from /usr/include/c++/14/bits/range_access.h:36,
                 from /usr/include/c++/14/string:53,
                 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/initializer_list:99:5: note: candidate: 'template<class _Tp> constexpr const _Tp* std::end(initializer_list<_Tp>)'
   99 |     end(initializer_list<_Tp> __ils) noexcept
      |     ^~~
/usr/include/c++/14/initializer_list:99:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:74:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.end()) std::end(_Container&)'
   74 |     end(_Container& __cont) -> decltype(__cont.end())
      |     ^~~
/usr/include/c++/14/bits/range_access.h:74:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:85:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.end()) std::end(const _Container&)'
   85 |     end(const _Container& __cont) -> decltype(__cont.end())
      |     ^~~
/usr/include/c++/14/bits/range_access.h:85:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:106:5: note: candidate: 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::end(_Tp (&)[_Nm])'
  106 |     end(_Tp (&__arr)[_Nm]) noexcept
      |     ^~~
/usr/include/c++/14/bits/range_access.h:106:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:115:31: note: candidate: 'template<class _Tp> _Tp* std::end(valarray<_Tp>&)'
  115 |   template<typename _Tp> _Tp* end(valarray<_Tp>&) noexcept;
      |                               ^~~
/usr/include/c++/14/bits/range_access.h:115:31: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:116:37: note: candidate: 'template<class _Tp> const _Tp* std::end(const valarray<_Tp>&)'
  116 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
      |                                     ^~~
/usr/include/c++/14/bits/range_access.h:116:37: note:   candidate expects 1 argument, 0 provided
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
int main()
{
	int N;
	vector<std::string> S(N);
	cin >> N;
	
	for(int i = 0;i<N;i++){ 
		cin >> S[i];
	}
	
	int cnt = 1; 
	
	sort(S.bigin(), S,end()); 
	
	for(int i = 0;i<N-1;i++){
			if(S[i] != S[i+1]){ 
			cnt++;
		}
		
	}
	
	cout << cnt << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:16: error: 'class std::vector<std::__cxx11::basic_string<char> >' has no member named 'bigin'; did you mean 'begin'?
   18 |         sort(S.bigin(), S,end());
      |                ^~~~~
      |                begin
a.cc:18:30: error: no matching function for call to 'end()'
   18 |         sort(S.bigin(), S,end());
      |                           ~~~^~
In file included from /usr/include/c++/14/bits/range_access.h:36,
                 from /usr/include/c++/14/string:53,
                 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/initializer_list:99:5: note: candidate: 'template<class _Tp> constexpr const _Tp* std::end(initializer_list<_Tp>)'
   99 |     end(initializer_list<_Tp> __ils) noexcept
      |     ^~~
/usr/include/c++/14/initializer_list:99:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:74:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.end()) std::end(_Container&)'
   74 |     end(_Container& __cont) -> decltype(__cont.end())
      |     ^~~
/usr/include/c++/14/bits/range_access.h:74:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:85:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.end()) std::end(const _Container&)'
   85 |     end(const _Container& __cont) -> decltype(__cont.end())
      |     ^~~
/usr/include/c++/14/bits/range_access.h:85:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:106:5: note: candidate: 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::end(_Tp (&)[_Nm])'
  106 |     end(_Tp (&__arr)[_Nm]) noexcept
      |     ^~~
/usr/include/c++/14/bits/range_access.h:106:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:115:31: note: candidate: 'template<class _Tp> _Tp* std::end(valarray<_Tp>&)'
  115 |   template<typename _Tp> _Tp* end(valarray<_Tp>&) noexcept;
      |                               ^~~
/usr/include/c++/14/bits/range_access.h:115:31: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:116:37: note: candidate: 'template<class _Tp> const _Tp* std::end(const valarray<_Tp>&)'
  116 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
      |                                     ^~~
/usr/include/c++/14/bits/range_access.h:116:37: note:   candidate expects 1 argument, 0 provided
Language: C++

#include<iostrean>
#include<string>
using namespace std;
void heap(int a, int b, string* s);
void swap(int a,int b, string* s);
int main()
{
  int n;
  int m = 1;
  string* s;
  s = new string[n];
  for(int i = 0;i < n; i++)
  {
  	cin >> s[i];
  }
  for(int i=(n-2)/2 ; i >= 0 ; i--)
  {
  	heap(i,n-1,s);
  }
  for(int i = 1; i<n; i++)
  {
  	if(s[i]!=s[i-1])
    {
    m++;
    }
  }
	cout << m;
  return 0;

}
void heap(int a,int b, string* s)
{
	int c;
  	string d;
    d = s[a];
  	while(true)
    {
    	c = 2*a+1;
      if(c>b)
        break;
      if(c!=b)
      {
      	if(s[c+1]>s[c])
        { c++ ; }
      }
    if(d>=s[c])
      break;
      s[a] = s[c];
      a = c;
    }
	s[a] = d;
}
void swap(int a, int b, string* s)
{
	string t = s[a];
  s[a] = s[b];
  s[b] = t;
}

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

#include<iostream>
#inlcude<set>
using namespace std;
int main(){
  int n;
  char str[10];
  set<string> s;
  cin>>n;
  for(int i=0;i<n;i++){
    cin>>str;
  	s.insert(str);
  }
  cout<<s.size();
  return 0;
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    2 | #inlcude<set>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:3: error: 'set' was not declared in this scope
    7 |   set<string> s;
      |   ^~~
a.cc:2:1: note: 'std::set' is defined in header '<set>'; this is probably fixable by adding '#include <set>'
    1 | #include<iostream>
  +++ |+#include <set>
    2 | #inlcude<set>
a.cc:7:13: error: expected primary-expression before '>' token
    7 |   set<string> s;
      |             ^
a.cc:7:15: error: 's' was not declared in this scope
    7 |   set<string> s;
      |               ^
Language: C++

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

#ifdef LOCAL
#define debug(var) cerr << (#var) << " = " << (var) << endl;
#else
#define debug(var)
#endif

void init() {
  ios_base::sync_with_stdio(0);
  cin.tie(0); cout.tie(0);
}

void solve() {
  int n; cin >> n;
  

Compiler output:
a.cc: In function 'void solve()':
a.cc:16:19: error: expected '}' at end of input
   16 |   int n; cin >> n;
      |                   ^
a.cc:15:14: note: to match this '{'
   15 | void solve() {
      |              ^
Language: C++

#include <algorithm>
#include <bits/stdc++.h>
#include<iostream>
#include<string>
using namespace std;
#define rep(i, n) for (int i = 0; i <(int)(n); i++)
#define all(x) (x).begin(), (x).end()
#define ll long long
const int INF=1000100010;
int main(){
  int n;cin>>n;
  string s[n];
  set<string> st;
  rep(i,n){
    cin>>s[i];
    st.insert(s[i]);
 }
 int ans=0;
 ans=st.size();
 cout<<ans<<endl;
}
int main(){
  int n;cin>>n;
  string s[n];
  set<string> st;
  rep(i,n){
    cin>>s[i];
    st.insert(s[i]);
 }
 int ans=0;
 ans=st.size();
 cout<<ans<<endl;
}

Compiler output:
a.cc:22:5: error: redefinition of 'int main()'
   22 | int main(){
      |     ^~~~
a.cc:10:5: note: 'int main()' previously defined here
   10 | int main(){
      |     ^~~~
Language: Java

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

class Main{
  public static void  main(String[]args){
    try{
    Scanner  sc=new Scanner(System.in);
    
    HashSet<String> hs=new HashSet<String>();
    
    int n=sc.nextInt();
    for(int i=0;i<n;i++)
      hs.add(sc.next());
    
    System.out.println(hs.size());
      
  }
}



Compiler output:
Main.java:6: error: 'try' without 'catch', 'finally' or resource declarations
    try{
    ^
Main.java:18: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

import java.util.hashSet;
import java.util.Scanner;

class Main{
  public static void  main(String[]args){
    Scanner  sc=new Scanner(System.in);
    
    HashSet hs=new HashSet();
    
    int n=sc.nextInt();
    for(int i=0;i<n;i++)
      hs.add(sc.nextInt());
    
    System.out.println(hs.size());
  }
}



Compiler output:
Main.java:1: error: cannot find symbol
import java.util.hashSet;
                ^
  symbol:   class hashSet
  location: package java.util
Main.java:8: error: cannot find symbol
    HashSet hs=new HashSet();
    ^
  symbol:   class HashSet
  location: class Main
Main.java:8: error: cannot find symbol
    HashSet hs=new HashSet();
                   ^
  symbol:   class HashSet
  location: class Main
3 errors
Language: C

#include <iostream>
using namespace std;
int main(){
    int n;
    cin>>n;
    int counter=0;
    string x[n];
    for(int i=0;i<n;i++){
        cin>>x[i];
        int u=0;
        for(int j=0;j<i;j++){
            if(x[i]==x[j]){
                u++;
            }
        }
        if(u==0){
            counter++;
        }
    }
    cout<<counter<<endl;
    
    
}


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

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

int main(){
    int n;
    cin >> n;
    set<string> s;
    rep(i,n){
        string x;
        cin >> x;
        s.insert(x);
    }
    cout << (int)s.size() << endl;
}


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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll,ll> P;

int main(){
    int N;
    cin >> N;
    set<string> S;
    for (int i = 0; i < N; i++) {
        string tmp;
        cin >> tmp;
        S.insert(tmp);
    }
    cout << S.size() << endl;
    return 0;
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:11: error: expected ';' before '}' token
   15 |   return 0
      |           ^
      |           ;
   16 | }
      | ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
int main()
{
	int n,num=0;
	string s;
	cin>>n;
	for(int i=1;i<=n;i++)
	{
		cin>>s;
		if(a[s]==0)
		{
		    num++;
			a[s]++;	
		} 
		else
		a[s]++;
	}
	cout<<num;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: 'a' was not declared in this scope
   12 |                 if(a[s]==0)
      |                    ^
Language: C++

include<bits/stdc++.h>
using namespace std;
#define ll long longr
map<string,int> a
int main()
{ 
int n,num;
cin>>n;
string s;
for(int i=1;i<=n;i++)
{
	cin>>s;
	if(a[s]==0)
	{
		num++;
		a[s]++;
	}
	else
	a[s]++;
}
cout<<ans;
return 0;

}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc:4:1: error: 'map' does not name a type
    4 | map<string,int> a
      | ^~~
Language: C++

#define _GLIBCXX_DEBUG
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,N) for(int i = 0;i < (int)(N);i++)
int main(){
  int n;
  cin>>n;
  set<string> st;
  rep(i,n){
    string s;
    cin>>s;
    st.insert(s);
  }
  cout<<st.size<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:7: error: invalid use of non-static member function 'std::__cxx1998::set<_Key, _Compare, _Alloc>::size_type std::__cxx1998::set<_Key, _Compare, _Alloc>::size() const [with _Key = std::__cxx11::basic_string<char>; _Compare = std::less<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; size_type = long unsigned int]'
   15 |   cout<<st.size<<endl;
      |   ~~~~^~~~~~~~~
In file included from /usr/include/c++/14/set:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:158,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_set.h:421:7: note: declared here
  421 |       size() const _GLIBCXX_NOEXCEPT
      |       ^~~~
Language: C++

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

int main()
{
	int n,i,c=1;
	scanf("%d",&n);
	char s[n][11];
	for( i=0;i<n;i++){
		scanf("%s",s[i]);
	}

	qsort(s,n,11,strcmp);
	for( i=0;i<n-1;i++){
		if(strcmp(s[i],s[i+1])!=0)
			c++;
	}
	printf("%d\n",c);

}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:22: error: invalid conversion from 'int (*)(const char*, const char*) noexcept' to '__compar_fn_t' {aka 'int (*)(const void*, const void*)'} [-fpermissive]
   14 |         qsort(s,n,11,strcmp);
      |                      ^~~~~~
      |                      |
      |                      int (*)(const char*, const char*) noexcept
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/stdlib.h:36,
                 from a.cc:2:
/usr/include/stdlib.h:971:34: note:   initializing argument 4 of 'void qsort(void*, size_t, size_t, __compar_fn_t)'
  971 |                    __compar_fn_t __compar) __nonnull ((1, 4));
      |                    ~~~~~~~~~~~~~~^~~~~~~~
Language: C

#include <iostream>
#include <algorithm>
#include <set>
#include <string>
#include <iostream>
#pragma warning (disable:4996)
using namespace std;


int main() {
	set<string> s;
	int n;
	string a;
	cin >> n;
	for (int i = 0; i < n; i++) {
		cin >> a;
		s.insert(a);
	}
	cout << s.size();

}

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

#include <iostream>
#include <algorithm>
#include <set>
#include <string>
#pragma warning (disable:4996)
using namespace std;


int main() {
	set<string> s;
	int n;
	string a;
	cin >> n;
	for (int i = 0; i < n; i++) {
		cin >> a;
		s.insert(a);
	}
	cout << s.size();

}

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

#include <set>
#include<string>
#include<iostream>
using namespace std;
int main(){
    set<string> st;
    int a=0;
    cin >>a;
    for(int i=0;i<n;i++){
        string s;
        cin >>s;
        st.insert(s);
    }
    cout<<st.size()<<'\n';
}


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

#include<iostream>
#include<set>
#include<string>

using namespace std;

int main()
{
	set<string>s;
	int n = 0;
	cin >> n;
	for (int i = 1; i <= n; i++) {
		string s;
		cin >> s;
		s.insert(str[i]);
	}
	
	cout << st.size() << '\n';

	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:26: error: 'str' was not declared in this scope; did you mean 'std'?
   15 |                 s.insert(str[i]);
      |                          ^~~
      |                          std
a.cc:18:17: error: 'st' was not declared in this scope; did you mean 's'?
   18 |         cout << st.size() << '\n';
      |                 ^~
      |                 s
Language: C

#include <iostream>
#include <string>
#include <utility>
#include <vector>
#include <set>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
int main() 
{
	
	int number = 0;
	int i = 0;
	while(scanf("%d",&number) != EOF)
	{
		set<string> s;
		for(i=0;i<number;i++)
		{
			string str;
			cin >> str;
			s.insert(str);
		}
		cout << s.size()  << 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<bits/stdc++.h>
#define ll long long
const int N=200005;
using namespace std;
int n,a[N],ans;
string s;
int main(){
	cin>>n;
	for(int i=1;i<=n;i++)
	{
		cin>>s;
		a[s]++;
		if(a[s]==1) ans++;
	}
	cout<<ans;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: no match for 'operator[]' (operand types are 'int [200005]' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   12 |                 a[s]++;
      |                  ^
a.cc:13:21: error: no match for 'operator[]' (operand types are 'int [200005]' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   13 |                 if(a[s]==1) ans++;
      |                     ^
Language: C++

#include <iostream>
#include <vector>
#include <string>

using namespace std;

void distinct(vector<string> &vect) {
	sort(vect.begin(), vect.end());
	vect.erase(unique(vect.begin(), vect.end()), vect.end());
	
	return;
}

int main() {
	int N;
	cin >> N;
	
	vector<string> S;
	string temp;
	
	for (int loop = 0; loop < N; loop++){
		cin >> temp;
		S.push_back(temp);
	}
	
	distinct(S);
	
	cout << sizeof(S) << endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'void distinct(std::vector<std::__cxx11::basic_string<char> >&)':
a.cc:8:9: error: 'sort' was not declared in this scope; did you mean 'short'?
    8 |         sort(vect.begin(), vect.end());
      |         ^~~~
      |         short
a.cc:9:20: error: 'unique' was not declared in this scope
    9 |         vect.erase(unique(vect.begin(), vect.end()), vect.end());
      |                    ^~~~~~
Language: Java

import java.util.*;
public class abc164c {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        String s[] = new String[n];

        for(int i = 0; i < n; i++){
                s[i] = scan.next();
        }
        Arrays.sort(s);

        int ans = 1;
        for(int i = 0; i < n - 1; i++){
            if(!(s[i].equals(s[i+1]))){
                ans++;
            }
        }

        System.out.println(ans);
    }
}

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

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#include <set>
int main(){
  int n;
  cin>>n;
  set<string> word;
  int sum =0
  rep(i,n){
    string s;
    cin>>s;
    word.insert(s);
    }
  
  cout<<word.size()<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:19: error: expected ',' or ';' before 'for'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                   ^~~
a.cc:10:3: note: in expansion of macro 'rep'
   10 |   rep(i,n){
      |   ^~~
a.cc:10:7: error: 'i' was not declared in this scope
   10 |   rep(i,n){
      |       ^
a.cc:3:35: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main(){
  int n;
  cin>>n;
  vector<string> s(n);
  int sum =1;
  rep(i,n){
    cin>>s.at(i);
    sort(s.begin(),s.end());
  }
   for(int i=0,i<n-1;i++){
     if(s.at(i)!=s.at(i+1)){
      sum++;
    }
   }
  
  cout<<sum<<endl;
}


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

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

int main(void) {
    int n;
    scanf("%d",&n);
    char s[n][11];
    
    for(int i = 0; i < n; i++) {
        scanf("%s",s[i]);
    }
    
    qsort(s, n, sizeof(char) * 11, strcmp);
    int count = 1;
    
    for(int i = 0; i < n - 1; i++) {
    	if(strcmp(s[i], s[i + 1]) != 0)
        count++;
    }
    printf("%d",count);
    return 0;
}

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

int main(void) {
    int n;
    scanf("%d",&n);
    char s[n][11];
    
    for(int i = 0; i < n; i++) {
        scanf("%s",s[i]);
    }
    qsort(s, n, sizeof(char) * 11, strcmp);
    int count = 1;
    for(int i = 0; i < n - 1; i++) {
        if(strcmp(s[i], s[i + 1]) != 0)
        count++;
    }
    printf("%d",count);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:36: error: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types]
   14 |     qsort(s, n, sizeof(char) * 11, strcmp);
      |                                    ^~~~~~
      |                                    |
      |                                    int (*)(const char *, const char *)
In file included from main.c:2:
/usr/include/stdlib.h:971:34: note: expected '__compar_fn_t' {aka 'int (*)(const void *, const void *)'} but argument is of type 'int (*)(const char *, const char *)'
  971 |                    __compar_fn_t __compar) __nonnull ((1, 4));
      |                    ~~~~~~~~~~~~~~^~~~~~~~
main.c: At top level:
main.c:29:5: error: redefinition of 'main'
   29 | int main(void) {
      |     ^~~~
main.c:5:5: note: previous definition of 'main' with type 'int(void)'
    5 | int main(void) {
      |     ^~~~
main.c: In function 'main':
main.c:37:36: error: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types]
   37 |     qsort(s, n, sizeof(char) * 11, strcmp);
      |                                    ^~~~~~
      |                                    |
      |                                    int (*)(const char *, const char *)
/usr/include/stdlib.h:971:34: note: expected '__compar_fn_t' {aka 'int (*)(const void *, const void *)'} but argument is of type 'int (*)(const char *, const char *)'
  971 |                    __compar_fn_t __compar) __nonnull ((1, 4));
      |                    ~~~~~~~~~~~~~~^~~~~~~~
Language: C++

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

int main(){
  int n ;
  cin>>n;
  vector <string> arr;
  for(int i=0:i<n;i++){
   string c;
    cin>>c;
    arr.push_back(c);
  }
  sort(unique(arr.begin(),are.end()),arr.end());
  cout<<arr.size();
  
  return 0;
  }

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

#include    <algorithm>
#include    <vector>
#include    <string>

using namespace std;

int main(){
  vector<string> result;
  int i;
  string str;
  result.clear();
  cin>> i;
  for(int k = 0; k < i; k++){
    cin >> str;
    result.push_back(str);
  }
  
  sort(result.begin(), result.end());
  result.erase(unique(result.begin(), result.end()), result.end());;
  
  cout << result.size() << "\n";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'cin' was not declared in this scope
   12 |   cin>> i;
      |   ^~~
a.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    3 | #include    <string>
  +++ |+#include <iostream>
    4 | 
a.cc:21:3: error: 'cout' was not declared in this scope
   21 |   cout << result.size() << "\n";
      |   ^~~~
a.cc:21:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C

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

using namespace std;

int main(){
  vector<string> result;
  int i;
  string str;
  result.clear();
  cin>> i;
  for(int k = 0; k < i; k++){
    cin >> str;
    result.push_back(str);
  }
  
  sort(result.begin(), result.end());
  result.erase(unique(result.begin(), result.end()), result.end());;
  
  cout << result.size() << "\n";
  return 0;
}

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

#include <unordered_set>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <string>

using namespace std;
 
int main() {
	int size;
  	cin >> size;
  	unordered_set<string> item_set;
  	n_copy(istream_iterator<string>(cin), size, inserter(item_set, item_set.begin()));
  	cout << item_set.size();
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'n_copy' was not declared in this scope
   13 |         n_copy(istream_iterator<string>(cin), size, inserter(item_set, item_set.begin()));
      |         ^~~~~~
Language: C++

#include <unordered_set>
#include <algorithm>
#include <iostream>
#include <iterator>

using namespace std;
 
int main() {
	int size;
  	cin >> size;
  	unordered_set<int> item_set;
  	n_copy(istream_iterator<int>(cin), size, inserter(item_set, item_set.begin()));
  	cout << item_set.size();
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'n_copy' was not declared in this scope
   12 |         n_copy(istream_iterator<int>(cin), size, inserter(item_set, item_set.begin()));
      |         ^~~~~~
Language: C++

#include <unordered_set>
#include <algorithm>
#include <iostream>
#include <interator>

using namespace std;
 
int main() {
	int size;
  	cin >> size;
  	unordered_set<int> item_set;
  	n_copy(istream_iterator<int>(cin), size, inserter(item_set, item_set.begin()));
  	cout << item_set.size();
  	return 0;
}

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

#include <unordered_set>
#include <algorithm>
#include <iostream>
#include <interator>

int main() {
	int size;
  	cin >> size;
  	unordered_set<int> item_set;
  	n_copy(istream_iterator<int>(cin), size, inserter(item_set, item_set.begin()));
  	cout << item_set.size();
  	return 0;
}

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

#include<iostream>
using namespace std;
int main()
{
	int i,a,l,tt=0;
	cin>>a;
	int s[a+1],b[a+1];
	for(i=1;i<=a;i++)
		b[i]=0;
	for(i=1;i<=a;i++)
		cin>>s[i];
	for(i=1;i<=a;i++)
		for(l=1;l<=a-1;l++)
		{
			if(a[i]&&a[l]==0)
			{
				if(b[i]==b[l])
				{
					tt++;
					a[i]++;
					a[l]++;
				}
			}
		}
	cout<<tt;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:29: error: invalid types 'int[int]' for array subscript
   15 |                         if(a[i]&&a[l]==0)
      |                             ^
a.cc:15:35: error: invalid types 'int[int]' for array subscript
   15 |                         if(a[i]&&a[l]==0)
      |                                   ^
a.cc:20:42: error: invalid types 'int[int]' for array subscript
   20 |                                         a[i]++;
      |                                          ^
a.cc:21:42: error: invalid types 'int[int]' for array subscript
   21 |                                         a[l]++;
      |                                          ^