Questions tagged [problemset4]

The tag has no usage guidance.

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

Pset4 professor.py fails to pass one test with check50

My program for little professor problem passes all the tests with check50 except one that says : "expected program to reject input, but it did not". The program prompts the user for a level ...
khalil_dev's user avatar
0 votes
1 answer
46 views

The third last line of code is the one causing a segmentation fault. When removed, nothing happens and all I get is a $ on a new line in the terminal

#include <stdio.h> #include <stdlib.h> #include <string.h> #include <cs50.h> int main(int argc, char *argv[]) { #define BUFFER_SIZE 512 FILE *img = NULL; if(argc =...
Lim Yee Wee's user avatar
0 votes
1 answer
165 views

implicit declaration of function 'strcpm' is invalid even though string.h is included

My Code #include <stdio.h> #include "helpers.h" #include <math.h> #include <string.h> // Prototypes char* get_pixel_position(int j, int i, int width, int height); void ...
Arnaldo's user avatar