Hello :) .
I wannt to know what is wrong in this code,because i get this error: fatal error C1083: Cannot open precompiled header file: '/Debug/ass.pch': No such file or directory. Error executing cl.exe
#include <iostream>
#include <windows.h>
usingnamespace std;
int main()
{
cout<<"Numele Hack-ului vine aici"<<endl;
cout<<"Hack by NUME! Thanks for download!"<<endl;
cout<<"\n";
Sleep(500);
cout<<"The hack is starting";
Sleep(700);
cout<<"\rThe hack is starting.";
Sleep(700);
cout<<"\rThe hack is starting..";
Sleep(700);
cout<<"\rThe hack is starting..."<<endl;
Sleep(1000);
cout<<"Checking for the latest updates";
Sleep(600);
cout<<"\rChecking for the latest updates.";
Sleep(600);
cout<<"\rChecking for the latest updates..";
Sleep(600);
cout<<"\rChecking for the latest updates..."<<endl;
Sleep(1700);
cout<<"An available update was found!"<<endl;
Sleep(600);
cout<<endl;
for (int i = 0; i<=4; i++) {
cout<<"\rUpdating: "<<i<<"%"<<flush;
Sleep(900);
}
for (int i = 5; i<=24; i++) {
cout<<"\rUpdating: "<<i<<"%"<<flush;
Sleep(300);
}
for (int i = 25; i<=49; i++) {
cout<<"\rUpdating: "<<i<<"%"<<flush;
Sleep(100);
}
for (int i = 50; i<=71; i++) {
cout<<"\rUpdating: "<<i<<"%"<<flush;
Sleep(350);
}
for (int i = 72; i<=83; i++) {
cout<<"\rUpdating: "<<i<<"%"<<flush;
Sleep(200);
}
for (int i = 84; i<=96; i++) {
cout<<"\rUpdating: "<<i<<"%"<<flush;
Sleep(450);
}
for (int i = 97; i<=100; i++) {
cout<<"\rUpdating: "<<i<<"%"<<flush;
Sleep(1600);
}
cout<<endl;
cout<<"\n";
Sleep(600);
cout<<"You have the latest version!"<<endl;
Sleep(1500);
cout<<"The hack will start in a few seconds";
Sleep(700);
cout<<"\rThe hack will start in a few seconds.";
Sleep(700);
cout<<"\rThe hack will start in a few seconds..";
Sleep(700);
cout<<"\rThe hack will start in a few seconds..."<<endl;
cout<<endl;
cout<<"\n";
Sleep(2000);
cout<<"ERROR: Your operating system is not compatible with this hack! (code error:#9H7ABLO)"<<endl;
cout<<"\n";
Sleep(2000);
cout<<"\n";
system("PAUSE");
return EXIT_SUCCESS;
}
It seems that you are using an old compiler that does not consider variables decalred in the for statement as having only the for statement block scope.
You can define variable i only once in the beginning of the program. For example