Questions tagged [cs50ap]

The tag has no usage guidance.

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

CS50 AP Game of Fifteen

I'm currently getting an error for "make sure game is winnable" but my program works with ./fifteen 3 < ~cs50/unit3/3x3.txt Here is my error log: :) fifteen.c exists. :) fifteen.c compiles. :) ...
1
vote
1answer
18 views

Find's sort: instructions vs code: O(n) or O

The docs for find's sort say, The running time of your implementation must be in O(n), where n is the array’s size. Yes, linear! Keep in mind that 65,536 is a constant. However, the code that we'...
1
vote
1answer
11 views

Minor typo in cs50ap find docs?

From the docs on find If you do plan on using additional functions in helpers.c, be sure to include the function prototypes in helpers.c. I think that last helpers.c, should be helpers.h?
1
vote
1answer
19 views

Is there a place to submit cs50x or cs50ap feature requests?

Is there a page for cs50 feature requests? Is there an interest for curriculum suggestions from fellow educators?
1
vote
1answer
38 views

How long are the passwords for crack?

The docs seem to have conflicting instructions, Assume that each password is no longer than (gasp) four characters And then, Note: The walkthrough video incorrectly states that passwords are no ...
0
votes
1answer
103 views

Basic use of crypt in crack.c? (Hash “ROLF”)

Here is a quick test case for crack direct from the CS50 AP material, $ ./crack 50fkUxYHbnXGw ROFL Here is my code, #define _XOPEN_SOURCE #include <unistd.h> #include <stdio.h> int ...
0
votes
1answer
501 views

crack.c: error: implicit declaration of function 'crypt' is invalid in C99

When I try to compile with clang -ggdb3 -O0 -std=c11 -Wall -Werror -Wshadow crack.c -lcrypt -lcs50 -lm -o crack I get crack.c: error: implicit declaration of function 'crypt' is invalid in C99 [-...
0
votes
1answer
3k views

CS50AP vs CS50X which one or more thorough?

I can't find a decent description of these two, CS50 is Harvard University's introduction to the intellectual enterprises of computer science and the art of programming for students less comfortable ...
0
votes
1answer
44 views

Is the Credit Problem required?

Is the Credit Problem part of the course, I'm kind of confused at the wording here You've reached the next problem in CS50 AP. You can find the specification for this problem, called Credit, ...
0
votes
1answer
196 views

HELP ON CAESAR.C

#include <cs50.h> #include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, string argv[]) { // Verification if (argc != 2)...
0
votes
2answers
262 views

why used %lu for all type of data types like char ,float ,double,etc

#include <cs50.h> #include <stdio.h> int main(void) { printf("bool is %lu\n", sizeof(bool)); printf("char is %lu\n", sizeof(char)); printf("double is %lu\n", sizeof(double)); ...
0
votes
1answer
53 views

Sudoku, prevent user from deleting numbers on the original board

So in this CS50 problem you're given a Sudoku board filled with numbers from 0-9. 1-9 slots needs to be made unchangeable, 0 slots are rendered as '.', and can be changed to a number by hitting any ...