Compare commits

...

2 Commits

Author SHA1 Message Date
d08ee55795
fix compilation errors 2023-11-18 16:52:22 -08:00
6a90931c57
format main.go 2023-11-18 16:51:19 -08:00

View File

@ -2,14 +2,14 @@ package main
import ( import (
"fmt" "fmt"
"git.chromaticdragon.app/kistaro/auctionsim/auctionsim"
"log" "log"
"os" "os"
"strconv" "strconv"
"git.chromaticdragon.app/kistaro/auctionsim/auctionsim"
) )
func main() { func main() {
num := 1000 num := int64(1000)
if len(os.Args) > 1 { if len(os.Args) > 1 {
n, err := strconv.ParseInt(os.Args[1], 0, 64) n, err := strconv.ParseInt(os.Args[1], 0, 64)
if err != nil { if err != nil {
@ -22,7 +22,7 @@ func main() {
} }
price, bidder := auctionsim.RunAuction( price, bidder := auctionsim.RunAuction(
auctionsim.CappedBidderGenerator{ &auctionsim.CappedBidderGenerator{
G: auctionsim.NormalestBidderGenerator(), G: auctionsim.NormalestBidderGenerator(),
Lim: num, Lim: num,
}, },