1
u/Lower-Programmer-487 Aug 22 '24
Sorry I am just new to dis stuff soo...... I really don't know c++
4
u/Pink_Slyvie Aug 22 '24
No worries, it looks like someone already helpd you out!
In the future, I recommend using something like these to share your code, it increases readability for us, and makes it significantly easier for us to help.
5
5
u/inotocracy Aug 22 '24
Says it right there in the error message. You need a semicolon at the end of line 5.
3
u/BoldVoltage Aug 22 '24
Yes the error messages are actually helpful.
0
u/quellflynn Aug 22 '24
sort of... they are overwhelming to a beginner.
miss out a single ';' like in this code for a larger program and you'll have 30 errors... it gets confused by the first error, continues till it finds the next ;
then it can't make sense of that statement and carries on, with the next error, as the last error didn't setup properly
and on and on and on.
so you try to fix the error, but undoubtedly you start at the last error (the one you can see) and spend ages to and fro-ing.
1
u/inotocracy Aug 23 '24
Yeah agree it can be confusing at first, but its important to actually try to comprehend the error message it spits out.
1
u/Lower-Programmer-487 Nov 21 '24
Now am a Lil bit more experienced to not miss a ; at the end 😂😂... Tbh that was my first code... (Copied it off from a website)
1
u/MicRoute Aug 22 '24
Had a buddy who I would sit on calls with while we did our CS projects, different schools. We’d take breaks to help each other every now and again. He spent the better part of an hour looking for an accidental semi-colon that stopped him from compiling. I found it within seconds of seeing his code, right up at the top. He had double clicked it by mistake (“;;”).
Sometimes a fresh set of eyes on your project really does help.
3
0
0
u/Connect-Use9976 Aug 22 '24
You can copy paste in the IA of WhatsApp order to fix the code. It works fine!
2
u/quellflynn Aug 22 '24
this sentence is more confusing that the original problem!
did you spell AI wrong?
1
u/Connect-Use9976 Aug 26 '24
My technical language is very limited. Sorry about that, I will use the translator more often.
1
u/Connect-Use9976 Aug 26 '24
I was trying to say that when a code fails I paste it into the WhatsApp AI chat. It has turned out to be a very good tool and knows how to explain the schematic connection
-6
11
u/Peprit_Sahrs Aug 22 '24
line 5, missing ';'