源代码:http://cpp.jsrun.net/65vKp/edit 输出格式: /data/159461785791196442.cpp: In function 'int main(int, char*)': /data/159461785791196442.cpp:91:56: error: cast from 'short int' to 'short unsigned int' loses precision [-fpermissive] printf("ShortPtr value = 0x%lx\n", (unsigned short)ShortPtr)); /data/159461785791196442.cpp:91:64: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'int' [-Wformat=] printf("ShortPtr value = 0x%lx\n", (unsigned short)ShortPtr));
~~~~~~~~~~~~~~~~~~~~~~~~^
/data/159461785791196442.cpp:91:65: error: expected ';' before ')' token
printf("ShortPtr value = 0x%lx\n", (unsigned short)ShortPtr));
^
/data/159461785791196442.cpp:92:59: error: cast from 'short int**' to 'short unsigned int' loses precision [-fpermissive]
printf("ShortPtr Address = 0x%lX\n", (unsigned short)&ShortPtr);
^~~~
/data/159461785791196442.cpp:92:67: warning: format '%lX' expects argument of type 'long unsigned int', but argument 2 has type 'int' [-Wformat=]
printf("ShortPtr Address = 0x%lX\n", (unsigned short)&ShortPtr);
~~~~~~~~~~~~~~~~~~~~~~~~~^
/data/159461785791196442.cpp:95:43: error: cast from 'int*' to 'int' loses precision [-fpermissive]
printf("IntPtr value = 0x%lx\n", (int)IntPtr);
^~
/data/159461785791196442.cpp:95:49: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'int' [-Wformat=]
printf("IntPtr value = 0x%lx\n", (int)IntPtr);
~~~~~~~~~~~^
/data/159461785791196442.cpp:96:46: error: cast from 'int**' to 'int' loses precision [-fpermissive]
printf("IntPtr Address = 0x%lX\n", (int)&IntPtr);
^~
/data/159461785791196442.cpp:96:52: warning: format '%lX' expects argument of type 'long unsigned int', but argument 2 has type 'int' [-Wformat=]
printf("IntPtr Address = 0x%lX\n", (int)&IntPtr);
~~~~~~~~~~~~^
/data/159461785791196442.cpp:98:50: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'int' [-Wformat=] printf("cValue value = 0x%lx\n", (char)cValue);//数据格式待定
~~~~~~~~~~~~^
/data/159461785791196442.cpp:99:47: error: cast from 'char*' to 'char' loses precision [-fpermissive]
printf("cValue Address = 0x%lX\n", (char)&cValue);
^~
/data/159461785791196442.cpp:99:53: warning: format '%lX' expects argument of type 'long unsigned int', but argument 2 has type 'int' [-Wformat=]
printf("cValue Address = 0x%lX\n", (char)&cValue);
~~~~~~~~~~~~~^
/data/159461785791196442.cpp:101:51: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'int' [-Wformat=] printf("sValue value = 0x%lx\n", (short)sValue);//数据格式待定
~~~~~~~~~~~~~^
/data/159461785791196442.cpp:102:48: error: cast from 'short int*' to 'short int' loses precision [-fpermissive]
printf("sValue Address = 0x%lX\n", (short)&sValue);
^~
/data/159461785791196442.cpp:102:54: warning: format '%lX' expects argument of type 'long unsigned int', but argument 2 has type 'int' [-Wformat=]
printf("sValue Address = 0x%lX\n", (short)&sValue);
~~~~~~~~~~~~~~^
/data/159461785791196442.cpp:104:49: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'int' [-Wformat=] printf("iValue value = 0x%lx\n", (int)iValue);
~~~~~~~~~~~^
/data/159461785791196442.cpp:105:46: error: cast from 'int*' to 'int' loses precision [-fpermissive]
printf("iValue Address = 0x%lX\n", (int)&iValue);
^~
/data/159461785791196442.cpp:105:52: warning: format '%lX' expects argument of type 'long unsigned int', but argument 2 has type 'int' [-Wformat=]
printf("iValue Address = 0x%lX\n", (int)&iValue);