Bu hatayı nasıl düzeltebilirim yardımcı olurmusunuz

Arduino:1.8.7 (Windows 10), Kart:"Arduino/Genuino Uno"

C:\Users\DELL\Documents\Arduino\yether\yether.ino:398:1: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null]

};

^

C:\Users\DELL\Documents\Arduino\yether\yether.ino:398:1: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null]

C:\Users\DELL\Documents\Arduino\yether\yether.ino:398:1: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null]

C:\Users\DELL\Documents\Arduino\yether\yether.ino:398:1: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null]

C:\Users\DELL\Documents\Arduino\yether\yether.ino:398:1: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null]

C:\Users\DELL\Documents\Arduino\yether\yether.ino:398:1: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null]

C:\Users\DELL\Documents\Arduino\yether\yether.ino:398:1: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null]

C:\Users\DELL\Documents\Arduino\yether\yether.ino:398:1: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null]

C:\Users\DELL\Documents\Arduino\yether\yether.ino: In function 'void loop()':

yether:507:34: error: 'countPoops' was not declared in this scope

   health-=0.00005+countPoops()*0.0001;

                              ^

yether:517:33: error: 'countPoops' was not declared in this scope

   health-=0.0001+countPoops()*0.0001;

                             ^

yether:533:29: error: 'countPoops' was not declared in this scope

   poopometer=countPoops();

                         ^

yether:548:33: error: 'countPoops' was not declared in this scope

 if(hunger<=20 || countPoops()>0 || happiness<=20 || health<=20){

                             ^

yether:551:32: error: 'countPoops' was not declared in this scope

 if(hunger>20 && countPoops()==0 && happiness>20 && health>20){

                            ^

C:\Users\DELL\Documents\Arduino\yether\yether.ino:661:17: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]

       action=NULL;

             ^

C:\Users\DELL\Documents\Arduino\yether\yether.ino:711:15: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]

     action=NULL;

           ^

yether:1001:1: error: expected primary-expression before '...' token

...

^

yether:1003:74: error: expected '}' at end of input

This file has been truncated, please download it to see its full contents.

                                                                      ^

yether:1003:74: error: expected '}' at end of input

yether:1003:74: error: expected '}' at end of input

exit status 1
'countPoops' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Hello
Post your sketch with comments, well formated and in code tags <'/'>.
You may shall change your post header to English language to get more help.

@arda115, your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advise on) your project :wink: See About the Installation & Troubleshooting category.

many of the msgs are duplicated for the same line. some are just warnings (but should be fixed).

look at the line numbers on the msgs. very often the problem is a typo on the previous line

  • countPoops is not defined (possibly misspelled)

  • line 398, it's odd that there's a ";" after a "}". doesn't explain

  • NULL is problematic. it's defined as 0, but needs a cast to (char*) is setting a ptr to NULL

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.