This is my code
#include <iostream>
#include <vector>
using namespace std;
int main()
{
vector <char> vowels {'a','e','i','o','u'};
cout << vowels[0] << endl;
cout << vowels[4] << endl;
vector<int> test_scores {100,98,89};
cout << "\nTest scores using array syntax:" << endl;
cout << test_scores.at(0) << endl;
cout << test_scores.at(1) << endl;
cout << test_scores.at(2) << endl;
cout << "\nThere are " << test_scores.size() << " scores in the vector" << endl;
cout << "\nEnter 3 test scores:";
cin >> test_scores.at(0);
cin >> test_scores.at(1);
cin >> test_scores.at(2);
}
It works perfectly fine on Xcode but I can't run anything at all on codelite. Could someone please guide me through and tell me what it is I'm doing wrong. The terminal only prints out "Hello World". Im sure the issue is something small and stupid.