#include <iostream> using namespace std; int a =1; int main() { int a = 3; cout<<::a<<endl; //输出1 cout<<a<<endl; //输出3 return 0; }