|
|
back to boardPlz check what is wrong ? #include<string> #include<iostream> #include<math.h> #include<iomanip> using namespace std; int main() { long double inp[128*1024]; int i=0; while (cin>>inp[i]) { i++; } i--; while ( i >= 0) { cout<<setprecision(4)<<fixed<<sqrt(inp[i])<<endl; i--; } return 0; } PS - for 876652098643267843 the range of long double is exceeded Re: Plz check what is wrong ? Posted by figael 21 Oct 2008 12:40 long double inp[128*1024]; run out of Memory!:-)Maybe u can try another way to store the data. |
|
|