Question: wont compile error lone 33. 10 errror is expected error beore greatest in the void get greatest block of code i dont see any missing

wont compile error lone 33. 10 errror is expected error beore greatest in the void get greatest block of code i dont see any missing semicolons please help

// This program to gve monthly averages on planes landing and departing

// Adam Horton

#include #include

using namespace std;

struct plane {

int landed; int departed; int greatest; int least; };

int totalDeparted (plane arr []){ int total=0; for(int i=0;i<12;++i){ total += arr[i].departed; } return total; } int totalLanded(plane arr[]){ int total=0; for(int i=0;i<12;++i){ total += arr[i].landed; } return total; }

void get greatest (plane arr [],int&m,int&g){ g=-55555; for(int=0;i<12;++i){ if(g

int main() { plane arr[12]; for(int=0;i<12;++i){

cout<<"Enter details for the month: "<<(i+1)<> arr[i].landed; cout<<"Total number of planes that departed: " ; cin>> arr[i].departed; cout<<" Greatest number of planes that landed in a given day that month: "; cin>> arr[i]. greatest; cout<<" Least number of planes that landed in a given day that month: "; cin>> arr[i].least; cout<

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!