Тема: Видає помилку
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
int main() {
    const int N = 10;
    int array[N];
    int sum = 0;
    int count = 0;
    int el=10000 ;
    for (int j = 0; j < N; j++) {
        printf << "array[" << j << "]= ";
        scanf >> array[j];     
    }
    for (int j = 0; j < 10 ;j++) 
        cout << array[j] << " ";
    for (int j = 0; j < N; j++) 
        if (el > array[j]) 
            el = array[j];
    cout <<"\n" <<el << " min"<<endl
    for (int j = 0; j < 10; j++) {
        if (el < 0)
        {
            sum += array[j];
        }
        if (array[j]<0)
        {
            break; 
        }
    }
    cout <<"\n"<< sum<<endl;
    system("pause");
}
}