C
C#3y ago
Zfx

Rewriting for my Dijkstra algorithm

Hey guys, I'm currently trying to make a dijkstra algortithm (Which is basically a basic pathfinding algorithm) and I keep getting this type of error : I don't really know what to do to fix it...
33 Replies
Servator
Servator3y ago
You won't get help without what type of error info
Angius
Angius3y ago
The best fix for the error would be to do I think
Zfx
ZfxOP3y ago
I'm sending the error my bad
Zfx
ZfxOP3y ago
Zfx
ZfxOP3y ago
Zfx
ZfxOP3y ago
Line 113 :
Angius
Angius3y ago
Well, something is null
Servator
Servator3y ago
Those are warnings afaik
Zfx
ZfxOP3y ago
Yee ik but my code stops and says unhandled exception
Angius
Angius3y ago
Probably Depart with the funky e
Servator
Servator3y ago
Are you sure these are errors ?
Angius
Angius3y ago
Or Frontiere
Zfx
ZfxOP3y ago
MODiX
MODiX3y ago
Zfx#2474
Quoted by
From Zfx#2474
React with ❌ to remove this embed.
Angius
Angius3y ago
This looks an awful lot like an exception
Zfx
ZfxOP3y ago
Here's code btw I mean, I think ye
Angius
Angius3y ago
Angius
Angius3y ago
This seems to be the culprit You don't assign values to some stuff
Zfx
ZfxOP3y ago
So then I'd have to assign a random value to them or like 0 or whatever?
Angius
Angius3y ago
For example Or get it from somwhere Idk, user input or something It's hard to make heads or tails of code that's not in English
Zfx
ZfxOP3y ago
yee ik mbd
Servator
Servator3y ago
accents :/
Zfx
ZfxOP3y ago
accents shouldn't be an error normally it still works but I can change it
Angius
Angius3y ago
In general, English is the language for IT
Zfx
ZfxOP3y ago
yeah but since my school is stupid, I have to write it in french
Angius
Angius3y ago
oof
Zfx
ZfxOP3y ago
kind of annoying ngl
Angius
Angius3y ago
Schools not being shit challenge (level impossible)
Zfx
ZfxOP3y ago
💀 So ye, I'm forced to actually type it in french But wait, I think actually the nullable thingy shouldn't be the problem, but then I still don't know why my thing stops at 7 nodes found. (Noeuds is nodes in french)
Anton
Anton3y ago
non ascii characters are totally allowed, you can even use kanji for variable names your error is because of the parameterless constructor remove it and you should be good
Zfx
ZfxOP3y ago
I actually made it work but now i'm wondering if there's a way to write this differently :
Zfx
ZfxOP3y ago
Zfx
ZfxOP3y ago
cuz I've never wrote like that my teamate did but we both don't know if the teacher will accept it
Want results from more Discord servers?
Add your server