func_code_string: #include <bits/stdc++.h>   using namespace std;   void solve() {     int n;     cin >> n;     vector<int> candies(n);     for (int i = 0; i < n; i++) cin >> candies[i];     int i = 0, j = n - 1;     int store_a = 0, store_b = 0;     int turn = 0, sum_a = 0, sum_b = 0;     while (i <= j) {       if (turn % 2 == 0) {         int str_temp = 0;         while ((str_temp <= store_b) && (i <= j)) {           str_temp += candies[i];           i++;         }         store_a = str_temp;         sum_a += store_a;       } else {         int str_tem = 0;         while ((str_tem <= store_a) && (i <= j)) {           str_tem += candies[j];           j--;         }         store_b = str_tem;         sum_b += store_b;       }       turn++;     }     cout << turn <<     << sum_a <<     << sum_b <<   n ;   }   int main() {     int t;     cin >> t;     while (t) {       solve();       t--;     }     return 0;   }   