C1075- the left brace unmatched at the end of file

Apr 30, 2016 at 12:29pm
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>
using namespace std;

int main() {
	string tweet;
	unsigned int 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);  

Here is the end:

}

cout << "Decoded tweet: " << tweet << endl;

return 0;
}
Topic archived. No new replies allowed.