This commit is contained in:
Yaroslav Orlianskyi 2022-04-21 21:07:27 +02:00
parent b4daffde8e
commit ceea30ec99

View File

@ -19,12 +19,12 @@ int main() {
if (r == NULL) if (r == NULL)
return 0; return 0;
sscanf(string, "%d", &count); sscanf(string, "%d", &count);
if (strlen(r) == 1 || count < 1) { if(strlen(r) == 1 || count < 1) {
puts("Nespravny vstup"); puts("Nespravny vstup");
return 0; return 0;
} }
for (int с = 0; с < 30; с++) { for (int c = 0; c < 30; c++) {
if (isalpha(r[с])) { if (isalpha(r[c])) {
error = 1; error = 1;
break; break;
} }
@ -56,7 +56,7 @@ int main() {
} }
} }
if (i==0) { if (i == 0) {
puts("Ziadne prihlasky"); puts("Ziadne prihlasky");
} }
for (int j = 0; j < i; j++) { for (int j = 0; j < i; j++) {