You are not logged in. Please login at www.codechef.com to post your questions!

×

How can I edit my code if my submission was wrong

Hello, I am new here,and was struggling while resulting my solutions.Like if I submit a solution, and it give me wrong answer, is there any way i can edit the previously written code?Every time I open the compiler,all the previous code get erased and one has to rewrite again or have to go to my submission to copy paste the code. Is there any better option or codechef works this way only?

asked 05 Jan '15, 23:48

rishbz's gravatar image

rishbz
12818
accept rate: 50%


I don't understand, how do your previous code get erase?
Use Codeblocks software where you need to save the code before running!! And as far my knowledge there is no other way to edit your code..!

Might be in Codechef's compiler you may do that.. but not confirmed!

link

answered 06 Jan '15, 00:37

rishabhprsd7's gravatar image

rishabhprsd7
1.9k11035
accept rate: 14%

edited 06 Jan '15, 00:40

Yes, according to my knowledge, that is the way it works.

You cannot test the code in the editor provided on 'submit' page. So I think it is assumed that a user will not normally resubmit the code without testing it on their system first.

link

answered 06 Jan '15, 00:15

aalhadkulkarni's gravatar image

aalhadkulkarni
4422519
accept rate: 8%

edited 06 Jan '15, 00:16

Oh! I thought it works like SPOJ, where you can edit your code if compiling goes wrong.Thanks for clarifying .

(06 Jan '15, 19:43) rishbz

But what if we have committed some mistake that we realize later or copied some wrong code from codeblocks or if I come up with better logic.

There should be an option to resubmit/edit your code.

link

answered 10 Jan, 17:38

cipher_123_'s gravatar image

cipher_123_
1
accept rate: 0%

Better To use Some online IDEs like ideone and compile and run your codes with specified input cases.The You can just copy and paste the code after clicking on the submit button below whre the problem is present. Hope this will help u for further coding. Happy Coding!

link

answered 10 Jan, 17:56

csk111165's gravatar image

csk111165
1
accept rate: 0%

never use an online ide, if you use it, keep visibility as private

(13 Jan, 02:06) neilit1992

Codechef has the 'My Submissions' section where all your past submissions(Unsuccessful too!) are listed. Just copy the code you want to edit. Make changes to it in the editor and submit it.

link

answered 12 Jan, 15:51

drp48603's gravatar image

drp48603
252
accept rate: 0%

You can use online IDE of codechef itself. It saves our codes too but only the last submitted one. Even you can select the question and submit from there only if you wan

link

answered 12 Jan, 16:43

monalshadi's gravatar image

monalshadi
261
accept rate: 25%

edited 12 Jan, 16:44

Use codechef's online IDE.It will save your code. For writing new code and saving the old one, just open a new tab and code on. Otherwise I would suggest you to download a IDE on your desktop like Code::Blocks for C/C++ or Eclipse for Java.That should be better, as you can save templates there for commonly written codes, which increases your speed while implementing as you don't have to write everything from scratch.

link

answered 13 Jan, 09:31

rajarshi_basu's gravatar image

rajarshi_basu
2894
accept rate: 12%

toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Tags:

×1,333
×925
×602
×138

Asked: 05 Jan '15, 23:48

Seen: 4,464 times

Last updated: 13 Jan, 09:31