|
|
back to boardG++ 4.9 Where is compilation error?/ Где ошибка компиляции? Posted by Vadim 17 Aug 2016 19:15 #include <iostream> #include <math.h> #include <algorithm> #include <vector> using namespace std; int main() { vector<long long int>v; long long int b; while (cin >> b) v.push_back(b); reverse(v.begin(),v.end()); for (long long int k: v) cout << fixed << sqrt(k) << "\n"; return 0; } Re: G++ 4.9 Where is compilation error?/ Где ошибка компиляции? Posted by Noob 19 Aug 2016 01:05 Try sqrt(k + 0.0) |
|
|