func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int N;     scanf( %d , &N);     static int X[100];     for (int i = 0; i < N; i++) scanf( %d , &X[i]);     vector<int> Ans;     for (int i = 0, Count = 0, First = 0; i < N; i++) {       if (X[i] < 0) Count++;       if (i == N - 1 || (Count == 2 && X[i + 1] < 0)) {         Ans.push_back(i - First + 1);         First = i + 1;         Count = 0;       }     }     int M = Ans.size();     printf( %d n , M);     for (int i = 0; i < M; i++) {       printf( %d , Ans[i]);       putchar((i + 1 == M) ?   n  :    );     }     return 0;   }   