|
|
back to boardRuntime error(stack overflow) . C++ #include<iostream> #include<iomanip> #include<math.h> using namespace std; int main() { unsigned long long n; double a[128*1024]; int i=0; while(cin>>n) { a[i]=sqrt(n); i++; } cout<<setprecision(4)<<fixed; for(int b=i-1;b>=0;b--) { cout<<a[b]<<endl; } return 0; } Edited by author 01.08.2016 20:26 |
|
|