CPP при использовании size_t

always use size_t for the size of anything or for index.
Sorann