Language: C++

#include "bits/stdc++.h" 
using namespace std; 
  
#define MAXN   1000001 
  
// stores smallest prime factor for every number 
ll spf[MAXN]; 
  
// Calculating SPF (Smallest Prime Factor) for every 
// number till MAXN. 
// Time Complexity : O(nloglogn) 
void sieve() 
{ 
    spf[1] = 1; 
    for (ll i=2; i<MAXN; i++) 
  
        // marking smallest prime factor for every 
        // number to be itself. 
        spf[i] = i; 
  
    // separately marking spf for every even 
    // number as 2 
    for (ll i=4; i<MAXN; i+=2) 
        spf[i] = 2; 
  
    for (ll i=3; i*i<MAXN; i++) 
    { 
        // checking if i is prime 
        if (spf[i] == i) 
        { 
            // marking SPF for all numbers divisible by i 
            for (ll j=i*i; j<MAXN; j+=i) 
  
                // marking spf[j] if it is not  
                // previously marked 
                if (spf[j]==j) 
                    spf[j] = i; 
        } 
    } 
} 
  
// A O(log n) function returning primefactorization 
// by dividing by smallest prime factor at every step 

  
// driver program for above function 
int main() 
{ 
    // precalculating Smallest Prime Factor 
    sieve(); 
    ll f[1000001];
    memset(f, 0,sizeof(f));
    ll n;
    cin>>n;
    ll m=n;
    
    while(m--){
        ll x;
        cin>>x;
        map<ll, bool> check;
        while (x != 1) 
        { 
            // cout<<spf[x]<<' ';
            
            if(!check[spf[x]]){
                f[spf[x]]++; 
                check[spf[x]]=1;
            }
            x = x / spf[x];
            
        }
        // cout<<'\n';
    }
    
    
    
    bool f1=1, f2=1;
    
    for(ll i=0;i<10;i++){
        //  cout<<f[i]<<' ';
        if(f[i]>1)
            f1=0;
            
        if(f[i]>=n)
            f2=0;
        
    }
    // cout<<f[3]<<'\n';
    // cout<<f1<<' '<<f2<<'\n';
    // cout<<'\n';
    if(!f1 && f2)
        cout<<"setwise coprime";
    
    else if(f1)
        cout<<"pairwise coprime";
    
    else cout<<"not coprime";
    
    
} 

Compiler output:
a.cc:7:1: error: 'll' does not name a type
    7 | ll spf[MAXN];
      | ^~
a.cc: In function 'void sieve()':
a.cc:14:5: error: 'spf' was not declared in this scope
   14 |     spf[1] = 1;
      |     ^~~
a.cc:15:10: error: 'll' was not declared in this scope
   15 |     for (ll i=2; i<MAXN; i++)
      |          ^~
a.cc:15:18: error: 'i' was not declared in this scope
   15 |     for (ll i=2; i<MAXN; i++)
      |                  ^
a.cc:23:10: error: 'll' was not declared in this scope
   23 |     for (ll i=4; i<MAXN; i+=2)
      |          ^~
a.cc:23:18: error: 'i' was not declared in this scope
   23 |     for (ll i=4; i<MAXN; i+=2)
      |                  ^
a.cc:26:10: error: 'll' was not declared in this scope
   26 |     for (ll i=3; i*i<MAXN; i++)
      |          ^~
a.cc:26:18: error: 'i' was not declared in this scope
   26 |     for (ll i=3; i*i<MAXN; i++)
      |                  ^
a.cc:32:20: error: expected ';' before 'j'
   32 |             for (ll j=i*i; j<MAXN; j+=i)
      |                    ^~
      |                    ;
a.cc:32:28: error: 'j' was not declared in this scope; did you mean 'jn'?
   32 |             for (ll j=i*i; j<MAXN; j+=i)
      |                            ^
      |                            jn
a.cc: In function 'int main()':
a.cc:51:5: error: 'll' was not declared in this scope
   51 |     ll f[1000001];
      |     ^~
a.cc:52:12: error: 'f' was not declared in this scope
   52 |     memset(f, 0,sizeof(f));
      |            ^
a.cc:53:7: error: expected ';' before 'n'
   53 |     ll n;
      |       ^~
      |       ;
a.cc:54:10: error: 'n' was not declared in this scope; did you mean 'yn'?
   54 |     cin>>n;
      |          ^
      |          yn
a.cc:55:7: error: expected ';' before 'm'
   55 |     ll m=n;
      |       ^~
      |       ;
a.cc:57:11: error: 'm' was not declared in this scope; did you mean 'tm'?
   57 |     while(m--){
      |           ^
      |           tm
a.cc:58:11: error: expected ';' before 'x'
   58 |         ll x;
      |           ^~
      |           ;
a.cc:59:14: error: 'x' was not declared in this scope
   59 |         cin>>x;
      |              ^
a.cc:60:21: error: template argument 3 is invalid
   60 |         map<ll, bool> check;
      |                     ^
a.cc:60:21: error: template argument 4 is invalid
a.cc:65:23: error: 'spf' was not declared in this scope
   65 |             if(!check[spf[x]]){
      |                       ^~~
a.cc:69:21: error: 'spf' was not declared in this scope
   69 |             x = x / spf[x];
      |                     ^~~
a.cc:79:11: error: expected ';' before 'i'
   79 |     for(ll i=0;i<10;i++){
      |           ^~
      |           ;
a.cc:79:16: error: 'i' was not declared in this scope
   79 |     for(ll i=0;i<10;i++){
      |                ^