Commit b55935a5 authored by royus's avatar royus

fix

parent aedb7f40
Usage: Usage:
gcc *.c -O0 -lm -g -o main -Wall; gcc *.c -O0 -lm -g -o main -Wall
./main ./main
No preview for this file type
/* solver.c */ /* solver.c */
/* Last Change: 2019/07/25 (Thu) 14:03:43. */ /* Last Change: 2019/07/25 (Thu) 14:15:35. */
#include<stdio.h> #include<stdio.h>
#include<limits.h> #include<limits.h>
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include"io.h" #include"io.h"
/* #include<string.h> */ /* #include<string.h> */
/* #include<math.h> */ /* #include<math.h> */
#define DEBUG 1 #define DEBUG 0
#define ABS(a) ((a) < 0 ? - (a) : (a)) #define ABS(a) ((a) < 0 ? - (a) : (a))
#define MAX(a, b) ((a) > (b) ? (a) : (b)) #define MAX(a, b) ((a) > (b) ? (a) : (b))
...@@ -392,7 +392,8 @@ short int try_wires(short int blockid){ ...@@ -392,7 +392,8 @@ short int try_wires(short int blockid){
found++; found++;
if(found==2){ if(found==2){
line[lines]=block_data[blockid][i][2]; line[lines]=block_data[blockid][i][2];
printf("#%d Block %d requires line %d\n",attempts,blockid,block_data[blockid][i][2]); if(DEBUG)
printf("#%d Block %d requires line %d\n",attempts,blockid,block_data[blockid][i][2]);
lines++; 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