# TOPIC

Runtime error, 1828, se puder me ajudar, OBG!!!

#### Eric Bernardes Dordenuni asked 1 year ago

O site não esta aceitando esse programa, se puderem me ajudar agradeço. segundo os testes do uDebug esta tudo correto

Programa:

``````#include <stdio.h>
#include <string.h>
void main(){
int i, v;
char a[i][20], b[i][20];
scanf("%d", &v);
for(i=0; i<v; i++){
scanf("%s %s", a[i], b[i]);
}
for(i=0; i<v; i++){
if(strcmp(a[i], b[i]) == 0)
printf("Caso #%d: De novo!\n", i+1);
else{
if ((strcmp(a[i], "tesoura") == 0) && (strcmp(b[i], "papel") == 0))
printf("Caso #%d: Bazinga!\n", i+1);
else{
if((strcmp(a[i], "papel") == 0) && (strcmp(b[i], "pedra") == 0))
printf("Caso #%d: Bazinga!\n", i+1);
else{
if((strcmp(a[i], "pedra") == 0) && (strcmp(b[i], "lagarto") == 0))
printf("Caso #%d: Bazinga!\n", i+1);
else{
if((strcmp(a[i], "lagarto") == 0) && (strcmp(b[i], "Spock") == 0))
printf("Caso #%d: Bazinga!\n", i+1);
else{
if((strcmp(a[i], "Spock") == 0) && (strcmp(b[i], "tesoura") == 0))
printf("Caso #%d: Bazinga!\n", i+1);
else{
if((strcmp(a[i], "tesoura") == 0) && (strcmp(b[i], "lagarto") == 0))
printf("Caso #%d: Bazinga!\n", i+1);
else{
if((strcmp(a[i], "lagarto") == 0) && (strcmp(b[i], "papel") == 0))
printf("Caso #%d: Bazinga!\n", i+1);
else{
if((strcmp(a[i], "papel") == 0) && (strcmp(b[i], "Spock") == 0))
printf("Caso #%d: Bazinga!\n", i+1);
else{
if((strcmp(a[i], "Spock") == 0) && (strcmp(b[i], "pedra") == 0))
printf("Caso #%d: Bazinga!\n", i+1);
else{
if((strcmp(a[i], "pedra") == 0) && (strcmp(b[i], "tesoura") == 0))
printf("Caso #%d: Bazinga!\n", i+1);
else
printf("Caso #%d: Raj trapaceou!\n", i+1);

}
}
}
}
}
}
}
}
}
}
}``````

}

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.