Questions tagged [compile-error]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
23 views

"clang: error: no such file or directory" Error

I don't know why this is happening, as it has been a few months since I have used VScode but I added the ".vscode" folder that is always there under "documents" (The natural one on ...
RedHatStealer's user avatar
0 votes
0 answers
13 views

My cs50 prset2 caesar project rfused to compile,

My cs50 pset2 caesar project refused to compile, what could be the problem. Says can't run until frown turn upside down.
Donald Udofia's user avatar
0 votes
1 answer
16 views

Program won't compile w4 lab smiley

When I try to compile helper.c for the week 4 lab smiley get this error message /usr/bin/ld: /lib/x86_64-linux-gnu/Scrt1.o: in function _start': (.text+0x1b): undefined reference to main' clang: ...
Tiler99uu's user avatar
0 votes
1 answer
10 views

Is this a compiler issue maybe?

Ok, so It doesn't look like I have missed any brackets here. But then why is it giving me this error on line 71... I'll put in the code too in case someone would like to review it: #include <cs50....
Soham Roy's user avatar
0 votes
2 answers
80 views

error: conflicting types for 'caesar_crypt'

I declare this function at the start of my C file: #include <ctype.h> #include <cs50.h> #include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> ...
David S's user avatar
  • 103
0 votes
1 answer
81 views

Pset 3 plurality compiling error

so I'm doing the plurality right now, and like how I said in the title there is an error about compiling my code I guess It should be something about returning but I still don't have any idea what to ...
Ibrahim's user avatar
0 votes
4 answers
352 views

PSET5 Speller: Check50 Can't Compile: Exit code 2 vs 0

At my wit's end here. I've seen this question asked before, but I haven't really found an answer. My speller program compiles perfectly fine in the VS Code workspace. It generates the same results as ...
Steedy Speve's user avatar
1 vote
1 answer
113 views

Pset4 Filter (Less) - Invalid operands to binary expression (Int and RGBTRIPLE)

Hello. I'm facing a problem trying to compile this code. I got the error msg Invalid operands to binary expression ('int' and 'RGBTRIPLE') void blur (int height, int width, RGBTRIPLE image[height][...
Min Wai's user avatar
  • 11
0 votes
1 answer
157 views

caesar pset2 "expected expression and use of undeclared identifier" error

When compiling this code getting mutltiple errors any idee why is the couse of these errors thanks. #include <cs50.h> #include <stdio.h> #include <ctype.h> #include <string.h> #...
Matrix's user avatar
  • 67
1 vote
2 answers
51 views

CS50 Readability compile error

Im trying to compile the program but keep getting this error message below: Can someone tell me what this means please. The carat arrow is supposed to be pointing at "char" and "ch&...
Lovely Locs's user avatar
0 votes
1 answer
79 views

CS50 readability.c:31:1: error: expected identifier or '(' {

I keep getting this same error message readability.c:31:1: error: expected identifier or '(' { Please Help! I put my program below: #include <stdio.h> #include <cs50.h> #include <math.h&...
Lovely Locs's user avatar
0 votes
1 answer
274 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?
River Stinson's user avatar
0 votes
1 answer
12 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; } }
Sandro Docanto's user avatar
0 votes
1 answer
204 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 ...
math_guru's user avatar
0 votes
1 answer
65 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 ...
Dylan Dang's user avatar
0 votes
1 answer
44 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+...
user28381's user avatar
0 votes
0 answers
2k 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 ...
Firestar464's user avatar
0 votes
1 answer
253 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) %) ...
Firestar464's user avatar
0 votes
2 answers
469 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)%) ...
Firestar464's user avatar
0 votes
1 answer
161 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 ...
Firestar464's user avatar
0 votes
1 answer
221 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 ...
reillyderrick's user avatar
0 votes
3 answers
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 ...
ayeeitsalpha's user avatar
0 votes
1 answer
339 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 ...
Dan's user avatar
  • 3
0 votes
1 answer
65 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 ...
Barbara Mankuta's user avatar
0 votes
1 answer
86 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 ...
Joe Post's user avatar
0 votes
1 answer
158 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 ...
Olenka Slyusar's user avatar
1 vote
1 answer
12 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); ^
Rahul's user avatar
  • 252
0 votes
1 answer
194 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 ...
frauschmitting's user avatar
0 votes
1 answer
488 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 ...
Matt's user avatar
  • 3
3 votes
1 answer
5k 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 ...
Jordan Baron's user avatar
0 votes
1 answer
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 ...
Andrew's user avatar
  • 21
0 votes
2 answers
49 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....
Kevin King's user avatar
0 votes
2 answers
6k 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 ...
ClaireFast's user avatar
0 votes
1 answer
164 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: ...
tactiv3's user avatar
0 votes
1 answer
402 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 ...
William Gottschalk's user avatar