This is based on GCC/G++ and usually on Ubuntu.
Here\'s my sample program I\'ve done:
#include using namespace std; int main() {
You need to include the string class header:
#include
This code has a typo, missing a second colon
std:string N;
should be:
std::string N;
With a single colon, it becomes a label for goto, which is probably not what you meant.