Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 1448

Game of Fifteen, one of the assignments in Problem Set 3

26 votes

How to solve "control may reach end of non void function" error

This problem comes from a misunderstanding of the flow of control in your algorithm. Here's a representation of that control flow in pseudocode: if (outer-condition-1) if (inner-condition-1) …
Air's user avatar
  • 2,146
5 votes
Accepted

How do I fix a "use of undeclared identifier" compilation error?

The problem is the semicolon on line 138: for (int column = 0; column < d - 1; column++); In C, a semicolon is used to terminate a statement. The body of the for loop (the part in curly braces) is …
Air's user avatar
  • 2,146