The left brace is matched at the end of the file. It must be something else. Here is the begimnning and end of the program:
1 2 3 4 5 6 7 8 9 10 11 12
#include <iostream>
#include <string>
usingnamespace std;
int main() {
string tweet;
unsignedint pos;
string::npos;
cout << "\nEnter tweet:"; // User enters a complete tweet (160 characters or less)
getline(cin, tweet); // Gets the single line of text
tweet.resize(160);