Question: can anyone help me fixing the code because i am getting error my code #include #include #include #include #include using namespace std; #include int main()
can anyone help me fixing the code because i am getting error
my code #include
int main() { ifstream fin("Current_Reservoir_Levels.tsv"); if (fin.fail()) {//check whether file exists or not cerr << "File cannot be opened for reading." << endl; exit(1); } //declare two vectors vector
Error found
On input: 01/17/2018 01/23/2018 Received output: 01/23/2018 578.55ft ft 01/22/2018 578.55ft ft 01/21/2018 578.68ft ft 01/20/2018 578.8ft ft 01/19/2018 579.59ft ft 01/18/2018 580.4ft ft 01/17/2018 581.3ft ft While expected: 01/23/2018 581.3 ft 01/22/2018 580.4 ft 01/21/2018 579.59 ft 01/20/2018 578.8 ft 01/19/2018 578.68 ft 01/18/2018 578.55 ft 01/17/2018 578.55 ft
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
