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

#include<stdio.h>
#include<conio.h>
#include<stdio.h>
int main()
{
    int n,i,k,g=0,d,j=0;
    scanf("%d",&n);
    char S[n][11];
    for(i=0;i<n;i++)
    {
        scanf("%s",&S[i]);
        for(k=0;k<i;k++)
        {
           d=strcmp(S[i],S[k]);
           if(d==0)
           {
               g++;
           }
        }
        if(g==0)
        {
            j++;
        }
        g=0;
    }
    printf("%d\n",j);
    return 0;
}


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

#include<bits/stdc++.h>
using namespace std;
int main () {
  vector<bool>key(1e8, false);
  int N;
  cin >> N;
  int ans = 0;
  for (int i = 0; i < N; i ++) {
    string S;
    cin >> S;
    int k = (int)S;
    if (!key[k]) {
      ans ++;
      key[k] = true;
    }
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: invalid cast from type 'std::string' {aka 'std::__cxx11::basic_string<char>'} to type 'int'
   11 |     int k = (int)S;
      |             ^~~~~~
Language: C

#include<bits/stdc++.h>
using namespace std;
#define int long
using pi=pair<int,int>;
signed main(){
    int n;
    cin>>n;
    map<string,int> m;
    while(n--){
        string s;
        cin>>s;
        ++m[s];
    }
    cout << m.size();
}

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

//Author: Fuadul Hasan(fuadul202@gmail.com)
//BSMRSTU,Gopalganj
#include<bits/stdc++.h>
using namespace std;int tc = 1;
#define happy ios::sync_with_stdio(false);
#define coding  cin.tie(0);
#define mp make_pair
#define ll long long
#define Pi atan(1)*4
#define pb  push_back
#define vpr vector<pr> 
#define pr pair<int, int> 
#define vi std::vector<int>
#define vll std::vector<ll>
#define YES printf("YES\n");
#define NO printf("NO\n");
#define Yes printf("Yes\n");
#define No printf("No\n");
#define all(n) n.begin(),n.end()
#define point(x) setprecision(x)
#define Test printf("Case %d: ",tc++);
#define Unique(c) (c).resize(unique(all(c))-(c).begin())

const int M = 1e9 + 7;
const ll  Inf = (ll)2e18 + 5;
const int N   = 2e5 + 5;

int solve() 
{
	//happy coding
	int n;
	cin>>n;
	map<string,int>m;
	for(int i=0;i<n;i++){
		string s;
		cin>>s;
		m[s]++;
	}
	cout<<m.size()<<endl;
	return 0;
}
int main(){
	int test = 1;
	//scanf("%d", &test);
	while (test--)solve();return 0;
}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: initializer in range-based 'for' loop
    8 |     for(int i = 0: i < N; i++){
      |               ^
a.cc:8:25: error: expected ')' before ';' token
    8 |     for(int i = 0: i < N; i++){
      |        ~                ^
      |                         )
a.cc:8:27: error: 'i' was not declared in this scope
    8 |     for(int i = 0: i < N; i++){
      |                           ^
Language: C

/************************************************************
/  AUTHOR :  DEVANSHU SINGLA                                /
/  NICK :  DSINGLA                                          /
/  INSTITUTE :  IITK                                        /
************************************************************/
//                     TEMPLATE                            //

#include <bits/stdc++.h>
#define ll long long
#define N 100005
#define MOD 1000000007
#define pb push_back
#define mp make_pair
#define clr(x) x.clear()
#define F first
#define S second
#define MAX(x, y) (x) > (y) ? (x) : (y)
#define MIN(x, y) (x) < (y) ? (x) : (y)

using namespace std ;

void solve(){
    long n;
    cin>>n ;
    cin.ignore() ;
    string s;
    set<string> arr;
    for(long i=0; i<n; i++){
        getline(cin,s);
        //cout<<s<<endl ;
        arr.insert(s) ;
    }

    cout<<arr.size() ;
}

int main(){
    #ifndef ONLINE_JUDGE 
 
    freopen("/home/devanshu/Desktop/cp/cp_questions/input.txt", "r", stdin);  
    freopen("/home/devanshu/Desktop/cp/cp_questions/output.txt", "w", stdout); 

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

    solve() ;
}

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

#include <stdio.h>
#include <string.h>
 
int main(void){
  int n;
  int i,j;
  int tmp = 0;
  scanf("%d", &n);

  char s[n][10];
  for(i=0; i<n; i++){
    scanf("%s",　s[i]);
  }

  for(i=0; i<n; i++){
    for(j=0; j<n; j++){
      if(i!=j){
        if(strcmp(s[i], s[j])==0)
        tmp ++;
      }
    }
  }

  printf("%d", n-tmp/2);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:16: error: stray '\343' in program
   12 |     scanf("%s",<U+3000>s[i]);
      |                ^~~~~~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
  int N;
  cin >> N;
  vector<string> vec(N)
  for (int i = 0; i < N; i++){
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<string> vec(N)
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:7:16: error: expected primary-expression before '>' token
    7 |   vector<string> vec(N)
      |                ^
a.cc:7:18: error: 'vec' was not declared in this scope
    7 |   vector<string> vec(N)
      |                  ^~~
a.cc:8:19: error: 'i' was not declared in this scope
    8 |   for (int i = 0; i < N; i++){
      |                   ^
a.cc:10:2: error: expected '}' at end of input
   10 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: Java

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner scanner = new Scanner(System.in);
	    //String input1 = scanner.next();
	    String input2 = scanner.next();

	    //int h=Integer.parseInt(input1);
	    int n=Integer.parseInt(input2);
	    //int a[]=new int[n];
	    Set<String> sa=new HashSet<String>();
	    for(int i=0;i<n;i++) {
	    	sa.add(scanner.next());
	    }
	    scanner.close();
	    /*int sum=sa.stream()
	    		.mapToInt(s->Integer.parseInt(s))
	    		.sum();
	    	System.out.println("YES");*/
	    System.out.println(sa.size());
	}

}


Compiler output:
Main.java:6: error: cannot find symbol
		Scanner scanner = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
		Scanner scanner = new Scanner(System.in);
		                      ^
  symbol:   class Scanner
  location: class Main
Main.java:13: error: cannot find symbol
	    Set<String> sa=new HashSet<String>();
	    ^
  symbol:   class Set
  location: class Main
Main.java:13: error: cannot find symbol
	    Set<String> sa=new HashSet<String>();
	                       ^
  symbol:   class HashSet
  location: class Main
4 errors
Language: C

N=int(input());
A=[]
for i in range(N):
  B=input()
  A.append(B)
A=list(set(A))
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:3: error: expected expression before 'int'
    1 | N=int(input());
      |   ^~~
main.c:2:1: warning: data definition has no type or storage class
    2 | A=[]
      | ^
main.c:2:1: error: type defaults to 'int' in declaration of 'A' [-Wimplicit-int]
main.c:2:3: error: expected expression before '[' token
    2 | A=[]
      |   ^
Language: C++

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

int main() {
	int n;
	cin>>n;
	string s;
	unordered_set <string> set;
	while(n--)
	{
		cin>>s;
		set.insert(s);
	}
	unordered_set <string> :: iterator ptr;
	int count=0;
	for(ptr = set.begin();prt != set.end();ptr++)
	count++;
	
	cout<<count;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:31: error: 'prt' was not declared in this scope; did you mean 'ptr'?
   16 |         for(ptr = set.begin();prt != set.end();ptr++)
      |                               ^~~
      |                               ptr
Language: C

#line 2 "../../library/template.hpp"
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pl = pair<ll, ll>;
using vl = vector<ll>;
#define rep(i, n) for(ll i = 0; i < (ll)n; i++)
#define rep3(i, l, r) for(ll i = l; i < (ll)r; i++)
#define per(i, n) for(ll i = (ll)n-1; i >= 0; i--)
#define per3(i, l, r) for(ll i = (ll)r-1; i >= (ll)l; i--)
#define all(v) begin(v), end(v)
template<class T, class U> inline void cmax(T& a, U b) { if (a < b) a = b; }
template<class T, class U> inline void cmin(T& a, U b) { if (a > b) a = b; }
constexpr char el = '\n';
template<class T, class U> ostream &operator<<(ostream &os, const pair<T, U>& p) { os << p.first << " " << p.second; return os; }
template<class T, class U> istream &operator>>(istream &is, pair<T, U> &p) { is >> p.first >> p.second; return is; }
template<class T> ostream &operator<<(ostream &os, const vector< T > &v) { rep(i, v.size()) os << v[i] << (i + 1 != v.size() ? " " : ""); return os; }
template<class T> istream &operator>>(istream &is, vector< T > &v) { for(T &in : v) is >> in; return is; }
struct IoSetup {
  IoSetup() { cin.tie(nullptr); ios::sync_with_stdio(false); cout << fixed << setprecision(15); cerr << fixed << setprecision(15); }
} io_setup;
#line 2 "c.cpp"

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

  set<string> s;
  rep(i, n) {
    string t;
    cin >> t;
    s.insert(t);
  }

  cout << s.size() << el;
}


Compiler output:
../../library/template.hpp:2:10: fatal error: bits/stdc++.h: No such file or directory
compilation terminated.
Language: Java

import java.util.*;
class Main
{
  public static void main(String args[])
  {
    Scanner in=new Scanner(System.in);
    int a=in.nextInt();
    HashSet<String> set=new HashSet<>();
    while(a>0)
    {
     String s=in.next();
      a.add(s);
      
      
      a--;
    }
    System.out.print(set.size());
    
  }
}

Compiler output:
Main.java:12: error: int cannot be dereferenced
      a.add(s);
       ^
1 error
Language: C

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

int main()
{
    int i,j,n,cnt=1;
    cin>>n;
    string s[n];
    for(i=0;i<n;i++)
        cin>>s[i];
    sort(s,s+n);
    for(i=1;i<n;i++)
    {
        if(s[i]!=s[i-1])
            cnt++;
    }
    cout<<cnt<<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;
  cin >> N;
  
  vector<stirng> item(N);
  
  for(int i = 0; i < N; i++){
    string item;
    cin >> item;
    item.at(i) = item;
  }
  
  int cnt = 0;
  for(int i = 0; i < (N - 1); i++){
    if(item.at(i) == item.at(i+1))
      cnt++;
  }
  cout << cnt << endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'stirng' was not declared in this scope
    8 |   vector<stirng> item(N);
      |          ^~~~~~
a.cc:8:16: error: template argument 1 is invalid
    8 |   vector<stirng> item(N);
      |                ^
a.cc:8:16: error: template argument 2 is invalid
a.cc:13:18: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} in assignment
   13 |     item.at(i) = item;
      |                  ^~~~
      |                  |
      |                  std::string {aka std::__cxx11::basic_string<char>}
a.cc:18:13: error: request for member 'at' in 'item', which is of non-class type 'int'
   18 |     if(item.at(i) == item.at(i+1))
      |             ^~
a.cc:18:27: error: request for member 'at' in 'item', which is of non-class type 'int'
   18 |     if(item.at(i) == item.at(i+1))
      |                           ^~
Language: C

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
    int N , count = 0;
    cin >> N;
    vector <string> S(N);
    for(int i = 0; i < N; i++){
        cin >> S.at(i);
    }
    for (int i = 0; i < N; ++i) {
        for (int j = 0; j < N; ++j) {
            if(i != j && S.at(i) == S.at(j)){
                count++;
            }
        }
    }
    if(count == N * (N - 1)){
        cout << 1 << endl;
    }
    else{
        cout << N - count / 2 << 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>

int main() {
    int N;
    scanf("%d",&N);
    char S[N][10];
    char tmp[10];
    int count =1;
    for (int i = 0; i < N; ++i){
        scanf("%s",S[i]);
    }
    for(int i=1;i< N;i++){
        for(int j=1;j< N;j++){
            if(strcmp(S[j-1], S[j])>0){
                strcpy(tmp, S[j-1]);
                strcpy(S[j-1], S[j]);
                strcpy(S[j], tmp);
            }
        }
    }
    for(int i = 1; i < N; i++){
        if(strcmp(S[i-1], S[i])==0){

        }
        else{
            count++;
        }
    }
    printf("%d",count);




}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: 'strcmp' was not declared in this scope
   14 |             if(strcmp(S[j-1], S[j])>0){
      |                ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | 
a.cc:15:17: error: 'strcpy' was not declared in this scope
   15 |                 strcpy(tmp, S[j-1]);
      |                 ^~~~~~
a.cc:15:17: note: 'strcpy' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:22:12: error: 'strcmp' was not declared in this scope
   22 |         if(strcmp(S[i-1], S[i])==0){
      |            ^~~~~~
a.cc:22:12: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

int main(){
  int n,i,ans;
  cin >> n;
  string a[n],b;
  for(i=0;i<n;i++){
    cin >> a[i];
  }
  sort(a,a+n);
  ans=1;
  b=a[0];
  for(i=1;i<n;i++){
    if(b!=a[i]){
      ans+=1;
      b=a[i];
    }
  }
  cout << ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> n;
      |   ^~~
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string a[n],b;
      |   ^~~~~~
a.cc:6:12: error: 'a' was not declared in this scope
    6 |     cin >> a[i];
      |            ^
a.cc:8:8: error: 'a' was not declared in this scope
    8 |   sort(a,a+n);
      |        ^
a.cc:8:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    8 |   sort(a,a+n);
      |   ^~~~
      |   short
a.cc:10:3: error: 'b' was not declared in this scope
   10 |   b=a[0];
      |   ^
a.cc:17:3: error: 'cout' was not declared in this scope
   17 |   cout << ans;
      |   ^~~~
Language: C

n=int(input())
s=[]
for i in range(n):
    s.append(input())
s2=list(set(s))
print(len(s2))

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:3: error: expected expression before 'int'
    1 | n=int(input())
      |   ^~~
Language: C

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

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

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

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

int main(){
    int n;
    cin >> n;
    string s[n];
    map<string, int> ans;
    for(int i = 0; i < n; i++){
        cin >> s[i];
    }
    for(int i = 0; i < n; i++){
        ans[s[i]] = i;
    }
    cout << ans.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 rep(i, n) for (int i = 0; i < (int)(n); i++)
#define MOD 1000000007

int main (){
  int N;
  cin>>N;
  map<string, int> seqLen;
  rep(i,N){
    string S;
    cin>>S;
    seqLen[S] = 1;
  }
    cout << seqLen.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

def func():
    return

n = int(input())

d = dict()
for i in range(n):
    s = input()
    d[s] = True
# a, b = map(int, input().split())
# a = list(map(int, input().split()))
# a = input().split()

ans = len(d)

print(ans)

Compiler output:
main.c:1:1: error: unknown type name 'def'
    1 | def func():
      | ^~~
main.c: In function 'func':
main.c:1:11: error: expected declaration specifiers before ':' token
    1 | def func():
      |           ^
main.c:10:3: error: invalid preprocessing directive #a
   10 | # a, b = map(int, input().split())
      |   ^
main.c:11:3: error: invalid preprocessing directive #a
   11 | # a = list(map(int, input().split()))
      |   ^
main.c:12:3: error: invalid preprocessing directive #a
   12 | # a = input().split()
      |   ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){int N,x=1;cin>>N;string S;vector<string>c(N,"A");
           cin>>c.at(0)
           for(int i=0;i<N;i++){cin>>S;for(int j=0;j<x;j++){if(S==c.at(j))break;if(j==x-1){c.at(x)=S;x++}}}cout<<x<<endl;}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:24: error: expected ';' before 'for'
    4 |            cin>>c.at(0)
      |                        ^
      |                        ;
    5 |            for(int i=0;i<N;i++){cin>>S;for(int j=0;j<x;j++){if(S==c.at(j))break;if(j==x-1){c.at(x)=S;x++}}}cout<<x<<endl;}
      |            ~~~          
a.cc:5:24: error: 'i' was not declared in this scope
    5 |            for(int i=0;i<N;i++){cin>>S;for(int j=0;j<x;j++){if(S==c.at(j))break;if(j==x-1){c.at(x)=S;x++}}}cout<<x<<endl;}
      |                        ^
Language: C++

#include <iostream>
using namespace std;
int main() {
    int n;
    cin >> n;
    map<string,int> prize;
    int sum = 0;
    string s;
    for(int i = 0; i < n; i++) {
        cin >> s;
        if(prize.count(s) == false) {
            prize[s] = i;
            sum ++;
        }
    }
    cout << sum;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'map' was not declared in this scope
    6 |     map<string,int> prize;
      |     ^~~
a.cc:2:1: note: 'std::map' is defined in header '<map>'; this is probably fixable by adding '#include <map>'
    1 | #include <iostream>
  +++ |+#include <map>
    2 | using namespace std;
a.cc:6:15: error: expected primary-expression before ',' token
    6 |     map<string,int> prize;
      |               ^
a.cc:6:16: error: expected primary-expression before 'int'
    6 |     map<string,int> prize;
      |                ^~~
a.cc:11:12: error: 'prize' was not declared in this scope
   11 |         if(prize.count(s) == false) {
      |            ^~~~~
Language: C++

#include <iostream>
#include <stack>
#include <math.h>
#include <vector>
#include <algorithm>
#include <map>

#define rep(i,n) for(int i=0; i < n; i++)
using ll =  long long;
using namespace std;


int main()
{
    int n, ans = 0;
    map<string, bool> keihin;

    cin >> n;

    rep(i, n) {
        string s;
        cin >> s;
        if (keihin[s] != true)
        {
            keihin[s]++;
            ans++;
        }
    }
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:22: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
   25 |             keihin[s]++;
      |                      ^~
Language: C

#include<bits/stdc++.h>
#define ll long long
#define MP make_pair
#define PB push_back
#define F first
#define S second
#define fast ios_base::sync_with_stdio(0);cin.tie(NULL);cout.tie(NULL);
using namespace std;
int main()
{
	fast;
    //#ifndef ONLINE_JUDGE
    //freopen("input.txt", "r", stdin);
    //freopen("output.txt", "w", stdout);
    //#endif
    ll int n;
    cin>>n;
    ll int i;
    map<string,ll int> mp;
    for(i=1;i<=n;i++)
    {
    	string s;
    	cin>>s;
    	mp[s]=-1;
    }
    cout<<mp.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

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

#define rep(i,n) for(int i=0;i<n;i++)
#define REP(i,s,n) for(int i=(s);i<=(n);i++)
#define repr(i,n) for(int i=n-1;i>=0;i--)
#define REPR(i,s,n) for(int i=(s);i>=(n);i--)
#define all(a) (a).begin(),(a).end()
#define rall(a) (a).rbegin(),(a).rend()
#define Eunique(v) v.erase(unique(all(v)),v.end())
#define Eback(s) s.erase(s.end()-1,s.end())
#define rev(v) reverse(all(v))

typedef long long ll;

typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<long long> vll;
typedef vector<vll> vvll;
typedef vector<double> vd;
typedef vector<vd> vvd;
typedef vector<char> vc;
typedef vector<vc> vvc;
typedef vector<bool> vb;
typedef vector<vb> vvb;
typedef vector<string> vs;

typedef pair<ll,ll> pll;
typedef pair<int,int> pii;
typedef vector<pair<int,int>> vpii;
typedef vector<pair<ll,ll>> vpll;

const double pi = acos(-1.0);
const int mod=1000000007;
const int mod2=998244353;

ll powmod(ll a,ll b){ll c=1; while(b>0){ if(b&1){ c=a*c%mod; } a=a*a%mod; b>>=1; } return c;}
ll gcd(ll x, ll y) {return __gcd(x,y);}
ll lcm(ll x, ll y) {return x/__gcd(x,y)*y;}

map<string,int> memo;
int main()
{
	int N;cin>>N;

    for(int i=0;i<N;i++){
        string s;
        cin>>s;
        memo[s]+=1;
    }
    int sum=0;
    for(const auto& x:memo){
        sum++;
    }
    cout<<sum<<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++

#include<bits/stdc++.h>
#include<ext/pb_ds/assoc_container.hpp>
#include<ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
template <typename T>
using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
using namespace std;
#define a_macro(args...) sum(args)
#define mp make_pair
#define eb emplace_back
#define mt make_tuple
#define fi first
#define se second
#define pb push_back
#define rep(i, begin, end) for (__typeof(end) i = (begin) - ((begin) > (end)); i != (end) - ((begin) > (end)); i += 1 - 2 * ((begin) > (end)))

typedef long long ll;
const ll mod = 1e9+7;

typedef tuple<int,int,int> State; // operator< defined
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<pii> vpi;
typedef vector<ll> vll;
typedef pair<ll, ll> pll;
typedef double ld;

/*---------------Matrix Multiplication-------------------
struct matrix {
  // N is the size of the matrix
  int m[N][N];
  matrix()
  {
     memset(m,0,sizeof(m));
  }
  matrix operator * (matrix b)
  {
     matrix c = matrix();
     for (int i = 0; i < N; ++i)
       for (int j = 0; j < N; ++j)
         for (int k = 0; k < N; ++k) 
           c.m[i][j] = (c.m[i][j] + 1LL * m[i][k] * b.m[k][j]) % M;
     return c;
  }
};
// Note that this multiplication method can be used to multiplying numbers,matrixes,etc....
matrix modPow(matrix m,int n)
{
  if ( n == 0 )
    return unit; // the unit matrix - that is 1 for principal diagonal , otherwise 0
  matrix half = modPow(m,n/2);
  matrix out = half * half;
  if ( n % 2 )
    out = out * m;
  return out; 
}
-----------------END-----------------------------------*/
int sum() { return 0; }

template<typename T, typename... Args>
auto sum(T a, Args... args) { return a + sum(args...); }
template<class T> bool uin(T &a,T b) {return a > b ? (a == b, true) : false; }
template<class T> bool uax(T &a,T b) {return a < b ? (a == b, true) : false; }

int main(int argc, const char** argv) {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    cout.precision(10);
    cout << fixed;
#ifndef ONLINE_JUDGE
	freopen("input.txt","r",stdin);
	freopen("output.txt","w",stdout);
	freopen("error.txt","w",stderr);
#endif

	int t,i;
	string s;
	cin>>t;
	set<string> ans;
	while(t--) {
	    cin>>n;
	    ans.insert(n);
	}
	cout<<ans.size()<<"\n";


    
#ifndef LOCAL_DEFINE
    cerr << "Time elapsed: "<< 1e1 * clock() / CLOCKS_PER_SEC << " s.\n";
#endif // LOCAL_DEFINE
    return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:82:18: error: 'n' was not declared in this scope
   82 |             cin>>n;
      |                  ^
Language: Java

public static void main(String[] args) {
		Set<String> set = new HashSet<>();
	      Scanner sc = new Scanner(System.in);
			int N = sc.nextInt();
	      for(int i = 0; i < N; i++) {
	    	  String s = sc.next();
	    	  set.add(s);
	      }
	      System.out.println(set.size());
	    
	}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C

import sys

n = int(input())

s = [None]*n

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

syugou = list(set(s))

ans = len(syugou)

print(ans)


Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import sys
      | ^~~~~~
main.c:3:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'n'
    3 | n = int(input())
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int maxn = 1e3 + 7;
const double pi = acos(-1);
const int mod = 998244353;
const double eps = 1e-8;
const int inf = 0x3f3f3f3f;

int main(){
	int n;
	scanf("%d",&n);
	for(int i = 1;i <= n;i++){
		string s;
		cin >> s;
		mp[s] = 1;
	}
	cout << mp.size()<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:17: error: 'mp' was not declared in this scope
   16 |                 mp[s] = 1;
      |                 ^~
a.cc:18:17: error: 'mp' was not declared in this scope
   18 |         cout << mp.size()<<endl;
      |                 ^~
Language: C++

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

int main()
{
    
   int n;
   cin>>n;
   
   mp<string,int>mp;
   
   while(n--)
   {
       string s;
       cin>>s;
       mp[s]++;
   }
   cout<<mp.size();
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:4: error: 'mp' was not declared in this scope
   11 |    mp<string,int>mp;
      |    ^~
a.cc:11:13: error: expected primary-expression before ',' token
   11 |    mp<string,int>mp;
      |             ^
a.cc:11:14: error: expected primary-expression before 'int'
   11 |    mp<string,int>mp;
      |              ^~~
Language: C++

#include<iostream>

using namespace std;

int main()
{
    int N;
    string temp;
    map array;
    cin >> N;
    for(int i = 0 ; i < N ; i++ )
    {
        cin >> temp;
        array["temp"] = 1;
    }
    cout << array.size();
    return 0;
     
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'map' was not declared in this scope
    9 |     map array;
      |     ^~~
a.cc:2:1: note: 'std::map' is defined in header '<map>'; this is probably fixable by adding '#include <map>'
    1 | #include<iostream>
  +++ |+#include <map>
    2 | 
a.cc:14:15: error: expected identifier before string constant
   14 |         array["temp"] = 1;
      |               ^~~~~~
a.cc:14:15: error: expected ']' before string constant
   14 |         array["temp"] = 1;
      |               ^~~~~~
      |               ]
a.cc:14:14: error: empty structured binding declaration
   14 |         array["temp"] = 1;
      |              ^
a.cc:16:18: error: missing template arguments before '.' token
   16 |     cout << array.size();
      |                  ^
Language: C++

#include <iostream>
using namespace std;

int main() {
	//cout<<"GfG!";
	set<string> s;
	int n;
	cin>>s;
	for(int i=0;i<n;i++)
	{
	    string k;
	    cin>>k;
	    s.insert(k);
	}
	cout<<s.size()<<endl;
	return 0;
}

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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashSet;
import java.util.Set;

public class Main {
    public static void main(String... args) throws IOException {
        int n;
        Set<String> s = new HashSet<>();
        BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
        String line;

        line = bf.readLine();

        n = Integer.parseInt(line);

        for (int i = 0; i < n; i++) {
            line = bf.readLine();
            s.add(line);
        }

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


Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.io.BufferedReader;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.io.BufferedReader;
      |            ^
main.c:2:1: error: unknown type name 'import'
    2 | import java.io.IOException;
      | ^~~~~~
main.c:2:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    2 | import java.io.IOException;
      |            ^
main.c:3:1: error: unknown type name 'import'
    3 | import java.io.InputStreamReader;
      | ^~~~~~
main.c:3:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    3 | import java.io.InputStreamReader;
      |            ^
main.c:4:1: error: unknown type name 'import'
    4 | import java.util.HashSet;
      | ^~~~~~
main.c:4:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    4 | import java.util.HashSet;
      |            ^
main.c:5:1: error: unknown type name 'import'
    5 | import java.util.Set;
      | ^~~~~~
main.c:5:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    5 | import java.util.Set;
      |            ^
main.c:7:1: error: unknown type name 'public'
    7 | public class Main {
      | ^~~~~~
main.c:7:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    7 | public class Main {
      |              ^~~~
Language: C

#include <stdio.h>
#include <iostream>
#include <vector>
#include <algorithm>
#include <map>	
#include <cmath>
#include <string>
#include<math.h>//���炵���̂Œ���
#define rep(i,n) for(int i=0;i<n;i++)
#define all(x) (x).begin(),(x).end()
#define sz(x) (int)(x).size()
#define Cout(s) cout<<s<<endl
using namespace std;
typedef long long ll;
string Yes(bool b) { if (b) { return "Yes"; } else { return "No"; } }
string YES(bool b) { if (b) { return "YES"; } else { return "NO"; } }
//================================================

int a = 1, b = 0, c, d, n, k = 0, ans = 0;
string s, t;
int mod = 1000000007;

int main()
{
	int n; cin >> n;
	map<string, int> goods;
	int cnt = 0;
	rep(i, n) {
		cin >> s;
		goods[s]++;
		if (goods[s] == 1)cnt++;
	}
	cout << cnt << endl;

	return 0;
}


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

// 失敗するからこそ そこから立ち向かって行く強さがあってそんな強さが本当の強さだと私は思うから
#ifdef DAIJOBU
#include "/home/v-o_o-v/deb.h"
#define deb(x...) cerr << "[" << #x << "] = ["; _print(x)
#else
#include <bits/stdc++.h>
#define deb(x...)
#endif 

using namespace std;

#define mp make_pair
#define mt make_tuple
#define fi first
#define se second
#define pb push_back
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define forn(i, n) for (int i = 0; i < (int)(n); ++i)
#define for1(i, n) for (int i = 1; i <= (int)(n); ++i)
#define ford(i, n) for (int i = (int)(n) - 1; i >= 0; --i)
#define fore(i, a, b) for (int i = (int)(a); i <= (int)(b); ++i)

mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
 
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<pii> vpi;
typedef long long lint;
typedef double ld;

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

    int n;
    set<string> s;
    while(n--){
        string t;
        cin >> t;
        s.insert(t);
    }
    cout << s.size();
    return 0;
}
// Write Here


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

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

const int N = 1e5 + 10;
int q[N], n;
map<string, int> mp;

int main()
{
	ios::sync_with_stdio(false);
	cin.tie(0);
	cin >> n;
	for(int i = 1; i <= n; i++) {
		string s;
		cin >> s;
		mp[s]++;
	}	
	cout << mp.size() << "\n";
	
	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

/************************************
/ AUTHOR : YATHARTH GOSWAMI         /  
/ ALIAS : hacker_yg                 /
/ INSTITUTE : IIT Kanpur            /
************************************/
//          TEMPLATE                //

#include <bits/stdc++.h>

#define ll long long
#define MOD 1000000007
#define pb push_back
#define mp make_pair
#define F first
#define S second

using namespace std;

int main(){
    int n;
    scanf ("%d\n", &n);
    map <string, int> m;
    int ans = 0;
    for (int i = 0; i < n; i++){
        string s;
        getline(cin, s);
        if (!m[s]) ans++;
        m[s]++;
    }
    cout << ans << endl;
    return 0;
}




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

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

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

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()
{
  map<string,int>m;
  int n;cin>>n;
  while(n--){string a;cin>>a;m[a]++;}
  cout<<m.size()<<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected primary-expression before '<' token
    8 |   cout<<m.size()<<<endl;
      |                   ^
Language: C++

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

int main(){
  int n;
  cin>>n;
  vector<string> v;
  for(int i=0;i<n;i++){
    string s;
    cin>>s;
    v.push_back(s);
  }
  map<string,int> mp;
  int count=0;
  int n=v.size();
  for(int i=0;i<n;i++){
    if(mp.find(v[i])!=mp.end())
    {
      mp[v[i]]++;
    }
    else{
      mp[v[i]]=1;
      count++;
    }
  }
  cout<<count<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:7: error: redeclaration of 'int n'
   15 |   int n=v.size();
      |       ^
a.cc:5:7: note: 'int n' previously declared here
    5 |   int n;
      |       ^
Language: Java

import java.util.*;

public class atcoder_163_3 {

  static Scanner scan = new Scanner(System.in);

  public static void main(String[] args) {
    int n = scan.nextInt();

    Set<String> words = new HashSet<>();

    for (int i = 0; i < n; i++) {
      words.add(scan.next());
    }


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


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

#include <cstdio>
#include <iostream>
#include <algorithm>
#include <cstring>
#include <string>
#include <vector>
#include <queue>
#include <map>
using namespace std;
typedef long long LL;

map <string,LL> mp;
LL n,cnt = 0;
string s;

int main(){
	ios::sync_with_stdio(false);
	cin >> n;
	while(n --){
		cin >> s;
		if(mp.find(s) == mp.end()) cnt ++;
		mp[s] = 1;
	}
	cout << cnt << '\n';
	return 0;
}

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

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

typedef long long ll;
#define pii pair<int , int>
#define _FastIO ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define MAXX 1005

int n;

int main()
{
    _FastIO;
    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>
using namespace std;;
#define rep(i, n) for(int i = 0;i < n;i++)
#define repr(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define INF 1<<30
#define LINF 1LL<<62
#define all(x) (x).begin(), (x).end()
#define F first
#define S second
#define mp make_pair
#define pb push_back
const int MOD = 1000000007;
 
typedef long long ll;
typedef long double ld;
typedef vector<ll> vl;
typedef pair<ll, ll> P;
typedef pair<ll, P> PP;


int main(){
  ios::sync_with_stdio(false);
  cin.tie(0);
  ll n;cin >> n;
  set<string> se;
  rep(i,n){
    string s;cin >> s;
    se.insert(s);
  }
  cout<< se.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

N = int(input())
S = set()
for i in range(N):
    S.add(input())
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<iostream>
#include<vector>
#include<algorithm>
#include<string>
#include<cmath>
#include <queue>
#include <stack>
#include<set>
#include<algorithm>
#include<stdio.h>

using namespace std;
int main() {

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

		return 0;
}
	




Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: redeclaration of 'int n'
   17 |         int n;
      |             ^
a.cc:15:13: note: 'int n' previously declared here
   15 |         int n;
      |             ^
Language: C

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

using namespace std;

map<string,int> mp;

int main()
{
    int n;
    scanf("%d",&n);
    for(int i=0;i<n;i++)
    {
        string tmp;
        cin>>tmp;
        mp[tmp]++;
    }
    printf("%d\n",mp.size());
}

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

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

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


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 rep(i,n) for(int i=0;i<n;i++)
#define ll int64_t
#define all(v) v.begin(), v.end()
#define bitrep(n) for(int bit=0;bit<(1<<n);bit++)


int main() {

int N; cin >> N ;

vector<string> S(N);

rep(i,N) cin>> S[i];

set<string> A;

rep(i,N) A.insert(S[i]);

cout << A.size() << endl;

return 0;
}

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

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

int main() {
    int n;
    cin >> n;
    string s[n];
    for(int i=0;i<n;i++) cin >> s[i];
    int count=n;
    for(int i=0;i<n;i++){
        for(int j=i+1;j<n;j++){
            if(s[i]!="A"&&s[i]==s[j]){
                count--;
                s[j]="A";
            }
        }
    }
    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<bits/stdc++.h>
#define LL long long
#define FOR(i,a,b) for(int i=a;i<=b;++i)
using namespace std;

const int mn=1e5+7;
string s[mn],t;

int main()
{
	int n,ans=0;
	scanf("%d",&n);
	FOR(i,1,n) cin>>s[i];
	sort(s+1,s+n+1);
	FOR(i,1,n) if(s[i]!=t) t=s[i],ans++;
	cout<<ans;
}

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(void)
{
  int n;
  set<string> s;
  flp(i, 0, n)
  {
    string u;
    cin>>u;
    s.insert(u);
  }
  cout<<s.size()<<"\n";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'i' was not declared in this scope
    9 |   flp(i, 0, n)
      |       ^
a.cc:9:3: error: 'flp' was not declared in this scope
    9 |   flp(i, 0, n)
      |   ^~~
Language: C

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


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


  map<string,int>memo;
  rep(i,n){
    string s;
    cin>>s;
    memo[s]++;
  }
  cout<<memo.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;
using ll = long long;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:48: error: no matching function for call to 'end()'
   12 |         s.erase(unique(s.begin(),s.end()),s,end());
      |                                             ~~~^~
In file included from /usr/include/c++/14/bits/algorithmfwd.h:39,
                 from /usr/include/c++/14/bits/stl_algo.h:59,
                 from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/initializer_list:99:5: note: candidate: 'template<class _Tp> constexpr const _Tp* std::end(initializer_list<_Tp>)'
   99 |     end(initializer_list<_Tp> __ils) noexcept
      |     ^~~
/usr/include/c++/14/initializer_list:99:5: note:   candidate expects 1 argument, 0 provided
In file included from /usr/include/c++/14/string:53,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/range_access.h:74:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.end()) std::end(_Container&)'
   74 |     end(_Container& __cont) -> decltype(__cont.end())
      |     ^~~
/usr/include/c++/14/bits/range_access.h:74:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:85:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.end()) std::end(const _Container&)'
   85 |     end(const _Container& __cont) -> decltype(__cont.end())
      |     ^~~
/usr/include/c++/14/bits/range_access.h:85:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:106:5: note: candidate: 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::end(_Tp (&)[_Nm])'
  106 |     end(_Tp (&__arr)[_Nm]) noexcept
      |     ^~~
/usr/include/c++/14/bits/range_access.h:106:5: note:   candidate expects 1 argument, 0 provided
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166:
/usr/include/c++/14/valarray:1249:5: note: candidate: 'template<class _Tp> _Tp* std::end(valarray<_Tp>&)'
 1249 |     end(valarray<_Tp>& __va) noexcept
      |     ^~~
/usr/include/c++/14/valarray:1249:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/valarray:1265:5: note: candidate: 'template<class _Tp> const _Tp* std::end(const valarray<_Tp>&)'
 1265 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~
/usr/include/c++/14/valarray:1265:5: note:   candidate expects 1 argument, 0 provided
Language: C++

#include <iostream>
#include <vector>
using namespace std;
#define REP(i, n) for(int i = 0; i < n; i++)

int main() {
    int n; cin >> n;
    vector<string> s(n);
    REP(i, n) cin >> s[i];
    sort(s.begin(), s.end());

    string tmp = s[0];
    int count = 1;
    REP(i, n) {
        if (s[i] != tmp) {
            tmp = s[i];
            ++count;
        }
    }

    cout << count << endl;

    return 0;
}

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

(defparameter ht (make-hash-table :test #'equal))

(loop repeat (read)
      do (setf (gethash (read-line) ht) t))

(princ (hash-table-count ht))

Compiler output:
main.c:1:14: error: expected ')' before 'ht'
    1 | (defparameter ht (make-hash-table :test #'equal))
      |              ^~~
      |              )
main.c:1:41: error: stray '#' in program
    1 | (defparameter ht (make-hash-table :test #'equal))
      |                                         ^
main.c:1:42: warning: missing terminating ' character
    1 | (defparameter ht (make-hash-table :test #'equal))
      |                                          ^
main.c:1:42: error: missing terminating ' character
    1 | (defparameter ht (make-hash-table :test #'equal))
      |                                          ^~~~~~~~
Language: C

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

// GCD, LCM
ll gcd(ll a, ll b) { return b?gcd(b,a%b):a;}
ll lcm(ll a, ll b) { return a/gcd(a,b)*b;}

int main()
{
    string S[200010]={},B[200010]={};
    int N,ans=0;
    cin>>N;

    for(int i=0;i<N;i++){
        cin>>S[i];

        int f=0;
        for(int j=1;j<=ans;j++){
            if(B[j]==S[i]){
                f=1;
                break;
            }
        }
        if(f==0){
            ans++;
            B[ans]=S[i];
        }
    }

    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.