Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
main.c:15:51: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if((string[i + 1] == comparate[b])) ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ main.c:15:51: note: remove extraneous parentheses around the comparison to silence this warning if((string[i + 1] == comparate[b])) ~ ^ ~ main.c:15:51: note: use '=' to turn this equality comparison into an assignment if((string[i + 1] == comparate[b])) ^~ = 1 warning generated. |
0.005 s | 1 KBi |
#2 |
Correcto
main.c:15:51: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if((string[i + 1] == comparate[b])) ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ main.c:15:51: note: remove extraneous parentheses around the comparison to silence this warning if((string[i + 1] == comparate[b])) ~ ^ ~ main.c:15:51: note: use '=' to turn this equality comparison into an assignment if((string[i + 1] == comparate[b])) ^~ = 1 warning generated. |
0.006 s | 2 KBi |
#3 |
Correcto
main.c:15:51: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if((string[i + 1] == comparate[b])) ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ main.c:15:51: note: remove extraneous parentheses around the comparison to silence this warning if((string[i + 1] == comparate[b])) ~ ^ ~ main.c:15:51: note: use '=' to turn this equality comparison into an assignment if((string[i + 1] == comparate[b])) ^~ = 1 warning generated. |
0.005 s | 1 KBi |
#4 |
Correcto
main.c:15:51: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if((string[i + 1] == comparate[b])) ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ main.c:15:51: note: remove extraneous parentheses around the comparison to silence this warning if((string[i + 1] == comparate[b])) ~ ^ ~ main.c:15:51: note: use '=' to turn this equality comparison into an assignment if((string[i + 1] == comparate[b])) ^~ = 1 warning generated. |
0.004 s | 1 KBi |
#5 |
Correcto
main.c:15:51: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if((string[i + 1] == comparate[b])) ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ main.c:15:51: note: remove extraneous parentheses around the comparison to silence this warning if((string[i + 1] == comparate[b])) ~ ^ ~ main.c:15:51: note: use '=' to turn this equality comparison into an assignment if((string[i + 1] == comparate[b])) ^~ = 1 warning generated. |
0.005 s | 1 KBi |
#6 |
Correcto
main.c:15:51: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if((string[i + 1] == comparate[b])) ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ main.c:15:51: note: remove extraneous parentheses around the comparison to silence this warning if((string[i + 1] == comparate[b])) ~ ^ ~ main.c:15:51: note: use '=' to turn this equality comparison into an assignment if((string[i + 1] == comparate[b])) ^~ = 1 warning generated. |
0.005 s | 1 KBi |
#7 |
Correcto
main.c:15:51: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if((string[i + 1] == comparate[b])) ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ main.c:15:51: note: remove extraneous parentheses around the comparison to silence this warning if((string[i + 1] == comparate[b])) ~ ^ ~ main.c:15:51: note: use '=' to turn this equality comparison into an assignment if((string[i + 1] == comparate[b])) ^~ = 1 warning generated. |
0.004 s | 1 KBi |
#8 |
Correcto
main.c:15:51: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if((string[i + 1] == comparate[b])) ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ main.c:15:51: note: remove extraneous parentheses around the comparison to silence this warning if((string[i + 1] == comparate[b])) ~ ^ ~ main.c:15:51: note: use '=' to turn this equality comparison into an assignment if((string[i + 1] == comparate[b])) ^~ = 1 warning generated. |
0.004 s | 1 KBi |
#9 |
Correcto
main.c:15:51: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if((string[i + 1] == comparate[b])) ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ main.c:15:51: note: remove extraneous parentheses around the comparison to silence this warning if((string[i + 1] == comparate[b])) ~ ^ ~ main.c:15:51: note: use '=' to turn this equality comparison into an assignment if((string[i + 1] == comparate[b])) ^~ = 1 warning generated. |
0.005 s | 1 KBi |
#10 |
Correcto
main.c:15:51: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if((string[i + 1] == comparate[b])) ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ main.c:15:51: note: remove extraneous parentheses around the comparison to silence this warning if((string[i + 1] == comparate[b])) ~ ^ ~ main.c:15:51: note: use '=' to turn this equality comparison into an assignment if((string[i + 1] == comparate[b])) ^~ = 1 warning generated. |
0.005 s | 1 KBi |
#11 |
Correcto
main.c:15:51: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if((string[i + 1] == comparate[b])) ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ main.c:15:51: note: remove extraneous parentheses around the comparison to silence this warning if((string[i + 1] == comparate[b])) ~ ^ ~ main.c:15:51: note: use '=' to turn this equality comparison into an assignment if((string[i + 1] == comparate[b])) ^~ = 1 warning generated. |
0.005 s | 1 KBi |
#12 |
Correcto
main.c:15:51: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if((string[i + 1] == comparate[b])) ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ main.c:15:51: note: remove extraneous parentheses around the comparison to silence this warning if((string[i + 1] == comparate[b])) ~ ^ ~ main.c:15:51: note: use '=' to turn this equality comparison into an assignment if((string[i + 1] == comparate[b])) ^~ = 1 warning generated. |
0.004 s | 1 KBi |
#include <stdio.h> int main(void) { char comparate[50]; char string[50]; int i, b; scanf("%50s", string); for(i = 0; string[i] != '\0'; i++) { comparate[i] = string[i]; for(b = 0; comparate[b] != '\0'; b++) { if(string[i + 1] != '\0') { if((string[i + 1] == comparate[b])) { printf("yes\n"); break; } } } if(comparate[b] != '\0') break; } if(string[i] == '\0') { printf("no\n"); } return 0; }