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

#include<stdio.h>
int main(){
  long int n,cnt=0;
  char str[][10];
  scanf("%ld",&n);
  for(int i=0;i<n;i++){
    scanf("%s",str[i]);
  }
  for(int i=0;i<n;i++){
    for(int j=i-1;j>=0;j--){
      if(strcmp(*str[i],*str[j])==0){
        *str[i]='\0';
      }
    }
  }
  for(int i=0;i<n;i++){
    if(*str[i]!='\0')
      cnt++;
  }
  printf("%ld",cnt);
}

Compiler output:
main.c: In function 'main':
main.c:4:8: error: array size missing in 'str'
    4 |   char str[][10];
      |        ^~~
main.c:11:10: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
   11 |       if(strcmp(*str[i],*str[j])==0){
      |          ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include<stdio.h>
  +++ |+#include <string.h>
    2 | int main(){
main.c:11:17: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   11 |       if(strcmp(*str[i],*str[j])==0){
      |                 ^~~~~~~
      |                 |
      |                 char
main.c:11:17: note: expected 'const char *' but argument is of type 'char'
main.c:11:25: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   11 |       if(strcmp(*str[i],*str[j])==0){
      |                         ^~~~~~~
      |                         |
      |                         char
main.c:11:25: note: expected 'const char *' but argument is of type 'char'
Language: C++

#include <iostream>
#include <vector>

int main(int argc, const char * argv[]) {
    int N;
    std::cin >> N;
    std::string str;
    std::vector<std::string> vec;
    
    for(int i=0;i<N;i++){
        std::cin >> str;
        vec.push_back(str);
    }
    
    std::sort(vec.begin(), vec.end());
    vec.erase(std::unique(vec.begin(), vec.end()), vec.end());
        
    // insert code here...
    std::cout << vec.size();
    return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:15:10: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   15 |     std::sort(vec.begin(), vec.end());
      |          ^~~~
      |          qsort
a.cc:16:20: error: 'unique' is not a member of 'std'
   16 |     vec.erase(std::unique(vec.begin(), vec.end()), vec.end());
      |                    ^~~~~~
Language: Java

mport java.io.IOException;
import java.io.InputStream;
import java.util.*;

public class Main {
    public  static void main(String[] args) {
        FastScanner sc = new FastScanner();
        String text = "";
        int a = 0;
        boolean flg = true;
        String[] texts = new String[10000];
        int count = Integer.parseInt(sc.next());

        for(int i = 0; i < count; i++) {
            text = sc.next();
            for(String item : texts) {
                if(text.equals(item)) {
                    flg = false;
                    break;
                }
            }
            if(flg) {
                texts[a] = text;
            }
            System.gc();
        }
        System.out.print(a);
    }
}

class FastScanner {
    private final InputStream in = System.in;
    private final byte[] buffer = new byte[1024];
    private int ptr = 0;
    private int buflen = 0;
    private boolean hasNextByte() {
        if (ptr < buflen) {
            return true;
        }else{
            ptr = 0;
            try {
                buflen = in.read(buffer);
            } catch (IOException e) {
                e.printStackTrace();
            }
            if (buflen <= 0) {
                return false;
            }
        }
        return true;
    }
    private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}
    private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}
    public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}
    public String next() {
        if (!hasNext()) throw new NoSuchElementException();
        StringBuilder sb = new StringBuilder();
        int b = readByte();
        while(isPrintableChar(b)) {
            sb.appendCodePoint(b);
            b = readByte();
        }
        return sb.toString();
    }
    public long nextLong() {
        if (!hasNext()) throw new NoSuchElementException();
        long n = 0;
        boolean minus = false;
        int b = readByte();
        if (b == '-') {
            minus = true;
            b = readByte();
        }
        if (b < '0' || '9' < b) {
            throw new NumberFormatException();
        }
        while(true){
            if ('0' <= b && b <= '9') {
                n *= 10;
                n += b - '0';
            }else if(b == -1 || !isPrintableChar(b)){
                return minus ? -n : n;
            }else{
                throw new NumberFormatException();
            }
            b = readByte();
        }
    }
    public int nextInt() {
        long nl = nextLong();
        if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();
        return (int) nl;
    }
    public double nextDouble() { return Double.parseDouble(next());}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.io.IOException;
^
Main.java:2: error: class, interface, enum, or record expected
import java.io.InputStream;
^
Main.java:3: error: class, interface, enum, or record expected
import java.util.*;
^
3 errors
Language: C

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

int main(void){
    double n,dummy,i=0;
    char c;
    char s[1000];
    dummy=scanf("%ld",&n);
    while(gets(c)!=NULL){
        s[i]=c;
        i++;
    }
    int j,k,flag=0,count=0;
    for(j=0;j<i;j++){
        for(k=0;k<j;k++){
            if(strcmp(s[k],s[j])==0){
                flag=1;
            }
        }
        if(flag==0){
            count++;
        }
        flag=0;
    }
    printf("%d",count);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:11: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    9 |     while(gets(c)!=NULL){
      |           ^~~~
      |           fgets
main.c:9:18: warning: comparison between pointer and integer
    9 |     while(gets(c)!=NULL){
      |                  ^~
main.c:10:10: error: array subscript is not an integer
   10 |         s[i]=c;
      |          ^
main.c:16:24: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   16 |             if(strcmp(s[k],s[j])==0){
      |                       ~^~~
      |                        |
      |                        char
In file included from main.c:2:
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:16:29: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   16 |             if(strcmp(s[k],s[j])==0){
      |                            ~^~~
      |                             |
      |                             char
/usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
Language: C++

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

int main() {
  int N;
  cin>>N;
  set<string> S[N];
  for(int i=0;i<N;i++){
    s.insert(S[i]);
  }
 return S.size();
}
    
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 's' was not declared in this scope
    9 |     s.insert(S[i]);
      |     ^
a.cc:11:11: error: request for member 'size' in 'S', which is of non-class type 'std::set<std::__cxx11::basic_string<char> > [N]'
   11 |  return S.size();
      |           ^~~~
Language: C++

#include <iostream>

using namespace std;

// 163 Sunday April 1

#define SIZE 200000
char chaines[SIZE][10];
long longueur[SIZE];

bool comparaison(long i, long j)
{
    if (longueur[i] != longueur[j])
      return(longueur[i] < longueur[j]);
    else {
      int k, flag;

      flag = 1;
      for (k=0;flag && (k<longueur[i]);k++)
        if (chaines[i][k] != chaines[j][k])
          flag = 0;
      return(chaines[i][k-1] < chaines[j][k-1]);
    }
}

bool different(long i, long j)
{
    if (longueur[i] != longueur[j])
      return true;
    else {
      int k, flag;

      flag = 1;
      for (k=0;flag && (k<longueur[i]);k++)
        if (chaines[i][k] != chaines[j][k])
          flag = 0;
      return(flag == 0);
    }
}


int main() {
 long N;

 cin >> N;
 string machaine;

long i,j;
 for (i=0;i<N;i++) {
   cin >> machaine;
   longueur[i] = machaine.length();
   for (j=0;j<longueur[i];j++)
    chaines[i][j] = machaine[j];
 }

 long pos[SIZE];

 for (i=0;i<N;i++)
   pos[i] = i;

   sort(pos, pos + N,comparaison);

 long nombre;

if (N>0)
 nombre = 1;
else
  nombre = 0;

  for (i=1;i<N;i++) {
    if (different(pos[i],pos[i-1]))
      nombre++;
  }
  cout << nombre << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:61:4: error: 'sort' was not declared in this scope; did you mean 'short'?
   61 |    sort(pos, pos + N,comparaison);
      |    ^~~~
      |    short
Language: C

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

int main(){
  int n;
  cin>>n;
  vector<string> data(n);
  for(int i=0;i<n-1;i++){
    cin>>data.at(i);
  }
  int count=1;
  for(int i=1;i<n-1;i++){
    if(!(data.at(0)==data.at(i))){
      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 <bits/stdc++.h>
using namespace std;
int main() {
 int a;
  cin >> a;
 string b[a];
  int c;
  for(int h=0;h<a;h++){
    cin >> b[h]
  }
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      if(b[i]==b[j]){
        c--;
      }
    }
  }
  cout << c << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: expected ';' before '}' token
    9 |     cin >> b[h]
      |                ^
      |                ;
   10 |   }
      |   ~
Language: C++

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

int main(){
	int n;
  	cin>>n;
  	string s;
  	map<string,int> history;
  	while(cin>>s){
      history[s]++;
    }
  	cout<<history.size()<<endl;
}

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

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

int main() {
  int N, count;
  vector<string> = vec(N);
  for(int i=0;i<N;i++){
    cin >> vec.at(i);
  }
  for(int i=0;i<N;i++){
      for(int j=0;j<N;j++){
        if(vec.at(i).compare(vec.at(j))==0){
            count++
        }
      }
  }
  count=count/2;
  cout << N-count <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: expected unqualified-id before '=' token
    6 |   vector<string> = vec(N);
      |                  ^
a.cc:8:12: error: 'vec' was not declared in this scope
    8 |     cin >> vec.at(i);
      |            ^~~
a.cc:12:12: error: 'vec' was not declared in this scope
   12 |         if(vec.at(i).compare(vec.at(j))==0){
      |            ^~~
a.cc:13:20: error: expected ';' before '}' token
   13 |             count++
      |                    ^
      |                    ;
   14 |         }
      |         ~
Language: C

#include<stdio.h>
int main(){
  long int n,cnt=0;
  char str[][10];
  scanf("%ld",&n);
  for(int i=0;i<n;i++){
    scanf("%s",str[i]);
  }
  for(int i=0;i<n;i++){
    for(int j=i-1;j>=0;j--){
      if(strcmp(str[i],str[j])==0){
        str[i]='\0';
      }
    }
  }
  for(int i=0;i<n;i++){
    if(str[i]!='\0')
      cnt++;
  }
  printf("%ld",cnt);
}

Compiler output:
main.c: In function 'main':
main.c:4:8: error: array size missing in 'str'
    4 |   char str[][10];
      |        ^~~
main.c:11:10: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
   11 |       if(strcmp(str[i],str[j])==0){
      |          ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include<stdio.h>
  +++ |+#include <string.h>
    2 | int main(){
main.c:12:15: error: assignment to expression with array type
   12 |         str[i]='\0';
      |               ^
main.c:17:14: warning: comparison between pointer and zero character constant [-Wpointer-compare]
   17 |     if(str[i]!='\0')
      |              ^~
main.c:17:8: note: did you mean to dereference the pointer?
   17 |     if(str[i]!='\0')
      |        ^
Language: C++

//
//  main.cpp
//  beginner20200426
//
//  Created by zer0 on 2020/04/26.
//  Copyright © 2020 zer0. All rights reserved.
//

#include <iostream>
#include <vector>

int main(int argc, const char * argv[]) {
    int N;
    std::cin >> N;
    std::string str;
    std::vector<std::string> vec;
    
    for(int i=0;i<N;i++){
        std::cin >> str;
        vec.push_back(str);
    }
    
    std::sort(vec.begin(), vec.end());
    vec.erase(std::unique(vec.begin(), vec.end()), vec.end());
        
    // insert code here...
    std::cout << vec.size();
    return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:23:10: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   23 |     std::sort(vec.begin(), vec.end());
      |          ^~~~
      |          qsort
a.cc:24:20: error: 'unique' is not a member of 'std'
   24 |     vec.erase(std::unique(vec.begin(), vec.end()), vec.end());
      |                    ^~~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 's' was not declared in this scope
    9 |     s.insert(S[i]);
      |     ^
a.cc:11:11: error: request for member 'size' in 'S', which is of non-class type 'std::set<std::__cxx11::basic_string<char> > [N]'
   11 |   cout<<S.size()<<endl;
      |           ^~~~
Language: C

#include <bits/stdc++.h>

#define pan(i,n) for(int i=0;i<n;i++)
#define pans(i,n,a) for(int i=a;i<n;i++)
#define ll long long int
#define vi vector<int>
#define vl vector<ll>
#define pb push_back
#define INF 1000000007
#define PI 3.141592653
#define inf 100007
#define P pair<ll,ll>

using namespace std; 

int main(){
    int n;
    cin>>n;
    map<string,int> m;
    pan(i,n){
        string s;
        cin>>s;
        m[s]++;
    }
    cout<<m.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;
int main(){
int N;
  cin>>N;
  
  vecotr<char> A(N);
  for(int i=0;i<N;i++){
 cin>>A[i];
  }
  int a=0;
  for(int i=0;i<N;i++){
    string S = string.valueOf(A[i]);
    for(int j=1;j<N;j++){
   
      if(A[i]!=A[j]&&1<=S.size()&&10>=S.size()){
      a++;
       }
    
    }
    
  }
  cout<<a<<endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'vecotr' was not declared in this scope
    7 |   vecotr<char> A(N);
      |   ^~~~~~
a.cc:7:10: error: expected primary-expression before 'char'
    7 |   vecotr<char> A(N);
      |          ^~~~
a.cc:9:7: error: 'A' was not declared in this scope
    9 |  cin>>A[i];
      |       ^
a.cc:13:22: error: expected primary-expression before '.' token
   13 |     string S = string.valueOf(A[i]);
      |                      ^
a.cc:13:31: error: 'A' was not declared in this scope
   13 |     string S = string.valueOf(A[i]);
      |                               ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected unqualified-id before '.' token
    9 |     set.insert(S[i]);
      |        ^
a.cc:11:11: error: request for member 'size' in 'S', which is of non-class type 'std::set<std::__cxx11::basic_string<char> > [N]'
   11 |   cout<<S.size()<<endl;
      |           ^~~~
Language: C

#include <bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin >> n;
  vector<string> s;
  string si;
  cin >> si;
  s.push_back(si);
  for(int i = 1; i < n; i++){
    
    cin >> si;
    bool first = true;
    for(int j = 0; j < s.size(); j++){
      if(si == s[j]) first = false;
    }
    if(first) s.push_back(si);
  }
  cout << s.size() << endl;
}
  

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

/*
ID: yaoxinw2
TASK: test
LANG: C++
*/
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
using namespace std;
set<long long>ans;
void hash(string&x){
	long long a=0;
	for(int i=0;i<x.size();i++)
	a=a*10+x[i];
	ans.insert(a);
}
int n;
string a;
int main(){
	cin>>n;
	for(int i=0;i<n;i++){
		cin>>a;
		hash(a);
	}
	cout<<ans.size()<<endl;
	return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:67:17: error: reference to 'hash' is ambiguous
   67 |                 hash(a);
      |                 ^~~~
In file included from /usr/include/c++/14/string_view:50,
                 from /usr/include/c++/14/bits/basic_string.h:47,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from a.cc:22:
/usr/include/c++/14/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash'
   59 |     struct hash;
      |            ^~~~
a.cc:55:6: note:                 'void hash(std::string&)'
   55 | void hash(string&x){
      |      ^~~~
Language: C++

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


int main(){
  int N;
  cin>>N;
  vector<string> s(N);
  map<string,int> m;
  
  for(int i=0;i<N;i++){
    cin>>s[i];
    if(m.["s[i]"]==0){
      m.[s[i]]=1;
    }else{
      m.[s[i]]++;
    }
  }
  cout<<m.size();
}

  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:15:10: error: expected unqualified-id before '[' token
   15 |     if(m.["s[i]"]==0){
      |          ^
a.cc:16:9: error: expected unqualified-id before '[' token
   16 |       m.[s[i]]=1;
      |         ^
a.cc:18:9: error: expected unqualified-id before '[' token
   18 |       m.[s[i]]++;
      |         ^
Language: C

#include <bits/stdc++.h>
#include <vector>
#include <iostream>
#include <map>
#include <cmath>
#include <string>
#include <math.h>
using namespace std;

#define rep(i, o) for (int i = 0; i < (o); ++i)
#define REP(i,a,b)for(int i=(int)(a);(i)<=(int)(b);i++)

typedef long long ll;


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

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

  map<string, int> s;
  rep(i, n) {
      string str;
      cin >> str;
      s.insert(make_pair(str, 1));
  }


  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;
  String s;
  cin >> N;
  int a = 0;
  while(a < N){
    cin >> N;
    a++;
  }
}


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

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  int a;
  int s = 0;
  string mojiretu[20000];
  cin >> a;

  for( int i = 0; i < a; i++){
    string str;
    cin >> str;
    mojiretu[i] = str;
  }

  for(int i = 0; i < a;i++){

    string str2 = mojiretu[i];

    for(int d = 0; d < 0;d++){
      
      if(d != i){
      string str3 = mojiretu[d];

      if(str2 == str3 ){
        s++
      } 
      }
    }
  }
a = a - s;
cout << a << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:12: error: expected ';' before '}' token
   26 |         s++
      |            ^
      |            ;
   27 |       }
      |       ~
Language: Java

import java.io.*;
import java.util.*;

public class gacha {
	public static void Main(String[] args) throws IOException{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(in.readLine());
		
		int count = 0;
		HashMap<String, Integer> map = new HashMap<String, Integer>();
		
		for (int i = 0; i < N; i++) {
			String str = in.readLine();
			
			if (!map.containsKey(str)) {
				map.put(str, 1);
				count++;
			}
		}
		
		System.out.println(count);
	}
}

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

#include<algorithm>
#include<iostream>
#include<vector>
#include<string>
#include<queue>
#include<stack>
#include<cmath>
#include<list>
#include<set>
#include<map>

using namespace std;
long long MOD = 1000000007LL;
#undef INT_MIN
#undef INT_MAX
#define INT_MIN -2147483648
#define INT_MAX 2147483647
#define endl "\n"

int main() {
	int N;
	cin >> N;
	map<string, int> mp;
	int count = 0;
	for (int i = 0; i < N; ++i) {
		string s;
		cin >> s;
		if (mp[s]++ == 0) {
			++count;
		}
	}
	cout << count << endl;
	return 0;
}



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

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

int main(){
  int n;
  cin>>n;
  vector<string> data(n);
  for(int i=0;i<data.size();i++){
    cin>>data.at(i);
  }
  int count=1;
  for(int i=1;i<data.size();i++){
    if(data.at(0)!==data.at(i)){
      count++;
   }
  }
  cout<<n-count<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:20: error: expected primary-expression before '=' token
   13 |     if(data.at(0)!==data.at(i)){
      |                    ^
Language: Java

import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        long a = s.nextInt();
        long k = 0;
        long y = 0;
        String[] st = new String[a];
        for(long i = 0; i < a; i++){
            st[i] = "";
        }
        for(long i = 0; i < a; i++){
            String g = s.nextLine();
            boolean exist = false;
            for(String h: st){
                if(h.equals(g)){
                    exist = true;
                }
            }
            if(!exist){
                y++;
                st[k] = g;
                k++;
            }
        }
        System.out.println(y);
    }
}

Compiler output:
Main.java:8: error: incompatible types: possible lossy conversion from long to int
        String[] st = new String[a];
                                 ^
Main.java:10: error: incompatible types: possible lossy conversion from long to int
            st[i] = "";
               ^
Main.java:22: error: incompatible types: possible lossy conversion from long to int
                st[k] = g;
                   ^
3 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  long long int n;
  
  cin>>n;
  
  map<string,int> m;
  
  for(int i=0;i<n;i++)
  {
    string a;
   
    cin>>a;
    
    m[a]++;
  }
  
  int k=0;
  
  for(auto it=m.begin();it!=m.end();++i)
  {
    k++;
  }
  
  cout<<k;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:39: error: 'i' was not declared in this scope; did you mean 'it'?
   22 |   for(auto it=m.begin();it!=m.end();++i)
      |                                       ^
      |                                       it
Language: C

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

int main(){
  int n;
  scanf("%d", &n);
  char s[n][10] = {0};
  for(int i = 0; i < n; i++){
    scanf("%s", &s[i]);
  }
  
  char tmp[10] = {0};
  strcpy(tmp, s[0]);
  int count = 1;
  for(int j = 0; j < n; j++){
    if(strcmp(s[j], tmp) != 0){
      count++;
    }
  }
  
  printf("%d", count);
  return 0;
}
  
  

Compiler output:
main.c: In function 'main':
main.c:7:19: error: variable-sized object may not be initialized except with an empty initializer
    7 |   char s[n][10] = {0};
      |                   ^
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <cstring>
#include <cstdlib>


using namespace std;

int main(int argc, char *argv[])
{
	int n, i;
	cin >> n;
    vector<string> gacha(n);
	string target;
	int count = 0;

	for (i = 0; i < n; i++)
		cin >> gacha[i];

    sort(gacha.begin(), gacha.end());
	gacha.erase(unique(gacha.begin(), gacha.end()), gacha.end());

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

	return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:21:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   21 |     sort(gacha.begin(), gacha.end());
      |     ^~~~
      |     short
a.cc:22:21: error: 'unique' was not declared in this scope
   22 |         gacha.erase(unique(gacha.begin(), gacha.end()), gacha.end());
      |                     ^~~~~~
Language: C++

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

int main()
{
char a[1000][1000];
int n;
scanf("%d",&n);
int i=0;
	getchar();
for(int i=0;i<n;i++){
	gets(a[i]);
}
int cnt=1;
//printf("%d",!strcmp(a[0],a[i]));
for(int i=1;i<n;i++)
{
	if(!strcmp(a[0],a[i]))continue;
	cnt++;
}
printf("%d\n",cnt);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   15 |         gets(a[i]);
      |         ^~~~
      |         getw
Language: C

#include<stdio.h>
int main(){
  long int n,cnt=0;
  char str[][10];
  scanf("%d",&n);
  for(int i=0;i<n;i++){
    scanf("%s",str[i]);
  }
  for(int i=0;i<n;i++){
    for(int j=i-1;j>=0;j--){
      if(str[i]==str[j]){
        str[i]='\0';
      }
    }
  }
  for(int i=0;i<n;i++){
    if(str[i]!='\0')
      cnt++;
  }
  printf("%d",cnt);
}

Compiler output:
main.c: In function 'main':
main.c:4:8: error: array size missing in 'str'
    4 |   char str[][10];
      |        ^~~
main.c:12:15: error: assignment to expression with array type
   12 |         str[i]='\0';
      |               ^
main.c:17:14: warning: comparison between pointer and zero character constant [-Wpointer-compare]
   17 |     if(str[i]!='\0')
      |              ^~
main.c:17:8: note: did you mean to dereference the pointer?
   17 |     if(str[i]!='\0')
      |        ^
Language: C++

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

int main(){
	long long n;
	cin >> n;
	
	vector<string> s(n);
	rep(i, n) cin >> s.at(i);
	
	long long equal = 0;
	rep(i, n) {
		bool erase = false;
		for (int j = i; j < n; j++) {
			if (s.at(i) = s.at(j)) {
				erase = true;
			}
		}
		if (erase) equal++;
	}
	
	cout << n - equal << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:37: error: could not convert '(& s.std::vector<std::__cxx11::basic_string<char> >::at(((std::vector<std::__cxx11::basic_string<char> >::size_type)i)))->std::__cxx11::basic_string<char>::operator=((*(const std::__cxx11::basic_string<char>*)(& s.std::vector<std::__cxx11::basic_string<char> >::at(((std::vector<std::__cxx11::basic_string<char> >::size_type)j)))))' from 'std::__cxx11::basic_string<char>' to 'bool'
   16 |                         if (s.at(i) = s.at(j)) {
      |                             ~~~~~~~~^~~~~~~~~
      |                                     |
      |                                     std::__cxx11::basic_string<char>
Language: C++

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

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

    map<string,int> prize;
    for(int i=0;i<N;i++){
        if(prize[s[i]=1])continue;
        prize[s[i]]=1;
    }

    cout << prize.size << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:10: error: invalid use of non-static member function 'std::map<_Key, _Tp, _Compare, _Alloc>::size_type std::map<_Key, _Tp, _Compare, _Alloc>::size() const [with _Key = std::__cxx11::basic_string<char>; _Tp = int; _Compare = std::less<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >; size_type = long unsigned int]'
   20 |     cout << prize.size << endl;
      |     ~~~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/14/map:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:152,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_map.h:482:7: note: declared here
  482 |       size() const _GLIBCXX_NOEXCEPT
      |       ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  int a;
  int s = 0;
  string str;
  string mojiretu[20000];
  cin >> a;

  for( int i = 0; i < a; i++){

    cin >> str;
    mojiretu[i] = str;
  }

  for(int i = 0; i < a;i++){

    string str2 = mojiretu[i];

    for(int d = 0; d < 0;d++){
      
      if(d != i){
      string str3 = mojiretu[d];

      if(str2 == str3 ){
        s++
      } 
      }
    }
  }

a = a - s;
cout << a << endl;

}


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

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


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

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

int main() {
 int n;
  cin>>n;
  int k=0;
  vector<string>s(n);
  for(int i=0;i<n;i++){
    cin>>s[i];
  }
  for(int i=0;i<n;i++){
    for(int j=0;j<n;j++){
      if(s[i]==s[j]){
        k-=1;
      }
    }
  }
  cout<<2n-k<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: unable to find numeric literal operator 'operator""n'
   19 |   cout<<2n-k<<endl;
      |         ^~
Language: C++

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

int main(){
	long long n;
	cin >> n;
	
	vector<string> s(n);
	rep(i, n) cin >> s.at(i);
	
	long long equal = 0;
	rep(i, n) {
		bool erase = false;
		rep (j, n) {
			if (s.sa(i) = s.at(j)) {
				erase = true;
			}
		}
		if (erase) equal++;
	}
	
	cout << n - equal << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:31: error: 'class std::vector<std::__cxx11::basic_string<char> >' has no member named 'sa'
   16 |                         if (s.sa(i) = s.at(j)) {
      |                               ^~
Language: C++

#include <bits/stdc++.h>
#include <string>
#include <stdio.h>
#include <cstdlib>

using namespace std;

int main() {
    int n;
    int cnt = 0;
    char st[200000];
    char strg;
    char strg2;
    int flg=0;
    int flag;
    cin >> n;
    for (int i = 1; i<= n; i++){
        cin >> strg; 
        flg = 0;
        for (int j = 0 ; j<= (cnt-1); j++){

        strg2 = st[j];
        flag=0;
        while(strg2[j]='\0' && strg[i]!='\0'){
            if(strg2[i]!=strg[i]){
            flag=1;
            break;
            }
            i++;
        }

            if (flag==0){
                flg = 1;
                break;
            }
            
        }
        if (flg==0){
            st[cnt] = strg;
            cnt=cnt+1;
        }
    }
    cout << cnt;
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:24:20: error: invalid types 'char[int]' for array subscript
   24 |         while(strg2[j]='\0' && strg[i]!='\0'){
      |                    ^
a.cc:24:36: error: invalid types 'char[int]' for array subscript
   24 |         while(strg2[j]='\0' && strg[i]!='\0'){
      |                                    ^
a.cc:25:21: error: invalid types 'char[int]' for array subscript
   25 |             if(strg2[i]!=strg[i]){
      |                     ^
a.cc:25:30: error: invalid types 'char[int]' for array subscript
   25 |             if(strg2[i]!=strg[i]){
      |                              ^
Language: C++

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

int main() {
  long long n,m,k,sum=0,a=0,b=0,c=0,d=0,ans=0;
  long long MOD = 1000000007;
  long long INF = 1LL << 60;
  cin >> n;
  vector <string> S(n);
  map <strinng,int> s;
  for (long i=0;i<n;i++){
    cin >> S[i];
    s[S[i]]++;
  }
  cout << s.size() << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: 'strinng' was not declared in this scope
   10 |   map <strinng,int> s;
      |        ^~~~~~~
a.cc:10:19: error: template argument 1 is invalid
   10 |   map <strinng,int> s;
      |                   ^
a.cc:10:19: error: template argument 3 is invalid
a.cc:10:19: error: template argument 4 is invalid
a.cc:13:6: error: no match for 'operator[]' (operand types are 'int' and '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'std::__cxx11::basic_string<char>'})
   13 |     s[S[i]]++;
      |      ^
a.cc:15:13: error: request for member 'size' in 's', which is of non-class type 'int'
   15 |   cout << s.size() << endl;
      |             ^~~~
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        String S[] = new String[N];
        int sum = 0;
        for(int i=0;i<N;i++)
        {
            S[i] = sc.next();
        }
        for(int j=0;j<N-1;j++)
        {
            for(int k=1;k<N;k++)
            {
                if(!(S[j].equals(S[k]));)
                {
                    sum ++;
                }
            }
        }
    }
}


Compiler output:
Main.java:18: error: ')' expected
                if(!(S[j].equals(S[k]));)
                                       ^
Main.java:18: error: illegal start of expression
                if(!(S[j].equals(S[k]));)
                                        ^
2 errors
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[i];
    }

    map<string,int> prize;
    for(int i=0;i<N;i++){
        if(prize[s[i]=1])continue;
        prize[s[i]]=1;
    }

    cout << prize.size << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: expected ',' or ';' before 'for'
    9 |     for(int i=0;i<N;i++){
      |     ^~~
a.cc:9:17: error: 'i' was not declared in this scope
    9 |     for(int i=0;i<N;i++){
      |                 ^
a.cc:19:10: error: invalid use of non-static member function 'std::map<_Key, _Tp, _Compare, _Alloc>::size_type std::map<_Key, _Tp, _Compare, _Alloc>::size() const [with _Key = std::__cxx11::basic_string<char>; _Tp = int; _Compare = std::less<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >; size_type = long unsigned int]'
   19 |     cout << prize.size << endl;
      |     ~~~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/14/map:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:152,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_map.h:482:7: note: declared here
  482 |       size() const _GLIBCXX_NOEXCEPT
      |       ^~~~
Language: C++

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

int main() {
 int n;
  cin>>n;
 int k=2n;
  vector<string>s(n);
  for(int i=0;i<n;i++){
    cin>>s[i];
  }
  for(int i=0;i<n;i++){
    for(int j=0;j<n;j++){
      if(s[i]==s[j]){
        k-=1;
      }
    }
  }
  cout<<k<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: unable to find numeric literal operator 'operator""n'
    7 |  int k=2n;
      |        ^~
Language: C++

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

using namespace std;

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

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

#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<stdio.h>
int main()
{
    int n,i,k,g=0,d,j=0;
    scanf("%d",&n);
    char S[n][10];
    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)
           {
               break;
           }
        }
        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 <iostream>
#include <set>
#define endl '\n'

using namespace std;

int main() {
  set<string> s;

  int n = 0;
  cin >> n;

  string temp;

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

  cout << s.size();

  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>
using namespace std;
int main(){
int N;
  cin>>N;
  
  vecotr<string> A(N);
  for(int i=0;i<N;i++){
 cin>>A[i];
  }
  int a=0;
  for(int i=0;i<N;i++){
    for(int j=1;j<N;j++){
    string S=A[i];
      if(A[i]!=A[j]&&1<=S.size()&&10>=S.size()){
      a++;
       }
    
    }
    
  }
  cout<<a<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'vecotr' was not declared in this scope
    7 |   vecotr<string> A(N);
      |   ^~~~~~
a.cc:7:16: error: expected primary-expression before '>' token
    7 |   vecotr<string> A(N);
      |                ^
a.cc:7:18: error: 'A' was not declared in this scope
    7 |   vecotr<string> A(N);
      |                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  int a;
  int s = 0;
  string str;
  string mojiretu[20000];
  cin >> a;

  for( int i = 0; i < a; i++){

    cin >> str;
    mojiretu[i] == str;
  }

  for(int i = 0; i < a;i++){

    string str2 = str[i];

    for(int d = 0; d < 0;d++){
      
      if(d != i){
      string str3 = str[d];

      if(str2 == str3 ){
        s++
      } 
      }
    }
  }

a = a - s;
cout << a << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: warning: ignoring return value of 'bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
   14 |     mojiretu[i] == str;
      |     ~~~~~~~~~~~~^~~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3755:5: note: declared here
 3755 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
a.cc:19:24: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   19 |     string str2 = str[i];
      |                        ^
a.cc:24:26: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   24 |       string str3 = str[d];
      |                          ^
a.cc:27:12: error: expected ';' before '}' token
   27 |         s++
      |            ^
      |            ;
   28 |       }
      |       ~
Language: C

#include <bits/stdc++.h>
#define FOR(i, m, n) for (ll i = m; i < (n); i++)
#define RFOR(i, m, n) for (ll i = (m - 1); i >= 0; i--)
#define REP(i, n) FOR(i, 0, n)
#define RREP(i, n) RFOR(i, n, 0)
#define ALL(v) v.begin(), v.end()
#define RALL(v) v.rbegin(), v.rend()
//#define print(ele) cout << (ele) << "\n"
#define print10(ele) cout << fixed << setprecision(10) << (ele) << "\n"

using namespace std;
typedef long long ll;
typedef vector<int> ivec;
typedef vector<string> svec;
typedef vector<ll> lvec;

const int mod = 1e9 + 7;
const ll INF = 1000000000000000000LL;

void print() { cout << endl; }

template <class Head, class... Tail>
void print(Head&& head, Tail&&... tail) {
  cout << head;
  if (sizeof...(tail) != 0) cout << " ";
  print(forward<Tail>(tail)...);
}

int main() {
  int n;
  cin >> n;
  set<string> st;
  REP(i, n) {
    string s;
    cin >> s;
    st.insert(s);
  }
  print(st.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;
  cin>>n;
  vector<string>s(n);
  for(int i=0;i<n;i++){
    cin>>s[i];
  }
  int k=2n;
  for(int i=0;i<n;i++){
    for(int j=0;j<n;j++){
      if(s[i]==s[j]){
        k-=1;
      }
    }
  }
  cout<<k<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: unable to find numeric literal operator 'operator""n'
   11 |   int k=2n;
      |         ^~
Language: C

#include<stdio.h>
void main()
{
  char s[20];
  int n,c,i,j;
  scanf("%d",&n);
  for(i=0;i<n;i++)
  {
    scanf("%s",s[i]);
  }
  for(i=0;i<n;i++)
  {
    for(j=n;j>i;j--)
    {
    if(s[i]==s[j])
      c++;
    }
  }
  printf("%d",c);

Compiler output:
main.c: In function 'main':
main.c:19:3: error: expected declaration or statement at end of input
   19 |   printf("%d",c);
      |   ^~~~~~
Language: C++


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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'set' was not declared in this scope
    4 |     set<string> SET;
      |     ^~~
a.cc:4:9: error: 'string' was not declared in this scope
    4 |     set<string> SET;
      |         ^~~~~~
a.cc:4:17: error: 'SET' was not declared in this scope
    4 |     set<string> SET;
      |                 ^~~
a.cc:6:11: error: expected ';' before 'str'
    6 |     string str;
      |           ^~~~
      |           ;
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >> n;
      |     ^~~
a.cc:9:16: error: 'str' was not declared in this scope; did you mean 'std'?
    9 |         cin >> str;
      |                ^~~
      |                std
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << SET.size();
      |     ^~~~
Language: C

// gacha
#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[i];
    }
    vector<string> v;
    v.push_back(s[0]);
    for(int i=1; i<s.size(); i++){
        v.push_back(s[i]);
        for(int j=0; j<v.size()-1; j++){
            if(s[i]==v[j]){
                v.pop_back();
            }
        }
    }
    cout << v.size() << endl;
    return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
int main(){
    ll n;
    cin >> n;

    map<string,ll> mp;
    vector<string> s(n);
    for(ll i=0;i<n;i++){
        cin >> s.at(i);
        mp[s.at(i)]++;
    }
    cout << mp.size() << 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<string> V(N);
    for(int i=0;i<N;i++){
        cin >> V.at(i);
    }
    sort(V.begin(),V.end());

    int ans=0;
    string x="";
    for(int i=0;i<N;i++){
        if(x!=V.at(i)){
            ans++;
            x=V.at(i);
        }
    }
    cout << ans << endl;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'strings' was not declared in this scope; did you mean 'stdin'?
    7 |   set<strings> s;
      |       ^~~~~~~
      |       stdin
a.cc:7:14: error: template argument 1 is invalid
    7 |   set<strings> s;
      |              ^
a.cc:7:14: error: template argument 2 is invalid
a.cc:7:14: error: template argument 3 is invalid
a.cc:12:7: error: request for member 'insert' in 's', which is of non-class type 'int'
   12 |     s.insert(p);
      |       ^~~~~~
a.cc:14:11: error: request for member 'size' in 's', which is of non-class type 'int'
   14 |   cout<<s.size();
      |           ^~~~
Language: C++


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

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

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

int main(){
  int N;
  cin >> N;
  
  vector<string> item(N);
  
  for(int i = 0; i < N; i++){
    string item1;
    cin >> item1;
    item.at(i) = item1;
  }
  
  int cnt = 0;
  for(int i = 0; i < N; i++){
	for (int j = 1; j < N; j++){
      if(item.at(i) == item.at(j))
        cnt++;
  }
  cout << cnt << endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^