[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
AI Challenge Forums • View topic - Code Runs Locally, Does not Pass Submission Tests

It is currently Sun Sep 23, 2018 6:50 pm Advanced search

Code Runs Locally, Does not Pass Submission Tests

Topics about starter packages, visualizer or any other third party tools.
Please submit new language requests in the Language Request Forum.

Code Runs Locally, Does not Pass Submission Tests

Postby bdf75b781c » Sun Dec 04, 2011 10:49 pm

bdf75b781c
Cadet
 
Posts: 2
Joined: Sun Dec 04, 2011 10:45 pm

Re: Code Runs Locally, Does not Pass Submission Tests

Postby amstan » Mon Dec 05, 2011 5:01 am

./test_bot.sh or test_bot.cmd in the tools package. They will do the same test that the server does when you submit.
Alexandru M. Stan
Contest Organizer
User avatar
amstan
Contest Organizer
 
Posts: 691
Joined: Sun Jan 31, 2010 4:02 am
Location: Stoney Creek, Ontario

Re: Code Runs Locally, Does not Pass Submission Tests

Postby bdf75b781c » Wed Dec 07, 2011 1:37 am

bdf75b781c
Cadet
 
Posts: 2
Joined: Sun Dec 04, 2011 10:45 pm

Re: Code Runs Locally, Does not Pass Submission Tests

Postby grokodile » Mon Dec 12, 2011 1:03 pm

Local and server behaviour can differ, especially if you are clueless and code in C like me.
grokodile
Lieutenant
 
Posts: 13
Joined: Sat Nov 05, 2011 7:36 am

Re: Code Runs Locally, Does not Pass Submission Tests

Postby Scryer » Mon Dec 12, 2011 2:26 pm

You can debug by writing to stderr. The output appears on your profile page when you get the report that it failed.

The two cases I know about (one of them mine) were both uninitialized variables which worked locally but not on the target machine.
Scryer
Colonel
 
Posts: 72
Joined: Wed Nov 09, 2011 5:40 pm


Return to Starter Packages & Tools

Who is online

Users browsing this forum: No registered users and 3 guests

cron