Initdata(): not declared in scope how can I solve this problem
My first guess would be that you have at least one missing } at the end of a function, but as we can't see your code, who knows ?
Please post the complete sketch and complete error message taking heed of the advice in How to get the best out of this forum about using code tags
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.
Please include the entire error message. It is easy to do. There is a button (lower right of the IDE window) called "copy error message". Copy the error and paste into a post in code tags. Paraphrasing the error message leaves out important information.
Maybe it is spelled "initData".
You could start by:
In the Arduino IDE, use Ctrl T or CMD T to format your code then copy the complete sketch.
Use the </> icon from the ‘reply menu’ to attach the copied sketch.
Function calls end with a semi-colon
(;) not a colon