Search found 1 match

by shellcode
Sun Jul 25, 2004 12:56 pm
Forum: Volume 4 (400-499)
Topic: 483 - Word Scramble
Replies: 122
Views: 20117

WA in 483 - Word Scramble

Greets! This code runs great but somehow returns WA.. Do you see something wrong? [c] #include <stdio.h> int main(void) { char frase[10000], pal[500]; int i, j; while(fgets(frase, 1000, stdin)) { i=0; while(frase !='\n') { for(j=0; frase !=' ' && frase !='\n'; i++, j++) pal[j]=frase ; j--; for(j; j>...

Go to advanced search