|
|
back to boardI need Help,, Compilation Error!!!! Posted by rlavila 22 Oct 2011 09:17 I don´t understand why I get Compilation error when I send the code; #include <iostream> #include <math.h> #include <vector> using namespace std; int main() { long long n;
vector<long long>v;
while(std::cin >> n){ v.push_back(n); } vector<long long>::iterator indice= v.end()-1;
do{
std::cout.precision(4); std::cout<<fixed<<sqrt(*indice)<<endl;
indice--; }while(indice!= v.begin()-1);
return 0; } Re: I need Help,, Compilation Error!!!! click "Compilation error" to see more detailed information |
|
|