Monday, May 18, 2020

error: ‘std::vector’ is not a type


int singleNumber( std::vector& nums )


solution:

you have to declare the type.



most of the c++ code that gets copied to html gets truncated and thus this happens. Following can help

https://mihirknows.blogspot.com/2020/05/code-template-in-blogger.html

No comments: