error ‘size’ is not a member of ‘std’
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
原文地址: https://www.cveoy.top/t/topic/b0yN 著作权归作者所有。请勿转载和采集!