|  | 
|  | 
| вернуться в форум | It's interesting.. All compilers are succeed with this code.What's wrong?
 
 
 #include <iostream>
 #include <iomanip>
 #include <cmath>
 using namespace std;
 int main()
 
 {
 double buffer[128*1024];
 unsigned long long number, n=0;
 while(cin >> number)
 {
 buffer[n]=pow(number,1.0/2.0);
 n++;
 }
 for (int i=n-1;i>=0;i--)
 {
 cout << fixed << setprecision(4) << buffer[i] << endl;
 }
 return 0;
 }
 | 
 | 
|