Error: In function ‘int main()’: holes.cpp:14:11: error: ‘strlwr’ was not declared in this scope strlwr(s);
Here's my code:
#include<iostream>
#include<cstring>
#include<cstdlib>
using namespace std;
int main()
{
    int t,c[40]={0};
    char s[100];
    int i;
    cin>>t;
    for(i=0;i<t;i++)
    {
        cin>>s;
        strlwr(s);
        for(int j=0;j<strlen(s);j++)
        {
            if(s[j]=='q'||s[j]=='r'||s[j]=='o'||s[j]=='p'||s[j]=='a'||s[j]=='d')
                c[i]++;
            else if(s[j]=='b')
                c[i]+=2;
        }
    }
    for(i=0;i<t;i++)
        cout<<c[i]<<endl;
    return 0;
}           
I tried doing using std::strlwr, still it does not work. I saw a solution elsewhere to include cstring instead of string, still it does not work. Help please!
 
    