Questions tagged [compilation-error]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
3k views

What do these Check50 errors mean?

I get many compilation errors when I compile greedy.c. However, my mario.c and greedy.c programs with 2 and 3 residual appear to pass check50 tests! jharvard@appliance (~/Dropbox/pset1): check50 ...
2
votes
2answers
358 views

why can't I compile the program that I wrote to test helpers.c?

I've made a program to test my sort function. The only problem is that when I try to compile it gives me the "undefined reference to 'sort'" error as seen in the below: For context, I have taken the ...
0
votes
2answers
341 views

Transforming argv[1] into a string of integers

I tried to put argv[1] into a cycle: for (each argv[1][i]) int k[i] = atoi(argv[1][i]); // here... ...the compiler tells me to add '&' before argv to address; afterward, the compiler tells ...
0
votes
1answer
2k views

How to fix the “expression result unused” compilation error?

When I try to run this code through the compiler, I get the error: expression result unused referring to the line cents - 25; How do I fix this error? How exactly do I "use" the expression ...
0
votes
1answer
1k views

Error: control may reach end of non-void function [duplicate]

I am currently working on pset3/search and when I try to compile the codes it keeps telling me that ^ error. I know that it is because I must not be returning a boolean value as needed, but I do not ...
0
votes
1answer
593 views

Nothing to be done for `adder'

When I try to compile the adder program from the week1 walkthrough, I get an error saying make: Nothing to be done for 'adder'" I have checked that I am in the right directory, and have included &...