Skip to content

vimplus的标准库要自己配置吗? #1

Open

Description

@river-and-wood

#include
#include
#include
#define MAXLEN 100
using namespace std;
int main()
{
srand(time(0));
int m = rand();
return 0;
}

error: use of undeclared identifier 'srand'?

Activity

  1. river-and-wood commented on Nov 7, 2023

    @river-and-wood
    Author

    不对,程序能运行,应该是ycm插件的原因

  2. river-and-wood commented on Nov 7, 2023

    @river-and-wood
    Author

    Uploading 屏幕截图 2023-11-07 203905.png…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions