func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     long long int arr[200005] = {0};     long long int ans[200005] = {0};     int x, y, n, k, q;     cin >> n >> k >> q;     while (n--) {       cin >> x >> y;       arr[x]++;       arr[y + 1]--;     }     for (int i = 1; i <= 200000; i++) {       arr[i] += arr[i - 1];     }     for (int i = 1; i <= 200000; i++) {       if (arr[i] >= k)         ans[i] = ans[i - 1] + 1;       else         ans[i] = ans[i - 1];     }     while (q--) {       cin >> x >> y;       cout << ans[y] - ans[x - 1] << endl;     }     return 0;   }   