Questions tagged [runtimeerror]
The runtimeerror tag has no usage guidance.
23
questions
0
votes
1answer
42 views
pset9 Finance - “ RuntimeError: unsupported value: ” error
(1) "buy" code in application.py:
@app.route("/buy", methods=["GET", "POST"])
@login_required
def buy():
if request.method == "GET":
...
0
votes
2answers
140 views
CS50 pset8 finance buy
I have been struggling with the buy portion of the finance assignment for CS50. I have created my new tables and written down the logic concerning buying stocks. When I run flask and try to purchase ...
0
votes
1answer
45 views
Pset4 filter problem: blur problem Runtime Error
I'm working on a solution to Pset4 blur and have hit a roadblock. My aim is to create average RGB values from a 3x3 grid surrounding and including current pixel and change pixel in original image to ...
0
votes
1answer
49 views
Runtime error in pset4
I'm currently working on filter.c, and I'm struggling with the blur segment of it. I tried to write a code (I'm aware it's a mess of hard-code, but it's an attempt!), but I keep getting this error:
...
1
vote
2answers
164 views
PSET 4 Reflect help
I am not sure why I am having issues with my code. I know I can store the rgb values for the left pixels in 3 temporary variables then assign the right values to the left and the temp values to the ...
0
votes
2answers
205 views
PSET 4 Errors: where did I go wrong?
So after being stuck on this pset for overlooking tiny typos I have finally gotten it to compile but I received more errors then I would like to have. If anyone could tell me where I can find the ...
0
votes
1answer
250 views
pset4 filter - blur - runtime error, colors off
This is my first post; I hope I get the netiquette right. :-) I've been stuck on pset4 / filters / blur for days. The code compiles.
When I run it through check50, these two points are correct:
:) ...
1
vote
1answer
1k views
runtime error in filter: reflect
I wish i could be more specific but i really don't understand the errors i'm getting
This is my reflect function:
// Reflect image horizontally
void reflect(int height, int width, RGBTRIPLE image[...
0
votes
1answer
41 views
Why is this generating wrong output and Runtime - out of bound error?
I have a program below, which gets some random numbers from users and then multiply every second to the last digit by 2, stores it into an array and print out the value of each array index.
It seems ...
0
votes
1answer
417 views
unused variable error when trying to create separate table for each user's transactions in finance problem
here is my code
215 db.execute("CREATE TABLE ':username' [finance.db]('symbol'
varchar(16),'price' float, 'shares' int,'transaction_date' date ,
'transaction_time' time" ,...
0
votes
1answer
168 views
pset8 c$50 finance /buy - transactions RuntimeError: (sqlite3.OperationalError) near “''”: syntax error
I'm stuck on pset8 c$50 finance /buy:
Form validation works properly but when i try to execute the INSERT INTO transactions table i get the following error:
RuntimeError: (sqlite3.OperationalError) ...
0
votes
1answer
41 views
what is mean error message?
What is mean error message ("/tmp/cash-458fad.o: In function main':
cash.c:(.text+0x34): undefined reference toget_float'
clang: error: linker command failed with exit code 1 (use -v to see invocation)...
0
votes
1answer
1k views
RuntimeError: unsupported value in cs50 finance
Users can buy stock successfully and see their portfolio (i.e. index), but after a user buys a stock I send them to a bought page with info just on the stock purchased, along with their remaining cash....
0
votes
1answer
132 views
about pset1 credit
I'm working on pset1 credit. To identify the valid credit card number. First I ask users to input a long long, which I made it a int so that i can make sure it fit the first requirement(any number > 0)...
1
vote
1answer
120 views
Segmentation Fault Pset5
I wanted to test speller to make sure the dictionary loaded into my trie correctly. However, I received
dictionary.c:65:27: runtime error: member access within null pointer of type node' (aka '...
0
votes
1answer
121 views
Run Time Error on PSET 5 Speller
quick question- I am getting a runtime error that looks like this:
dictionary.c:93:14: runtime error: null pointer passed as argument 1, which is declared to never be null
/usr/include/string.h:130:...
0
votes
1answer
85 views
Pset7 Finance Buy Runtime Error - Date
When I try to update the users portfolio I receive a runtime error from passing in 'when' as date('now'). Please can someone tell what I should be doing. Here is part of my buy function code.
# ...
0
votes
1answer
320 views
resize runtime error pset4
My code compiles, but when I execute this I get:
runtime error: index 4 out of bounds for type 'RGBTRIPLE [newbi.biWidth]'
Where does 4 come from? Is it the number of arguments??
Thanks for any help....
0
votes
1answer
2k views
Runtime Error: API_KEY not set
In Pset8, I continue to get the "API_KEY" not set runtime error, even though i crosschecked with:
echo $API_KEY
and the response was:
AIzaSyDKcW1m49qo95kiJFTpGWTUrj3Iyi-xloA
which matched the key ...
0
votes
1answer
654 views
Null pointer problem inside check function of pset5
I've been working very long on this and I can't find a way out. I've created a node struct and a hash struct. Like this:
typedef struct node {
char value[45];
struct node* next;
}...
0
votes
1answer
2k views
I'm getting a runtime error on an array and I'm not sure why:
The following code Compiled but gave me an error (credit.c:21:7: runtime error: index 15 out of bounds for type 'int [15]') on the last line included while running:
int m;
int r;
int counter;
int ...
0
votes
1answer
149 views
RunTimeError in buy() c$50 finance
why I get this error RuntimeError: (sqlite3.OperationalError) near "'$59.31'": syntax error [SQL: "INSERT INTO portfolio (id, symbol, shares, price) VALUES(2, 'A', 1, '$59.31'"]
here is my code:
@...
0
votes
1answer
467 views
Problem Set 7 - Buy - RuntimeError
I've been implementing buy and I found that I'm having some trouble with inserting the values into users. I received a RuntimeError near "transaction" where I INSERT INTO users ('transaction') VALUES(:...