Questions tagged [unused]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
283 views

cs50 pset 1 greedy algorithm

#include <cs50.h> #include <stdio.h> #include <math.h> int main(void) { float y; do { y = get_float("Change: "); } while (y < 0); printf("%f\n", y * 100); ...
user avatar
0 votes
2 answers
70 views

pset3 music - unsure what is wrong with my variables

I'm trying to shift the octave of the note and calculate its hertz, but somehow got error messages saying that my variables are unused. How should I fix this problem? My code: // Calculates ...
user avatar
0 votes
1 answer
121 views

Pset3 - Music: Unused parameters and control reaches end of non-void function errors

I have tried and googled everything, but I cannot seem to fix these mysterious errors. Within my helpers.c file, it is saying that I haven't used any of the parameters although I've used all of them. ...
user avatar
1 vote
1 answer
374 views

Pset2 caesar unused variable

Hello and thanks for reading. I have created a few functions and at the moment I have no idea if my code works, so I just want to test to see if my code works but I am getting a weird error which I'...
user avatar
0 votes
1 answer
58 views

For week 4 walkthrough unused variable even though I typed the same code as David

I type the same code as David, yet I get an unused window error and he doesn't. My code follows, and you can just as easily compare with his. #include <spl/gevents.h> #include <spl/gwindow....
user avatar
0 votes
1 answer
543 views

Unused Variable, then Undeclared

I have done CS50 for about 2 weeks now, and I keep on getting stuck at this part of the code. (Greedy Problem set) #include <stdio.h> #include <cs50.h> #include <math.h> #define Q ...
user avatar