Questions tagged [unused]
The unused tag has no usage guidance.
6
questions
0
votes
1answer
263 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);
...
0
votes
2answers
69 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 ...
0
votes
1answer
114 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.
...
1
vote
1answer
373 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'...
0
votes
1answer
53 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....
0
votes
1answer
526 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 ...