Browse Source

create Sched

Gildas Chabot 7 years ago
parent
commit
1ead62d583
1 changed files with 1 additions and 3 deletions
  1. 1 3
      main.go

+ 1 - 3
main.go

@@ -47,6 +47,7 @@ func assign() bool {
47 47
 }
48 48
 
49 49
 func solve() {
50
+	Sched = prioq{}
50 51
 
51 52
 	// create cars
52 53
 	for i := 0; i < F; i++ {
@@ -67,9 +68,6 @@ func solve() {
67 68
 }
68 69
 
69 70
 func main() {
70
-	var pq prioq
71
-	pq.Add(Car{0, []int{}, 2, 0, 0})
72
-
73 71
 	sample := os.Args[1]
74 72
 	fileIn := sample + ".in"
75 73
 	fileOut := sample + ".out"