Well, of course it doesn't working because namespace defined works only in included.cpp. Simple solution here is to to write "using" once more in main.
Many things in C\C++ defined at a "file scope" and when you are inserting one in another, it's not exactly clear how to define such scope.
Besides, it's indeed not good practice to include cpps. You should include h\hpp files (headers), because it makes troubles in growing projects (cohesion) and makes problems like discussed here.
#include <includedfile.h>
#include <iostream>
int main()
{
std::cout << name << endl;
}
//includedfile.cpp
void DoSomething()
{
std::string name;
name = "jim";
}
//includedfile.h
void DoSomething();