Language: C++

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

using ll = long long;
using pbl = pair<bool, ll>;
int main() {
    ll N;
    cin >> N;
    map<ll,pair<bool,ll>> C;
    vector<ll> A(N);
    set<ll> fini;
    for(ll i=0;i<N;i++){
        ll sub;
        cin >> sub;
        A[i]=sub;
        C[sub]=make_pair(true,++C[sub].second);
    }
    
    sort(A.begin(),A.end());
    ll count = A.size();
    ll MAXL = A.back();
    for(ll i=0;i<N;i++){
        ll skip=A[i];
        pbl temp = C.at(skip);
        if(temp.second>1){
            count--;
            temp.first=false;
        }
        if(fini.count(skip))continue;
        fini.insert(skip);
        for(ll j=skip*2;j<=MAXL;j+=skip){
            
            if(C.count(j)&&C.at(j).first){
                count--;
                C.at(j).first=false;
            }
            
        }
        
    }
    
    cout << count << endl;
    
}


Compiler output:
a.cc:5:13: error: 'pair' does not name a type
    5 | using pbl = pair<bool, ll>;
      |             ^~~~
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin >> N;
      |     ^~~
a.cc:9:5: error: 'map' was not declared in this scope
    9 |     map<ll,pair<bool,ll>> C;
      |     ^~~
a.cc:9:11: error: expected primary-expression before ',' token
    9 |     map<ll,pair<bool,ll>> C;
      |           ^
a.cc:9:12: error: 'pair' was not declared in this scope
    9 |     map<ll,pair<bool,ll>> C;
      |            ^~~~
a.cc:9:17: error: expected primary-expression before 'bool'
    9 |     map<ll,pair<bool,ll>> C;
      |                 ^~~~
a.cc:10:5: error: 'vector' was not declared in this scope
   10 |     vector<ll> A(N);
      |     ^~~~~~
a.cc:10:14: error: expected primary-expression before '>' token
   10 |     vector<ll> A(N);
      |              ^
a.cc:10:16: error: 'A' was not declared in this scope
   10 |     vector<ll> A(N);
      |                ^
a.cc:11:5: error: 'set' was not declared in this scope
   11 |     set<ll> fini;
      |     ^~~
a.cc:11:11: error: expected primary-expression before '>' token
   11 |     set<ll> fini;
      |           ^
a.cc:11:13: error: 'fini' was not declared in this scope
   11 |     set<ll> fini;
      |             ^~~~
a.cc:16:9: error: 'C' was not declared in this scope
   16 |         C[sub]=make_pair(true,++C[sub].second);
      |         ^
a.cc:16:16: error: 'make_pair' was not declared in this scope
   16 |         C[sub]=make_pair(true,++C[sub].second);
      |                ^~~~~~~~~
a.cc:19:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   19 |     sort(A.begin(),A.end());
      |     ^~~~
      |     short
a.cc:24:9: error: 'pbl' was not declared in this scope
   24 |         pbl temp = C.at(skip);
      |         ^~~
a.cc:25:12: error: 'temp' was not declared in this scope
   25 |         if(temp.second>1){
      |            ^~~~
a.cc:33:16: error: 'C' was not declared in this scope
   33 |             if(C.count(j)&&C.at(j).first){
      |                ^
a.cc:42:5: error: 'cout' was not declared in this scope; did you mean 'count'?
   42 |     cout << count << endl;
      |     ^~~~
      |     count
a.cc:42:22: error: 'endl' was not declared in this scope
   42 |     cout << count << endl;
      |                      ^~~~