Hi guys,
I'm using this code:
And it retuns the result you would expect.Code:vector<int> v; v.push_back(123); printf("size: %u\n", v.size());
But if you compile it you get this warning:
Is there any better solution than just writing thatCode:warning #181: argument is incompatible with corresponding format string conversion printf("size: %u\n", v.size()); ^
Can I use a different format string?Code:(int) v.size()