12
sapna
3y

I was stuck at this error for the 4-6 days.. Did lots of research on stackoverflow, Google, YT.. Asked my peers tried like hell. Finally one of friends told me you aren't giving I/p and how can you expect an o/p there is no error neither in the compiler nor in the code..
Me: ;_;

Comments
  • 2
    So... what is your problem?
  • 12
    @sbiewald Inconsistent brace positioning and indentation, starting for-loops at 1, and having a superfluous inner for-loop - all of that in so few lines of code.

    However, I'd guess the culprit was that the program expects input without explicitely prompting the user for that so that running it will lead to nothing until you enter a number.
  • 0
    Did you copy paste the lines you wrote in the terminal from somewhere?

    Did you try running the program you compiled?
  • 3
    wtf did I just read?
  • 9
    Do you have this button?
  • 0
    @Demolishun someone who encountered the joys of c++
  • 0
    also have been impressed by vs code for python and node
    But c# don’t seem to like it
  • 0
    Is c++ doing better ?
  • 1
    @Fast-Nop yeah you are right.. thats what happened with me.. I am noob at cpp..
  • 1
    Learn from mistakes :)
Add Comment