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

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

int main() {
  int n;cin>>n;vector<string>a(n);int o=n;
  for(int i=0;i<n;i++){
    cin>>a[i];
    for(int j=0;j<i;j++){
      if(a[i]==a[j]){
        o--;
        a.erase(a.at(i));
        j--;
      }
    }
    
  }cout<<o<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: no matching function for call to 'std::vector<std::__cxx11::basic_string<char> >::erase(__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type&)'
   11 |         a.erase(a.at(i));
      |         ~~~~~~~^~~~~~~~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1536:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(const_iterator) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; iterator = std::vector<std::__cxx11::basic_string<char> >::iterator; const_iterator = std::vector<std::__cxx11::basic_string<char> >::const_iterator]'
 1536 |       erase(const_iterator __position)
      |       ^~~~~
/usr/include/c++/14/bits/stl_vector.h:1536:28: note:   no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'std::__cxx11::basic_string<char>'} to 'std::vector<std::__cxx11::basic_string<char> >::const_iterator'
 1536 |       erase(const_iterator __position)
      |             ~~~~~~~~~~~~~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1564:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(const_iterator, const_iterator) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; iterator = std::vector<std::__cxx11::basic_string<char> >::iterator; const_iterator = std::vector<std::__cxx11::basic_string<char> >::const_iterator]'
 1564 |       erase(const_iterator __first, const_iterator __last)
      |       ^~~~~
/usr/include/c++/14/bits/stl_vector.h:1564:7: note:   candidate expects 2 arguments, 1 provided
Language: C++

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

int main() {
  int n;cin>>n;vector<string>a(n);int o=n;
  for(int i=0;i<n;i++){
    cin>>a[i];
    for(int j=0;j<i;j++){
      if(a[i]==a[j]){
        o--;
        a.erase(a[i]);
        j--;
      }
    }
    
  }cout<<o<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: no matching function for call to 'std::vector<std::__cxx11::basic_string<char> >::erase(__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type&)'
   11 |         a.erase(a[i]);
      |         ~~~~~~~^~~~~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1536:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(const_iterator) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; iterator = std::vector<std::__cxx11::basic_string<char> >::iterator; const_iterator = std::vector<std::__cxx11::basic_string<char> >::const_iterator]'
 1536 |       erase(const_iterator __position)
      |       ^~~~~
/usr/include/c++/14/bits/stl_vector.h:1536:28: note:   no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'std::__cxx11::basic_string<char>'} to 'std::vector<std::__cxx11::basic_string<char> >::const_iterator'
 1536 |       erase(const_iterator __position)
      |             ~~~~~~~~~~~~~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1564:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(const_iterator, const_iterator) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; iterator = std::vector<std::__cxx11::basic_string<char> >::iterator; const_iterator = std::vector<std::__cxx11::basic_string<char> >::const_iterator]'
 1564 |       erase(const_iterator __first, const_iterator __last)
      |       ^~~~~
/usr/include/c++/14/bits/stl_vector.h:1564:7: note:   candidate expects 2 arguments, 1 provided
Language: C++

#include <bits/stdc++.h>
#include <iostream>
#include <math.h>
#define rep(I,N) for(int I=0;I<N;I++)
using ll=long long int;
using namespace std;

const int N = 200000;
int main(){
	ll n,m,k;
	cin>>n>>m>>k;
	ll a[n],b[m];
	a[0]=0;
	b[0]=0;
	for(int i=1,i<=n,i++){
		cin>>a[i];
		a[i]+=a[i-1];
	}
	for(int i=1,i<=m,i++){
		cin>>b[i];
		b[i]+=b[i-1];
	}
	for(int i=0,i<n,i++){
		if(k<a[i])continue;
		int j=m;
		for(;k>a[i]+b[j];j--)ans=max(ans,i+j);

	}
cout<<asn<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:22: error: expected ';' before '<=' token
   15 |         for(int i=1,i<=n,i++){
      |                      ^~
      |                      ;
a.cc:15:22: error: expected primary-expression before '<=' token
   15 |         for(int i=1,i<=n,i++){
      |                      ^~
a.cc:15:29: error: expected ';' before ')' token
   15 |         for(int i=1,i<=n,i++){
      |                             ^
      |                             ;
a.cc:19:22: error: expected ';' before '<=' token
   19 |         for(int i=1,i<=m,i++){
      |                      ^~
      |                      ;
a.cc:19:22: error: expected primary-expression before '<=' token
   19 |         for(int i=1,i<=m,i++){
      |                      ^~
a.cc:19:29: error: expected ';' before ')' token
   19 |         for(int i=1,i<=m,i++){
      |                             ^
      |                             ;
a.cc:23:22: error: expected ';' before '<' token
   23 |         for(int i=0,i<n,i++){
      |                      ^
      |                      ;
a.cc:23:22: error: expected primary-expression before '<' token
a.cc:23:28: error: expected ';' before ')' token
   23 |         for(int i=0,i<n,i++){
      |                            ^
      |                            ;
a.cc:26:38: error: 'ans' was not declared in this scope; did you mean 'abs'?
   26 |                 for(;k>a[i]+b[j];j--)ans=max(ans,i+j);
      |                                      ^~~
      |                                      abs
a.cc:29:7: error: 'asn' was not declared in this scope; did you mean 'asin'?
   29 | cout<<asn<<endl;
      |       ^~~
      |       asin
Language: C++

//ヘッダー
#include<bits/stdc++.h>
using namespace std;

//型定義
typedef long long ll;

//定数
const int INF=1e+9;
const int MOD=1e+9+7;

//REPマクロ
#define REP(i,n) for(ll i=0;i<(ll)(n);i++)
#define REPD(i,n) for(ll i=n-1;i>=0;i--)
#define REP2(i,a,b) for(ll i=a;i<(ll)(b);i++)
#define REPD2(i,a,b) for(ll i=a;i>(ll)(b);i--)

// 多次元 vector 生成
template<class T>
vector<T> make_vec(size_t a){
    return vector<T>(a);
}
template<class T, class... Ts>
auto make_vec(size_t a, Ts... ts){
  return vector<decltype(make_vec<T>(ts...))>(a, make_vec<T>(ts...));
}

//vectorの扱い
#define ALL(x) (x).begin(),(x).end() //sortなどの引数省略
#define SIZE(x) ((ll)(x).size()) //size
#define MAX(x) *max_element(ALL(x)) //最大値
#define MIN(x) *min_element(ALL(x)) //最小値

int main(){
    ll N;
    cin>>N;
    string S;
    map<string,ll> S;
    REP(i,N){
        cin>>S;
        mp[S]=1;
    }
    cout<<mp.size()<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:38:20: error: conflicting declaration 'std::map<std::__cxx11::basic_string<char>, long long int> S'
   38 |     map<string,ll> S;
      |                    ^
a.cc:37:12: note: previous declaration as 'std::string S'
   37 |     string S;
      |            ^
a.cc:41:9: error: 'mp' was not declared in this scope
   41 |         mp[S]=1;
      |         ^~
a.cc:43:11: error: 'mp' was not declared in this scope
   43 |     cout<<mp.size()<<endl;
      |           ^~
Language: C++

#include <bits/stdc++.h>

using namespace std;
using ll = long long;

#define rep(i, n) for (int i = 0; i < (int)(n); ++i)

int main() {
  int n;
  cin >> s;
  map<string, int> g;
  rep(i, n) {
    string s;
    cin >> s;
    g[s] = 1;
  }
  int ans = g.size();
  cout << ans << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: 's' was not declared in this scope
   10 |   cin >> s;
      |          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N;cin>>N;
  int ans=0;
  string S[];
  for(int i=0;i<N;i++){
    cin>>S[i];
    for(int j=0;j<i;j++)
      if(S[i]==S[j])ans+=1;
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: array size missing in 'S'
    6 |   string S[];
      |          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N;cin>>N;
  int ans=0;
  char S[11][];
  for(int i=0;i<N;i++){
    cin>>S[i];
    for(int j=0;j<i;j++)
      if(S[i]==S[j])ans+=1;
  }
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: declaration of 'S' as multidimensional array must have bounds for all dimensions except the first
    6 |   char S[11][];
      |        ^
a.cc:8:10: error: 'S' was not declared in this scope
    8 |     cin>>S[i];
      |          ^
Language: C++

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

int main() {
  int n,ans=0;
  cin>>n;
  pair<string,int>p;
  for(int i=0;i<n;i++){
    string s;
    cin>>s;
    p[s]++;
    if(p[s]==1){
      ans++;
    }
  }
  cout<<ans<<endl;
}


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

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

int main() {
  int n,ans=0;
  cin>>n;
  pair<string,int>p;
  for(int i=0;i<n;i++){
    string s;
    cin>>s;
    p[s].second++;
    if(p[s].second==1){
      ans++;
    }
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: no match for 'operator[]' (operand types are 'std::pair<std::__cxx11::basic_string<char>, int>' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   11 |     p[s].second++;
      |      ^
a.cc:12:9: error: no match for 'operator[]' (operand types are 'std::pair<std::__cxx11::basic_string<char>, int>' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   12 |     if(p[s].second==1){
      |         ^
Language: C++

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


int main(){
	int N;
		cin >> N;
     vector<string> S(N);
	for (int i = 0; i < N; ++i) {
		cin >> S.at(i);
	 }
	sort(S.begin(), S.end());
	erase(unique(S.begin(), S.end()), S.end());
	cout << S.size() << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'erase' was not declared in this scope
   14 |         erase(unique(S.begin(), S.end()), S.end());
      |         ^~~~~
Language: C++

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


int main(){
	int N;
		cin >> N;
     vector<string> S(N);
	for (int i = 0; i < N; ++i) {
		cin >> S.at(i);
	 }
	sort(S.begin(), S.end());
	S.erase(unique(S.begin(), S.end()), S.end());
	cout << S.size() << < endl;

}


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

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


int main(){
	int N;
		cin >> N;
     vector<string> S(N);
	for (int i = 0; i < N; ++i) {
		cin >> S.at(i);
	 }
	sort(S.begin(), S.end());
	S.erase(std::unigue(S.begin(), S.end()), S.end());
	cout << S.size() << < endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:22: error: 'unigue' is not a member of 'std'; did you mean 'unique'?
   14 |         S.erase(std::unigue(S.begin(), S.end()), S.end());
      |                      ^~~~~~
      |                      unique
a.cc:15:29: error: expected primary-expression before '<' token
   15 |         cout << S.size() << < endl;
      |                             ^
Language: C++

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


int main(){
	int N;
		cin >> N;
     vector<string> S(N);
	for (int i = 0; i < N; ++i) {
		cin >> S.at(i);
	 }
	sort(S.begin(), S.end());
	S.erase(unigue(S.begin(), S.end()), S.end());
	cout << S.size() << < endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: 'unigue' was not declared in this scope; did you mean 'unsigned'?
   14 |         S.erase(unigue(S.begin(), S.end()), S.end());
      |                 ^~~~~~
      |                 unsigned
a.cc:15:29: error: expected primary-expression before '<' token
   15 |         cout << S.size() << < endl;
      |                             ^
Language: C++

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


int main(){
	int N;
		cin >> N;
     vector<string> S(N);
	for (int i = 0; i < N; ++i) {
		cin >> S.at(i);
	 }
	sort(S.begin(), S.end());
	erase(unigue(S.begin(), S.end()), S.end());
	cout << S.size() << < endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: 'unigue' was not declared in this scope; did you mean 'unsigned'?
   14 |         erase(unigue(S.begin(), S.end()), S.end());
      |               ^~~~~~
      |               unsigned
a.cc:14:9: error: 'erase' was not declared in this scope
   14 |         erase(unigue(S.begin(), S.end()), S.end());
      |         ^~~~~
a.cc:15:29: error: expected primary-expression before '<' token
   15 |         cout << S.size() << < endl;
      |                             ^
Language: C++

#include <iostream>
#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];
	 }
	sort(S.begin(), S.end());
	erase(unigue(S.begin(), S.end()), S.end());
	cout << S.size() << < endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: request for member 'begin' in 'S', which is of non-class type 'std::string [N]' {aka 'std::__cxx11::basic_string<char> [N]'}
   13 |         sort(S.begin(), S.end());
      |                ^~~~~
a.cc:13:27: error: request for member 'end' in 'S', which is of non-class type 'std::string [N]' {aka 'std::__cxx11::basic_string<char> [N]'}
   13 |         sort(S.begin(), S.end());
      |                           ^~~
a.cc:14:24: error: request for member 'begin' in 'S', which is of non-class type 'std::string [N]' {aka 'std::__cxx11::basic_string<char> [N]'}
   14 |         erase(unigue(S.begin(), S.end()), S.end());
      |                        ^~~~~
a.cc:14:35: error: request for member 'end' in 'S', which is of non-class type 'std::string [N]' {aka 'std::__cxx11::basic_string<char> [N]'}
   14 |         erase(unigue(S.begin(), S.end()), S.end());
      |                                   ^~~
a.cc:14:15: error: 'unigue' was not declared in this scope; did you mean 'unsigned'?
   14 |         erase(unigue(S.begin(), S.end()), S.end());
      |               ^~~~~~
      |               unsigned
a.cc:14:45: error: request for member 'end' in 'S', which is of non-class type 'std::string [N]' {aka 'std::__cxx11::basic_string<char> [N]'}
   14 |         erase(unigue(S.begin(), S.end()), S.end());
      |                                             ^~~
a.cc:14:9: error: 'erase' was not declared in this scope
   14 |         erase(unigue(S.begin(), S.end()), S.end());
      |         ^~~~~
a.cc:15:19: error: request for member 'size' in 'S', which is of non-class type 'std::string [N]' {aka 'std::__cxx11::basic_string<char> [N]'}
   15 |         cout << S.size() << < endl;
      |                   ^~~~
a.cc:15:29: error: expected primary-expression before '<' token
   15 |         cout << S.size() << < endl;
      |                             ^
Language: C++

#include <iostream>
#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];
	 }
	sort(S.begin(), S.end());
	erase(unigue(S.begin(), S.end()), S.end());
	cout << S.size() << < endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:26: error: expected unqualified-id before '[' token
   11 |                 cin >> S.[i];
      |                          ^
a.cc:13:16: error: request for member 'begin' in 'S', which is of non-class type 'std::string [N]' {aka 'std::__cxx11::basic_string<char> [N]'}
   13 |         sort(S.begin(), S.end());
      |                ^~~~~
a.cc:13:27: error: request for member 'end' in 'S', which is of non-class type 'std::string [N]' {aka 'std::__cxx11::basic_string<char> [N]'}
   13 |         sort(S.begin(), S.end());
      |                           ^~~
a.cc:14:24: error: request for member 'begin' in 'S', which is of non-class type 'std::string [N]' {aka 'std::__cxx11::basic_string<char> [N]'}
   14 |         erase(unigue(S.begin(), S.end()), S.end());
      |                        ^~~~~
a.cc:14:35: error: request for member 'end' in 'S', which is of non-class type 'std::string [N]' {aka 'std::__cxx11::basic_string<char> [N]'}
   14 |         erase(unigue(S.begin(), S.end()), S.end());
      |                                   ^~~
a.cc:14:15: error: 'unigue' was not declared in this scope; did you mean 'unsigned'?
   14 |         erase(unigue(S.begin(), S.end()), S.end());
      |               ^~~~~~
      |               unsigned
a.cc:14:45: error: request for member 'end' in 'S', which is of non-class type 'std::string [N]' {aka 'std::__cxx11::basic_string<char> [N]'}
   14 |         erase(unigue(S.begin(), S.end()), S.end());
      |                                             ^~~
a.cc:14:9: error: 'erase' was not declared in this scope
   14 |         erase(unigue(S.begin(), S.end()), S.end());
      |         ^~~~~
a.cc:15:19: error: request for member 'size' in 'S', which is of non-class type 'std::string [N]' {aka 'std::__cxx11::basic_string<char> [N]'}
   15 |         cout << S.size() << < endl;
      |                   ^~~~
a.cc:15:29: error: expected primary-expression before '<' token
   15 |         cout << S.size() << < endl;
      |                             ^
Language: C++

#include <iostream>
#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.at(i);
	 }
	sort(S.begin(), S.end());
	erase(unigue(S.begin(), S.end()), S.end());
	cout << S.size() << < endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:26: error: request for member 'at' in 'S', which is of non-class type 'std::string [N]' {aka 'std::__cxx11::basic_string<char> [N]'}
   11 |                 cin >> S.at(i);
      |                          ^~
a.cc:13:16: error: request for member 'begin' in 'S', which is of non-class type 'std::string [N]' {aka 'std::__cxx11::basic_string<char> [N]'}
   13 |         sort(S.begin(), S.end());
      |                ^~~~~
a.cc:13:27: error: request for member 'end' in 'S', which is of non-class type 'std::string [N]' {aka 'std::__cxx11::basic_string<char> [N]'}
   13 |         sort(S.begin(), S.end());
      |                           ^~~
a.cc:14:24: error: request for member 'begin' in 'S', which is of non-class type 'std::string [N]' {aka 'std::__cxx11::basic_string<char> [N]'}
   14 |         erase(unigue(S.begin(), S.end()), S.end());
      |                        ^~~~~
a.cc:14:35: error: request for member 'end' in 'S', which is of non-class type 'std::string [N]' {aka 'std::__cxx11::basic_string<char> [N]'}
   14 |         erase(unigue(S.begin(), S.end()), S.end());
      |                                   ^~~
a.cc:14:15: error: 'unigue' was not declared in this scope; did you mean 'unsigned'?
   14 |         erase(unigue(S.begin(), S.end()), S.end());
      |               ^~~~~~
      |               unsigned
a.cc:14:45: error: request for member 'end' in 'S', which is of non-class type 'std::string [N]' {aka 'std::__cxx11::basic_string<char> [N]'}
   14 |         erase(unigue(S.begin(), S.end()), S.end());
      |                                             ^~~
a.cc:14:9: error: 'erase' was not declared in this scope
   14 |         erase(unigue(S.begin(), S.end()), S.end());
      |         ^~~~~
a.cc:15:19: error: request for member 'size' in 'S', which is of non-class type 'std::string [N]' {aka 'std::__cxx11::basic_string<char> [N]'}
   15 |         cout << S.size() << < endl;
      |                   ^~~~
a.cc:15:29: error: expected primary-expression before '<' token
   15 |         cout << S.size() << < endl;
      |                             ^
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
 
using namespace std;
 
int main()
{
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  
  int N;
  cin >> N;
  
  vector<string> temp;
  temp.resize(N);
  
  for( auto i = 0; i < N; ++i)
    getline(cin, temp[0]);
  
  std::unique(temp.begin(), temp.end());
  
  cout << temp.size() << '\n';
  
  
  cout << flush;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: 'vector' was not declared in this scope
   15 |   vector<string> temp;
      |   ^~~~~~
a.cc:4:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    3 | #include <algorithm>
  +++ |+#include <vector>
    4 | 
a.cc:15:16: error: expected primary-expression before '>' token
   15 |   vector<string> temp;
      |                ^
a.cc:15:18: error: 'temp' was not declared in this scope; did you mean 'tm'?
   15 |   vector<string> temp;
      |                  ^~~~
      |                  tm
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
 
using namespace std;
 
int main()
{
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  
  int N;
  cin >> N;
  
  vector<string> strs;
  strs.resize(N);
  
  for( auto i = 0; i < N; ++i)
    getline(cin, strs[0]);
  
  std::unique(strs.begin(), strs.end());
  
  cout << strs.size() << '\n';
  
  
  cout << flush;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: 'vector' was not declared in this scope
   15 |   vector<string> strs;
      |   ^~~~~~
a.cc:4:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    3 | #include <algorithm>
  +++ |+#include <vector>
    4 | 
a.cc:15:16: error: expected primary-expression before '>' token
   15 |   vector<string> strs;
      |                ^
a.cc:15:18: error: 'strs' was not declared in this scope
   15 |   vector<string> strs;
      |                  ^~~~
Language: C++

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

using namespace std;

int main()
{
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  
  int N;
  cin >> N;
  
  vector<string> strs(N);
  
  for( auto i = 0; i < N; ++i)
    getline(cin, strs[0]);
  
  std::unique(strs.begin(), strs.end());
  
  cout << strs.size() << '\n';
  
  
  cout << flush;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: 'vector' was not declared in this scope
   15 |   vector<string> strs(N);
      |   ^~~~~~
a.cc:4:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    3 | #include <algorithm>
  +++ |+#include <vector>
    4 | 
a.cc:15:16: error: expected primary-expression before '>' token
   15 |   vector<string> strs(N);
      |                ^
a.cc:15:18: error: 'strs' was not declared in this scope
   15 |   vector<string> strs(N);
      |                  ^~~~
Language: C++

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

int main() {
	set<string> gacha;
	int count = 1;
	int N;
	cin >> N;
	while (count <= N) {
		string s;
		cin >> s;
		gacha.insert(s);
		count++;
	}
	cout << gacha.size();
	return 0;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'll' was not declared in this scope
    5 |         ll n;
      |         ^~
a.cc:6:16: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |         cin >> n;
      |                ^
      |                yn
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:15:18: error: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types]
   15 |     qsort(s,n,11,strcmp);
      |                  ^~~~~~
      |                  |
      |                  int (*)(const char *, const char *)
In file included from main.c:3:
/usr/include/stdlib.h:971:34: note: expected '__compar_fn_t' {aka 'int (*)(const void *, const void *)'} but argument is of type 'int (*)(const char *, const char *)'
  971 |                    __compar_fn_t __compar) __nonnull ((1, 4));
      |                    ~~~~~~~~~~~~~~^~~~~~~~
main.c:22:8: error: expected ';' before ':' token
   22 |   cnt++:
      |        ^
      |        ;
Language: C++

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

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

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

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

int main(void){
    int n,i,cnt=0;
    scanf("%d",&n);

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

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

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

int main(void){
    int n,i,cnt=0;
    scanf("%d",&n);

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

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

#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main (void)
{
    int n,i,cnt=0;
    scanf("%d",&n);
    char s[n][11];
    
    for(i=0;i<n;i++){
        scanf("%s",s[i]);
    }
    qsort(s,n,11,strcmp);
    
    for(i=0;i<n-1;i++){
        if(strcmp(s[i],s[i+1])!=0)
            cnt++;
    }
    
    printf("%d",cnt+1);
  return 0;
}


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

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

int main()
{
  int n, i;
  int cnt = 0;
  char S[200000][10];
  char tmp[10];
  
  scanf("%d", &n);
  
  for(i = 0; i < n; i++)
  {
    scanf("%s", S[i]);
    if(i > 1)
    {
      if(strcmp(S[i], S[i - 1]) < 0)
      {
        tmp = S[i];
        S[i] = S[i - 1];
        S[i - 1] = tmp;
      }
    }
    ++cnt;
  }
  for(i = 0; i < n; i++)
  {
    if(strcmp(S[i], S[i - 1]) == 0)
    {
      --cnt;
    }
  }
  
  printf("%d", cnt);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:13: error: assignment to expression with array type
   20 |         tmp = S[i];
      |             ^
main.c:21:14: error: assignment to expression with array type
   21 |         S[i] = S[i - 1];
      |              ^
main.c:22:18: error: assignment to expression with array type
   22 |         S[i - 1] = tmp;
      |                  ^
Language: C

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

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:13: error: assignment to expression with array type
   20 |         tmp = S[i];
      |             ^
main.c:21:14: error: assignment to expression with array type
   21 |         S[i] = S[i - 1];
      |              ^
main.c:22:18: error: assignment to expression with array type
   22 |         S[i - 1] = tmp;
      |                  ^
main.c:29:23: error: 'j' undeclared (first use in this function)
   29 |     if(strcmp(S[i], S[j]) == 0)
      |                       ^
main.c:29:23: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: no match for 'operator[]' (operand types are 'std::set<std::__cxx11::basic_string<char> >' and 'int')
   14 |         cin >> gacha[i];
      |                     ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'set' was not declared in this scope
    7 |   set<string> gacha;
      |   ^~~
a.cc:7:3: note: suggested alternatives:
In file included from /usr/include/c++/14/set:63,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_set.h:96:11: note:   'std::set'
   96 |     class set
      |           ^~~
/usr/include/c++/14/set:87:13: note:   'std::pmr::set'
   87 |       using set = std::set<_Key, _Cmp, polymorphic_allocator<_Key>>;
      |             ^~~
a.cc:7:7: error: 'string' was not declared in this scope
    7 |   set<string> gacha;
      |       ^~~~~~
a.cc:7:7: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:7:15: error: 'gacha' was not declared in this scope
    7 |   set<string> gacha;
      |               ^~~~~
a.cc:9:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |   cin >> N;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:15:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |   cout << gacha.size() << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:15:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |   cout << gacha.size() << endl;
      |                           ^~~~
      |                           std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
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++)
using Graph = vector<vector<int>>;
using ll = long long;


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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:7: error: 'class std::vector<std::__cxx11::basic_string<char> >' has no member named 'sort'
   17 |     s.sort(s.begin(),s.end());
      |       ^~~~
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++)
using Graph = vector<vector<int>>;
using ll = long long;


int main() {
    ll n;
    cin>>n;
    vector<string> s(n);
    vector<int> d(1,1)
    ll ans=0;
    rep(i,n){
        cin>>s[i];
        d.push_back(1);
        rep(j,i){
            if(s[i]==s[j]){
                d.pop_back();
            }
        }
    }
    cout<<d.size()-1<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: expected ',' or ';' before 'll'
   14 |     ll ans=0;
      |     ^~
Language: C++

/******************************************************************************
 
рассвет. 
 
*******************************************************************************/
#include <bits/stdc++.h>
typedef long long int lli;
typedef unsigned long long int ulli;
typedef long double ld;
#define rapgame ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define pb push_back
#define eb emplace_back
#define vi vector <int>
#define vlli vector <lli>
#define vulli vector <ulli>
#define vchar vector <char>
#define vstr vector <string>
#define vb vector <bool>
#define fst first
#define sec second
#define srt(a) sort(a.begin(),a.end())
#define rev(a) reverse(a.begin(),a.end())
#define vpii vector <pair <int,int> >
#define pii pair <int,int> 
#define vplli vector <pair <lli,lli> >
#define vpulli vector <pair <ulli,ulli> >
#define vvi vector <vector <int> >
#define vvlli vector <vector <lli> >
#define vvpii vector <vector <pair <int,int>> >
#define fr(i,n) for (int i = 0; i < (n); ++i)
#define frbig(i,n) for (lli i = 0; i < (n); ++i)
#define fra(i,a,n) for (lli i = a; i < (n); ++i)
#define run(c,s) for(auto c:s) 
#define read(n) int n; cin >> n;
#define readchar(n) char n; cin >> n;
#define readstr(n) string n; cin >> n;
#define readarr(a,n) fr(i,n) cin >> a[i];
#define read2(x,y) int x,y; cin >> x >> y;
#define read2ll(x,y) long long int x,y; cin >> x >> y;
#define readll(n) lli n; cin >> n;
#define watch(x) cout << (#x) << " is " << (x) << endl
#define print_array(x) fr(i,x.size()) cout << x[i] << " ";
using namespace std;
 
const lli MOD=1e9+7;
const lli MAXN=1e6+1;
const ld PI=acos(-1);
 
int main(){
    rapgame
    read(n);
    int ans=0;
    set <string> k;
    fr(i,n){
        string s;
        cin >> s;
        if(k.find(s)==k.end){
            ans++;
            k.insert(s);
        }
    }
    cout << ans;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:57:21: error: invalid use of non-static member function 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::end() const [with _Key = std::__cxx11::basic_string<char>; _Compare = std::less<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; iterator = std::_Rb_tree<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::_Identity<std::__cxx11::basic_string<char> >, std::less<std::__cxx11::basic_string<char> >, std::allocator<std::__cxx11::basic_string<char> > >::const_iterator]'
   57 |         if(k.find(s)==k.end){
      |            ~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/14/set:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:158,
                 from a.cc:6:
/usr/include/c++/14/bits/stl_set.h:355:7: note: declared here
  355 |       end() const _GLIBCXX_NOEXCEPT
      |       ^~~
Language: Java

import java.util.HashSet;
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int times = sc.nextInt();  //くじ引きを行った回数
		//重複を許さないHashSetを宣言
      	//くじの結果を入れる
		HashSet<String> kuji = new HashSet<String>();

		//くじを行う回数分、結果をkujiに入力する
		for(int i=0 ; i<times ; i++) {
			kuji.add(sc.next());
		}
		System.out.print(result.size());
		sc.close();
	}
}


Compiler output:
Main.java:15: error: cannot find symbol
		System.out.print(result.size());
		                 ^
  symbol:   variable result
  location: class Main
1 error
Language: C

#include <iostream>
#include <vector>
#include <math.h>
#include <algorithm>
#include <string>
#include <map>
#include <iomanip>
#define rep(i,N) for(int i=0; i<N;i++)
using namespace std;

int main(){
    int N;
    cin >>N;
    string word;
    map<string, int> mp;
    rep(i,N){
        cin>>word;
        mp[word]++;
    }
    int count=0;
    for(auto itr = mp.begin(); itr != mp.end(); ++itr) {
        count ++;
    }
    cout <<count<<endl;


    return 0;
}



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

#include <iostream>
#include <cstring>
#incldue <set>
#include <queue>
#include <vector>
#include <string>
#include <map>

using namespace std;


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


Compiler output:
a.cc:3:2: error: invalid preprocessing directive #incldue; did you mean #include?
    3 | #incldue <set>
      |  ^~~~~~~
      |  include
Language: C++

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

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

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

#include<bits/stdc++.h>
using namespace std;
int N,i,n,b,c,j;
int main() { 
	cin>>N;
	c=N+1;
	string a;
	for ( i=0;i<N;i++ ) cin>>a[i];
	for ( i=1,n=1;i<N;i++ ) {
	for (  j=0,b=0;j<i;j++ ) {
		if ( a[i]==a[j] ) {
			b=1;
		} 
	}	
		if ( b==0 ) n++; 
	}
	cout<<n;
}


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 N,i,n,b,c;
int main() { 
	cin>>N;
	c=N+1;
	string a;
	for ( i=0;i<N;i++ ) cin>>a[i];
	for ( i=1,n=1;i<N;i++ ) {
	for ( int j=0,b=0;j<i;j++ ) {
		if ( a[i]==a[j] ) {
			b=1;
		} 
	}	
		if ( b==0 ) n++; 
	}
	printf("%d\n",n);
}

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 N,i,n,b,c;
int main() { 
	cin>>N;
	c=N+1;
	string a;
	for ( i=0;i<N;i++ ) cin>>a[i];
	for ( i=1,n=1;i<N;i++ ) {
	for ( int j=0,b=0;j<i;j++ ) {
		if ( a[i]==a[j] ) {
			b=1;
		} 
	}	
		if ( b==0 ) n++; 
	}
	printf("%d\n",n);
}


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

import java.util.HashSet;
import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        
        int N = scanner.nextInt();
        String s;
        String[] array = new String[N];
        HashSet<String> list = new HashSet<String>();

        for(int i = 0; i <= N; i++){
            s = scanner.next();
            list.add(s);
        }

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

Compiler output:
Main.java:17: error: cannot find symbol
        System.out.println(list.size);
                               ^
  symbol:   variable size
  location: variable list of type HashSet<String>
1 error
Language: Java

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        
        int N = scanner.nextInt();
        String s;
        String[] array = new String[N];
        HashSet<String> list = new HashSet<String>();

        for(int i = 0; i <= N; i++){
            s = scanner.next();
            list.add(s);
        }

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

Compiler output:
Main.java:9: error: cannot find symbol
        HashSet<String> list = new HashSet<String>();
        ^
  symbol:   class HashSet
  location: class Main
Main.java:9: error: cannot find symbol
        HashSet<String> list = new HashSet<String>();
                                   ^
  symbol:   class HashSet
  location: class Main
2 errors
Language: Java

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        
        int N = scanner.nextInt();
        String s;
        String[] array;
        array[] = new String[N];
        int count = 0; 

        for(int i = 0; i <= N; i++){
            s = scanner.next();
            array[i] = s;
            count += 1;
            for(int o = 0; o < array.length; o++){
                if(array[i] == s){
                    count -= 1;
                }
            }
        }

        System.out.println(count);
    }
}

Compiler output:
Main.java:9: error: not a statement
        array[] = new String[N];
             ^
Main.java:9: error: ';' expected
        array[] = new String[N];
               ^
Main.java:9: error: not a statement
        array[] = new String[N];
                  ^
3 errors
Language: Java

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        
        int N = scanner.nextInt();
        String s;
        String[] array;
        array[] = new String[N];
        int count = 0; 

        for(int i = 0; i <= N; i++){
            s = scanner.next();
            array[i] = s;
            count += 1;
            for(int o = 0; o <= array.length; o++){
                if(array[i] == s){
                    count -= 1;
                }
            }
        }

        System.out.println(count);
    }
}

Compiler output:
Main.java:9: error: not a statement
        array[] = new String[N];
             ^
Main.java:9: error: ';' expected
        array[] = new String[N];
               ^
Main.java:9: error: not a statement
        array[] = new String[N];
                  ^
3 errors
Language: C++

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


int main(){
  int N; cin >> N;
  vector<string> S(N);
  int ans = 0;
  bool ok = true;
  rep(i,N){
    cin >> S[i];
    rep(j,i){
      if(S[j] == S[i]){
        ok = false;
        break;
    }
    if(ok == true) ans++;
  }
  cout << ans << endl;

}




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