Questions tagged [compile-error]

The tag has no usage guidance.

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

I keep getting the following error when I use the Check50

You seem to be missing these required files: mario.c You are currently in: ~, did you perhaps intend another directory?
0
votes
1answer
11 views

when I compile my program this bug appear. error: control may reach end of non-void function [-Werror,-Wreturn-type] }

bool check_valid_key (string s) { for (int i = 0, len = strlen(s); i < len; i++) { if (!isdigit(s[1])) return false; return true; } }
0
votes
1answer
34 views

*** No rule to make target 'runoff'. Stop. Even though I'm in the correct directory

I keep getting the No rule to make target error on the runoff problem even when I'm in the correct directory as you can see in the picture attached. Note: I have just completed the vote function for ...
0
votes
1answer
35 views

Need help with Plurality, I'm able to compile the code but when using check50, it says the code has failed to compile

When I compile this code, it is able to do so with no errors. However when entering in "check50 cs50/problems/2020/x/plurality" into the terminal to see if I fulfilled all the requirements, the ...
0
votes
1answer
19 views

pset3 plurality errors: expected expression if for

I ran check50 and got the following errors: running clang plurality.c -o plurality -std=c11 -ggdb -lm -lcs50... plurality.c:71:29: error: expected expression for (int i = 0; i < int voter_count; i+...
0
votes
0answers
248 views

Error: more '%' conversions than data arguments

#include <cs50.h> #include<math.h> #include<stdio.h> int main(void) { int n = 0; do { n = (get_float("Change owed: ") * 100); } while (n < 0); int ...
0
votes
1answer
61 views

Cash.c:11:24: error: expected expression

#include <cs50.h> #include<math.h> int main(void) { int n = 0; do { n = (get_float("Change owed: ") * 100); } while (n < 0); int q = ((n / 25) %) ...
0
votes
2answers
98 views

Error: Use of undeclared identifier in cash.c

#include <cs50.h> #include<math.h> int main(void) { do { int f = round(get_float("Change owed: ") * 100); } while (f < 0) q = ((f / 25)%) ...
0
votes
1answer
46 views

"Error: Expected identifier or '(' in cash.c

#include <cs50.h> #include<math.h> do { int f = round((get_float("Change owed: ") * 100) } while (f < 0) q = ((f / 25)%) d = ((q / 10)%) n = ((d / 5)%) c = (n%) i ...
0
votes
1answer
96 views

pset3 tideman failed to compile

https://us-west-2.console.aws.amazon.com/cloud9/ide/393d9edee5b74d5abb364a24c01b987f?# I just finished the tideman problem, and everything works fine when I use it in the ide. However, when I run ...
0
votes
3answers
1k views

pset 3 plurality code help

My code prints all names in the case of a two way/threeway tie, but for some reason I still get an error message in check50 that it does not. The only thing I could think of was maybe it had to do ...
0
votes
1answer
168 views

Cannot Compile Due to Error in cs50.h

I recently migrated my old Cloud9 IDE over to the new AWS format per instructions and all of my files appeared in the new environment. I had only just completed lecture 1 and was starting to make the ...
0
votes
1answer
46 views

cs50 pset 2 Caesar cipher

Can someone help me with this one ?? I thought I was on the right track, but can't compile. I get the logic but I must be missing something. Appreciate any suggestions. Stepped away from this for a ...
0
votes
1answer
75 views

pset3 fifteen.c not working with check50: “expected exit code 0, not 1”

So my fifteen.c code compiles just fine and runs the .txt files with no issue. The code returns a "ftw!" and exit code 0 when executing the program with those .txt files. The issue is when I run the ...
0
votes
1answer
151 views

pset2. :( vigenere.c compiles. expected exit code 0, not 1

when i check my program i get errors: :) vigenere.c exists. :( vigenere.c compiles. expected exit code 0, not 1 :| encrypts "a" as "a" using "a" as keyword can't check until a frown turns ...
1
vote
1answer
9 views

my code is showing error in matrice declaration ( I think)

int det1(int b[][], int n); This is showing error something like this determinant.c:4:15: error: array has incomplete element type 'int []' int det1(int b[][], int n); ^
0
votes
1answer
119 views

Cannot Compile - Error Message: *** No rule to make target

I tried to compile my water.c progam but keep getting the error message: "*** No rule to make target `water'. Stop" I have tried researching what the problem could be, but it seems like my file is ...
0
votes
1answer
420 views

CS50 IDE cs50.h library problem 2017

I seem to be having a problem accessing the cs50.h library. I've run update50 and, as of this writing, I appear to be running version 98. I have typed in exactly what was shown on a part of the ...
0
votes
1answer
883 views

cs50.h - no such file or directory

I am on Windows 10 and using Atom and GCC instaed of cs50.io because I have limited internet access. I downloaded cs50.c and cs50.h and put them in the same directory as my string.c file. I compiled ...
0
votes
1answer
65 views

pset3 helpers.c ERROR

so i tried to make my helpers.c to check if i wrote code correctly it worked for 3 times i removed mistakes one by one but then when i tried include stdio.h to make printf("found it!"); function to ...
0
votes
2answers
47 views

Pset5: not knowing why the errors occured

The compiler reported errors on the first few lines where I defined struct node and allocated memory and on the parameter 'dictionary' in size(). I don't why they are wrong. Someone please help me out....
0
votes
2answers
3k views

No such file or directory, pset1

I have exercise 1 of pset1 ready to go. However, I seem unable to compile the program. I follow the below steps (in fact, I deleted everything and created it from scratch): Create New Folder, name it ...
0
votes
1answer
159 views

Compile error for pset6

Hello i need help understanding what is wrong with my pset6. I keep getting this error. Sorry i am new here. server.c:672:1: error: function definition is not allowed here { ^ server.c:1105:1: error: ...
0
votes
1answer
399 views

Pset 3 error - Binary search

I'm having some difficulty implementing binary search. I wrote linear search with no problems but when I compile my code for binary search, I get an error. I decided to take the iterative approach ...