Can Any one help me to resolve the error in this binary search tree program
#include <stdio.h> #include <conio.h> struct nodetype { int info ; struct nodetype *left , *right ; }; typedef struct nodetype *nodeptr; nodeptr maketree (int); nodeptr getnode(); void...
View ArticleError on SIGFPE?
I am using int datatype in my code, but I am having % operations, I check about divide by 0 error also.There is any more possibility of occurring error.
View ArticleC++ how to convert a char to int?Like char '4' to int 4 .Help please!
In a given input string i have letters and digit .I need to know all the digits. Like,hjasd7afaf8faf from that i have to find out 7;8 I know atoi() But it wont work here as the digits may be anywhere...
View ArticleWhat makes a good CodeChef Editorial?
This is a truly interesting question, and I thought it would be a great way to have this opened to the CodeChef community so that we can get their views on various styles, as well as what works and...
View Articlehelp for TLE
Q- http://www.codechef.com/problems/PLAYFITA- http://www.codechef.com/viewsolution/2464885i guess this is the problem code, while(h != n) { l=(h+1); while(l != n) { if(goals[l] > goals[h] &&...
View Articlevoid value not ignored as it ought to be ???
when i am storing the value of the list.pop_back() then it says ""void value not ignored as it ought to be""???what that mean??
View ArticleANAGRAM WA
This is a practice problem for an upcoming contest...i cant figure out a case where my code fails to produce the correct output...can ne1 pls point out the mistake...thanks in advance...:)ANAGRAM Given...
View Articlenzec error
Hi All,I gave the same input as given next to the qs. 5 1 2 3 4 5 4 1 2 3 2 3 4 1 1 1 1 5 1000000000 it worked fine on my system. Should I include some checks like..1 ≤ N ≤ 100,000 1 ≤ Ai ≤ 100 1 ≤ T ≤...
View Articlespecial input in C,C++.In a line,there's a first integer m and in that line m...
I'm new in problem solving.But i'm realizing i'm getting a Smack in online judges because i dont take input correctly and dont output the way the problem is asking. say, The input is like first line ll...
View Articlebook or site to learn linux fully
best books or sites to understand linux i havent used linux till now so i need a book our site to go from intro to full coverage of linux cmnds and its applications
View Articlecode never runs.
i have tried code chef a lot of times but everytime my code fails, either it doesnt run or it gives wrong answer(even though my logic is correct as the code runs on my compiler). I am really frustrated...
View ArticleHow to accept a space separated integer
This is a beginner question but still i have problem while dealing with it. for e.g , After T no. of cases, i have to enter K N for each case which are space separated integers. How to do it?
View Articlevector memory allocation problem.Is anything wrong with vector container to...
http://ideone.com/B5BiLvHere's a seive to find composites .It works fine if I input <=19000 but for bigger values the program doesn't work..... Is there any problem with vector........although...
View Articleholes in a text
http://www.codechef.com/viewsolution/2375372 this is my solution to the holes in a text problem.Could anyone please tell me whats wrong?
View ArticleRuntime Error(SIGSEGV) in Maximal Score Path
hey guys why i m constantly getting the above error though i have checked for the array out of bounds condition..:( here my code http://www.codechef.com/viewsolution/2472090 plzzzzzzzz....help me out...
View ArticleGetting "time limit exceeded" in Enormous Input Test.
I need help to understand this problem: http://www.codechef.com/problems/INTESTWell, I looked into the solutions but couldn't understand much from it. I have no idea how to handle big numbers in C++.
View ArticleVector memory allocation problem. Is anything wrong with vector container to...
http://ideone.com/B5BiLvHere's a seive to find composites .It works fine if I input <=19000 but for bigger values the program doesn't work..... Is there any problem with vector........although...
View ArticleGetting wrong answer on CodeChef?
I am new to codechef.I'm competing in August challenge.All the questions run successfully in my pc and gives the answer according to the question but whenever I submt them codechef says wrong answer.Am...
View Article