SDA
This commit is contained in:
		
							parent
							
								
									b4daffde8e
								
							
						
					
					
						commit
						ceea30ec99
					
				@ -18,13 +18,13 @@ int main() {
 | 
				
			|||||||
   r = fgets(string, 1000, stdin);
 | 
					   r = fgets(string, 1000, stdin);
 | 
				
			||||||
   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++) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user