Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long int
void fast()
{
   ios_base::sync_with_stdio(false);
   cin.tie(NULL);
   cout.tie(NULL);
}
int main(void)
{
	fast();
    ll  n,k;
    cin>>n>>k;
    // ll int p[n];
    vector<ll int> p(n,0);
    for(ll int i=0;i<p.size();i++)
    {
        cin>>p[i];
    }
    
     if(k>=n)
    {
           cout<<0<<endl;
    }
    
    else if(k==0)
    {
        int sum=0;
        for(ll int i=0;i<p.size();i++)
        {
            sum=sum+p[i];
        }
        cout<<sum<<endl;
    }
    
    else
    {
        sort(p.begin(),p.end());
        ll int sum2=0;
        ll int qw=n-k;
        for(ll int j=0;j<qw;j++)
        {
          sum2=sum2+p[j];   
        }
        cout<<sum2<<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:22: error: two or more data types in declaration of 'type name'
    3 | #define ll long long int
      |                      ^~~
a.cc:16:12: note: in expansion of macro 'll'
   16 |     vector<ll int> p(n,0);
      |            ^~
a.cc:16:18: error: template argument 1 is invalid
   16 |     vector<ll int> p(n,0);
      |                  ^
a.cc:16:18: error: template argument 2 is invalid
a.cc:16:25: error: expression list treated as compound expression in initializer [-fpermissive]
   16 |     vector<ll int> p(n,0);
      |                         ^
a.cc:3:22: error: two or more data types in declaration of 'i'
    3 | #define ll long long int
      |                      ^~~
a.cc:17:9: note: in expansion of macro 'll'
   17 |     for(ll int i=0;i<p.size();i++)
      |         ^~
a.cc:17:20: error: 'i' was not declared in this scope
   17 |     for(ll int i=0;i<p.size();i++)
      |                    ^
a.cc:17:24: error: request for member 'size' in 'p', which is of non-class type 'int'
   17 |     for(ll int i=0;i<p.size();i++)
      |                        ^~~~
a.cc:3:22: error: two or more data types in declaration of 'i'
    3 | #define ll long long int
      |                      ^~~
a.cc:30:13: note: in expansion of macro 'll'
   30 |         for(ll int i=0;i<p.size();i++)
      |             ^~
a.cc:30:24: error: 'i' was not declared in this scope
   30 |         for(ll int i=0;i<p.size();i++)
      |                        ^
a.cc:30:28: error: request for member 'size' in 'p', which is of non-class type 'int'
   30 |         for(ll int i=0;i<p.size();i++)
      |                            ^~~~
a.cc:39:16: error: request for member 'begin' in 'p', which is of non-class type 'int'
   39 |         sort(p.begin(),p.end());
      |                ^~~~~
a.cc:39:26: error: request for member 'end' in 'p', which is of non-class type 'int'
   39 |         sort(p.begin(),p.end());
      |                          ^~~
a.cc:3:22: error: two or more data types in declaration of 'sum2'
    3 | #define ll long long int
      |                      ^~~
a.cc:40:9: note: in expansion of macro 'll'
   40 |         ll int sum2=0;
      |         ^~
a.cc:3:22: error: two or more data types in declaration of 'qw'
    3 | #define ll long long int
      |                      ^~~
a.cc:41:9: note: in expansion of macro 'll'
   41 |         ll int qw=n-k;
      |         ^~
a.cc:3:22: error: two or more data types in declaration of 'j'
    3 | #define ll long long int
      |                      ^~~
a.cc:42:13: note: in expansion of macro 'll'
   42 |         for(ll int j=0;j<qw;j++)
      |             ^~
a.cc:42:24: error: 'j' was not declared in this scope
   42 |         for(ll int j=0;j<qw;j++)
      |                        ^
a.cc:42:26: error: 'qw' was not declared in this scope
   42 |         for(ll int j=0;j<qw;j++)
      |                          ^~
a.cc:44:11: error: 'sum2' was not declared in this scope
   44 |           sum2=sum2+p[j];
      |           ^~~~
a.cc:46:15: error: 'sum2' was not declared in this scope
   46 |         cout<<sum2<<endl;
      |               ^~~~