Language: C++

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

int main() {
        int n;
        cin >> n;
        int count[n][26] = {{0}};
        for(int i = 0; i < n; i++){
                string s;
                cin >> s;
                for(int j = 0; j < s.length(); j++){
                        count[i][s[j]-(int)'a']++;
                }
        }
        for(int i = 1; i < n; ++i){
                for(int j = 0; j < 26; ++j){
                        if(count[i][j] < count[0][j]){
                                count[0][j] = count[i][j];
                        }
                }
        }
        for(int i = 0; i < 26; i++){
                for(int j = 0; j < count[0][i]; j++){
                        cout<<(char)((int)'a'+i);
                }
        }
        cout<<endl;
        return 0;
}


Compiler output:
a.cc:4:1: error: 'include' does not name a type
    4 | include<algorithm>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |         cin >> n;
      |         ^~~
      |         std::cin
In file included from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:12:17: error: 'string' was not declared in this scope
   12 |                 string s;
      |                 ^~~~~~
a.cc:12:17: 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:
/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:13:24: error: 's' was not declared in this scope
   13 |                 cin >> s;
      |                        ^
a.cc:27:25: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   27 |                         cout<<(char)((int)'a'+i);
      |                         ^~~~
      |                         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:30:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   30 |         cout<<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:30:15: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   30 |         cout<<endl;
      |               ^~~~
      |               std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~