func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n;     cin >> n;     int arr[n];     for (int i = 0; i < 7; i++) {       cin >> arr[i];     }     int day = 1;     int i = 0;     while (n > 0) {       n = n - arr[i];       i++;       if (n > 0) {         day++;       }       if (day > 7) {         day = 1;       }       if (i == 7) {         i = 0;       }     }     cout << day;   }   