Код: Выделить всё
#include
using namespace std;
int x = 10;
namespace e {
int x = 5;
}
int main() {
using namespace e; // Because of this line, the compiler shows an error
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/65719140/accessing-a-global-and-namespace-variable[/url]