Search found 3 matches

by Sederik
Mon Dec 12, 2005 10:17 am
Forum: Volume 103 (10300-10399)
Topic: 10378 - Complex Numbers
Replies: 25
Views: 13679

Help desparately needed. Everything works fine and output fits with the example, "-0.000" will not appear, but I'm still struggling with WA, so the problem is in something else. Here's the code: #include <stdio.h> #include <math.h> #include <stdlib.h> struct result { double x, y; }; int compare(cons...
by Sederik
Sat Dec 10, 2005 5:18 pm
Forum: Volume 102 (10200-10299)
Topic: 10281 - Average Speed
Replies: 39
Views: 15489

Sorry, already fixed it.
by Sederik
Sat Dec 10, 2005 1:59 pm
Forum: Volume 102 (10200-10299)
Topic: 10281 - Average Speed
Replies: 39
Views: 15489

Hi. Please, help me find a reason for getting constant Wrong Answer! #include <string.h> #include <stdio.h> #include <stdlib.h> int main () { char line[6], tmp[2]; int ho, mo, sec, speed = 0, i; float distance = 0, time = 0; while (scanf("%d:%d:%[0-9 ]", &ho, &mo, line)!=EOF) { strncpy(tmp, line, 2)...

Go to advanced search