Exemplo n.º 1
0
func runIt(runner *code.Runner) {
	input := code.MakeInput("cpp", "main.cpp", CODE2, STDIN_EXAMPLE)
	output, err := runner.Run(input)
	if err != nil {
		log.Info("%v", err)
	} else {
		log.Info("%#v", output)
	}
}
Exemplo n.º 2
0
func mainRun(runner *code.Runner) {
	inputGen := code.MakeInput("cpp", "main.cpp", GEN_CODE, code.StdinFile(""))
	inputCode1 := code.MakeInput("cpp", "main.cpp", CODES[0], code.StdinFile(""))
	inputCode2 := code.MakeInput("cpp", "main.cpp", CODES[1], code.StdinFile(""))
	code.Evaluate(inputGen, inputCode1, inputCode2, runner)
}