Questions tagged [compile-error]
The compile-error tag has no usage guidance.
31
questions
0
votes
2
answers
22
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>
...
0
votes
1
answer
56
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 ...
0
votes
3
answers
212
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 ...
0
votes
1
answer
63
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][...
0
votes
1
answer
127
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>
#...
1
vote
2
answers
47
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&...
0
votes
1
answer
70
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&...
0
votes
1
answer
113
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
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;
}
}
0
votes
1
answer
161
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
1
answer
57
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
1
answer
37
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
0
answers
1k
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
1
answer
225
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
2
answers
409
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
1
answer
126
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
1
answer
178
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
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 ...
0
votes
1
answer
316
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
1
answer
63
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
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 ...
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 ...
1
vote
1
answer
11
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
1
answer
171
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
1
answer
467
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 ...
1
vote
1
answer
3k
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
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 ...
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....
0
votes
2
answers
5k
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
1
answer
162
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
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 ...