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

import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Map<String, Integer> map = new HashMap<>();
        for (int i=0; i<n; i++) {
          String str = sc.nextLine();
          map.put(map.getOrDefault(str, 0) + 1);
        }
        System.out.println(map.size());
    }
}

Compiler output:
Main.java:10: error: method put in interface Map<K,V> cannot be applied to given types;
          map.put(map.getOrDefault(str, 0) + 1);
             ^
  required: String,Integer
  found:    int
  reason: actual and formal argument lists differ in length
  where K,V are type-variables:
    K extends Object declared in interface Map
    V extends Object declared in interface Map
1 error
Language: Java

import java.util.*;

public class Main{
    public static void main(String[]args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Set list = new HashSet()>();
        for(int i=0;i<N;i++){
            String str = sc.next();
            list.add(str);
        }

        
        
        System.out.println(list.size());
    }
}

Compiler output:
Main.java:7: error: -> expected
        Set list = new HashSet()>();
                                   ^
1 error
Language: C

#include <bits/stdc++.h>
#include <random>
using namespace std;
#define M 1000000007
#define pb emplace_back
#define F first
#define S second
#define PI acosl(-1.0)
#define mp(a, b) make_pair(a, b)
#define eps 1e-9
#define all(vec) vec.begin(), vec.end()
#define FAST ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define int long long
template<class T> void chmax(T &a,T b) { if (a<b) a=b;}
template<class T> void chmin(T &a,T b) { if (a>b) a=b;}
const int N = 2e5 + 10;
const int INF = 1LL << 60;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
int RANDOM_GEN = uniform_int_distribution<int>(0, 10000)(rng);
int t = 1;


void solve()
{
	int n;
	cin>>n;
	map<string, int> mp;
	int ans = 0;
	for(int i=0; i<n; i++){
		string s;
		cin>>s;
		if(mp[s] == 0) ans ++;
		mp[s]++;
	}
	cout << ans << '\n';
}


signed main()
{
    FAST
    int Tests = 1;
    //cin>>Tests;
    while(Tests--)
    {
		//cout<<"Case #"<<(t++)<<": ";  
        solve();
    }
    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() {
  long long N, count=0;
  cin >> N;
  map<string, int> p;
  
  for(int i=0; i<N; i++){
    string s;
    cin >> s;
    if(p.count(s)) continue;
    else p[s] = 1;
  }
  for(auto x : p){
    count++;
  }
  cout << count << 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<stdio.h>
#include<math.h>
#include<string.h>
#include<stdlib.h>
int str_cmp(const)

int main(){
 long long n;
 scanf("%lld ",&n);
 char s[n][10],t[n][10];
 long long a,b,c;
 for(a=0;a<n;a++)
  scanf("%s ",s[a]); 
 /*qsort(s,n,sizeof(char*),strcmp);*/
 for(a=0;a<n;a++)
  for(b=a+1;b<n;b++){
   if(strcmp(s[a],s[b])>0){
    strcpy(t[n],s[a]);
    strcpy(s[a],s[b]);
    strcpy(s[b],t[n]);}
  }
 long long ans=0;
 for(a=0;a<n;a++)
  if(strcmp(s[a],s[a+1])!=0)ans++;
  
 printf("%lld\n",ans);
  
return 0;}

Compiler output:
main.c:5:1: error: type defaults to 'int' in type name [-Wimplicit-int]
    5 | int str_cmp(const)
      | ^~~
main.c: In function 'str_cmp':
main.c:7:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    7 | int main(){
      |           ^
main.c:29: error: expected '{' at end of input
Language: C++

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

int main() {
  int N;
  int count=0;
  cin >> N;
  map<string, int> mp;
  
  for(int i=0; i<N;i++){
    string s;
    cin >> s;
    map.insert(s);
  }
  
  for(auto &it :mp){
    if(it.second>=1)
      count++;
  }
  
  cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: expected unqualified-id before '.' token
   13 |     map.insert(s);
      |        ^
Language: C

n = int(input())
array = list(input() for i in range(n))

array = set(array)

len = len(array)

print(len)

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++

//https://atcoder.jp/contests/abc164/tasks/abc164_c
#include<bits/stdc++.h>
int main()
{
  std::ios_base::sync_with_stdio(false);
  std::cin.tie(0);
  int n ;
  std::cin >> n ;
  std::set<std::string>s;
  for(int i = 0 ; i < n; i++)
  {
    cin >> x ;
    std::string x ;
    s.insert(x) ;
  }

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   12 |     cin >> x ;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:12:12: error: 'x' was not declared in this scope
   12 |     cin >> x ;
      |            ^
Language: C

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

template<typename A, typename B> bool chmin(A &a, const B &b){ return b < a && (a = b, true); }
template<typename A, typename B> bool chmax(A &a, const B &b){ return a < b && (a = b, true); }

int main(){
  int n,cnt = 1;
  cin >> n;
  string s[n];
  for (int i = 0; i < n; i++){
    cin >> s[i];
  }
  sort(s,s+n);
  for (int i = 1; i < n; i++){
    if (s[i] != s[i-1]){
      cnt += 1;
    }
  }
  cout << cnt << '\n';
  return 0;
}

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

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

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

dd
:let ans = 0
:while line('$') != 1
  normal "zyiw
  execute 'g/' . @z . '/d'
  let ans += 1
endwhile

:put! = ans
ZZ

Compiler output:
main.c:2:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    2 | :let ans = 0
      | ^
main.c:4:10: warning: missing terminating " character
    4 |   normal "zyiw
      |          ^
main.c:4:10: error: missing terminating " character
    4 |   normal "zyiw
      |          ^~~~~
main.c:5:11: warning: multi-character character constant [-Wmultichar]
    5 |   execute 'g/' . @z . '/d'
      |           ^~~~
main.c:5:18: error: stray '@' in program
    5 |   execute 'g/' . @z . '/d'
      |                  ^
main.c:5:23: warning: multi-character character constant [-Wmultichar]
    5 |   execute 'g/' . @z . '/d'
      |                       ^~~~
Language: C++

#include<iostream>
#include<cstdio>
using namespace std;
#define maxn 2000005
class node {
public:
	int vis[26];
	int end;
}nodes[maxn];
int cnt = 0;
int kase = 0;

void Init(int a) {
	memset(nodes[a].vis, 0, sizeof(nodes[a].vis));
	nodes[a].end = 0;
}

void Build(string str, int num) {
	int l = str.length();
	int now = 0;
	for (int i = 0; i < l; i++) {
		//没有这个子节点，构造出来
		if (nodes[now].vis[str[i] - 'a'] == 0) {
			nodes[now].vis[str[i] - 'a'] = ++cnt;
			Init(cnt);
		}
		now = nodes[now].vis[str[i] - 'a'];
	}
	if (nodes[now].end == 0) {
		nodes[now].end = num;
		kase++;
	}
}
int main() {
	int n;
	string s;
	scanf("%d", &n);
	Init(0);
	for (int i = 1; i <= n; i++) {
		cin >> s;
		Build(s, i);
	}
	printf("%d", kase);
}

Compiler output:
a.cc: In function 'void Init(int)':
a.cc:14:9: error: 'memset' was not declared in this scope
   14 |         memset(nodes[a].vis, 0, sizeof(nodes[a].vis));
      |         ^~~~~~
a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include<cstdio>
  +++ |+#include <cstring>
    3 | using namespace std;
Language: C++

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

int main(){
 int t;
  cin>>t;
  set<string> s;
  while(t--){
    string g;
    cin>>g;
    s.insert(g);
  }
  
  cout<<g.size()<<"\n";
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'g' was not declared in this scope
   14 |   cout<<g.size()<<"\n";
      |         ^
Language: C

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

int main(){
    int N;
    std::string str;
    std::set<std::string> set;
    std::cin >> N;
    for(int i = 0; i < N; i++){
        std::cin >> str;
        set.insert(str);
    }
    std::cout << set.size() << std::endl;
}

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

N = int(input())
S = [input() for _ in [0] *N]
print(len(set(S)))

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


// Problem : C - gacha
// Contest : AtCoder - AtCoder Beginner Contest 164
// URL : https://atcoder.jp/contests/abc164/tasks/abc164_c
// Memory Limit : 1024 MB
// Time Limit : 2000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define io ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define pb push_back
#define all(x) begin(x),end(x)

int mod = 1e9+7;
int inf = 4e18;
const int N = 5e5+5;

signed main()
{
    io
    int tt = 1;
    //cin>>tt;
    while(tt--)
    {
		int n;
		cin>>n;
		set<string> st;
		for(int i=0;i<n;++i)
		{
			string s;
			cin>>s;
			st.insert(s);
		}
		cout<<st.size();
		    	
    }
    return 0;
}


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

#include<stdio.h>
#include<math.h>
#include<string.h>
#include<ctype.h>
#include<stdlib.h>
#define STR 11
int main(){
    int n,cnt;
    scanf("%d",&n);
    char S[n+1][STR];

    for(int i=0;i<n;i++){
        scanf("%s\n",S[i]); //”文字列”を[x]に受け取ることで[y]まで勝手入力してくれる
    }
    qsort(S,n,sizeof(s[0]),strcmp);

    for(i=0;i<n;i++){
        if(S[i] != S[i+1]){
            cnt += 1;
        }
    }
    printf("%d",cnt);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:22: error: 's' undeclared (first use in this function)
   15 |     qsort(S,n,sizeof(s[0]),strcmp);
      |                      ^
main.c:15:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:28: error: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types]
   15 |     qsort(S,n,sizeof(s[0]),strcmp);
      |                            ^~~~~~
      |                            |
      |                            int (*)(const char *, const char *)
In file included from main.c:5:
/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:17:9: error: 'i' undeclared (first use in this function)
   17 |     for(i=0;i<n;i++){
      |         ^
Language: C

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(),v.rend()
typedef long long ll;
#define _GLIBCXX_DEBUG
typedef vector<int> vec;
typedef vector<ll> lvec;
typedef vector<char>cvec;
typedef pair<ll, ll> LP;
typedef tuple<ll, ll, ll> LT;
typedef pair<int, int> P;
typedef tuple<int, int, int> T;
int main()	{
  int n;
  cin>>n;
  string s;
  map<string,int>score;
  rep(i,n){
    cin>>s;
    score[s]++;
  }
  cout<<score.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 <string>
#include <vector>
#include <bits/stdc++.h>
#define ll long long
#define SIZE_OF_ARRAY(array) (sizeof(array)/sizeof(array[0]))

using namespace std;

int gcd(int x, int y) { return (x % y)? gcd(y, x % y): y; }

int main(){
    int N; cin >> N;
    set<string>S;
    ll ans = 1;

    for (int i = 0; i < N; i++){
      string a;  cin >> a;
      S.insert(a);
    }
    
    // if(N == 1) {
    //   cout << ans << endl;
    //   return 0;
    // }

    // sort(S.begin(), S.end());
    
    // for (int i = 0; i < N-1; i++)
    // {
    //   tmp = S[i];
    //   if(tmp.compare(S[i+1]) != 0){
    //     ans++;
    //   }
    // }

    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
using namespace std;

int main() {
    int n;
    cin >> n;
    map<string, int> mp;
    for (int i = 0; i < n; i++) {
        string s;
        cin >> s;
        mp[s]++;
    }
    cout << mp.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;
  set<string>s;
  for(int i=0;i<n;i++)
  {
    string t;
    cin>>t;
    s.insert(t);
  }
  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

n = int(input())

s = [input() for i in range(n)]

print(len(set(s)))

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 <bits/stdc++.h>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: declaration does not declare anything [-fpermissive]
    9 |     string; S;
      |     ^~~~~~
a.cc:9:13: error: 'S' was not declared in this scope
    9 |     string; S;
      |             ^
Language: C

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

int main(void) {
  int N;
  cin >> N;
  set<string> se;
  for (int i = 0; i < N; i++) {
    string; S;
    cin >> S;
    se.insert(S);
  }
  cout << se.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 s=0,temp,d[300000]={0},i,a,e=0;
    cin>>a;
    string c;
    while(a--)
    {
        cin>>c;
        for(i=0;i<c.size();i++)
        {
            s=s+c[i];
        }
          d[s]++;
        if(d[s]==1)
        {
            e++;
        }
        s=0;
    }
    cout<<e;
}


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 <algorithm>
#include <bitset>
#include <climits>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>

using namespace std;
using ll = long long int;

int main() {
  ll N;
  cin >> N;

  set<string> st;
  for (ll i = 0; i < N; i++)
  {
    string s;
    cin >> s;
    st.insert(s);
  }

  cout << st.size() << endl;
  
}

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

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

int main() {
  map<string, int> m;
  int N, ans;
  string s;
  
  cin >> N;
  
  for(int i = 0; i < N; i++){
    cin >> s;
    if(!(m[s])){
      m[s]++;
      ans++;
    }
  }
       
  cout << ans << 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 argc, char* argv[])
{
//TLE
//  int n; cin >> n;
//  vector<string> v(n);
//  int cnt=0;
//
//  for(int i=0; i<n; ++i)
//  {
//    string tmp; cin >> tmp;
//    bool ch=true;
//    for(string x: v)
//    {
//      if(x==tmp)
//      {
//        ch = false;
//        break;
//      }
//    }
//    if(ch)
//    {
//      cnt++;
//      v.push_back(tmp);
//    }
//  }
//
//  cout << cnt << endl;
  
  int n; cin >> n;
  set<string> s;
  for(int i=0; i<n; ++i)
  {
    string tmp;
    cin >> tmp;
    s.insert(tmp);
  }
  cout << s.size()



  return 0;
}





Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:40:19: error: expected ';' before 'return'
   40 |   cout << s.size()
      |                   ^
      |                   ;
......
   44 |   return 0;
      |   ~~~~~~
Language: C

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
  int n,ans=1;
  cin>>n;
  vector<string> c;
  string str,ring;
  cin>>str;
  c.push_back(str);
  
  for(int i=1;i<n;i++){
    cin>>ring;
    c.push_back(ring);
  }
  
  sout(c.begin(),c.end());
  for(int i=0;i<n-1;i++){
    if(c[i]!=c[i+1])ans++;
  }
  
  cout<<ans<<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/stcd++.h>
using namespace std;
int main(){
    int n;cin >> n;
    set<string> st;
    for (int i = 0; i < n; i++){
        string s; cin >> s;
        st.insert(s);
    }
    cout << st.size();
    return 0;
}

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

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define N_MAX 200001

int upordown(char*a,char*b){
  return strcmp(a,b);
};

int main(){
  int N,count=1;
  char S[N_MAX][11];
  scanf("%d",&N);
  for(int a=0;a<N;a++)scanf("%s",S[a]);
  qsort(S,N,sizeof(S),upordown);
  for(int a=0;a<N-1;a++){
    if(0!=cmrcmp(S[a],S[a+1]))count++;
  };
  printf("%d",count);
};


Compiler output:
main.c: In function 'main':
main.c:15:23: error: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types]
   15 |   qsort(S,N,sizeof(S),upordown);
      |                       ^~~~~~~~
      |                       |
      |                       int (*)(char *, 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 (*)(char *, char *)'
  971 |                    __compar_fn_t __compar) __nonnull ((1, 4));
      |                    ~~~~~~~~~~~~~~^~~~~~~~
main.c:17:11: error: implicit declaration of function 'cmrcmp'; did you mean 'strcmp'? [-Wimplicit-function-declaration]
   17 |     if(0!=cmrcmp(S[a],S[a+1]))count++;
      |           ^~~~~~
      |           strcmp
Language: C

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define N_MAX 200001

int up(char*a,char*b){
  return *a-*b;
};

int main(){
  int N,count=1;
  char S[N_MAX][11];
  scanf("%d",&N);
  for(int a=0;a<N;a++)scanf("%s",S[a]);
  qsort(S,N,sizeof(S),up);
  for(int a=0;a<N-1;a++){
    if(0!=cmrcmp(S[a],S[a+1]))count++;
  };
  printf("%d",count);
};


Compiler output:
main.c: In function 'main':
main.c:15:23: error: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types]
   15 |   qsort(S,N,sizeof(S),up);
      |                       ^~
      |                       |
      |                       int (*)(char *, 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 (*)(char *, char *)'
  971 |                    __compar_fn_t __compar) __nonnull ((1, 4));
      |                    ~~~~~~~~~~~~~~^~~~~~~~
main.c:17:11: error: implicit declaration of function 'cmrcmp'; did you mean 'strcmp'? [-Wimplicit-function-declaration]
   17 |     if(0!=cmrcmp(S[a],S[a+1]))count++;
      |           ^~~~~~
      |           strcmp
Language: C

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define N_MAX 200001

int up(char*a,char*b){
  return *a-*b;
};

int main(){
  int N,count=1;
  char S[M_NAX][11];
  scanf("%d",&N);
  for(int a=0;a<N;a++)scanf("%s",S[a]);
  qsort(S,N,sizeof(S),up);
  for(int a=0;a<N-1;a++){
    if(0!=cmrcmp(S[a],S[a+1]))count++;
  };
  printf("%d",count);
};


Compiler output:
main.c: In function 'main':
main.c:12:10: error: 'M_NAX' undeclared (first use in this function)
   12 |   char S[M_NAX][11];
      |          ^~~~~
main.c:12:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:23: error: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types]
   15 |   qsort(S,N,sizeof(S),up);
      |                       ^~
      |                       |
      |                       int (*)(char *, 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 (*)(char *, char *)'
  971 |                    __compar_fn_t __compar) __nonnull ((1, 4));
      |                    ~~~~~~~~~~~~~~^~~~~~~~
main.c:17:11: error: implicit declaration of function 'cmrcmp'; did you mean 'strcmp'? [-Wimplicit-function-declaration]
   17 |     if(0!=cmrcmp(S[a],S[a+1]))count++;
      |           ^~~~~~
      |           strcmp
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define int long long
#define mp make_pair
#define endl "\n"
#define pii pair<int,int> 
#define ff first
#define ss second
#define mii map<int,int>
#define si set<int>
#define sti stack<int>
#define qi queue<int>
#define vi vector<int>
#define pq priority_queue<int>
#define IOS ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
const int M=1e9+7;

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


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:25:11: error: 'S' was not declared in this scope
   25 |     cout<<S.size()<<endl;
      |           ^
Language: C

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define N_MAX 200001

int up(char*a,char*b){
  return *a-*b;
};

int main(){
  int N,count=1;
  char S[N_NAX][11];
  scanf("%d",&N);
  for(int a=0;a<N;a++)scanf("%s",S[a]);
  qsort(S,N,sizeof(S),up);
  for(int a=0;a<N-1;a++){
    if(0!=cmrcmp(S[a],S[a+1]))count++;
  };
  printf("%d",count);
};

Compiler output:
main.c: In function 'main':
main.c:12:10: error: 'N_NAX' undeclared (first use in this function); did you mean 'N_MAX'?
   12 |   char S[N_NAX][11];
      |          ^~~~~
      |          N_MAX
main.c:12:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:23: error: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types]
   15 |   qsort(S,N,sizeof(S),up);
      |                       ^~
      |                       |
      |                       int (*)(char *, 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 (*)(char *, char *)'
  971 |                    __compar_fn_t __compar) __nonnull ((1, 4));
      |                    ~~~~~~~~~~~~~~^~~~~~~~
main.c:17:11: error: implicit declaration of function 'cmrcmp'; did you mean 'strcmp'? [-Wimplicit-function-declaration]
   17 |     if(0!=cmrcmp(S[a],S[a+1]))count++;
      |           ^~~~~~
      |           strcmp
Language: C

#include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define int long long
#define mp make_pair
#define endl "\n"
#define pii pair<int,int> 
#define ff first
#define ss second
#define mii map<int,int>
#define si set<int>
#define sti stack<int>
#define qi queue<int>
#define vi vector<int>
#define pq priority_queue<int>
#define IOS ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
const int M=1e9+7;

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


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++

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;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> n;
      |     ^~~
a.cc:5:5: error: 'set' was not declared in this scope
    5 |     set<string> s;
      |     ^~~
a.cc:5:9: error: 'string' was not declared in this scope
    5 |     set<string> s;
      |         ^~~~~~
a.cc:5:17: error: 's' was not declared in this scope
    5 |     set<string> s;
      |                 ^
a.cc:7:15: error: expected ';' before 'tmp'
    7 |         string tmp;
      |               ^~~~
      |               ;
a.cc:8:16: error: 'tmp' was not declared in this scope
    8 |         cin >> tmp;
      |                ^~~
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << s.size() << endl;
      |     ^~~~
a.cc:11:25: error: 'endl' was not declared in this scope
   11 |     cout << s.size() << endl;
      |                         ^~~~
Language: C

if __name__ == '__main__':
    n = int(input())
    print(len(set(input().rstrip('\n') for _ in range(n))))

Compiler output:
main.c:1:1: error: expected identifier or '(' before 'if'
    1 | if __name__ == '__main__':
      | ^~
main.c:1:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    1 | if __name__ == '__main__':
      |                ^~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	long long n,count=1;
	cin>>n;
	string s[n+1];
	long long i,j;
	for(i=0;i<n;i++)
	{
		cin>>s[i];
	}
	sort(s,s+n);
	int count=1;
	for(i=1;i<n;i++)
	if(s[i]!=s[i-1])
	count++;
	cout<<count<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: conflicting declaration 'int count'
   14 |         int count=1;
      |             ^~~~~
a.cc:5:21: note: previous declaration as 'long long int count'
    5 |         long long n,count=1;
      |                     ^~~~~
Language: C++

#include<iostream>
#include<vector>
#include<string>
using namespace std;
int main() {
	int n;
	cin >> n;
	vector<string>a(n);
	for (int i = 0; i < n; i++) {
		cin >> a[i];
	}
	sort(begin.a(),end.a());
  int kotae =0;
  	for(int i=0;i<n-1;i++){
  	if(a[i]!=a[i+1])kotae++;
    }
  cout << kotae << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: overloaded function with no contextual type information
   12 |         sort(begin.a(),end.a());
      |                    ^
a.cc:12:28: error: overloaded function with no contextual type information
   12 |         sort(begin.a(),end.a());
      |                            ^
a.cc:12:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   12 |         sort(begin.a(),end.a());
      |         ^~~~
      |         short
Language: C++

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

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

	vector<string>sina(n);
	int i, j;
	for (i = 0; i < n; i++)cin >> sina[i];
	vector<string>ans;
	set<string> s;
for(i=0;i<n;i++){
  s.insert(sina[i])
}
	cout << s.size()<< endl;

	return 0;
}



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

//nani?
#include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp> // Common file
#include <ext/pb_ds/tree_policy.hpp> // Including tree_order_statistics_node_update
#include <ext/pb_ds/detail/standard_policies.hpp>
#define pi acos(-1);
#define fs first
#define sc second
#define pb push_back
#define mp make_pair
#define f(i,a,b) for( int i = a; i < b ; i++ )
#define sor(a) sort( a.begin(), a.end() )
#define rsor(a) sort( a.rbegin(), a.rend() )
#define fastio ios_base::sync_with_stdio(0);cin.tie(0)
//#define inf 1LL<<62
typedef long long ll;
typedef double ld;
using namespace std;
using namespace __gnu_pbds;
const int inf=1e7;
const ll MOD=1e9+7;
const ll mod=998244353;
// ac cmtr;
const int MAX_N = 2e5+5;
typedef tree<int,null_type,less<int>,rb_tree_tag,tree_order_statistics_node_update>ordered_set;

#define TRACE
#ifdef TRACE
#define trace(...) __f(#__VA_ARGS__, __VA_ARGS__)
template <typename Arg1>
void __f(const char* name, Arg1&& arg1) {
  cout << name << " : " << arg1 << endl;}
 
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  cout.write(names, comma - names) << " : " << arg1<<" | ";
  __f(comma+1, args...);}
#else
#define trace(...)
#endif
//---------------------------

ll a[MAX_N];
ll b[MAX_N];
ll cnt[MAX_N][4];

int main(){
    fastio;
    ll n;
  	cin>>n;
  set <string> s;
  	f(i,0,n){
        string c;
      	cin>>c;
    	s.insert(c)
    }
  cout<<s.size()<<endl;

    
} 


Compiler output:
a.cc: In function 'int main()':
a.cc:56:20: error: expected ';' before '}' token
   56 |         s.insert(c)
      |                    ^
      |                    ;
   57 |     }
      |     ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: invalid use of non-static member function 'std::set<_Key, _Compare, _Alloc>::size_type std::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]'
   12 |   cout<<s.size<<"\n";
      |   ~~~~^~~~~~~~
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:421:7: note: declared here
  421 |       size() const _GLIBCXX_NOEXCEPT
      |       ^~~~
Language: C

#include <bits/stdc++.h>
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define all(x) x.begin(), x.end()

using namespace std;

typedef vector<int> vi;
typedef pair<int,int> pi;
typedef vector<pi> vpi;
typedef long long ll;

template <typename T> void max_self(T& a, T b){
  a = max(a,b);
}

template <typename T> void min_self(T& a, T b){
  a = min(a,b);
}

void solve(){	
  int n;cin>>n;
  map<string,int> ms;
  string ent;
  while(n--){
    cin>>ent;
    ms[ent]++;
  }
  cout<<ms.size()<<endl;
}

int main(){
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  //int t; cin >> t;
  //while(t--) solve();
  //
  solve();
  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(){
	ios::sync_with_stdio(0);
	cin.tie(0);
	int n;
	cin >> n;
	vector<string> s; 
	for (int i = 0; i < n ; i++) {
	    string t;
	    cin >> t;
		s.push_back(t);
	}
	int ans = 0;
	for (int i = 0; i < n - 1; i++) {
		for (int j = i + 1; j < n; j++) {
            if (s[i].compare(s[j]) != 0) {
            	ans++;
            }
		}
	}
	cout << ans << "\n";


    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
using namespace std;

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
	ll t;
	cin>>t;
	 map<string,ll>mp;
	while(t--){
	    
	   
	    
	        string s;
	        cin>>s;
	        mp[s]++;
	    
	   
	}
	 cout<<mp.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 <bits/stdc++.h>

using namespace std;

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

n = int(input())
s = set(input() for _ in range(n))
print(len(s))

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 <bits/stdc++.h>

using namespace std;

#define int long long
#define endl '\n'
#define maxn 100010
const int MOD = 1000000007;

void solve() {
    int n;
    cin >> n;
    set<string> s;
    for (int i = 0; i < n; i++) {
        string tp;
        cin >> tp;
        s.insert(tp);
    }
    cout << s.size() << endl;
}

int32_t main() {
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);

    int t = 1;
//    cin >> t;

    while (t--)
        solve();
    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++

    using namespace std;
    int main()
    {
    	int n;
      cin>>n;
        set<string>st;
      	while(n--)
        {
        string s;
          cin>>s;
          st.insert(s);
        
        }
      cout<<st.size();
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: 'cin' was not declared in this scope
    5 |       cin>>n;
      |       ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 |     using namespace std;
a.cc:6:9: error: 'set' was not declared in this scope
    6 |         set<string>st;
      |         ^~~
a.cc:1:1: note: 'std::set' is defined in header '<set>'; this is probably fixable by adding '#include <set>'
  +++ |+#include <set>
    1 |     using namespace std;
a.cc:6:13: error: 'string' was not declared in this scope
    6 |         set<string>st;
      |             ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 |     using namespace std;
a.cc:6:20: error: 'st' was not declared in this scope; did you mean 'std'?
    6 |         set<string>st;
      |                    ^~
      |                    std
a.cc:9:15: error: expected ';' before 's'
    9 |         string s;
      |               ^~
      |               ;
a.cc:10:16: error: 's' was not declared in this scope
   10 |           cin>>s;
      |                ^
a.cc:14:7: error: 'cout' was not declared in this scope
   14 |       cout<<st.size();
      |       ^~~~
a.cc:14:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

using namespace std;
int main()
{
	int n;
  cin>>n;
    set<string>st;
  	while(n--)
    {
    string s;
      cin>>s;
      st.insert(s);
    
    }
  cout<<st.size()<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>n;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:6:5: error: 'set' was not declared in this scope
    6 |     set<string>st;
      |     ^~~
a.cc:1:1: note: 'std::set' is defined in header '<set>'; this is probably fixable by adding '#include <set>'
  +++ |+#include <set>
    1 | using namespace std;
a.cc:6:9: error: 'string' was not declared in this scope
    6 |     set<string>st;
      |         ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:6:16: error: 'st' was not declared in this scope; did you mean 'std'?
    6 |     set<string>st;
      |                ^~
      |                std
a.cc:9:11: error: expected ';' before 's'
    9 |     string s;
      |           ^~
      |           ;
a.cc:10:12: error: 's' was not declared in this scope
   10 |       cin>>s;
      |            ^
a.cc:14:3: error: 'cout' was not declared in this scope
   14 |   cout<<st.size()<<endl;
      |   ^~~~
a.cc:14:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:20: error: 'endl' was not declared in this scope
   14 |   cout<<st.size()<<endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected ';' before 'set'
    6 |   cin>>n
      |         ^
      |         ;
    7 |     set<string>st;
      |     ~~~  
a.cc:12:7: error: 'st' was not declared in this scope; did you mean 's'?
   12 |       st.insert(s);
      |       ^~
      |       s
a.cc:15:9: error: 'st' was not declared in this scope; did you mean 'std'?
   15 |   cout<<st.size()<<endl;
      |         ^~
      |         std
Language: C

/**
 *    authur: Bao Trung <3
**/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
#define all(x) (x).begin(), (x).end()
#define set_vect(a,n); vector<int>a(n); for(auto &z : a)cin>>z;
const int mod = 1e9+7;
string s;
map <string,int> mp;
int res = 0;
void solve(){
	cin >> s;
	mp[s]++;
	if(mp[s] == 1) res++;
}

int main(){
	ios_base::sync_with_stdio(0);
	cin.tie(0); cout.tie(0);
	int t = 1; cin >> t;
	while(t--){solve();}
	cout << res;
	return 0;
}


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


#ifdef _MSC_VER
#pragma warning(disable : 4996)
#include <intrin.h>
#define __builtin_popcount __popcnt
#endif

#include <limits.h>
#include <math.h>
#include <time.h>

#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <complex>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>

using namespace std;

#define REP(i, n) for (int i = 0; i < n; ++i)
#define REPR(i, n) for (int i = n - 1; i >= 0; --i)
#define FOR(i, m, n) for (int i = m; i < n; ++i)
#define FORR(i, m, n) for (int i = m - 1; i >= n; --i)
#define SORT(v, n) sort(v, v + n);
#define VSORT(v) sort(v.begin(), v.end());
#define REVERSE(v, n) reverse(v, v + n);
#define VREVERSE(v) reverse(v.begin(), v.end())
#define ll long long
#define print(x) cout << (x) << '\n'
#define pe(x) cout << (x) << " "
#define DEBUG(x) cout << #x << ": " << x << endl
#define lb(v, n) lower_bound(v.begin(), v.end(), (n))
#define ub(v, n) upper_bound(v.begin(), v.end(), (n))
#define int long long
//#define double long double
#define all(x) (x).begin(), (x).end()
#define print_space(v) REP(i, v.size()) cout << v[i] << ((i == v.size() - 1) ? "\n" : " ")
template <typename T1, typename T2> inline void chmin(T1& a, T2 b) {
	if (a > b) a = b;
}
template <typename T1, typename T2> inline void chmax(T1& a, T2 b) {
	if (a < b) a = b;
}
typedef pair<int, int> pii;
typedef array<int, 3> arr3;
std::random_device rd;
std::mt19937 mt(rd());
constexpr ll MOD = 1e9 + 7;
constexpr int MAX = 200020;
const double pi = acos(-1);
constexpr double EPS = 1e-8;
constexpr ll INF = 1e18;


void solve() {
	int N; cin >> N;
	set<string>st;
	REP(i, N) {
		string s; cin >> s;
		st.insert(s);
	}
	print(st.size());
}

signed main() {
	cin.tie(0);
	ios::sync_with_stdio(false);
	// int q; cin >> q;
	// while (q--)
	solve();
}


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

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n;
	cin >> n;
	
	vector<string> s(n);
	for(int i=0;i<n;i++)
	{
		cin >> s.at(i);
	}
	sort(s.begin(),s.end());
	s.erase(unique(s.begin(),s.end(),s.end()));
	cout << s.size() << endl;
	return 0;
}

Compiler output:
In file included from /usr/include/c++/14/bits/stl_algobase.h:71,
                 from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/predefined_ops.h: In instantiation of 'constexpr bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = __gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char>*, std::vector<std::__cxx11::basic_string<char> > >; _Iterator2 = __gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char>*, std::vector<std::__cxx11::basic_string<char> > >; _Compare = __gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char>*, std::vector<std::__cxx11::basic_string<char> > >]':
/usr/include/c++/14/bits/stl_algo.h:869:20:   required from '_ForwardIterator std::__unique(_ForwardIterator, _ForwardIterator, _BinaryPredicate) [with _ForwardIterator = __gnu_cxx::__normal_iterator<__cxx11::basic_string<char>*, vector<__cxx11::basic_string<char> > >; _BinaryPredicate = __gnu_cxx::__ops::_Iter_comp_iter<__gnu_cxx::__normal_iterator<__cxx11::basic_string<char>*, vector<__cxx11::basic_string<char> > > >]'
  869 |         if (!__binary_pred(__dest, __first))
      |              ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:933:27:   required from '_FIter std::unique(_FIter, _FIter, _BinaryPredicate) [with _FIter = __gnu_cxx::__normal_iterator<__cxx11::basic_string<char>*, vector<__cxx11::basic_string<char> > >; _BinaryPredicate = __gnu_cxx::__normal_iterator<__cxx11::basic_string<char>*, vector<__cxx11::basic_string<char> > >]'
  933 |       return std::__unique(__first, __last,
      |              ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
  934 |                            __gnu_cxx::__ops::__iter_comp_iter(__binary_pred));
      |                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:14:16:   required from here
   14 |         s.erase(unique(s.begin(),s.end(),s.end()));
      |                 ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/predefined_ops.h:158:30: error: no match for call to '(__gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char>*, std::vector<std::__cxx11::basic_string<char> > >) (std::__cxx11::basic_string<char>&, std::__cxx11::basic_string<char>&)'
  158 |         { return bool(_M_comp(*__it1, *__it2)); }
      |                       ~~~~~~~^~~~~~~~~~~~~~~~
Language: C

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

int main(){
	cin.tie(0),ios::sync_with_stdio(false);
	int n; cin>>n;
	unordered_map<string,int>m;
	for(int i=0;i<n;++i){
		string s; cin>>s; ++m[s];
	}
	cout<<m.size()<<"\n"s;
}

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;
#define l long
#define ll long long
#define nitro ios_base::sync_with_stdio(false);cin.tie(0);
#define vi vector<int>
#define pub push_back
#define puf push_front
#define pob pop_back
#define pof pop_front
#define PI 3.141592653589793238
#define endl '\n'
int main()
{
    nitro
    l int n;cin>>n;
    set<string>s;
    string st;
    for(l int i=0;i<n;i++)
    {
        cin>>st;
        s.insert(st);
    } 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>
using namespace std;
int main() {
	int n; cin >> n;
  	unordered_set<string> s;
  	while (n--) {
     	string x; cin >> x;
      	s.insert(x);
    }
  	cout << x.size() << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: 'x' was not declared in this scope
   10 |         cout << x.size() << endl;
      |                 ^
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(220000);
  rep1(i,n){
    string s;
    cin >> s;
    str[i] = s;
  }
  
  sort(str.begin(),str.end());
  
  int ans=n;
  rep1(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.