Quote:
#include <iostream>
#include <string>
using namespace std;
#define RACERS 3
|
Dont do #define like that.
Since you are using namespace std, we are assuming you are truly programming in standard C++. Don't mix C with C++.
Code this: const unsigned racers = 3;
Also no using of cin.getline() when using std::string. Use std::getline().