Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    hemanthrishee
    @hemanthrishee
    Hi guys, I am new to CS and never done programming before
    I was trying to compile a programme for lab1 of week 1
    i am facing an error that make function isn't working or that my file itself isnt identified
    make: * No rule to make target 'hello'. Stop.
    this is the error i am facing, pls help
    deaademi
    @deaademi
    @hemanthrishee Maybe you should save your file first with .c and then
    go to the terminal window and type make (the name of your file that you have already saved with “.c”) then it should work
    And then you should continue typing: ./(name of your file)
    hemanthrishee
    @hemanthrishee

    @hemanthrishee Maybe you should save your file first with .c and then
    go to the terminal window and type make (the name of your file that you have already saved with “.c”) then it should work

    thank you, it worked, just finished lab 1

    deaademi
    @deaademi
    You are welcome. Im so glad I could help.
    hemanthrishee
    @hemanthrishee
    @deaademi Could you pls help me here, I was trying to finish Problem Set 1 with the Credit problem
    but then i am facing a bug which I am not able to figure out a solution to
    //Get Credit Card numbers from user
    long creditnum = get_long("Number: ");
    if (creditnum < 1000000000000 || creditnum > 9999999999999999)
    {
    printf("INVALID\n");
    }
    this is what i used to get user input, and declare it "INVALID" if it has less than 13 digits or greater than 16 digits
    but the problem is that after getting declared "INVALID", it still goes further down the programme, and gets declared "INVALID" after checking the checksum
    Number: 5
    INVALID
    INVALID
    hemanthrishee
    @hemanthrishee
    and thus getting result as shown above
    deaademi
    @deaademi
    I still haven’t finished lesson one totally yet, but I guess that help50 could tell you where the error is
    Try typing in the terminal window:
    $ help50 make (the name of your file) *type enter
    This will highlight the error and show you what to do
    deaademi
    @deaademi
    I am not sure yet, but I think that maybe you could try to make a variable as “creditnum” and not put it after long, but use creditnum as a variable for example n=creditnum and then continue your coding with “while” and “do”. Be careful to include the variable and code referring to the variable inside the { } brackets.
    jjhhsss
    @jjhhsss

    I am getting this error: Cannot assign "'user'": "auction_listings.origin_user" must be a "User" instance. This is the code:

    origin_user = models.ForeignKey(User, on_delete=models.CASCADE)

    What am I doing wrong?

    Robin Kroonen
    @WhoIsRBKN
    Hello World
    Gitter has been bought by Matrix :D
    @heybiblee__v_twitter
    Hello! Any Filipino here?
    farfarout560
    @farfarout560
    @heybiblee__v_twitter Hello!
    Khalid Rafi
    @darkchocolate:kde.org
    [m]
    Hello, anyone there?
    Ceyda1307
    @Ceyda1307
    Hello
    m4shhood
    @m4shhood
    Hi
    Alan
    @AlanNavarro248
    Hello there
    Mridul Birla
    @Mridulbirla13
    Hello
    Biku9090
    @Biku9090
    I can't use "check50". I need help.
    OrangeJuice023
    @OrangeJuice023
    hello mentor @Blauelf , can I ask what is the error in my finance pset9 if my check50 shows this?:( buy handles fractional, negative, and non-numeric shares
    application raised an exception (see the log for more details)
    deaademi
    @deaademi
    @Biku9090 try typing check50 (and the name of your coding file) then type enter
    Blauelf
    @Blauelf
    @OrangeJuice023 Well, what does the log say?
    (Also, does anything here mark me as "mentor"?)
    My guess would be that you call int() but then don't handle the ValueError it throws if input does not look like an integer. But log might tell you more.
    Biku9090
    @Biku9090
    @deaademi it is writing Invalid Slug
    deaademi
    @deaademi
    Have you used clang in the terminal window?
    Have you typed clang?
    Blauelf
    @Blauelf
    @Biku9090 If it says "invalid slug", make sure you copy the slug from the problem specification. Looks like cs50/problems/x/2021/hello
    OrangeJuice023
    @OrangeJuice023
    @heybiblee__v_twitter goodluck sir also Pinoy :D
    @Blauelf thanks for the tag sir but I already solved it. Thank you anyways :D
    Md. Hajrot Ali
    @Hajrot97
    Hello
    Ghost
    @ghost~613c4c386da0373984854de4
    Hello!
    Krish Gupta
    @krishdevdb
    Hi :wave:
    kimutaiamos
    @kimutaiamos
    hello
    Ghost
    @ghost~613c4c386da0373984854de4
    I have just completed CS50S Scratch Course on edx.
    Ghost
    @ghost~613c4c386da0373984854de4
    It was very ez!
    khizra944
    @khizra944
    hello everyone i m new here can someone give me a advice
    2 replies
    e468141
    @e468141
    Hello, I am a student of CS50 "Introduction to Artificial Intelligence with python". Could anyone tell me what are the basic steps to submit my projects. I have finished all of them but none of them is submitted yet. Thanks.
    Roman Halychanivkyi
    @Romko97
    Hello, I dream to be a student at Harvard. how to do it I don't know.
    e468141
    @e468141
    Well, the dream you have is not something hard to be realized.