how to read space seperated integers in cpp code example
Example: how to convert n space separated integers in c++
int i, n, arr[100];
scanf("%d", &n);
for (i = 0; i < n; ++i)
scanf("%d", &arr[i]);
int i, n, arr[100];
scanf("%d", &n);
for (i = 0; i < n; ++i)
scanf("%d", &arr[i]);