Main.cpp:10:6: warning: no previous extern declaration for non-static variable 'choice'
[-Wmissing-variable-declarations]
char choice;
^
Main.cpp:11:8: warning: no previous extern declaration for non-static variable 'name' [-Wmissing-variable-declarations]
string name, destination;
^
Main.cpp:11:8: warning: declaration requires an exit-time destructor [-Wexit-time-destructors]
Main.cpp:11:8: warning: declaration requires a global destructor [-Wglobal-constructors]
Main.cpp:11:14: warning: no previous extern declaration for non-static variable 'destination'
[-Wmissing-variable-declarations]
string name, destination;
^
Main.cpp:11:14: warning: declaration requires an exit-time destructor [-Wexit-time-destructors]
Main.cpp:11:14: warning: declaration requires a global destructor [-Wglobal-constructors]
Main.cpp:12:8: warning: no previous extern declaration for non-static variable 'count' [-Wmissing-variable-declarations]
double count = 1, flightnumber, passengercount, totalpassengers = 0;
^
Main.cpp:12:19: warning: no previous extern declaration for non-static variable 'flightnumber'
[-Wmissing-variable-declarations]
double count = 1, flightnumber, passengercount, totalpassengers = 0;
^
Main.cpp:12:33: warning: no previous extern declaration for non-static variable 'passengercount'
[-Wmissing-variable-declarations]
double count = 1, flightnumber, passengercount, totalpassengers = 0;
^
Main.cpp:12:49: warning: no previous extern declaration for non-static variable 'totalpassengers'
[-Wmissing-variable-declarations]
double count = 1, flightnumber, passengercount, totalpassengers = 0;
^
Main.cpp:38:35: error: reference to 'count' is ambiguous
cout << "Charter number: " << count << endl;
^
Main.cpp:12:8: note: candidate found by name lookup is 'count'
double count = 1, flightnumber, passengercount, totalpassengers = 0;
^
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xutility:3318:3: note: candidate found by name lookup is
'std::count'
count(_InIt _First, _InIt _Last, const _Ty& _Val)
^
Main.cpp:39:5: error: reference to 'count' is ambiguous
count++;
^
Main.cpp:12:8: note: candidate found by name lookup is 'count'
double count = 1, flightnumber, passengercount, totalpassengers = 0;
^
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xutility:3318:3: note: candidate found by name lookup is
'std::count'
count(_InIt _First, _InIt _Last, const _Ty& _Val)
^
Main.cpp:88:2: warning: C++98 requires newline at end of file [-Wc++98-compat-pedantic]
}
^
12 warnings and 2 errors generated.
Press any key to continue . . . |