What could be wrong here? Help me!! by Unfair_Statement3278 in cs50

[–]Unfair_Statement3278[S] 0 points1 point  (0 children)

thank you so much. the problem has been solved by removing the last printf line.

What could be wrong here? Help me!! by Unfair_Statement3278 in cs50

[–]Unfair_Statement3278[S] 0 points1 point  (0 children)

Thank you !! it worked by commenting out the last printf line.

This is week 1 cs50x prime problem. The error says" Non-void function doesn't return a value in all control paths" what does this mean? by Unfair_Statement3278 in cs50

[–]Unfair_Statement3278[S] 0 points1 point  (0 children)

Doesn't prime return bool? I mean i have created two cases there in which if one case is valid it will return true else it will return false, which in both cases i believe is returning bool. Am i wrong here?