Commit b55935a5 authored by royus's avatar royus

fix

parent aedb7f40
Usage:
gcc *.c -O0 -lm -g -o main -Wall;
gcc *.c -O0 -lm -g -o main -Wall
./main
No preview for this file type
/* solver.c */
/* Last Change: 2019/07/25 (Thu) 14:03:43. */
/* Last Change: 2019/07/25 (Thu) 14:15:35. */
#include<stdio.h>
#include<limits.h>
......@@ -9,7 +9,7 @@
#include"io.h"
/* #include<string.h> */
/* #include<math.h> */
#define DEBUG 1
#define DEBUG 0
#define ABS(a) ((a) < 0 ? - (a) : (a))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
......@@ -392,6 +392,7 @@ short int try_wires(short int blockid){
found++;
if(found==2){
line[lines]=block_data[blockid][i][2];
if(DEBUG)
printf("#%d Block %d requires line %d\n",attempts,blockid,block_data[blockid][i][2]);
lines++;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment