identifier bool is undefined in c

In C, the identifier "bool" is undefined. To use boolean values, you can include the header file "stdbool.h" and use the "bool" type provided by this header.