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

#include <bits/stdc++.h>

using namespace std;

int main(){
    int n;

    cin >> n;
    vector<string> str;

    for(int i= 0;i<n;i++){
        string s;
        cin >> s;
        auto itr = find(str.begin(),str.end(),s)
        if(itr != str.end()){
            str.emplace_back(s);
        }
    } 
    
    cout << str.size() << endl;
    return 0;  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: expected ',' or ';' before 'if'
   15 |         if(itr != str.end()){
      |         ^~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
    int n;

    cin >> n;

    vector<string> str(n);

    for(auto& s:str){
        cin >> s;
    }

    sort(str.begin(),str.end());

    vector<string> str_;

    str_.emplace_back(str[0]);

    for(auto& i:str){
        auto itr = find(str_.begin(),str_end(),i);
        if(itr == str_.end())
            str_.emplace_back(i);
    }

    cout << str_.size() << endl;
    return 0;  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:38: error: 'str_end' was not declared in this scope; did you mean 'strlen'?
   23 |         auto itr = find(str_.begin(),str_end(),i);
      |                                      ^~~~~~~
      |                                      strlen
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
    int n;

    cin >> n;

    vector<string> str(n);

    for(auto& s:str){
        cin >> s;
    }

    sort(str.beign(),str.end());

    vector<string> str_;

    str_.emplace_back(str[0]);

    for(auto& i:str){
        aut itr = find(str_.begin(),str_end(),i);
        if(itr == v.end())
            str_.emplace_back(i);
    }

    cout << str_.size() << endl;
    return 0;  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:14: error: 'class std::vector<std::__cxx11::basic_string<char> >' has no member named 'beign'; did you mean 'begin'?
   16 |     sort(str.beign(),str.end());
      |              ^~~~~
      |              begin
a.cc:23:9: error: 'aut' was not declared in this scope; did you mean 'auto'?
   23 |         aut itr = find(str_.begin(),str_end(),i);
      |         ^~~
      |         auto
a.cc:24:12: error: 'itr' was not declared in this scope; did you mean 'str'?
   24 |         if(itr == v.end())
      |            ^~~
      |            str
a.cc:24:19: error: 'v' was not declared in this scope
   24 |         if(itr == v.end())
      |                   ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;
 
int main() {
　　int n;
   cin >> n;
   set<string> st;
  
  rep(i,n){
    string s;
    cin >> s;
    st.insert(s); 
  }
  cout << st.size << endl;
}

Compiler output:
a.cc:8:1: error: extended character 　 is not valid in an identifier
    8 | 　　int n;
      | ^
a.cc:8:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:8:1: error: '\U00003000\U00003000int' was not declared in this scope
    8 | 　　int n;
      | ^~~~~~~
a.cc:9:11: error: 'n' was not declared in this scope; did you mean 'yn'?
    9 |    cin >> n;
      |           ^
      |           yn
a.cc:17:8: 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]'
   17 |   cout << st.size << endl;
      |   ~~~~~^~~~~~~~~~
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

read;sort -u|wc -l


Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | read;sort -u|wc -l
      | ^~~~
main.c:1:1: error: type defaults to 'int' in declaration of 'read' [-Wimplicit-int]
main.c:1:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
    1 | read;sort -u|wc -l
      |           ^
Language: C++

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

int main(){
    int n;

    cin >> n;

    vector<string> s(n);

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

    sort(s.begin(),s.end());
    
    vector<string> s1;
    s1.push_back(s[0]);

    for(auto& e:s){
        for(auto& a:s1){
            if(e != a)
                s1.push_back(e);
        }
    }

    cout << s1.size() << endl;
    return 0;
}

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

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:17:21: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   17 |   pair<string,int> p();
      |                     ^~
a.cc:18:13: error: expected unqualified-id before ':' token
   18 |   for(string:mp){
      |             ^
a.cc:19:10: error: request for member 'second' in 'p', which is of non-class type 'std::pair<std::__cxx11::basic_string<char>, int>()'
   19 |     if(p.second==1) mx++;
      |          ^~~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:17:21: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   17 |   pair<string,int> p();
      |                     ^~
a.cc:18:8: error: found ':' in nested-name-specifier, expected '::'
   18 |   for(p:mp){
      |        ^
      |        ::
a.cc:18:7: error: 'p' is not a class, namespace, or enumeration
   18 |   for(p:mp){
      |       ^
a.cc:22:1: error: expected primary-expression before '}' token
   22 | }
      | ^
a.cc:21:18: error: expected ')' before '}' token
   21 |   cout<<mx<<endl;
      |                  ^
      |                  )
   22 | }
      | ~                 
a.cc:18:6: note: to match this '('
   18 |   for(p:mp){
      |      ^
a.cc:22:1: error: expected primary-expression before '}' token
   22 | }
      | ^
Language: C++

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

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:18:21: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   18 |   pair<string,int> p();
      |                     ^~
a.cc:19:8: error: found ':' in nested-name-specifier, expected '::'
   19 |   for(p:mp){
      |        ^
      |        ::
a.cc:19:7: error: 'p' is not a class, namespace, or enumeration
   19 |   for(p:mp){
      |       ^
a.cc:23:1: error: expected primary-expression before '}' token
   23 | }
      | ^
a.cc:22:18: error: expected ')' before '}' token
   22 |   cout<<mx<<endl;
      |                  ^
      |                  )
   23 | }
      | ~                 
a.cc:19:6: note: to match this '('
   19 |   for(p:mp){
      |      ^
a.cc:23:1: error: expected primary-expression before '}' token
   23 | }
      | ^
Language: C++

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

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:18:21: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   18 |   pair<string,int> p();
      |                     ^~
a.cc:19:7: error: 'p' is not a class, namespace, or enumeration
   19 |   for(p::mp){
      |       ^
a.cc:23:1: error: expected primary-expression before '}' token
   23 | }
      | ^
a.cc:22:18: error: expected ')' before '}' token
   22 |   cout<<mx<<endl;
      |                  ^
      |                  )
   23 | }
      | ~                 
a.cc:19:6: note: to match this '('
   19 |   for(p::mp){
      |      ^
a.cc:23:1: error: expected primary-expression before '}' token
   23 | }
      | ^
Language: C++

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

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:18:21: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   18 |   pair<string,int> p();
      |                     ^~
a.cc:19:8: error: found ':' in nested-name-specifier, expected '::'
   19 |   for(p:mp){
      |        ^
      |        ::
a.cc:19:7: error: 'p' is not a class, namespace, or enumeration
   19 |   for(p:mp){
      |       ^
a.cc:23:3: error: expected primary-expression before 'return'
   23 |   return 0;
      |   ^~~~~~
a.cc:22:18: error: expected ')' before 'return'
   22 |   cout<<mx<<endl;
      |                  ^
      |                  )
   23 |   return 0;
      |   ~~~~~~          
a.cc:19:6: note: to match this '('
   19 |   for(p:mp){
      |      ^
Language: C

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

using namespace std;

int main(){
  int n;
  cin>>n;
  string s;
  map<string,int>mp;
  for(int i=0;i<n;i++){   
    cin>>s;
    mp[s]++;
  }
  int mx=0;
  pair<string,int> p();
  for(p:mp){
    if(p.second==1)mx++;
  }
  cout<<mx<<end;
  return 0;
}
    
  
  
  
  


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

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

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

#include<bits/stdc++.h>

using namespace std;

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


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(){
 unordered_map<string,int> mp;
  int n;
  cin >> n;
  for(int i = 0; i<n;i++){
    string st;
    cin >> st;
    mp[st] = 1;
  }
  cout << st.size() << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: 'st' was not declared in this scope; did you mean 'std'?
   13 |   cout << st.size() << endl;
      |           ^~
      |           std
Language: C

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

int n;
string s;
set<string> NoDup_s;

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

int main()
{
  cin >> n;
  solve();
  cout << NoDup_s.size() << endl;
}

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

#include<iostream>
#include<string>
using namespace std;
int main(){
   int N;
   set<string> st;
  for(int i=0;i<N;i++){
     st.insert(i);
  }
cout<<st.size()<<endl;
}

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

#include <bits/stdc++.h>
using namespace std;
using lli=long long int;
using vi=vector<int>;  using vs=vector<string>; using gi=greater<int>;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define soao(c) sort((c).begin(),(c).end()) //昇順
#define sodo(c) sort((c).begin(),(c).end(),gi()) //降順
#define rev(c) reverse((c).begin(), (c).end())


int main(){
    int n; cin>>n;
    set<string> S;
    
    rep(i,n){
        string a; cin>>a;
        S.insert(a);
    }

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

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

#include <iostream>
#include <list>
using namespace std;
 
int main(){
  int N;
  int count=0;
  string s;
  list<string> cont;
  cin >> N;
  for(int i=0; i<N; i++) {
    cin >> s;
    for(auto itr=cont.begin(); 
        itr !=cont.end();
        itr++){
      if (itr->c_str()==s.c_str()){
        break;
      } else if (itr == cont.end()){
        cont.append(s);
        count++;
      }
    }
  }
  cout << count << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:14: error: 'class std::__cxx11::list<std::__cxx11::basic_string<char> >' has no member named 'append'
   19 |         cont.append(s);
      |              ^~~~~~
Language: C++

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

int main(){
    int n;
    cin >> n;
    long long nagasa,trans;
    //int array[n];
    vector<long long> v;
    int ans = 0;
    string s;
    for (int i = 0; i < n; i++){
        cin >> s;
        nagasa = s.length();
        trans = 0;
        for (int j = nagasa; j > 0; j--){
            trans += pow(27,(j-1)*((s[nagasa-j]-'a')+1);
        }
            auto itr = find(v.begin(),v.end(),trans);
        if(itr == v.end()){
            v.push_back(trans);
            ans += 1;
        }

    }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:56: error: expected ')' before ';' token
   17 |             trans += pow(27,(j-1)*((s[nagasa-j]-'a')+1);
      |                         ~                              ^
      |                                                        )
Language: C

#include <bits/stdc++.h>
using namespace std;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

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

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

#include<iostream>
#include<cmath>
#include<algorithm>
#include<vector>
#include<functional>
#include<string>
#include<iomanip>
#include<map>
#include<utility>
#include<string>
#include<unordered_map>
#include<queue>

template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }

using namespace std;

typedef long long ll;
typedef pair<int, int> P;
int gcd(int a, int b){return b ? gcd(b, a%b) : a;}
const int INF = 1000000007;

int main(){
   int n;
   cin >> n;
   vector<string> s(n);
   for(int i = 0; i < n; i++) cin >> s[i];
   sort(s.begin(), s.end());
   s.erase(unique(s.begin(), s.end()), s.end()); //uniqueはごみの先頭イテレータを返す
   cout << s.size() << endl;
   return 0;
}
 

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

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

int main() {
  int N;
  cin >> N;
  
  vector<string> v(N) ;{
    for (int i = 0; i < N; i++) {
  cin >> v.at(i);
    }
  }
  
  sort(v.begin() ,v.end());
  
  int a=0;
  
  for (int i= 1 ; i<N; i++) {
    if(v.at(i) != v.at(i-1)){ a++
                            }
  }
  cout << a<< endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:34: error: expected ';' before '}' token
   19 |     if(v.at(i) != v.at(i-1)){ a++
      |                                  ^
      |                                  ;
   20 |                             }
      |                             ~
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 a=0;
  
  for (int i= 1 ; i<N; i++) {
    if(v.at(i) != v.at(i-1)){ a++
                            }
  }
  cout << a<< 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,k;
  cin >> N;
  k=1;
  vector<string> G(N);
  for(int i=0; i<N; i++)
  {
    cin>>G.at(i);
  }
  sort(G.begin(),G.end());
  for(int i=0; i<N-1; i++)
  {
    if(G.at(i+1)!=G.at(i))
      k++;
  }
  cout << k<< endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> N;
      |   ^~~
a.cc:8:3: error: 'vector' was not declared in this scope
    8 |   vector<string> G(N);
      |   ^~~~~~
a.cc:8:10: error: 'string' was not declared in this scope
    8 |   vector<string> G(N);
      |          ^~~~~~
a.cc:8:18: error: 'G' was not declared in this scope
    8 |   vector<string> G(N);
      |                  ^
a.cc:13:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   13 |   sort(G.begin(),G.end());
      |   ^~~~
      |   short
a.cc:19:3: error: 'cout' was not declared in this scope
   19 |   cout << k<< endl;
      |   ^~~~
a.cc:19:15: error: 'endl' was not declared in this scope
   19 |   cout << k<< endl;
      |               ^~~~
Language: C++

#include<iostream>
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()) ;
  int ans=0 ;
  for(int i=0;i<N-1;i++)  if(S.at(i)!=S.at(i+1)) ans++ ;
  
  cout<<ans<<endl ;
  
  return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'vector' was not declared in this scope
    8 |   vector<string>S(N) ;
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include<iostream>
  +++ |+#include <vector>
    2 | using namespace std ;
a.cc:8:16: error: expected primary-expression before '>' token
    8 |   vector<string>S(N) ;
      |                ^
a.cc:8:17: error: 'S' was not declared in this scope
    8 |   vector<string>S(N) ;
      |                 ^
a.cc:11:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   11 |   sort(S.begin(),S.end()) ;
      |   ^~~~
      |   short
Language: Java

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class C_164 {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		String[] s = new String[n];

		int i = 0;
		while(i < n) {
			s[i] = sc.next();

			i++;
		}
		List<String> goodsList = new ArrayList<String>();
		int flag = 0;
		for(i = 0 ; i < n ; i++) {
			flag = 0;
			for(String goods : goodsList) {
				if(s[i].equals(goods)) {
					flag = 1;
					break;
				}
			}
			if(flag == 0) {
				goodsList.add(s[i]);
			}
		}

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

}

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

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class C_164 {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		String[] s = new String[n];

		int i = 0;
		while(i < n) {
			s[i] = sc.next();

			i++;
		}
		List<String> goodsList = new ArrayList<String>();
		int flag = 0;
		for(i = 0 ; i < n ; i++) {
			flag = 0;
			for(String goods : goodsList) {
				if(s[i].equals(goods)) {
					flag = 1;
					break;
				}
			}
			if(flag == 0) {
				goodsList.add(s[i]);
			}
		}

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

}

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.ArrayList;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.ArrayList;
      |            ^
main.c:2:1: error: unknown type name 'import'
    2 | import java.util.List;
      | ^~~~~~
main.c:2:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    2 | import java.util.List;
      |            ^
main.c:3:1: error: unknown type name 'import'
    3 | import java.util.Scanner;
      | ^~~~~~
main.c:3:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    3 | import java.util.Scanner;
      |            ^
main.c:4:1: error: unknown type name 'public'
    4 | public class C_164 {
      | ^~~~~~
main.c:4:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'C_164'
    4 | public class C_164 {
      |              ^~~~~
Language: C

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

struct node{
    string key;
    node *left ,*right;
};
void pushtree(node* p,node* tree);


long int c=1;




void show(node* tree){
    if(tree==nullptr){
        return;
    }
    show(tree->left);
    cout<<tree->key;
    show(tree->right);
}

int main(){
    int N;
    cin>>N;
    int count=1;
    string input;
    int ju=1;
    node *tree;
    tree = new node;
    cin>>tree->key;
    //cin>>tree->key;
    vector<node*> p(200000);
    for(int i=1;i<N;i++){
        cin>>input;
        p.at(i)= new node;
        p.at(i)->key = input;
        pushtree(p.at(i),tree);

        /*for(int j=0;j<S.size()-1;j++){
            if(S.at(j)==input){
                S.pop_back();
                break;
            }
        }*/

    }
    cout<<c<<endl;

}


void pushtree(node* p,node* tree){
    if(tree==nullptr){*tree=*p; c++; return;}
    if(p->key==tree->key){return;}
    if(p->key>tree->key){
        pushtree(p,tree->right);
    }
    if(p->key<tree->key){
        pushtree(p,tree->left);
    }
}


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

#include <bits/stdc++.h>
using namespace std;
typedef int int__;
#define int long long
#define pb push_back
#define pi pair<int,int>
#define vpi vector<pi>
#define vi vector<int>
#define vvi vector<vi>
#define fi first
#define se second
#define forn(i, n)for(int i=0;i<int__(n);i++) 
#define sz(a)int__(a.size())
template <class A, class B> ostream& operator << (ostream& out, const pair<A, B> &a){return out << "(" << a.first << ", " << a.second << ")";}
template<class A>ostream& operator<<(ostream& out,const vector<A>&v){out<<"[";forn(i,sz(v)){if(i)out<<", ";out<<v[i];}return out<<"]";}
const int MAX = 1e9 + 100;
#define fast ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0)
int Mod(int x){const int mm=1e9 + 7;x%=mm;if(x<0)x+=mm;return x;}
int Pow(int x,int n){if(n==0)return 1;int t=Pow(x,n/2);t=Mod(t*t);if(n&1)t=Mod(t*x);return t;}
#define watch(x) cout << #x << " : " << x << endl;
int gcd(int a,int b){if(b==0)return a;return gcd(b,a%b);}
#define all(x) x.begin(), x.end()
 

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

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:15:19: error: expected '}' at end of input
   15 |         cout << c;
      |                   ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C

#include <bits/stdc++.h>
using namespace std;
 
#define endl '\n'
#define f1 first
#define s2 second
#define pb push_back
#define mp make_pair
#define ll long long
#define fri(a) freopen(a,"r",stdin);
#define fro(a) freopen(a,"w",stdout);
const int N=2e5+5;

int n;
string s;
set<string>sety;

int main(){
	//fri("in.txt");
	//fro("out.txt");
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	cin>>n;
	while(n--){
		cin>>s;
		sety.insert(s);
	}
	cout<<sety.size()<<endl;
return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'v' was not declared in this scope
   15 |   cout<<v.size();
      |         ^
Language: C++

# include <iostream>
# include <string>
# include <algorithm>
using namespace std;
string s[200005];
int main()
{
    int n;
    cin >> n;
    for(int i = 1;i <= n;i++)
    {
        cin >> s[i];
        sort(s[i].begin(),s[i].end());
    }
    sort(a+1,s+1+n);
    int cnt = 1;
    string mubiao = s[1];
    for(int i = 2;i <= n;i++)
    {
        if(s[i] != mubiao)
            cnt++ , mubiao = s[i];
    }
    return 0;
}

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

# include <iostream>
# include <string>
# include <algorithm>
using namespace std;
 
int main()
{
    int n;
    cin >> n;
    for(int i = 1;i <= n;i++)
    {
        cin >> s[i];
        sort(s[i].begin(),s[i].end());
    }
    sort(s+1,s+1+n);
    int cnt = 1;
    string mubiao = s[1];
    for(int i = 2;i <= n;i++)
    {
        if(s[i] != mubiao)
            cnt++ , mubiao = s[i];
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: 's' was not declared in this scope
   12 |         cin >> s[i];
      |                ^
a.cc:15:10: error: 's' was not declared in this scope
   15 |     sort(s+1,s+1+n);
      |          ^
Language: C++

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

int main()
{
    int n;
    cin >> n;
    for(int i = 1;i <= n;i++)
    {
        cin >> s[i];
        sort(s[i].begin(),s[i].end());
    }
    sort(a+1,s+1+n);
    int cnt = 1;
    string mubiao = s[1];
    for(int i = 2;i <= n;i++)
    {
        if(s[i] != mubiao)
            cnt++ , mubiao = s[i];
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: 's' was not declared in this scope
   12 |         cin >> s[i];
      |                ^
a.cc:15:10: error: 'a' was not declared in this scope
   15 |     sort(a+1,s+1+n);
      |          ^
a.cc:15:14: error: 's' was not declared in this scope
   15 |     sort(a+1,s+1+n);
      |              ^
Language: C++

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

int main(){
    ios_base.sync_with_stdio(false);
    cin.tie(NULL);

    int n, counter = 0;
    cin >> n;
    string item, items[n];
    for(int i = 0; i < n; i++)
    {
        cin >> item;
        int tmp = 1;
        for(int j = 0; j < n; j++){
            if(items[j] == item){
                tmp = 0;
                continue;
            }
        }
        if(tmp){
            counter++;
        }
        items[i] = item;

    }
    cout << counter << "\n";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: expected unqualified-id before '.' token
    5 |     ios_base.sync_with_stdio(false);
      |             ^
Language: Java

public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        Integer N = input.nextInt();
        String[] S = new String[N];
        List<String> types = new ArrayList<String>();
        S[0] = input.next();
        types.add(S[0]);

        for (int i = 1; i < N; i++) {
            S[i] = input.next();
            for (int j = 0; j < types.size(); j++) {
                if (S[i].equals(types.get(j))) {
                    break;
                } else if (j == (i - 1)) {
                    types.add(S[i]);
                } else {
                    continue;
                }
            }
        }

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


Compiler output:
Main.java:3: error: cannot find symbol
        Scanner input = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner input = new Scanner(System.in);
                            ^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
        List<String> types = new ArrayList<String>();
        ^
  symbol:   class List
  location: class Main
Main.java:6: error: cannot find symbol
        List<String> types = new ArrayList<String>();
                                 ^
  symbol:   class ArrayList
  location: class Main
4 errors
Language: C

#include <bits/stdc++.h>
using namespace std;
 
#define ll long long
#define ld long double
#define pb push_back
 
#define sec second
#define fir first
#define mo  998244353
#define inf 1e18
#define rep(i, s, n) for (ll i = s; i < n; i = i + 1)
#define rrep(i,s,n) for(ll i=s;i>=n;i--)
#define adiii\                               
  ios_base::sync_with_stdio(false);\                                      
  cin.tie(NULL);\
  cout.tie(NULL);									
 
ll mod(ll n) { return (n % (ll)mo + (ll)mo)%(ll)mo;}
ll gcd(ll a,ll b) {if (b == 0) return a;return gcd(b, a % b);}

int main(){
	adiii
	ll n;
	map<string,ll> m;
	string s;
	rep(i,0,n) {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

//psudora
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long int
#define pb push_back
#define  mod 1000000007
#define pi 3.1415926535
#define flash ios::sync_with_stdio(false); cin.tie(NULL);cout.tie(NULL)
const int INF = 1e9+5;
typedef pair<int, int> iPair;
#ifdef _DEBUG
//	freopen("input.txt", "r", stdin);
//	freopen("output.txt", "w", stdout);
#endif
int main(){
	int n;
	cin>>n;
	set<string>st;
	for(int i=0;i<n;i++){
		string s;
		cin>>s;
		st.insert(s);
	}
	cout<<(int)st.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<stdio.h>
#include<stdlib.h>
#include<string.h>
#define BUFSIZE 100
int N;

int count=0;


int string_compar(const void *a, const void *b)
{
    return(strcmp((char*)a, (char*)b));
}



int main(void){
  scanf("%d",&N);
  for(int j=0;j<N;j++){
    scanf("%s",str[j]);
  }
  
  	int data_cnt = sizeof( str )/sizeof( str[0] );
	 
	qsort((void *) str, N , 11, string_compar);
	
	 char str[N][11];

	for(int i = 0;i < N-1;i++){
		if(strcmp(str[i],str[i+1])!=0){
				count++;
				
			}
		}
	
	printf("%d",count);

}

Compiler output:
main.c: In function 'main':
main.c:20:16: error: 'str' undeclared (first use in this function)
   20 |     scanf("%s",str[j]);
      |                ^~~
main.c:20:16: 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(){
  set<string>st;
  int n;
  cin>>n;
  string a;
  for(i=0;i<n;i++){
    cin>>a;
    st.insert(a);
  }
  cout<<st.size()<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: 'i' was not declared in this scope
   10 |   for(i=0;i<n;i++){
      |       ^
Language: C

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

int cmp_char(const void* a, const void* b){
//    char *a_char = (char *)a;
//    char *b_char = (char *)b;
    return strcmp(a, b);
}

int main(){

    int N;
    scanf("%d", &N);

    char S[N+1][10+1];
    int i;

    for( i = 1; i <– N; i++ ){
        scanf("%s", S[i]);
    }

    qsort( S, N, sizeof(S[N]), cmp_char );

    int ans = 1;
    for( i = 1; i < N; i++ ){
 //       printf("%s\n",S[i]);
        if( strcmp( S[i], S[i+1] ) != 0 ){
            ans += 1;
        }
    }

    printf("%d\n", ans);

    return 0;

}



Compiler output:
main.c: In function 'main':
main.c:19:20: error: stray '\342' in program
   19 |     for( i = 1; i <<U+2013> N; i++ ){
      |                    ^~~~~~~~
Language: C

#include <bits/stdc++.h>

using namespace std;

#define ALL(x) x.begin(), x.end()
#define RALL(x) x.rbegin(), x.rend()
#define MP make_pair
#define PB push_back
#define X first
#define Y second

typedef long long int lld;
typedef pair<int, int> pii;
typedef pair<lld, lld> pll;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    
    int n = 0;
    cin >> n;

    set<string> st;

    while (n--) {
        string s;
        cin >> s;
        st.insert(s);
    }

    cout << st.size() << '\n';

    return 0;
}

// g++ sol.cpp -o sol.out -Wall -Wextra -Wshadow -fsanitize=undefined -std=c++17

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

#include <bits/stdc++.h>
#define rep(i,a,b) for(int i = a; i < b; ++i)
#define all(c) c.begin(), c.end()
#define gmax(x,y) x=max(x,y)
#define gmin(x,y) x=min(x,y)
#define gadd(x,y) x=add(x,y)
#define gmul(x,y) x=mul(x,y)
using namespace std;

typedef pair<int,int> pii;
typedef long long ll;
typedef vector<int> vi;

int main(){
	cin.tie(0);
	cout.tie(0);
	ios_base::sync_with_stdio(0);
	set<string> s;
	int n;
	cin >> n;
	while(n--){
		string t;
		cin >> t;
		s.insert(t);
	}
	cout << s.size() << '\n';
}


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

#ifdef DEBUG

#else

#    pragma GCC optimize("O3,no-stack-protector")
#    pragma GCC optimize("unroll-loops")

#    if __cplusplus >= 201703L
#        pragma GCC target("avx2")
#    else
#        pragma GCC target("avx")
#    endif

#endif
// 実数の場合
// #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")

#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
#define dump(x) cout << x << endl
typedef int64_t Int;
typedef long double Ld;

using namespace std;
using Graph = vector<vector<Int>>;

const double pi = M_PI;
const Int MOD = 1000000007;

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

    Int n;
    cin >> n;
    map<string, Int> a;
    for (Int i = 0; i < n; i++) {
        string s;
        if (!a.insert({s, 1}).second) {
            a[s]++;
        }
    }

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

    return 0;
}


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

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

Compiler output:
a.cc:14:3: error: expected unqualified-id before 'return'
   14 |   return 0;
      |   ^~~~~~
Language: C

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

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

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

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

int main() {
 int N;
  cin>>N;
  vector<string> S(N);
    for(int i=0; i<N; i++){
    cin >> S.at(i);
    }
  
  
  vevtor<string> voc = {S.at(0)}
  for (int i=1; i<N, i++){
    for(int j=0; j < voc.size(), j++){
      if (S.at(i)==voc.at(j)){
        voc.push_back(S.at(i));
        break;
      }
    }
  }
    
    cout << voc.size() <<endl;
    
         
         
}



Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'vevtor' was not declared in this scope
   13 |   vevtor<string> voc = {S.at(0)}
      |   ^~~~~~
a.cc:13:16: error: expected primary-expression before '>' token
   13 |   vevtor<string> voc = {S.at(0)}
      |                ^
a.cc:13:18: error: 'voc' was not declared in this scope
   13 |   vevtor<string> voc = {S.at(0)}
      |                  ^~~
a.cc:14:17: error: 'i' was not declared in this scope
   14 |   for (int i=1; i<N, i++){
      |                 ^
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);
    }
  
  
  vevtor<string> voc = {S.at(0)}
  for (int i=1; i<N, i++){
    for(int j=0; j < voc.size(), j++){
      if (S.at(i)==voc.at(j)){
        voc.push_back(S.at(i));
        break;
      }
    }
    
    cout << voc.size() <<endl;
    
         
         
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
    9 |     cin >> S(i);
      |            ~^~~
a.cc:13:3: error: 'vevtor' was not declared in this scope
   13 |   vevtor<string> voc = {S.at(0)}
      |   ^~~~~~
a.cc:13:16: error: expected primary-expression before '>' token
   13 |   vevtor<string> voc = {S.at(0)}
      |                ^
a.cc:13:18: error: 'voc' was not declared in this scope
   13 |   vevtor<string> voc = {S.at(0)}
      |                  ^~~
a.cc:14:17: error: 'i' was not declared in this scope
   14 |   for (int i=1; i<N, i++){
      |                 ^
a.cc:26:2: error: expected '}' at end of input
   26 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C

#include <iostream>
#include <vector>
#include <algorithm>
#include <iomanip>
#include <cmath>
#include <map>
#include <cmath>
#include <bitset>
#include <string>
#include <queue>

using namespace std;

#define int long long

signed main() {
    int n;
    cin >> n;
    vector<string> v(n);
    for(int i = 0; i < n; i++) cin >> v[i];

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

    cout << v.size() << endl;
    return 0;
}

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

#include <iostream>
#include <string>
#include <map>

using namespace std;

int main(int argc, const char *argv[]) {
  int N;
  cin >> N;
  string s;
  map<string, int> S;
  for (int i = 0; i < N; i++) {
    cin >> s;
    S[s]++;
  }
  cout << S.size() << endl;
  return 0;
}


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: 'n' was not declared in this scope
    8 |     for (int i = 0; i < n; i++) {
      |                         ^
Language: C

//
//   “Daḷhaṃ sikkhatha santiyā.” - Utthana Sutta (Sutta Nipata) 
//    Saket Saumya 
//    APR 26 2020
//

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


#define ll long long 
#define all(x) x.begin(),x.end()
#define RESET   "\033[0m"
#define RED     "\033[31m"      /* Red */
#define what_is(x) cerr << RED << #x << " is " << x  << RESET << endl;
 

const long long MOD = 1e9+7 ;
const int N=(2e5)+5;
const long long INF=1LL << 57;
 
// Data Structures
vector <ll> vec(N),v1, v2, v3;
vector < pair <ll, pair < ll , ll >  > > vp, vp1, vp2;
set < ll > se;
unordered_set <ll > use;
multiset < ll > ms;
map <  ll, ll > mp, done, mp1;
unordered_map < ll, ll > ump;


ll t, n, m, p, q, x, y, a, b, c, mini= LLONG_MAX, maxi= LLONG_MIN,res, ans;


queue <pair <ll, ll > > bfsq;
ll vis[N];
vector < ll >  adj[N], adj1[N];
ll visited[1005][1005] ;
char mat[1005][1005];
ll dp[1005][1005];


//<-------------------------------------------CODE STARTS HERE --------------------------------------------------------------->//

string s;
signed  main(){
        
            ios_base::sync_with_stdio(false);
            cin.tie(nullptr);cout.tie(nullptr);
           
                    
            set <string> ss;
            cin >> n;
            while (n-- ){
                    cin >> s;
                    ss.insert(s);
            }
            cout << ss.size() << endl;

















            
             
            

            
            
            
            



            
            























                
                
                
 
                
 
 
 
        
        
 
 
 
}       
       
 
 
       
       
       
       
       
       
       
 
 
 
 
 
        
        
 
 
           
 
       
       
 
            
       
       
       
       
       
       
        
 
 
 
 
 
 
       
 
 
 
 
 
        
 
 
       
 
 
       
       
       
       
       
       
       
 
 
 
 
 
        
        
 
 
           
 
       
       
 
            
       
       
       
       
       
       
        
 
 
 
 
 
 
       
 
 
 
 
 
        
 
 

       
       
       
       
       
 
 
 
 
 
        
        
 
 
           
 
       
       
 
            
       
       
       
       
       
       
        
 
 
 
 
 
 
       
 
 
 
 
 
        
 
 
       
 
 
       
       
       
       
       
       
       
 
 
 
 
 
        
        
 
 
           
 
       
       
 
            
       
       
       
       
       
       
        
 
 
 
 
 
 
       
 
 
 
 
 
        
 
 




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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define INF (INT_MAX / 4)
#define REP(i, n) for (ll i = 0, i##_len = (n); i < i##_len; ++i)
#define ALL(a) (a).begin(), (a).end()
/* clang-format off */
#define TIMER_S(start) chrono::system_clock::time_point start = chrono::system_clock::now();
#define TIMER_E(end) chrono::system_clock::time_point end = chrono::system_clock::now();
#define TIME(start, end) cout << static_cast<double>(chrono::duration_cast<chrono::microseconds>(end - start).count()) << "ms" << "\n";
/* clang-format on */

int main() {
  int n,ans=0;
  cin >> n;
  unordered_map<string, int> m;
  REP(i, n) { string s;
    cin >> s;
    if (m.count(s))
      m.at(s)++;
    else
      m[s] = 1;
    }
    cout << m.size()<< "\n";
  return 0;
}


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

#include <bits/stdc++.h> 
#include <ext/pb_ds/assoc_container.hpp> // Common file  
#include <ext/pb_ds/tree_policy.hpp>
#include <functional>
#include <unistd.h>
using namespace std; 
using namespace std::chrono; 
using namespace __gnu_pbds;
#define ll long long int 
//mp.reserve(1024);
//mp.max_load_factor(0.25);
typedef tree<int, null_type, less<int>, rb_tree_tag,  
                 tree_order_statistics_node_update>  
          ordered_set;  
struct custom_hash {
    static uint64_t splitmix64(uint64_t x) {
            x += 0x9e3779b97f4a7c15;
            x = (x ^ (x >> 30)) * 0xbf58476d1ce4e5b9;
            x = (x ^ (x >> 27)) * 0x94d049bb133111eb;
            return x ^ (x >> 31);
        }

        size_t operator()(uint64_t x) const {
            static const uint64_t FIXED_RANDOM = chrono::steady_clock::now().time_since_epoch().count();
            return splitmix64(x + FIXED_RANDOM);
        }
};
 
void addEdge(vector<ll> adj[], ll u, ll v) 
{ 
   adj[u].push_back(v); 
   adj[v].push_back(u); 
} 
vector<ll> z_function(string s) {
    ll n = s.length();
    vector<ll> z(n);
    for (ll i = 1, l = 0, r = 0; i < n; ++i) {
        if (i <= r)
            z[i] = min (r - i + 1, z[i - l]);
        while (i + z[i] < n && s[z[i]] == s[i + z[i]])
            ++z[i];
        if (i + z[i] - 1 > r)
            l = i, r = i + z[i] - 1;
    }
    return z;
}
ll m=998244353;
ll power(ll x,ll y) 
{ 
    ll res = 1; // Initialize result 
  
    while (y > 0) { 
        // If y is odd, multiply x with result 
        if (y & 1) 
            res = ((res%m) * (x%m))%m; 
  
        // n must be even now 
        y = y >> 1; // y = y/2 
        x = ((x%m) * (x%m))%m; // Change x to x^2 
    } 
    return res; 
} 
int main() 
{ 
 	ios_base::sync_with_stdio(false);
   	cin.tie(NULL);
   	cout.tie(NULL);
    //freopen("input.txt", "r", stdin); 
    //freopen("output1.txt", "w", stdout); 
	ll n;
	cin>>n;
	set<string >s;
	string s1;
	for( ll i=0;i<n;i++){
		cin>>s1;
		s.insert(s1);
	}
	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: Java


import java.util.*;
public class Main5{
 public static void main(String[] args) {
   Scanner kbd = new Scanner(System.in);
   int n=kbd.nextInt();
   String[] A= new String[n];
   for(int i=0;i<n;i++){
     A[i]=kbd.next();
}
int x=1;
Arrays.sort(A);
for(int i=0;i<n-1;i++){
if(!(A[i].equals(A[i+1]))){
  x=x+1;
}
}
System.out.println(x);
}
}


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