Error: 'strtok' was not declared in this scope; did you mean 'strtol'?

I am not able to understand how is this not declared in the scope even after including the string header file.
#include
#include
using namespace std;

int main(){
char s[100]= “Today is a rainy day”;

char *ptr = strtok(s," ");
cout<<ptr<<endl;

while(ptr != NULL){
    ptr = strtok(NULL," ");
    cout<<ptr<<endl;
}
return 0;

}

hello @Vishesh-Chaitanya-1475805525886480

add this header file in ur code and then try.

#include< bits/stdc++.h >