Use size_t for size instead of int