i am getting this error. please correct my code
runguard: warning: timelimit exceeded (wall time): aborting command
runguard: warning: command terminated with signal 15
Https://ide.codingblocks.com/s/251356
Is your doubts resolved?
no. sir i have written this code https://ide.codingblocks.com/s/251401
question is hollow rhombus pattern in patterns section
Your code is giving the correct output. Please submit it again and check .
i am getting this error when i am submitting my code.
runguard: warning: timelimit exceeded (wall time): aborting command
runguard: warning: command terminated with signal 15
I submitted you code from my account. It passed the test cases.
There may be some technical problem. Please drop a mail at [email protected] mentioning the same.
i have one more doubt please clarify it,
for(int j=1;j<n-2;j++)i have used this loop please check in my code
but accordig to logic i see it should be for(int j=1;j<=n-2;j++) but it is giving me wrong ans
In line 30 , you are using an extra space before ’ * ’
You can observe that if n=5, there are 3 spaces. ie n-2
So if your loop is this for(int j=1;j<=n-2;j++)
you must remove the extra space from line 30
oh yes:P
thankyou so much it was troubling me
No problem. You can submit and check your code here https://hack.codingblocks.com/app/practice/1/231/problem
sir i have a doubt in this code. i understood the code but i didnt understand what is return doing in it?
and how is the end line cout<<a is displaying the ans.
return is just returning back from the function, means it will get out of the function and return back to main from where the function was called.
a was passed to the function and was modified there. So simply cout<<a will print the modified result.
Dry run the code with some sample case. You will understand it well how it is working.
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.