Search found 3 matches

by zolto
Tue Jan 27, 2004 3:23 pm
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 45433

Thanks for all the help, it works now. There were some minor (stupid) errors.
by zolto
Wed Jan 21, 2004 7:57 pm
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 45433

Hmm.. Didn't work, or I delete wrong.. [cpp] ... for (int i=0;i<n;i++) { printf("%d:",i); z=L .head; while (z!=NULL) { printf(" %d",z->key); zz=z->next; delete(z); z=zz; z->prev=NULL; } printf("\n"); } delete(T); delete(L); return 0; } [/cpp] A valuable information may be as well, that program crash...
by zolto
Wed Jan 21, 2004 7:15 pm
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 45433

I have another problem. I believe my code is good, it works on my computer, but judge says "Runtime Error (SIGSEGV)". What can be wrong? [cpp] #include <cstdio> using namespace std; int a, b, n; char c[4], d[4]; typedef struct li { li *prev; int key; li *next; }; typedef struct op { li *head; li *ta...

Go to advanced search