Questions tagged [expected-expression]

The tag has no usage guidance.

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

expected expression pset5 dictionary.c if-else

I am having troubles with the check function in dictionary.c in pset5. Here is my code: /** * dictionary.c * * Computer Science 50 * Problem Set 5 * * Implements a dictionary's functionality. ...
0
votes
1answer
140 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
1answer
175 views

During PSET 2: Substitution, I got an expected expression error for get_string. Please help

substitution.c:24:23: error: expected expression char* plaintext = get_string(); ^ /usr/include/cs50.h:109:53: note: expanded from macro 'get_string' #define get_string(...) ...
0
votes
1answer
62 views

Pset 2 Caesar "Expected Expression" - If statement

For the Caesar pset, I am having trouble trying to fixing an expected expression error. for (int i = 0; i < int n = strlen(argv[1]); i++) { printf("test"); } The condition inside the for-...
0
votes
1answer
80 views

"Expected Expression" Error on Move Function

I am having a problem compiling fifteen.c. When I try to compile, I get an error in the move function saying: fifteen.c:225:27: error: expected expression coord_t = {i, j}; ...
0
votes
1answer
42 views

Pset3 Find - error in "helper" file - 'expected expression'

This is my code for the helper.c file. The code forms part of the 'find' program. I'm getting an error: 'expected expression' re: the last 'else' statement. I have tried removing the 'else' statement ...
0
votes
1answer
442 views

pset1 - Greedy Errors "error: expected expression"

Please help! I cant solve some errors (from: [http://docs.cs50.net/problems/greedy/greedy.html][1]) running this code: int main(void) { float change = 0; int coin_used = 0; int change2 = ...
0
votes
1answer
13 views

Expected Expression Error

I have been working on cs50 problem set 2 and I have come across the error readability.c:35:1: error: expected expression else if( index > 16) ^ My code is as follows if(index < 1) { ...
0
votes
1answer
112 views

pset1 mario: error: expected expression

I've looked over some of the other threads and I am still puzzled. I keep getting an error: expected expression for line 21:5 (the ending curly bracket for my do loop). Here's my code so far: #...