WA -_-
Are there any suggested test cases ?
Search found 4 matches
- Sun Aug 17, 2003 6:10 pm
- Forum: Volume 7 (700-799)
- Topic: 762 - We Ship Cheap
- Replies: 51
- Views: 21692
- Wed Aug 13, 2003 10:15 am
- Forum: Volume 7 (700-799)
- Topic: 762 - We Ship Cheap
- Replies: 51
- Views: 21692
762 - We Ship Cheap
If there are multiple minumum length routes given a pair of source and destination cities, do I need to print out all minimum routes.
- Mon Jul 21, 2003 10:41 am
- Forum: Volume 7 (700-799)
- Topic: 782 - Contour Painting
- Replies: 53
- Views: 23570
I found that the problem is due to this code fragment in main() method
But I still don't know how it causes invalid memory reference[/code]
Code: Select all
[c]
for(i=strlen(grid[lineNum]) ; i<MAX_COL ; i++){
grid[lineNum][i] = ' ' ;
}
[/c]
- Sun Jul 20, 2003 8:33 pm
- Forum: Volume 7 (700-799)
- Topic: 782 - Contour Painting
- Replies: 53
- Views: 23570
782 - Runtime Error (SIGSEGV)
I have encountered a runtime error (invalid memory reference) when I submit my code to online judge for 20 times :oops: . It works well with grid with 30 rows and 80 columns. I can't dig out the bug. Would anybody help me ? thank you [c] #include <stdlib.h> #include <stdio.h> #include <string.h> #de...