refresh
This commit is contained in:
		
							parent
							
								
									6ce2baa0eb
								
							
						
					
					
						commit
						ca581ad16b
					
				@ -80,8 +80,10 @@ int main() {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (!chyba && vrch >= 0) {
 | 
					    if (!chyba && vrch >= 0) {
 | 
				
			||||||
 | 
					        printf("Missing closing brackets: ");
 | 
				
			||||||
 | 
					        for (int j = vrch; j >= 0; j--) {
 | 
				
			||||||
            char expected;
 | 
					            char expected;
 | 
				
			||||||
        switch (zasobnik[vrch]) {
 | 
					            switch (zasobnik[j]) {
 | 
				
			||||||
                case '(':
 | 
					                case '(':
 | 
				
			||||||
                    expected = ')';
 | 
					                    expected = ')';
 | 
				
			||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
@ -98,7 +100,9 @@ int main() {
 | 
				
			|||||||
                    expected = '?';
 | 
					                    expected = '?';
 | 
				
			||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        printf("Missing closing brackets: %c\n", expected);
 | 
					            printf("%c", expected);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        printf("\n");
 | 
				
			||||||
        chyba = 1;
 | 
					        chyba = 1;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user