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 not deleted user 28337
0 votes
Accepted

Error: Use of undeclared identifier in cash.c

I figured it out! By looking at one of my previous psets I added a declaration on top. DISCLAIMER: THIS CODE STILL HAS OTHER ERRORS. #include <cs50.h> #include<math.h> int main(void) { int n = 0 …
Firestar464's user avatar
0 votes
2 answers
479 views

Error: Use of undeclared identifier in cash.c

As for variable f, isn't f declared in Cash 7:12? Edit: I edited the code to declare the variables, a la below. …
Firestar464's user avatar
0 votes
0 answers
2k views

Error: more '%' conversions than data arguments

#include <cs50.h> #include<math.h> #include<stdio.h> int main(void) { int n = 0; do { n = (get_float("Change owed: ") * 100); } while (n < 0); int q = ((n / 25) % 10); …
Firestar464's user avatar
0 votes
2 answers
167 views

Incorrect output by check50

I worked very hard on Cash and finally produced compilable code and correct output. But when I ran check50 I got these results, shown here. Please help. My code is shown below, in case you need it. …
Firestar464's user avatar
0 votes
1 answer
255 views

Cash.c:11:24: error: expected expression

#include <cs50.h> #include<math.h> int main(void) { int n = 0; do { n = (get_float("Change owed: ") * 100); } while (n < 0); int q = ((n / 25) %) int d = (( …
Firestar464's user avatar