Search found 5 matches

by lprell
Sat Sep 10, 2011 10:47 pm
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 33259

Re: 401- Palindromes

[/code][/quote]

I think your char array "input" (and "temp") is not big enough.
Because:
Input consists of strings (one per line) each of which will consist of one to twenty valid characters.
[/quote]

Many thanks Val !! Got AC after changing the size of array!
by lprell
Wed Aug 10, 2011 11:25 pm
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 33259

Re: 401- Palindromes

Why i keep getting Runtime Error??? Im going crazy whith this...
You guys have a clue? Please help me.
Here is my code.

Code: Select all

REMOVED AFTER AC!
by lprell
Tue Aug 09, 2011 11:06 pm
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 33259

Re: 401 palindromes WA help

Need some help. I keep getting WA. Checked with all output in threads and it seems ok. Extra lines also ok. Heres my code. Thanks for the help and sorry my bad coding. Still learning... # include <stdio.h> # include <stdlib.h> void inverte (char *string) { int i,j; char h; for (i=0, j=strlen(string)...
by lprell
Tue Aug 02, 2011 12:59 am
Forum: Volume 4 (400-499)
Topic: 457 - Linear Cellular Automata
Replies: 25
Views: 12093

Re: Linear Cellular Automata 457

Dont know why im getting WA. Can anybody help me please? Thanks in advance. # include <stdio.h> int main () { int caso, aux, i, j; int dna[10], cultura[50][40]; scanf("%d", &caso); while (caso--) { for (aux=0; aux<10; aux++) { scanf("%d", &dna[aux]); } for (j=0; j<40; j++) { cultura[0][j]= 0; } cult...
by lprell
Fri Jun 17, 2011 9:55 am
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 33136

Re: 488 WA WA WA.. :(

Guys, im new into programming and im new to the UVA.
I have some issues on this problem. Always getting WA.
I appreciate some help. Thanks in advance.
My code is below:
Got AC. The problem was the last blank line. :)

Go to advanced search