diff --git a/du5/program.c b/du5/program.c index dd18a1f..4f4dbc7 100644 --- a/du5/program.c +++ b/du5/program.c @@ -12,8 +12,8 @@ int main(){ scanf("%d %[^\n]", &score[pos], name[pos]); scanf("%*c"); pos++; - if(!strcmp(name[pos - 1], cmpStr1) == 0) break; - if(!strcmp(name[pos - 1], cmpStr2) == 0) break; + if(strcmp(name[pos - 1], cmpStr1) == 0) break; + if(strcmp(name[pos - 1], cmpStr2) == 0) break; int tmpCh = getc(stdin); if(tmpCh == '\n') break;