Language: C++

#include<iostream>
#include<vector>
using namespace std;
int main()
{
    int number, target;
    cin >> number >> target;
  	int plus=0;
  	int minus=0;
  	int zero=0;
    vector<int> pluses, minuses, zeros;
  	for(int i=0; i<number; i++) {
      	int tmp
        cin >> tmp;
      	if(tmp==0){
          	zeros.push_back(tmp);
        }else if(tmp>0){
          	pluses.push_back(tmp);
        }else{
          	minuses.push_back(tmp);
        }
    };
    
  	int valMinus = pluses.size()*minuses.size();
  	int valZeno = zeros.size()*(pluses.size()+minuses.size());
  	int valPlus = pluses.size()*(pluses.size()-1) + minuses.size()*(minuses.size()-1);
  	
  	int ret;
  	if(target>valMinus && target<=(valMinus+valZero)){
      	ret=0;
    }else if(target>(valMinus+valZero)){
      	vector<long> tmps;
      	for(int i=o; i<pluses.size()-1; i++){
          for(int j=i+1; j<pluses.size(); j++){
            tmps.push_back(pluses[i]*pluses[j]);
          }
        }
       	for(int i=o; i<minuses.size()-1; i++){
          for(int j=i+1; j<minuses.size(); j++){
            tmps.push_back(minuses[i]*minuses[j]);
          }
        }
      	sort(tmp.begin(), tmp.end());
      	ret = tmp[target-valMinus-valZero];
    }else{
      	vector<long> tmps;
      	for(int i=o; i<pluses.size(); i++){
          for(int j=0; j<minses.size(); j++){
            tmps.push_back(pluses[i]*pluses[j]);
          }
        }
      	sort(tmp.begin(), tmp.end());
      	ret = tmp[target];      
    }
    cout << ret << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: expected initializer before 'cin'
   14 |         cin >> tmp;
      |         ^~~
a.cc:15:12: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   15 |         if(tmp==0){
      |            ^~~
      |            tm
a.cc:29:49: error: 'valZero' was not declared in this scope; did you mean 'valZeno'?
   29 |         if(target>valMinus && target<=(valMinus+valZero)){
      |                                                 ^~~~~~~
      |                                                 valZeno
a.cc:33:19: error: 'o' was not declared in this scope
   33 |         for(int i=o; i<pluses.size()-1; i++){
      |                   ^
a.cc:38:19: error: 'o' was not declared in this scope
   38 |         for(int i=o; i<minuses.size()-1; i++){
      |                   ^
a.cc:43:14: error: 'tmp' was not declared in this scope; did you mean 'tmps'?
   43 |         sort(tmp.begin(), tmp.end());
      |              ^~~
      |              tmps
a.cc:43:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   43 |         sort(tmp.begin(), tmp.end());
      |         ^~~~
      |         short
a.cc:47:19: error: 'o' was not declared in this scope
   47 |         for(int i=o; i<pluses.size(); i++){
      |                   ^
a.cc:48:26: error: 'minses' was not declared in this scope; did you mean 'minuses'?
   48 |           for(int j=0; j<minses.size(); j++){
      |                          ^~~~~~
      |                          minuses
a.cc:52:14: error: 'tmp' was not declared in this scope; did you mean 'tmps'?
   52 |         sort(tmp.begin(), tmp.end());
      |              ^~~
      |              tmps
a.cc:52:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   52 |         sort(tmp.begin(), tmp.end());
      |         ^~~~
      |         short