|
|
back to boardWhy does it return compilation error? I'm using GCC compilator. Posted by satybal 12 Mar 2024 13:34 #include <iostream> #include <vector> #include <cmath> using namespace std; int main() { double number; vector<double> numbers; while (cin >> number) numbers.push_back(number); cout.precision(4); cout.setf(std::ios::fixed); for (auto iter = numbers.rbegin(); iter != numbers.rend(); ++iter) cout << sqrt(*iter) << endl; return 0; } Re: Why does it return compilation error? I'm using GCC compilator. Posted by vzhanm 28 Apr 2024 12:10 g++ for C++ code |
|
|