#Need help with homework

201 messages · Page 1 of 1 (latest)

late epochBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

dry sorrel
#

i'm genuinely curious

#

why didn't you ask chatgpt?

rancid yew
#

shouldn't be that hard

dry sorrel
#

brother do you see his question?

#

it is literally the most basic thing ever

rancid yew
dry sorrel
#

???

#

😭

#

i am infact offering help

rancid yew
#

flowchart shouldn't be that hard, for the code you could try to do it yourself, shouldn't be hard

dry sorrel
#

i'm offering advice

rancid yew
dry sorrel
#

as a human, do you really think your time is well spent explaining such a basic concept that you know AI won't fuck up?

lament stone
rancid yew
#

do it yourself

#

and learn from it

dry sorrel
#

you can learn from chatgpt too?

#

whats with this stigma against AI in this server?

#

are you guys mad the chatgpt stole your clout? 😭

lament stone
#

I’m just struggling and stressed

dry sorrel
#

look, i had to learn it the hard way, running around to around ass stack overflow questions and wikis 10 years ago,
nowadays, it really doesn't need to be that difficult, chatgpt does all the hard/boring work for you, it is literally a god sent for learning programming, and ofcourse it can be wrong, but finding & correcting it's wrongs is still much faster than constantly searching for things on your own

#

its like having a personal tutor

#

you shouldn't throw that advantage away

#

i'm not telling you to use chatgpt to do your homework, i'm telling you to ask chatgpt to teach you how to do it yourself, and as it isn't a living breathing human, it can give you the time of day that no one on this server will, for the simple fact that everyone is busy with their lives

#

ofcourse this server is helpful for getting advice from actual humans that are experts on the topic

#

and where chatgpt doesn't suffice

#

but don't just throw it out the window because someone online with a insecurity about AI said "ai sucks"

uncut peak
# dry sorrel its like having a personal tutor

One of the worst personal tutors ever. Imagine having the most confident teacher that doesn't know when they're wrong even when you point it out several times and this teacher also uses extremely bad resources on top of that

#

Only people who are very experienced with C++ should be using AI because they can tell when it's hallucinating, recommending bad practices, and using code from decades ago

tropic wigeon
#

Write out the steps yourself.

Ex:

  1. assign variable.
  2. Ask for input
  3. Check input
  4. User has 3 tries
    etc

Ask yourself "how do I accomplish this" at each step.

rancid yew
#

GPT is just a glorified
"if... else..." machine

tropic wigeon
#

Also, keep your ai use to a minimum when you're learning

#

(I'm not saying don't use it)

dry sorrel
tropic wigeon
#

AI is like an assistant, and if you don't know what you're assistant is telling you, you're boned

uncut peak
#

Even then beginners shouldn't use AI. If they skip out on learning the fundamentals on their own, they're going to be clueless for everything else

dry sorrel
#

you want proof? here;

dry sorrel
uncut peak
#

YOU JUST HER THE SOLUTION!

#

delete it

uncut peak
dry sorrel
#

i'm making a point here, the point is that AI will not fuck up such a simple thing

dry sorrel
#

like what you're saying

#

do you think op doesn't have AI access?

#

what even is this argument of yours?

#

"ai makes mistakes don't learn from it"

rancid yew
#

clanker

dry sorrel
#

as if humans dont?

#

"humans mistake stop learning from them"

#

😭

#

yall acting as if I'm telling you to use AI on a nasa project

uncut peak
dry sorrel
#

AI is literally the best tool out for learning and if you're giving people the advice that you shouldn't use it specifically for learning then you're outright gatekeeping or hallucinating yourself

dry sorrel
rancid yew
#

using AI while learning is literally ruining your entire learning progress

uncut peak
rancid yew
#

it's way better to read and try to implement yourself without getting your hand held

#

you can only know if you understand what you're writing if you don't have to use AI at all

tropic wigeon
dry sorrel
#

mfs acting as if 100% of all what AI says is just hallucinations

uncut peak
#

GitHub

tropic wigeon
uncut peak
#

public repositories

dry sorrel
#

not what i'm advising is it?

#

its like saying if a teacher taught you things over text it would cost you brainpower

#

this is some advanced gatekeeping

#

im out

tropic wigeon
#

Is it mindless to ask it to figure out 10 lines of code for you?

dry sorrel
#

told op to ask ai to teach how to do it yourself

rancid yew
dry sorrel
#

thats the point

uncut peak
dry sorrel
#

ai is a "personal tutor" whether or not it's wrong

rancid yew
dry sorrel
rancid yew
#

if you really need that much help for something so simple you generally shouldn't be coding

dry sorrel
#

elitism

#

instead of enabling learning and keeping learning as a priority, you're priority is being an elitist about it

#

keep at it lol

rancid yew
#

keep throwing buzzwords at me, yo ass aint tuff

dry sorrel
#

buzzwords?

rancid yew
#

if you're not gonna actually give a counterargument and instead pulling the "you're ...ist!" card just fuck off

tropic wigeon
#

hands a legitimate source that teaches someone how to fish

gets called elitist

dry sorrel
#

you're literally just forcing a beginner to take a much harder route because you think "that is the right and cool way, and If I say this, i will look so cool"

night sand
#

The harder route is the ONLY route in this field

#

There are no shortcuts if you want a career in this field

uncut peak
dry sorrel
dry sorrel
dry sorrel
#

yall are fucking insane, im out

rancid yew
night sand
lament stone
#

Ok we get @eveyrone

rancid yew
night sand
#

Lol its pathetic honestly

rancid yew
#

thank god for the ignore button

#

anyway

#

very helpful

rancid yew
#

yep

lament stone
#

Ok

rancid yew
#

if you have a library nearby you could get one of those books, they can be helpful if you're a reader

tropic wigeon
rancid yew
late epochBOT
#
Large Language Models (LLMs)

We highly recommend against the use of LLMs and AI assistants because:

  • LLMs are bad at C and C++
  • LLMs are wrong more often than not
  • LLMs answer with complete confidence even when wrong
  • If you're new to C or C++ you likely don't know enough to know when answers are wrong
dry sorrel
#

for someone who is supposedly has a job of primarily deploying logic, you really dont seem to have much of it

rancid yew
uncut peak
#

If you think everyone else is wrong in this server about beginners using AI, why don't you make a post in #server-suggestions

lament stone
#

Can u do the flowchart part as well

rancid yew
#

do it urself

#

better to learn

#

flowchart should be the first step in making code

night sand
uncut peak
rancid yew
#

a flowchart is like this

uncut peak
#

Lots of lines

rancid yew
#

this but bigger and everything that happens in the code

uncut peak
#

Yep

tropic wigeon
#

A chart of how your program flows

lament stone
#

It’s still giving me an error on cout << “ Enter passcode” ;

tropic wigeon
#

What's the error say

#

Are you using the std namespace?

lament stone
#

Now gave me another error on cin >> userPass;

tropic wigeon
#

Maybe there's a pattern

#

Finding out what cin and cout are could lead you to the answer

#

Take a gander at chapter 1.5 in learncpp

#

Though you should read the previous stuff as well

lament stone
#

I’m looking at the 5.3 guided practice

night sand
#

It seems like you arent using std:: namespace for cin and cout

#

Checkout the second line to the 5th line in the error message box it tells you the suggested alternative

lament stone
#

This is the other error

night sand
lament stone
#

I don’t know im about to get frustrated already

tropic wigeon
#

Copy paste your code

#

Add 3 ` at the beginning and 3 at the end

night sand
lament stone
#

Here’s the entire code

tropic wigeon
#

So, you didn't declare

  • passcode
  • tries

And
You're missing a {

#

There's also another issue but you should really figure that one out yourself

#

It has something to do with the attempts

lament stone
#

Can you draw it out so I know please cause I’m still confused

tropic wigeon
#

Is it a number

#

A string

#

A bool

#

The computer doesn't know and you need to tell it

uncut peak
lament stone
#

I get it

night sand
#

Also tries seems to be ambiguous with attempts so you can get rid of tries

#

You got this dont give up if you have a passion for programming you will fight with all your might through these moments

late epochBOT
#

@lament stone

Please Do Not Delete Posts!

Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. In the future you can use !solved to close a post and mark a post as solved.

lament stone
#

I run the code and it shows blank cause I don’t know what I’m doing wrong

lament stone
#

Like the output

night sand
#

Yea and the code itself

lament stone
night sand
#

Ok look at your while loop

#

The condition is attempts < 3 right?

lament stone
#

Now it shows enter passcode

night sand
#

Right

#

Did you type your passcode?

lament stone
#

Yes and it was correct

night sand
#

Ok so it works?

lament stone
#

I need help with the flowchart part and the pseudo code part

tropic wigeon
uncut peak
#

Treat it the same as when you’re going to a TA or a teacher for help.

mystic badge
#

!warn @dry sorrel Telling users to just ask chatgpt isn't really acceptable here. We'd much prefer they ask here then possibly get incorrect information from an LLM without knowing enough to know better. You're free to not engage with a question if you don't feel like answering it. More importantly, you've completely derailed this channel into an AI debate instead of actually helping OP with their question, and that's also super not ok. Simiarly, resorting to insults and personal attacks is toxic and not acceptable.

late epochBOT
#

success henry was warned

mystic badge
#

!warn @rancid yew Please don't escalate conflicts here with insults and hostility

late epochBOT
#

success rrramble was warned

rancid yew
#

Sorry, wont again 😄

hot ridge
#

Was that the solution you wanted?

tropic wigeon
#

He's not the op

lament stone
#

There’s an error here

night sand
night sand
#

At the top of the file #include