Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 8 years ago

Language

Compiler

Options

Author

anonymous

over 8 years ago

$
prog.cc: In function 'int main()':
prog.cc:8:94: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
     printf("char max: \t\t%d\t\t\tmin: %d\t\tbajtów: %d\n", CHAR_MAX, CHAR_MIN, sizeof(char));
                                                                                              ^
prog.cc:9:96: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
     printf("short max: \t\t%d\t\t\tmin: %d\t\tbajtów: %d\n", SHRT_MAX, SHRT_MIN, sizeof(short));
                                                                                                ^
prog.cc:10:86: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
     printf("int max: \t\t%d\t\tmin: %d\tbajtów: %d\n", INT_MAX, INT_MIN, sizeof(int));
                                                                                      ^
prog.cc:11:90: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
     printf("long max: \t\t%d\t\tmin: %d\tbajtów: %d\n", LONG_MAX, LONG_MIN, sizeof(long));
                                                                                          ^
prog.cc:11:90: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
prog.cc:11:90: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
prog.cc:13:106: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
     printf("unsigned char max: \t%d\t\t\tmin: %d\t\t\tbajtów: %d\n", UCHAR_MAX, 0, sizeof(unsigned char));
                                                                                                          ^
prog.cc:14:108: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
     printf("unsigned short max: \t%d\t\t\tmin: %d\t\t\tbajtów: %d\n", USHRT_MAX, 0, sizeof(unsigned short));
                                                                                                            ^
prog.cc:15:110: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'unsigned int' [-Wformat=]
     printf("ŹLE   unsigned int max: \t%lld\t\tmin: %d\t\t\tbajtów: %d\n", UINT_MAX, 0, sizeof(unsigned int));
                                                                                                              ^
prog.cc:15:110: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
prog.cc:16:113: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'long unsigned int' [-Wformat=]
     printf("ŹLE   unsigned long max: \t%lld\t\tmin: %d\t\t\tbajtów: %d\n", ULONG_MAX, 0, sizeof(unsigned long));
                                                                                                                 ^
prog.cc:16:113: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
char max: 		127			min: -128		bajtów: 1
short max: 		32767			min: -32768		bajtów: 2
int max: 		2147483647		min: -2147483648	bajtów: 4
long max: 		-1		min: 0	bajtów: 8
unsigned char max: 	255			min: 0			bajtów: 1
unsigned short max: 	65535			min: 0			bajtów: 2
ŹLE   unsigned int max: 	4294967295		min: 0			bajtów: 4
ŹLE   unsigned long max: 	-1		min: 0			bajtów: 8
Exit Code:
0