|
|
вернуться в форумWhat's wrong in my code? Послано moijf 20 сен 2007 20:52 Of course there is a pb 64000 is enougth for 256k input my source is there Merci.... #include <iostream> #include <math.h> using namespace std; int main() {double nb; float tableau[64000]; int pointeur=0; //freopen("1001.txt", "r", stdin);//to test my exemples while(cin>>nb) tableau[pointeur++]=sqrt(nb); pointeur--; for (int i=pointeur;i>=0;i--) printf("%.4f\n",tableau[i]); return 0; } Re: What's wrong in my code? Use "double" instead of "float" and you'll get AC ;) |
|
|