我前面已经有类了为什么还是报错

图片说明
图片说明

如果你的代码都不是自己写的,而是从哪里抄来的,而你本人又一窍不通,首先排除下低级错误,比如说你正在c的编译器下编译c++代码,或者缺少文件。

把代码帖出来吧,便于查找问题

v.co.instrtime.at(num) check v is a class and your function whether a static funciton,if it is a static funciton ,you must be use a class. to use this
function.

就是你少引用来库文件