diff --git a/du5/program.c b/du5/program.c index 64d8683..c336d48 100644 --- a/du5/program.c +++ b/du5/program.c @@ -98,8 +98,13 @@ int main(){ } } - printf("Vysledky:\n"); - for(int i = 0; i < newPos; i++){ - printf("%d %s\n", newScore[i], newName[i]); + if(pos == 0){ + printf("Nepodarilo nacitat nicn\n"); + } + else{ + printf("Vysledky:\n"); + for(int i = 0; i < newPos; i++){ + printf("%d %s\n", newScore[i], newName[i]); + } } } \ No newline at end of file