It looks like you are using a library that the code was not written for. There are many libraries for the DHTxx sensors. It may be a challenge to find the one that matches your code.
I would suggest that you try the example code that came with the library that you have installed.
Otherwise, post a link to where you got the library. Post a link to where you got that code. Post the code that generates those errors. Please read the forum guidelines to see how to properly post code and some information on making a good post.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.
Please post a diagram of your wiring. Hand drawn, photographed and posted is fine. Include all pin names/numbers, components, their part numbers and/or values and power supplies.