Language: C++

#include <bits/stdc++.h>
#include <vector>
#include <queue>
#include <set>
#include <iostream>
#include <iomanip>
using namespace std;
typedef unsinged long long LL;
#define REP(i,n) for(int i=0;i<(n);i++)
#define FOR(i,a,b) for(int i=(a);i<(b);++i)


LL gcd(LL val1, LL val2){
    LL _val_lrg = (val1 > val2)? val1: val2;
    LL _val_sml = (val1 > val2)? val2: val1;

    LL r = _val_lrg % _val_sml;
    if(r==0){
        return _val_sml;
    }else{
        return gcd(_val_sml, r);
    }
}

int main(){
    int N;
    cin >> N;
    vector<LL> A(N);
    REP(i,N)cin>>A[i];

    sort(A.begin(), A.end());
    LL val = 1;
    REP(i, N){
        val *= A[i];
    }

    bool bl_pairwise_coprime = true;
    REP(i, N-1){
        val /= A[i];
        LL tmp = gcd(A[i], val);
        if(tmp != 1){
            bl_pairwise_coprime = false;
            break;
        }
    }

    LL val = A[0];
    REP(i, N-1){
        val = gcd(val, A[i+1]);
        if(val==1)break;
    }
    bool bl_setwise_coprime = (val==1)? true: false;

    if(bl_pairwise_coprime){
        cout << "pairwise coprime" << endl;
    }else if (bl_setwise_coprime){
        cout << "setwise coprime" << endl;
    }else{
        cout << "not coprime" << endl;
    }
    return 0;
}

Compiler output:
a.cc:8:9: error: 'unsinged' does not name a type; did you mean 'unsigned'?
    8 | typedef unsinged long long LL;
      |         ^~~~~~~~
      |         unsigned
a.cc:13:1: error: 'LL' does not name a type
   13 | LL gcd(LL val1, LL val2){
      | ^~
a.cc: In function 'int main()':
a.cc:28:12: error: 'LL' was not declared in this scope
   28 |     vector<LL> A(N);
      |            ^~
a.cc:28:14: error: template argument 1 is invalid
   28 |     vector<LL> A(N);
      |              ^
a.cc:28:14: error: template argument 2 is invalid
a.cc:29:19: error: invalid types 'int[int]' for array subscript
   29 |     REP(i,N)cin>>A[i];
      |                   ^
a.cc:31:12: error: request for member 'begin' in 'A', which is of non-class type 'int'
   31 |     sort(A.begin(), A.end());
      |            ^~~~~
a.cc:31:23: error: request for member 'end' in 'A', which is of non-class type 'int'
   31 |     sort(A.begin(), A.end());
      |                       ^~~
a.cc:32:7: error: expected ';' before 'val'
   32 |     LL val = 1;
      |       ^~~~
      |       ;
a.cc:34:9: error: 'val' was not declared in this scope
   34 |         val *= A[i];
      |         ^~~
a.cc:34:17: error: invalid types 'int[int]' for array subscript
   34 |         val *= A[i];
      |                 ^
a.cc:39:9: error: 'val' was not declared in this scope
   39 |         val /= A[i];
      |         ^~~
a.cc:39:17: error: invalid types 'int[int]' for array subscript
   39 |         val /= A[i];
      |                 ^
a.cc:40:11: error: expected ';' before 'tmp'
   40 |         LL tmp = gcd(A[i], val);
      |           ^~~~
      |           ;
a.cc:41:12: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   41 |         if(tmp != 1){
      |            ^~~
      |            tm
a.cc:47:7: error: expected ';' before 'val'
   47 |     LL val = A[0];
      |       ^~~~
      |       ;
a.cc:49:9: error: 'val' was not declared in this scope
   49 |         val = gcd(val, A[i+1]);
      |         ^~~
a.cc:49:25: error: invalid types 'int[int]' for array subscript
   49 |         val = gcd(val, A[i+1]);
      |                         ^
a.cc:52:32: error: 'val' was not declared in this scope
   52 |     bool bl_setwise_coprime = (val==1)? true: false;
      |                                ^~~