Language: C++

#include<iostream>
#include<stdio.h>
#include<vector>
#include <string>
#include <cstdlib>
#include <tuple>
​
using lint = long long;
using namespace std;
​
vector<lint> atois(vector<string> str){
    vector<lint> result(str.size()) ;
    for (lint i = 0; i < str.size();i++){
        result[i] = stoi(str[i]);
    }
    return result;
}
​
vector<vector<lint>> alatois(vector<vector<string>> str){
    vector<vector<lint>> result(str.size()) ;
    for (lint i = 0; i < str.size();i++){
        result[i] = atois(str[i]);
    }
    return result;
}
​
​
std::vector<string> split(std::string str, char del) {
    int first = 0;
    int last = str.find_first_of(del);
​
    std::vector<std::string> result;
​
    while (first < str.size()) {
        std::string subStr(str, first, last - first);
 
        result.push_back(subStr);
 
        first = last + 1;
        last = str.find_first_of(del, first);
 
        if (last == std::string::npos) {
            last = str.size();
        }
    }
​
    return result;
}
​
//readLine read standard input data
string readLine(){
    const lint readLen = 100000;
	char buf[readLen];
	size_t length;
	string input = "";
    vector<string> result;
​
	for (;;){
        fgets(buf, sizeof(buf), stdin);
        input += string(buf);
        if (input.find("\n")!=std::string::npos) {
            break;
        }
	}
	return input;
}
​
//rLine Read all standard input data
std::vector<std::vector<string>> rLine(lint line)  {
    std::vector<std::vector<string>> stringInput ;
    std::string s;
    
    for (int i = 0; i < line; i++){
        s = readLine();
        stringInput.push_back(split(s, ' '));
    }
​
    return stringInput;
}
​
//irLine Read Standard input data and convert into integer
vector<vector<lint>> irLine(int i) {
	return alatois( rLine(i));
}
​
//meds3 return median of 3 stringer values
string meds3(string x,string y,string z) {
	if (x < y){
		if (x > z){
			return x;
        }else if (z > y){
			return y;
        }else {
			return z;
		}
    }
    if (z < y){
        return y;
    } else if (x < z){
        return x;
    } else {
        return z;
    }
}
​
//medi3 return median of 3 stringer values
lint medi3(lint x,lint y,lint z) {
	if (x < y){
		if (x > z){
			return x;
        }else if (z > y){
			return y;
        }else {
			return z;
		}
    }
    if (z < y){
        return y;
    } else if (x < z){
        return x;
    } else {
        return z;
    }
}
​
​
//iQuicksort sort integer slice by quick sort
void iQuicksort(vector<lint> &a, lint left, lint right) {
	if (left < right) {
		lint i=  left;
		lint j = right;
        lint tmp = 0;
		lint pivot = medi3(a[i], a[i+(j-i)/2], a[j]);
​
		for(;;){
			for (; a[i] < pivot; i++) {
			}
			for (; pivot < a[j]; j--) {
			}
			if (i >= j) {
				break;
			}
			tmp = a[i];
			a[i] = a[j];
			a[j] = tmp; /* a[i], a[j] を交換 */
			i++;
			j--;
		}
		iQuicksort(a, left, i-1);  /* 分割した左を再帰的にソート */
		iQuicksort(a, j+1, right); /* 分割した右を再帰的にソート */
	}
}
​
​
//iQuicksort sort integer slice by quick sort
void sQuicksort(vector<string> &a, lint left, lint right) {
	if (left < right) {
		lint i=  left;
		lint j = right;
        string tmp = 0;
		string pivot = meds3(a[i], a[i+(j-i)/2], a[j]);
​
		for(;;){
			for (; a[i] < pivot; i++) {
			}
			for (; pivot < a[j]; j--) {
			}
			if (i >= j) {
				break;
			}
			tmp = a[i];
			a[i] = a[j];
			a[j] = tmp; /* a[i], a[j] を交換 */
			i++;
			j--;
		}
		sQuicksort(a, left, i-1);  /* 分割した左を再帰的にソート */
		sQuicksort(a, j+1, right); /* 分割した右を再帰的にソート */
	}
}
​
//qiSort sort integer slie by quick sort
void qiSort(vector<lint> &a) {
	iQuicksort(a, 0, a.size()-1);
}
​
//qsSort sort stringer slie by quick sort
void qsSort(vector<string> &a) {
	sQuicksort(a, 0, a.size()-1);
}
​
//abis returns absolute integer number
lint absi(lint a) {
	if (a > 0) {
		return a;
	}
	return -a;
}
​
//absf returns absolute float number
double absf(double a) {
	if (a > 0) {
		return a;
	}
	return -a;
}
​
​
int main() {
    vector<vector<lint>> input = irLine(2);
	lint K = input[0][1];
	vector<lint> H = input[1];
​
	qiSort(H);
	lint sum = 0;
​
	for (lint i = 0; i < H.size()-K; i++) {
		sum += H[i];
	}
	
    printf("%lld", sum);
    return 0;
}

Compiler output:
a.cc:7:1: error: '\U0000200b' does not name a type
    7 | ​
      |  
a.cc:10:1: error: '\U0000200b' does not name a type
   10 | ​
      |  
a.cc:18:1: error: '\U0000200b' does not name a type
   18 | ​
      |  
a.cc:26:1: error: '\U0000200b' does not name a type
   26 | ​
      |  
a.cc:49:1: error: '\U0000200b' does not name a type
   49 | ​
      |  
a.cc:67:1: error: '\U0000200b' does not name a type
   67 | ​
      |  
a.cc:80:1: error: '\U0000200b' does not name a type
   80 | ​
      |  
a.cc:85:1: error: '\U0000200b' does not name a type
   85 | ​
      |  
a.cc:105:1: error: '\U0000200b' does not name a type
  105 | ​
      |  
a.cc:125:1: error: '\U0000200b' does not name a type
  125 | ​
      |  
a.cc:153:1: error: '\U0000200b' does not name a type
  153 | ​
      |  
a.cc:181:1: error: '\U0000200b' does not name a type
  181 | ​
      |  
a.cc:186:1: error: '\U0000200b' does not name a type
  186 | ​
      |  
a.cc:191:1: error: '\U0000200b' does not name a type
  191 | ​
      |  
a.cc:199:1: error: '\U0000200b' does not name a type
  199 | ​
      |  
a.cc:207:1: error: '\U0000200b' does not name a type
  207 | ​
      |