I'm new to C++ and just tackled linear search. While coding, I encountered some errors but couldn't pinpoint the problem, so I sought assistance from ChatGPT. It turned out that I made a simple mistake by not initializing the variable intended to store the output. Now, I'm wondering: is this kind of mistake really a big deal or just a part of the learning process?
2 Answers
This happens to every programmer, not just beginners! What's key is improving your debugging skills when things go wrong, so you'll get better at spotting these issues over time.
Totally normal! Simple errors are common when coding. Make sure to set your C++ compiler to a high warning level next time; it often catches these mistakes before they become an issue. Just a small oversight, keep at it!
The thing is... I haven't used laptop for this... I'm in the library and I don't bring laptop here... So I wrote code on paper and then in my phone and compiled.... So it didn't show any warning.