stoi function gives error: std::invalid_argument at memory location 0x0035E8D8. c++

As from the reference documentationstd::stoi() must be expected to throw these exceptions:

Exceptions

std::invalid_argument if no conversion could be performed std::out_of_range if the converted value would fall out of the range of the result type or if the underlying function (std::strtol or std::strtoll) sets errno to ERANGE.

Thus this exception depends on your actual input, which you’re currently not disclosing from your question (unfortunately).

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)