Stuck at run a program (C++)

When executing the test, i get a different value from the program signature. Could someone kindly explain what is a program signature and its purpose?

Hi, thanks for your post!

I’m currently out of the office for the holidays and will be back on January 5. I’ll get back to you as soon as possible once I return.

program signature is nothing but how your program looks.

like what is it’s return value , what are different types of argument it can take,name… .

Hey @IssacAnand, good question!

Just a quick reminder that the goal of this stage is to execute the specified program, not to manually print those lines yourself. The “program signature” is simply part of the program’s output, which the tester uses to confirm that your shell is correctly running it.

If you could upload your code to GitHub and share the link, I’d be happy to take a look and help debug.

Hi @andy1li
I have shared the link in your DM

@ IssacAnand The highlighted code doesn’t look quite right.

You can just print the entire output produced by the executable, rather than reconstructing or hard-coding parts of it yourself.

@IssacAnand Thanks for your DM as well! Feel free to post any questions on the forum.

It makes things easier to track than DMs, and discussions here can help others too. Thanks for understanding! :handshake:

@andy1li
Alright, so for context,I am attempting to learn c++ through this and future challenges, without relying too much on AI to solve the code. However, at times, I feel like I dont know what to search or start, given the prompt even after preliminary search and using AI.

Is there any c++ syntax resource or guides that you know of that can provide a baseline working knowledge, as I find it difficult navigating across the language features (e.g. STL template, concurrency, multi-threading, memory management etc…) when trying to find the right concept to solve the right problem.

@IssacAnand If you’re looking for a clear, structured introduction to C++, try reading “A Tour of C++” by Bjarne Stroustrup (the creator of C++). It’s concise, practical, and gives you a really good mental model of the language without overwhelming you.

Disclaimer: I haven’t personally read it yet, but it receives excellent reviews from the C++ community.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.