Search found 4 matches

by jsherlock
Thu Dec 12, 2013 2:22 pm
Forum: Volume 112 (11200-11299)
Topic: 11292 - Dragon of Loowater
Replies: 10
Views: 7290

11292 Dragon of Waterloo

This code is giving me a wrong answer verdict, can somebody help me, I'm just new at programming and learning here will help a lot. Thanks in advance. #include <stdio.h> #include <stdlib.h> #define max 20000 int compare(const void * a, const void * b) { return(*(int*)a - *(int*)b); } int main(){ int...
by jsherlock
Wed Dec 11, 2013 5:47 pm
Forum: Volume 117 (11700-11799)
Topic: 11729 - Commando War
Replies: 13
Views: 4030

Re: 11729 Commando War

I've also tried to code it in Java, to no success it gives me a run time error when I submit this java code to the checker, but when I'm running it at my compiler it runs correctly. package commando.war; import java.io.*; import java.util.Scanner; import java.util.ArrayList; class COMMANDOWAR { stat...
by jsherlock
Wed Dec 11, 2013 3:49 pm
Forum: Volume 117 (11700-11799)
Topic: 11729 - Commando War
Replies: 13
Views: 4030

Re: 11729 Commando War

brianfry713 wrote:Don't use system("pause");
Print Case not case.
You're printing extra blank lines and spaces.
Thanks for a reply, I have removed the system("pause"); but it is still a wrong answer. am I doing something wrong about the output of the program?
by jsherlock
Tue Dec 10, 2013 6:11 pm
Forum: Volume 117 (11700-11799)
Topic: 11729 - Commando War
Replies: 13
Views: 4030

11729 - Commando War

I can't figure out what's wrong with my code I'm using DevC to program in C, I'm not great at programming if somebody can point out what's wrong with my code it will greatly help me as a student. I got the "wrong answer" verdict this is my code. sorry it's messy. #include <stdio.h> int mai...

Go to advanced search