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

#include <bits/stdc++.h>‬
#define rep(i,n) for(int i=0;i<(int)(n);i++)‬
#define rep1(i,n) for(int i=1;i<=(int)(n);i++)‬
using namespace std;‬
int main(){‬
  int n;‬
  cin >> n;‬
  vector<string> str(n);
  rep1(i,n){
    string s;
    cin >> s;
    str[i] = s;
  }
  
  sort(str.begin(),str.end());
  
  rep(i,n){
    cout << str[i];
  }
  int ans=n;

  rep(i,n-1){
    if(str[i]==str[i+1]){
      ans--;    
    }
  }
  cout << ans << endl;
}

Compiler output:
a.cc: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>
#include <vector>
using namespace std;


int main() {
  int n;
  cin >> n;
  //配列に入れる
  vector<string> vec(n);
  for(int i = 0; i < n; i++) {
    cin >> vec.at(i);
  }
  //アルファベット順にソートする
  vec.sort(vec.at(1), vec.at(n));
  int a = 0;
  for(int i = 0; i < n; i++) {
    if(vec.at(i) == vec.at(i + 1) {
      a++;
    }
  }
  cout << n - a << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:7: error: 'class std::vector<std::__cxx11::basic_string<char> >' has no member named 'sort'
   15 |   vec.sort(vec.at(1), vec.at(n));
      |       ^~~~
a.cc:18:34: error: expected ')' before '{' token
   18 |     if(vec.at(i) == vec.at(i + 1) {
      |       ~                          ^~
      |                                  )
a.cc:21:3: error: expected primary-expression before '}' token
   21 |   }
      |   ^
Language: C++

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


int main() {
  int n;
  cin >> n;
  int memory = n;
  //配列に入れる
  vector<string> vec(n);
  for(int i = 0; i < n; i++) {
    cin >> s;
    vec.at(i) = s;
  }
  //アルファベット順にソートする
  vec.sort(vec.begin(), vec.end());
  int a = 0;
  for(int i = 0; i < n; i++) {
    if(vec.at(i) == vec.at(i + 1) {
      a++;
    }
  }
  cout << n - a << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: 's' was not declared in this scope
   12 |     cin >> s;
      |            ^
a.cc:16:7: error: 'class std::vector<std::__cxx11::basic_string<char> >' has no member named 'sort'
   16 |   vec.sort(vec.begin(), vec.end());
      |       ^~~~
a.cc:19:34: error: expected ')' before '{' token
   19 |     if(vec.at(i) == vec.at(i + 1) {
      |       ~                          ^~
      |                                  )
a.cc:22:3: error: expected primary-expression before '}' token
   22 |   }
      |   ^
Language: C

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

int main(){
    int n;
    cin >> n;
    set<string> s;
    for(int i = 0; i < n; i++){
        string str;
        cin >> str;
        s.insert(str);
    }
    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>
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<=(int)(n);i++)
using namespace std;
int main(){
  int n;
  cin >> n;
  vector<string> str(n);
  rep1(i,n){
    string s;
    cin >> s;
    str[i] = s;
  }
  
  sort(str.begin(),str.end());
  
  rep(i,n){
    cout << str[i];
  }
  int ans=n;
  rep(i,n-1){
    if(str[i]==str[i+1]){
      ans--;
    }
  }
  cout << ans << 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>
#define rep(i,n) for(int i=0;i<(int)(i);i++)
using namespace std;
int main(){
  int n;
  cin >> n;
  string str[n];
  
  rep1(i,n){
    string S;
    cin >> S;
    str[i] = S;
  }
  int ans = n;
  
  for(int i=1;i<n;i++){
    if(str[i] == str[i+1]){
      ans--;
    }
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'i' was not declared in this scope
    9 |   rep1(i,n){
      |        ^
a.cc:9:3: error: 'rep1' was not declared in this scope; did you mean 'rep'?
    9 |   rep1(i,n){
      |   ^~~~
      |   rep
Language: C

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

int main()
{
    int N, i, tmp, j, flag, cnt=0;
    char c;
    scanf("%d", &N);
    scanf("%c", &c);
    char ch[N][11];
    for (i=0; i<N; i++)
    {
        gets(ch[i]);
        flag=0;
        for (j=0; j<i; j++)
        {
            tmp=strcmp(ch[i], ch[j]);
            if (tmp==0)
            {
                flag=1;
                break;
            }
        }
        if (flag==0)
            cnt++;
    }
    printf("%d\n", cnt);
    return 0;
}

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

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

void main(){
    int N;
    vector<string> S(11);
    cin >> N;
    for (int i = 0; i < 11; i++){
        S.at(i);
    }
    int count = N;
    sort(S.begin(), S.end());
    
    for (int i = 0; i < N-1; i++){

        if(S.at(i) == S.at(i+1)) count--;
    }
    cout  << count << endl;


}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:13: warning: ignoring return value of 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::at(size_type) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; reference = std::__cxx11::basic_string<char>&; size_type = long unsigned int]', declared with attribute 'nodiscard' [-Wunused-result]
    9 |         S.at(i);
      |         ~~~~^~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1180:7: note: declared here
 1180 |       at(size_type __n)
      |       ^~
Language: C++

#include <iostream>
#include <numeric> //For gcd()
#define ll long long int
#define all(v) (v).begin(), (v).end()
#define pb push_back
#define fo(i, n) for (int i = 0; i < n; ++i)
#define foe(i, n) for (int i = 1; i <= n; ++i)
#define Fo(i, k, n) for (int i = k; i < n; ++i)
#define FOR(i, a, b) for (int i = (a); i < (b); ++(i))
#define vi vector<int>
#define vll vector<ll>
#define vvl vector<vector<ll>>
#define vpll vector<pair<ll, ll>>
#define MOD 998244353
#define MAX 1024
using namespace std;
using pi = pair<ll, ll>;

int32_t main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	ll n;
	cin>>n;
	set<string> s;
	fo(i,n){
		string temp;
		cin>>temp;
		s.insert(temp);
	}
	cout<<s.size()<<endl;
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:25:9: error: 'set' was not declared in this scope
   25 |         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 <numeric> //For gcd()
  +++ |+#include <set>
    3 | #define ll long long int
a.cc:25:19: error: expected primary-expression before '>' token
   25 |         set<string> s;
      |                   ^
a.cc:25:21: error: 's' was not declared in this scope
   25 |         set<string> s;
      |                     ^
Language: C++

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

int main(){
    int N;
    vector<string> S(11);
    cin >> N;
    for (int i = 0; i < 11; i++){
        S.at(i);
    }
    int count = N;
    sort(S.begin(), S.end())
    
    for (int i = 0; i < N-1; i++){

        if(S.at(i) == S.at(i+1)) count--;
    }
    cout  << count << endl;


}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: warning: ignoring return value of 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::at(size_type) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; reference = std::__cxx11::basic_string<char>&; size_type = long unsigned int]', declared with attribute 'nodiscard' [-Wunused-result]
    9 |         S.at(i);
      |         ~~~~^~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1180:7: note: declared here
 1180 |       at(size_type __n)
      |       ^~
a.cc:12:29: error: expected ';' before 'for'
   12 |     sort(S.begin(), S.end())
      |                             ^
      |                             ;
   13 | 
   14 |     for (int i = 0; i < N-1; i++){
      |     ~~~                      
a.cc:14:21: error: 'i' was not declared in this scope
   14 |     for (int i = 0; i < N-1; i++){
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
main() {
 int N;
 cin >> N;
 vector<string> vec(N);
  
 for (int i=0; i<N; i++){
  cin >> vec.at(i);
 }
  
 sort(vec.beggin(), vec.end());
 int count =N;
  
 for (int i=0; i<N-1; i++){
 
   if (vec.at(i)==vec.at(i+1))
     count--;
 }
}


Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:12:11: error: 'class std::vector<std::__cxx11::basic_string<char> >' has no member named 'beggin'; did you mean 'begin'?
   12 |  sort(vec.beggin(), vec.end());
      |           ^~~~~~
      |           begin
Language: C

#include <bits/stdc++.h>

using namespace std;

int main()
{
   int n;
   cin >> n;
   set<string> s;
   while(n--) {
       string str;
       cin >> str;
       s.insert(str);
   }
   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>

#define ll long long
#define mk make_pair
#define pb push_back


using namespace std;


int main(){
   
   ios_base::sync_with_stdio(0);
   cin.tie(0);
   cout.tie(0);

   int N; cin >> N;
   int types = 0;
   set<string> kinds;
   while(N--){
      string s; cin >> s;
      kinds.insert(s);
   }
   
   cout << kinds.size();
   
   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<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(void){
  int n,i,;
  char s[200001][11];
  scanf("%d",&n);
  for(i=1;i<=n;i++){
    scanf("%s",&s[i]);
  }
  qsort(s, n, 11, strcmp);
  int c=1;
  for(i=1;i<n;i++){
    if(strcmp(s[i], s[i-1])!=0){
      c++;
    }
  }
  printf("%d",c);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:11: error: expected identifier or '(' before ';' token
    5 |   int n,i,;
      |           ^
main.c:11:19: error: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types]
   11 |   qsort(s, n, 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));
      |                    ~~~~~~~~~~~~~~^~~~~~~~
Language: C++

//int a = stoi(c); 文字列をintへ
//小文字から大文字
//transform(a.begin(), a.end(), a.begin(), ::toupper);
//途中の出力をそのまま残さない
//数値計算 個数以外はdouble
//map<キー,値> p は辞書。p[キー] = 値
//map 全探索
//auto begin = p.begin(), end = p.end();
//for (auto it = begin; it != end; it++) {}
//mapのキー：it->first mapのバリュー：it->second
//絶対値 abs()
//入力は空白で切れる
//大文字判定 isupper(文字) 小文字判定 islower(文字)
//do{}while(next_permutation(ALL(配列)))
//while(N)で回すとき、Nはコピーを作っておく
//小文字に対応する文字コード：S[i] - 'a'
//文字コード→小文字：(char)(数字+'a')
//グラフの距離:隣接行列で扱う
//等価なものに変換する思考
//bool型　初期値はTrue
//島渡りの問題：中間ノードに着目
//配列はvector<>を使う：意味わからないエラーがなくなる。
//背反な事象にちゃんとわける
//チェックリストはマップを使う
//数が大きい時の比較はstring型で行う
//全て0になったか調べたい->0になるたびにcntする
//またはかかつか
//例外処理は最初にする
//x = p^m + q^n...の約数の個数:(n+1)*(m+1)....
//N!のどの素因数で何回割れるか
//⇔1~Nまでの数がそれぞれどの素因数で何回割り切れるかの和
//パズルの問題->一般化して全探索
//数が大きい時のせぐふぉはコードテストで試してみる
//スペルミスに注意
//stack<ll> s;
//s.push(要素);s.top();s.pop();
//queue<ll> q;
//q.push(要素);q.front();q.pop();
//同じ作業繰り返す系の問題：収束先を見つける
#include <bits/stdc++.h>
#define rep(i,N) for(int i = 0; i < N;i++)
#define ALL(a) (a).begin(),(a).end()
#define ll long long int
using namespace std;

//円周率
const double PI = 3.14159265358979323846;
//割るやつ
const ll M = (pow(10, 9) + 7);

// K進数でのNの桁数
ll dig(ll N, ll K) {
	ll dig = 0;
	while (N) {
		dig++;
		N /= K;
	}
	return dig;
}
// a,bの最大公約数
ll gcd(ll a, ll b) {
	if (b == 0) return a;
	return gcd(b, a%b);
}


//a,bの最小公倍数
ll lcm(ll a, ll b) {
	ll g = gcd(a, b);
	return a / g * b;
}

//nC2の計算
ll C(ll N) {
	return N * (N - 1) / 2;
}

//階乗計算
ll f(ll n) {
	if (n == 0 || n == 1) return 1;
	else return (n * f(n - 1)) % M;
}

//Nをdで何回割れるか
ll divcnt(ll N, ll d) {
	ll ans = 0;
	while (1) {
		if (N%d == 0) {
			ans++;
			N /= d;
		}
		else break;
	}

	return ans;
}

//素数判定
bool prime(ll num) {
	if (num < 2) return false;
	else if (num == 2) return true;
	else if (num % 2 == 0) return false;
	double sqrtNum = sqrt(num);
	for (int i = 3; i <= sqrtNum; i += 2) {
		if (num % i == 0) return false;
	}
	return true;
}

//フィボナッチ数列
vector<ll> memo(pow(10, 6) + 1);
ll fibo(ll n) {
	if (n == 1) return 1;
	else if (n == 2) return 1;
	else if (memo[n] != 0) return memo[n];
	else return memo[n] = fibo(n - 1) + f(n - 2);
}

//ABC158のE見る
int main() {
	ll N; cin >> N;
	vector<string> S(N); rep(i, N)cin >> S[i];

	map<string, ll> p;
	rep(i, N) p[S[i]] = 1;

	ll ans = 0;
	auto begin = p.begin(), end = p.end();
	for (auto it = begin; it != end; it++) {
		ans++
	}

	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:130:22: error: expected ';' before '}' token
  130 |                 ans++
      |                      ^
      |                      ;
  131 |         }
      |         ~
Language: C

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

int main(int argc,char* argv[]){
    int n,ans=1;
    vector<string> data;
    string str;

    cin>>n;

    for(int i=0;i<n;i++){
        cin>>str;
        data.push_back(str);
    }
    sort(data.begin(),data.end());
    for(int i=1;i<n;i++){
        if(data[i]!=data[i-1]){
            ans++;
        }
    }
    cout<<ans<<endl;
    return 0;
}

Compiler output:
main.c: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;
typedef long long int lli;
int main(int argc,char* argv[]){
    int n,ans=1;
    vector<string> data;
    string str;;

    cin>>n;

    for(int i=0;i<n;i++){
        cin>>str;
        data.push_back(str);
    }
    sort(data.begin(),data.end());
    for(int i=1;i<n;i++){
        if(data[i]!=data[i-1]){
            ans++;
        }
    }
    cout<<ans<<endl;
    return 0;
}

Compiler output:
main.c: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, P, j;
    string A;
    cin >> N;
    map<string, int> S;
    for (int i = 0; i < N; i++){
        cin >> A;
        S[A]++;
    }
    cout << 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 <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <algorithm>
#include <numeric>
#include <utility>
#include <cmath>
#include <tuple>
#include <queue>
#include <bitset>
#include <set>
#include <map>
#include <list>

using ll = long long;
using ld = long double;
using namespace std;
const int INF = 1e9+100;
const ll INF64 = 7e18l;
const int mod = 1000000007;
#define rep(i,a,b) for(int i=(a);i<(b);i++)
#define ALL(a) (a).begin(), (a).end()
#define FIN ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);


int main(){
    FIN;

    ll n; cin >> n;
    set<string> st;
    
    rep(i,0,n){
        string s; cin >> s;
        st.insert(s);
    }
    //消すときはerase()

    cout << st.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<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(void){
  int n,c=1;
  char s[];
  scanf("%d",&n);
  for(i=1;i<=n;i++){
    scanf("%s",&s[i]);
  }
  qsort(s, n, sizeof(*s), comp);
  for(i=1;i<n;i++){
    if(strcmp(s[i], s[i+1])!=0){
      c++;
    }
  }
  printf("%d",c);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:8: error: array size missing in 's'
    6 |   char s[];
      |        ^
main.c:8:7: error: 'i' undeclared (first use in this function)
    8 |   for(i=1;i<=n;i++){
      |       ^
main.c:8:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:27: error: 'comp' undeclared (first use in this function)
   11 |   qsort(s, n, sizeof(*s), comp);
      |                           ^~~~
Language: C

#include <stdio.h>
int main(void){
  int N, a = 0;
  scanf("%d", &N);
  char S[N][10];
  int N[N];
  for(int i = 0; i < N; i++){
  scanf("%s", S[i]);
  N[i] == 0;}
   for(int k = 0; k < N; k++){
     if(N[k] > 0) continue;
   for(int j = 0; j < N; j++){
     if(S[k] == S[j]){
       N[k] += 1;
       N[j] += 1;
     }
     a += 1;
   }
   //aaaaaaaaaaa
 }
 printf("%d", &a);


} 

Compiler output:
main.c: In function 'main':
main.c:6:7: error: conflicting types for 'N'; have 'int[N]'
    6 |   int N[N];
      |       ^
main.c:3:7: note: previous declaration of 'N' with type 'int'
    3 |   int N, a = 0;
      |       ^
Language: C++

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

int main(){
  int n,cnt;
  cin >> n;
  string c,*s;
  vector<string*> t(100000000);
  for(int i=0;i<n;i++){
    cin >> c;
    s = &c;
    t(*s)++;
  }
  
  sort(t.begin(),t.end());
  for(int i=0;i<n;i++){
    if(t.at(i) == 0){
      cnt = i;
      break;
    }
  }
  cout << cnt << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:6: error: no match for call to '(std::vector<std::__cxx11::basic_string<char>*>) (std::string&)'
   13 |     t(*s)++;
      |     ~^~~~
Language: C++

#include <cstring>
#include <bits/stdc++.h>
using namespace std;
int main(){
int a;
string str;
cin>>a;
set<string> S;
for (int i=0;i<a;i++){
cin>>str;
S.insert(str);}
cout<<S.size()<<endl;


Compiler output:
a.cc: In function 'int main()':
a.cc:12:22: error: expected '}' at end of input
   12 | cout<<S.size()<<endl;
      |                      ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
  int n,cnt;
  cin >> n;
  string c,*s;
  vector<string*> t(100000000);
  for(int i=0;i<n;i++){
    cin >> c;
    s = &c;
    t((*s))++;
  }
  
  sort(t.begin(),t.end());
  for(int i=0;i<n;i++){
    if(t.at(i) == 0){
      cnt = i;
      break;
    }
  }
  cout << cnt << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:6: error: no match for call to '(std::vector<std::__cxx11::basic_string<char>*>) (std::string&)'
   13 |     t((*s))++;
      |     ~^~~~~~
Language: C++

#include <cstring>
#include <bits/stdc++.h>
using namespace std;
int main(){
int counter=0;
int a;
string str;
cin>>a;
set<string> S;
for (int i=0;i<a;i++){
cin>>str;
S.insert(str);}
cout<<S.size()<<endl;


Compiler output:
a.cc: In function 'int main()':
a.cc:13:22: error: expected '}' at end of input
   13 | cout<<S.size()<<endl;
      |                      ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
#include<string>
#include<sort>
#include<vector>
using namespace std;
int main() {
  int i,j=0,b=0;
  cin >> i;
  vector <string> S(i);
  for(j=0;j<i;j++){
    cin>>S.at(j);
  }
  sort(S.begin(), S.end());
    for(j=0; j<(i-1); j++){
      if(S.at(j) != S.at(j+1)){
        b++;
      }
    }
  cout<<b;
}

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

#include <cstring>
#include <bits/stdc++.h>
using namespace std;
int main(){
int counter=0;
int=a;
string str;
cin>>a;
set<string> S;
for (int i=0;i<a;i++){
cin>>str;
S.insert(str);}
cout<<S.size()<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:6:4: error: expected unqualified-id before '=' token
    6 | int=a;
      |    ^
a.cc:8:6: error: 'a' was not declared in this scope
    8 | cin>>a;
      |      ^
a.cc:13:22: error: expected '}' at end of input
   13 | cout<<S.size()<<endl;
      |                      ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C

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

int main() {
  int N, x;
  cin >> N;
  vector<string> S(N);  
  
  for (int i=0; i<N; i++){   
    cin >> S.at(i);
  }
  
  sort(S.begin(), S.end());
  
  int k = 1;
  for (int i=1; i<N; i++){
    x = 0;
    for (int j=0; j<i; j++){   
      if (S.at(i) == S.at(j)){
        x = 1;
        break;
      }
    }
    if (x == 0){
      k++;
    }
  }
  cout << k << 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<iostream>
#include<string>
#include<set>
using namespace std;
int main(){
  N;
  set<string> s;
  while(N--){
    string str;
    cin>>str;
    s.insert(str);
  }
  cout<<s.size()<<endl;
}

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

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

int main(){
  int n,cnt;
  cin >> n;
  string c,*s;
  vector<string*> t(100000000);
  for(int i=0;i<n;i++){
    cin >> c;
    s = &c;
    t(s)++;
  }
  
  sort(t.begin(),t.end());
  for(int i=0;i<n;i++){
    if(t.at(i) == 0){
      cnt = i;
      break;
    }
  }
  cout << cnt << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:6: error: no match for call to '(std::vector<std::__cxx11::basic_string<char>*>) (std::string*&)'
   13 |     t(s)++;
      |     ~^~~
Language: C++

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

int main(){
  int n,cnt;
  cin >> n;
  string c,*s;
  vector<long long> t(100000000);
  for(int i=0;i<n;i++){
    cin >> c;
    s = &c;
    t(s)++;
  }
  
  sort(t.begin(),t.end());
  for(int i=0;i<n;i++){
    if(t.at(i) == 0){
      cnt = i;
      break;
    }
  }
  cout << cnt << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:6: error: no match for call to '(std::vector<long long int>) (std::string*&)'
   13 |     t(s)++;
      |     ~^~~
Language: C++

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

int main(){
  int n,cnt;
  cin >> n;
  string c,*s;
  vector<string*> t(n);
  for(int i=0;i<n;i++){
    cin >> c;
    s = &c;
    t(s)++;
  }
  
  sort(t.begin(),t.end());
  for(int i=0;i<n;i++){
    if(t.at(i) == 0){
      cnt = i;
      break;
    }
  }
  cout << cnt << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:6: error: no match for call to '(std::vector<std::__cxx11::basic_string<char>*>) (std::string*&)'
   13 |     t(s)++;
      |     ~^~~
Language: C++

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

int main(){
  int n,cnt;
  cin >> n;
  string c,*s;
  vector<long long> t(n);
  for(int i=0;i<n;i++){
    cin >> c;
    s = &c;
    t(s)++;
  }
  
  sort(t.begin(),t.end());
  for(int i=0;i<n;i++){
    if(t.at(i) == 0){
      cnt = i;
      break;
    }
  }
  cout << cnt << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:6: error: no match for call to '(std::vector<long long int>) (std::string*&)'
   13 |     t(s)++;
      |     ~^~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
 string keihin[10000];
  string buffer;
  int i,j=0,k=0,b=0;
  bool a=true;
  cin>>i;
  for(j=0;j<i;j++){
    cin>>buffer
    for(k=0;k<j;k++){
    if(buffer==keihin[k])a=false;
    }
    if(a){keihin[k]=buffer;b++;}
    a=true;
  }
  cout<<b;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: expected ';' before 'for'
   11 |     cin>>buffer
      |                ^
      |                ;
   12 |     for(k=0;k<j;k++){
      |     ~~~         
a.cc:12:20: error: expected ';' before ')' token
   12 |     for(k=0;k<j;k++){
      |                    ^
      |                    ;
Language: C++

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

int main(){
  int n,cnt=1;
  cin >> n;
  string s;
  vector<long long> t(n);
  for(int i=0;i<n;i++){
    cin >> s;
    long long ss = &s;
    t(ss)++;
  }
  
  sort(t.begin(),t.end());
  for(int i=0;i<n;i++){
    if(t.at(i) == 0){
      cnt = i;
      break;
    }
  }
  cout << cnt << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: invalid conversion from 'std::string*' {aka 'std::__cxx11::basic_string<char>*'} to 'long long int' [-fpermissive]
   11 |     long long ss = &s;
      |                    ^~
      |                    |
      |                    std::string* {aka std::__cxx11::basic_string<char>*}
a.cc:12:6: error: no match for call to '(std::vector<long long int>) (long long int&)'
   12 |     t(ss)++;
      |     ~^~~~
Language: C++

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

int main(){
  int n,cnt=1;
  cin >> n;
  string s;
  vector<long long> t(n);
  for(int i=0;i<n;i++){
    cin >> s;
    int *ss = &s;
    t(ss)++;
  }
  
  sort(t.begin(),t.end());
  for(int i=0;i<n;i++){
    if(t.at(i) == 0){
      cnt = i;
      break;
    }
  }
  cout << cnt << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: cannot convert 'std::string*' {aka 'std::__cxx11::basic_string<char>*'} to 'int*' in initialization
   11 |     int *ss = &s;
      |               ^~
      |               |
      |               std::string* {aka std::__cxx11::basic_string<char>*}
a.cc:12:6: error: no match for call to '(std::vector<long long int>) (int*&)'
   12 |     t(ss)++;
      |     ~^~~~
Language: C++

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

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

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

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

int main(){
  int n,cnt=1;
  cin >> n;
  string s;
  vector<long long> t(n);
  for(int i=0;i<n;i++){
    cin >> s;
    int *ss = s;
    t(ss)++;
  }
  
  sort(t.begin(),t.end());
  for(int i=0;i<n;i++){
    if(t.at(i) == 0){
      cnt = i;
      break;
    }
  }
  cout << cnt << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int*' in initialization
   11 |     int *ss = s;
      |               ^
      |               |
      |               std::string {aka std::__cxx11::basic_string<char>}
a.cc:12:6: error: no match for call to '(std::vector<long long int>) (int*&)'
   12 |     t(ss)++;
      |     ~^~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
 string keihin[10000];
  string buffer;
  int i,j=0,k=0;
  bool a=true;
  cin>>i;
  for(j=0;j<i;j++){
    cin>>buffer
    for(k=0;k<j;k++){
    if(buffer==keihin[k])a=false;
    }
    if(a)keihin[k]=buffer;
    a=true;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: expected ';' before 'for'
   11 |     cin>>buffer
      |                ^
      |                ;
   12 |     for(k=0;k<j;k++){
      |     ~~~         
a.cc:12:20: error: expected ';' before ')' token
   12 |     for(k=0;k<j;k++){
      |                    ^
      |                    ;
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
 string keihin[];
  string buffer;
  int i,j=0,k=0;
  bool a=true;
  cin>>i;
  for(j=0;j<i;j++){
    cin>>buffer
    for(k=0;k<j;k++){
    if(buffer==keihin[k])a=false;
    }
    if(a)keihin[k]=buffer;
    a=true;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: array size missing in 'keihin'
    5 |  string keihin[];
      |         ^~~~~~
a.cc:11:16: error: expected ';' before 'for'
   11 |     cin>>buffer
      |                ^
      |                ;
   12 |     for(k=0;k<j;k++){
      |     ~~~         
a.cc:12:20: error: expected ';' before ')' token
   12 |     for(k=0;k<j;k++){
      |                    ^
      |                    ;
Language: C++

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

int main(){
  int n,cnt=1;
  cin >> n;
  vector<*string> s(n);
  vector<long long> t(n);
  for(int i=0;i<n;i++){
    cin >> s.at(i);
    t(s.at(i))++;
  }
  
  sort(t.begin(),t.end());
  for(int i=0;i<n;i++){
    if(t.at(i) == 0){
      cnt = i;
      break;
    }
  }
  cout << cnt << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: template argument 1 is invalid
    7 |   vector<*string> s(n);
      |                 ^
a.cc:7:17: error: template argument 2 is invalid
a.cc:10:14: error: request for member 'at' in 's', which is of non-class type 'int'
   10 |     cin >> s.at(i);
      |              ^~
a.cc:11:9: error: request for member 'at' in 's', which is of non-class type 'int'
   11 |     t(s.at(i))++;
      |         ^~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
 string keihin[];
  string buffer;
  int i,j=0,k=0;
  bool a=true;
  cin>>i;
  for(j=0;j<i;j++){
    cin>>buffer
    for(k=0;k<j;k++){
    if(buffer==keihin[k])a=false;
    }
    if(a)keihin[k]=buffer;
    a==true;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: array size missing in 'keihin'
    5 |  string keihin[];
      |         ^~~~~~
a.cc:11:16: error: expected ';' before 'for'
   11 |     cin>>buffer
      |                ^
      |                ;
   12 |     for(k=0;k<j;k++){
      |     ~~~         
a.cc:12:20: error: expected ';' before ')' token
   12 |     for(k=0;k<j;k++){
      |                    ^
      |                    ;
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
 String keihin[];
  String buffer;
  int i,j=0,k=0;
  bool a=true;
  cin>>i;
  for(j=0;j<i;j++){
    cin>>buffer
    for(k=0;k<j;k++){
    if(buffer==keihin[k])a=false;
    }
    if(a)keihin[k]=buffer;
    a==true;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:2: error: 'String' was not declared in this scope
    5 |  String keihin[];
      |  ^~~~~~
a.cc:6:9: error: expected ';' before 'buffer'
    6 |   String buffer;
      |         ^~~~~~~
      |         ;
a.cc:11:10: error: 'buffer' was not declared in this scope; did you mean 'setbuffer'?
   11 |     cin>>buffer
      |          ^~~~~~
      |          setbuffer
a.cc:12:20: error: expected ';' before ')' token
   12 |     for(k=0;k<j;k++){
      |                    ^
      |                    ;
a.cc:15:10: error: 'keihin' was not declared in this scope
   15 |     if(a)keihin[k]=buffer;
      |          ^~~~~~
Language: C++

#include<iostream>
#include<String>
using namespace std;
int main(){
 String keihin[];
  String buffer;
  int i,j=0,k=0;
  bool a=true;
  cin>>i;
  for(j=0;j<i;j++){
    cin>>buffer
    for(k=0;k<j;k++){
    if(buffer==keihin[k])a=false;
    }
    if(a)keihin[k]=buffer;
    a==true;
  }
  return 0;
}

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

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

int main() {
  int N;
  cin>>N;
  map<string,int> dic;
  for(int i=0;i<N;i++){
    string c;
    cin>>c;
    if(dic.find(c)!=end.(dic))dic[c]=i;
  }
  int sum=dic.size()+1;
  cout<<sum<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: expected unqualified-id before '(' token
   11 |     if(dic.find(c)!=end.(dic))dic[c]=i;
      |                         ^
Language: C++

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

int main(){
  int n,cnt=1;
  cin >> n;
  vector<string> s(n);
  vector<long long> t(n);
  for(int i=0;i<n;i++){
    cin >> s.at(i);
    t(s.at(i))++;
  }
  
  sort(t.begin(),t.end());
  for(int i=0;i<n;i++){
    if(t.at(i) == 0){
      cnt = i;
      break;
    }
  }
  cout << cnt << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: no match for call to '(std::vector<long long int>) (__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type&)'
   11 |     t(s.at(i))++;
      |     ~^~~~~~~~~
Language: C

N = int(input())
S = [input() for j in range(N)]

A = set(S)
print(len(A))

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | N = int(input())
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'N' [-Wimplicit-int]
main.c:1:5: error: expected expression before 'int'
    1 | N = int(input())
      |     ^~~
Language: C++

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

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

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

int main()
{
    ll int n;
    cin >> n;
    vector<string> s(n);
    for (int i = 0; i < n; i++)
    {
        cin >> s[i];
    }

    for (ll int i = 0; i < s.size(); i++)
    {
        for (ll int j = 1; j < s.size(); j++)
        {
            if (s[i] == s[i + j])
            {
                s.erase(s.begin() + i + j);
                j--;
            }
        }
    }
    cout << s.size() << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:17: error: declaration does not declare anything [-fpermissive]
    3 | #define ll long long;
      |                 ^~~~
a.cc:7:5: note: in expansion of macro 'll'
    7 |     ll int n;
      |     ^~
a.cc:3:17: error: declaration does not declare anything [-fpermissive]
    3 | #define ll long long;
      |                 ^~~~
a.cc:15:10: note: in expansion of macro 'll'
   15 |     for (ll int i = 0; i < s.size(); i++)
      |          ^~
a.cc:15:36: error: expected ')' before ';' token
   15 |     for (ll int i = 0; i < s.size(); i++)
      |         ~                          ^
      |                                    )
a.cc:15:38: error: 'i' was not declared in this scope
   15 |     for (ll int i = 0; i < s.size(); i++)
      |                                      ^
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#include <iostream>
#include <map>

using namespace std;



int main() {
  long long n;
  cin>>n;
  vector<string> st;
  string s;
  rep(i,n){
    cin>>s;
    st.emplace(s);
  }
    
      
  
    
  cout<<st.size()<<endl;
  
  
  
  
}



Compiler output:
a.cc: In function 'int main()':
a.cc:17:15: error: no matching function for call to 'std::vector<std::__cxx11::basic_string<char> >::emplace(std::string&)'
   17 |     st.emplace(s);
      |     ~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1348:9: note: candidate: 'template<class ... _Args> std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::emplace(const_iterator, _Args&& ...) [with _Args = {_Args ...}; _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >]'
 1348 |         emplace(const_iterator __position, _Args&&... __args)
      |         ^~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1348:9: note:   template argument deduction/substitution failed:
a.cc:17:16: note:   cannot convert 's' (type 'std::string' {aka 'std::__cxx11::basic_string<char>'}) to type 'std::vector<std::__cxx11::basic_string<char> >::const_iterator'
   17 |     st.emplace(s);
      |                ^
Language: C

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

int main(void){

    int N = 0;
    int count = 0;
    int sum = 0;
    int j = 0;
    scanf("%d", &N);

    char S[N][10];
    char tmpS[N][10];
    int check[20000] = {0};

    for (int i = 0; i < N; i++){
        scanf("%s", S[i]);

        while (S[i][j] != '\0'){
            sum += S[i][j];
            j++;
        }
        sum %= N;

        if (check[sum] == 0){
            check[sum]++;
            tmpS[sum] = S[i];

        } else if (strcmp(tmpS[sum], S[i]) == 0){
            check[sum]++;

        } else if (strcmp(tmpS[sum], S[i]) != 0){
            while (check[sum] == 0){
                sum++;

                if (sum >= N){
                    sum = 0;
                }
            }
            check[sum]++;
        }
        sum = 0;
        j = 0;
    }
 
    for (int k = 0; k < 20000; k++){
        if (check[k] != 0){
            count++;
        }
    }  
    printf("%d\n", count);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:27:23: error: assignment to expression with array type
   27 |             tmpS[sum] = S[i];
      |                       ^
Language: C++

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



int main() {
  long long n;
  cin>>n;
  vector<string> st;
  string s;
  rep(i,n){
    cin>>s;
    st.emplace(s);
  }
    
      
  
    
  cout<<st.size()<<endl;
  
  
  
  
}



Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: no matching function for call to 'std::vector<std::__cxx11::basic_string<char> >::emplace(std::string&)'
   14 |     st.emplace(s);
      |     ~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1348:9: note: candidate: 'template<class ... _Args> std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::emplace(const_iterator, _Args&& ...) [with _Args = {_Args ...}; _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >]'
 1348 |         emplace(const_iterator __position, _Args&&... __args)
      |         ^~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1348:9: note:   template argument deduction/substitution failed:
a.cc:14:16: note:   cannot convert 's' (type 'std::string' {aka 'std::__cxx11::basic_string<char>'}) to type 'std::vector<std::__cxx11::basic_string<char> >::const_iterator'
   14 |     st.emplace(s);
      |                ^
Language: C

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); i++)
#define rrep(i,n) for(int i = 1; i <= (n); ++i)
#define drep(i,n) for(int i = (n)-1; i >= 0; --i)
#define srep(i,s,t) for (int i = s; i < t; ++i)
#define pb push_back
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vl;
typedef tuple<int,int,int> T;
typedef vector<P> vp;
typedef vector<T> vt;

int main(void) {
  set<string> d;
  int n;
  cin >> n;
  for(int i=0; i<n; i++){
    int s;
    cin >> s;
    d.insert(s);
  }
  cout << d.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;
#define ll long long int
#define pb push_back
#define mp make_pair
#define vi vector<int>
#define vl vaector<long>
#define vll vector<long long int>
#define vC  vector<char>
#define FastIO ios::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define db(...) ZZ(#__VA_ARGS__, __VA_ARGS__)
ll pow(ll x, ll y,ll m) { ll res = 1;x=x%m; while (y > 0) { if (y & 1) res = ((res%m) * (x%m))%m; y = y >> 1; x = ((x%m) * (x%m))%m; } return res%m; }
template <typename Arg1> void ZZ(const char* name, Arg1&& arg1){std::cerr << name << " = " << arg1 << endl;}
template <typename Arg1, typename... Args>void ZZ(const char* names, Arg1&& arg1, Args&&... args)
{
	const char* comma = strchr(names + 1, ',');
	std::cerr.write(names, comma - names) << " = " << arg1;
	ZZ(comma, args...);
}
const ll INF = 0xFFFFFFFFFFFFFFFL;
clock_t time_p=clock();
void abhigyan10()
{time_p=clock()-time_p;cerr<<"Time Taken : "<<(float)(time_p)/CLOCKS_PER_SEC<<"\n";}
ll seed;
mt19937 rng(seed=chrono::steady_clock::now().time_since_epoch().count());
inline ll rnd(ll l=0,ll r=INF){return uniform_int_distribution<ll>(l,r)(rng);}
#define clrbuf cin.ignore(numeric_limits<streamsize>::max(),'\n');
#define preciset(x) cout<<setprecision(x)<<fixed;
const ll mod =1000000007;
int main()
{

        FastIO
        int n,i;
        cin>>n;
        set<string> s;
        string t;

        for(i=0;i<n;i++)
        {
        	cin>>t;
        	s.insert(t);

        }
        cout<<s.size();
        return 0;
    }

Compiler output:
main.c: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>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;



int main() {
  long long n,m,sum=0,flag=0,num=0,ans=0;
  cin>>n;
  vector<string> st;
  string s;
  rep(i,n){
    cin>>s;
    st.emplace(s);
  }
    
      
  
    
  cout<<st.size()<<endl;
  
  
  
  
}



Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: no matching function for call to 'std::vector<std::__cxx11::basic_string<char> >::emplace(std::string&)'
   14 |     st.emplace(s);
      |     ~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1348:9: note: candidate: 'template<class ... _Args> std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::emplace(const_iterator, _Args&& ...) [with _Args = {_Args ...}; _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >]'
 1348 |         emplace(const_iterator __position, _Args&&... __args)
      |         ^~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1348:9: note:   template argument deduction/substitution failed:
a.cc:14:16: note:   cannot convert 's' (type 'std::string' {aka 'std::__cxx11::basic_string<char>'}) to type 'std::vector<std::__cxx11::basic_string<char> >::const_iterator'
   14 |     st.emplace(s);
      |                ^
Language: C++

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



int main() {
  long long n,m,sum=0,flag=0,num=0,ans=0;
  cin>>n;
  vector<string> st;
  string s;
  reo(i,n){
    cin>>s;
    vec.emplace(s);
  }
    
      
  
    
  cout<<vec.size()<<endl;
  
  
  
  
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: 'i' was not declared in this scope
   12 |   reo(i,n){
      |       ^
a.cc:12:3: error: 'reo' was not declared in this scope; did you mean 'rep'?
   12 |   reo(i,n){
      |   ^~~
      |   rep
a.cc:20:9: error: 'vec' was not declared in this scope
   20 |   cout<<vec.size()<<endl;
      |         ^~~
Language: C++

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



int main() {
  long long n,m,sum=0,flag=0,num=0,ans=0;
  cin>>n;
  vecor<string> st;
  string s;
  reo(i,n){
    cin>>s;
    vec.emplace(s);
  }
    
      
  
    
  cout<<vec.size()<<endl;
  
  
  
  
}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'vecor' was not declared in this scope
   10 |   vecor<string> st;
      |   ^~~~~
a.cc:10:15: error: expected primary-expression before '>' token
   10 |   vecor<string> st;
      |               ^
a.cc:10:17: error: 'st' was not declared in this scope; did you mean 'std'?
   10 |   vecor<string> st;
      |                 ^~
      |                 std
a.cc:12:7: error: 'i' was not declared in this scope
   12 |   reo(i,n){
      |       ^
a.cc:12:3: error: 'reo' was not declared in this scope; did you mean 'rep'?
   12 |   reo(i,n){
      |   ^~~
      |   rep
a.cc:20:9: error: 'vec' was not declared in this scope
   20 |   cout<<vec.size()<<endl;
      |         ^~~
Language: C

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



int main() {
  long long n,m,sum=0,flag=0,num=0,ans=0;
  cin>>n;
  vecor<string> st;
  string s;
  reo(i,n){
    cin>>s;
    vec.emplace(s);
  }
    
      
  
    
  cout<<vec.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;

int main(){
  int n,cnt=1;
  cin >> n;
  vector<string> s(n);
  
  for(int i=0;i<n;i++){
    cin >> s.at(i);
  }
  if(n == 1) cout << 1 << endl;
  else {
    for(int i=1;i<n;i++){
      int x = 0;
      for(int j=0;j<i;j++){
        if(s.at(i) == s.at(j)){
          x = -1;
          break;
        }
      }
      if(x == 0) ans++;
    }
    
    cout << ans << endl;
  }   
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:18: error: 'ans' was not declared in this scope; did you mean 'abs'?
   22 |       if(x == 0) ans++;
      |                  ^~~
      |                  abs
a.cc:25:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   25 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: Java

import java.util.Scanner;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;

public class Main {
 public static void main(String[]args){
  Scanner in = new Scanner(System.in);
   
   int N = in.nextInt();
         for(int i=0; i<N+1; i++){
           String S = in.nextLine();
           List<String> list = new ArrayList<String>();   
           list.add =(S);
         }
           Set<String> uniqueSet = new HashSet<String>(list);
              for (String temp : uniqueSet) {
              System.out.println(temp + ": " + Collections.frequency(list, temp));
    }
        
  }
}

Compiler output:
Main.java:19: error: cannot find symbol
           list.add =(S);
               ^
  symbol:   variable add
  location: variable list of type List<String>
Main.java:21: error: cannot find symbol
           Set<String> uniqueSet = new HashSet<String>(list);
                                                       ^
  symbol:   variable list
  location: class Main
Main.java:23: error: cannot find symbol
              System.out.println(temp + ": " + Collections.frequency(list, temp));
                                                                     ^
  symbol:   variable list
  location: class Main
3 errors