Compile the code
Compilation failed due to following error(s).
main.cpp: In function ‘int main()’:
main.cpp:93:70: error: invalid types ‘main()::Weatherdata [12][double]’ for array subscript
cout<<"The highest temperature of the year is"<<info[highest_temp].high_temp<<endl;
^
main.cpp:94:68: error: invalid types ‘main()::Weatherdata [12][double]’ for array subscript
cout<<"The lowest temperature of the year is"<<info[lowest_temp].low_temp<<endl;
^
Understand the error message
The compiler tells you exactly where the problem is (do you see the ^ sign?). Also, it's explained in words: "invalid types for array subscript". The problem for the compiler is that you are trying to index an array (info) with a double (lowest_temp). Since the items in an array can be only on non-negative integral numbers (0, 1, 2, 3, etc) trying to index with a floating point number (e.g. 1.234) makes absolutely no sense, so the compiler raises an error.
What you should have done instead is to save the index of the month with the lowest temperature, and use this index to access elements in info.
You can look at my proposed solution in your previous post (http://question.onlinegdb.com/8702/whats-wrong-in-my-code-when-using-structures-with-arrays?show=8704#a8704). That is just one way how to do things, but it gives you some idea who certain things can be achieved.