|  | 
|  | 
| вернуться в форум | Guys, why does it say me fail if it wors fine? #include <iostream>#include <vector>
 #include <math.h>
 #include <iomanip>
 #define ACCURACITY 4
 using namespace std;
 
 int main()
 {
 vector<double> m;
 while (1)
 {
 double tmp;
 cin>>tmp;
 if (cin.eof()){break;}
 m.push_back(tmp);
 }
 for (int i=m.size()-1; i > -1; --i)
 {
 cout<<endl<<setprecision(ACCURACITY)<<fixed<<sqrt(m[i]);
 }
 }
 
 the results are the same with results of the task
Re: Guys, why does it say me fail if it wors fine? Послано Noob  14 дек 2012 22:22 
 Edited by author 14.12.2012 22:23
 | 
 | 
|