func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n = 0, m = 0, k = 0, arr[101], seg[100001][3];     long long sum = 0;     cin >> n >> m >> k;     for (int i = 0; i < m; i++) cin >> seg[i][0] >> seg[i][1] >> seg[i][2];     for (int i = 0; i < k; i++) cin >> arr[i];     for (int i = 0; i < k; i++) {       for (int j = 0; j < m; j++) {         if (arr[i] < seg[j][0] || arr[i] > seg[j][1]) continue;         sum += (arr[i] - seg[j][0]) + seg[j][2];       }     }     cout << sum;     return 0;   }   