When I am trying to set vector size with unsigned long long in x86 architecture, I am seeing below error:
unsigned long long sz;
vec.resize(sz);
error C4244: 'argument': conversion from 'unsigned __int64' to 'const unsigned int', possible loss of data
Why is this error? what is the behavior of unsigned long long in x86 architecture? How to set vector size with unsigned long long value in x86 architecture?
unsigned long long
specified as being the type to use? – PaulMcKenzie