showing run error on submitting while on compiling its showing correct output.
Factorial problem
@guptashubham210a your program has a lot of small mistakes, you can refer to this code and try to fix those
#include <bits/stdc++.h>
what does this contain?
like all stl containers like vector,stack and more?
@guptashubham210a yes it contains everything, if you use this headerfile you dont need to include any other header file. You can read more about it here
but prateek sir had also done same as me his code is correct but my is also correct but showing run error
@guptashubham210a as i said there are some very small small changes, the overall logic in my code is also the same as what Prateek bhaiya taught, maybe you missed some points. Dont get confused by the different variables instead look at what they are doing and where are they initialised as 0 and so no
pls tell my mistake pls
@guptashubham210a there is not one mistake na there are a lot of small mistakes throughtout the code thats why I shared my code for your reference.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.