This error message typically occurs when the compiler encounters code that tries to access a member function or variable that does not exist in the specified namespace or class. In this case, the error message suggests that the program is trying to access a member called "size" in the "std" namespace, but it cannot find it.

To fix this error, you should ensure that you have included the appropriate header file(s) for the data type or container you are using that defines the "size" member function or variable. For example, if you are working with a vector in C++, you need to include the header file to access the "size" member function. If you have already included the necessary header files, make sure that you have spelled the member function or variable correctly and that it is available in the version of the standard library you are using.

error ‘size’ is not a member of ‘std’

原文地址: https://www.cveoy.top/t/topic/b0yN 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录