Hiii I am trying to dis program but i gives me an error.....i donno wat 2 do in this forum....plzzz hep me
#include <iostream>
using namespace std;
int main()
{
cout <<"Enter 10 digits";
int a[]= new a[10];
for( int i=0;i<10;i++)
cin>> a[10];
int small,big;
for(int i=0;i<10;i++)
{
if (a[i]<10)
small+=a[i];
else
big+=a[i];
cout<<big;
}
cout<<"small"<<small;
cout<<"big"<<big;
int all;
for (int i=0;i<10;i++);
{
all+=a[i];
}
cout<<"all numbers"<<all;
return 0;
}