6
This commit is contained in:
		
							parent
							
								
									e9f90ba3d1
								
							
						
					
					
						commit
						a8d85d812d
					
				| @ -46,8 +46,7 @@ void check_brackets(const char *code) { | ||||
|     } | ||||
|      | ||||
|     if (top != -1) { | ||||
|         printf("Unmatched opening bracket %c at position %d, expected %c\n",  | ||||
|                stack[top], positions[top], | ||||
|         printf("Missing closing brackets: %c\n",  | ||||
|                stack[top] == '(' ? ')' : | ||||
|                stack[top] == '{' ? '}' : | ||||
|                stack[top] == '[' ? ']' : '>'); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user