Witam , wykonuje zadanie na spoja i nie przechodzi mi testow, chodzi o to ze musze wczytac 60 000 liczb ciągu jednak maksymalnie wczytuje 32768 , nie wiem w czym problem o to wczytanie i link z ideone https://ideone.com/Ygalsv
#include <iostream>
#include <cstdio>
using namespace std;
const int MAX = 10000000;
int i;
int a[MAX];
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv)
{
fscanf(stdin, "%d", &a[0]);
i++;
while(!feof(stdin) ){
fscanf(stdin, "%d", &a[i]);
i++;
}
printf("%d",i);
}