#include
using namespace std;
namespace N1{
int a = 10;
}
int a = 20;
void Test(int a = 10) {
cout << a << endl;
}
int main() {
int a = 30;
printf("%d\n", a);//访问局部变量a=30
printf("%d\n", ::a);//访问全局变量a=20
printf("%d\n", N1::a);//访问空间N1里的局部变量a=10
return 0;
}