index.cpp:5:36: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=] printf("int: %d\n", sizeof(int));
printf("int: %d\n", sizeof(int));
修改为:
printf("int: %ld\n", sizeof(int));