Change how competitest works

This commit is contained in:
Segcolt 2024-09-22 23:29:58 -03:00
parent 79739f6cc1
commit ea9bb853bd

View File

@ -7,9 +7,14 @@ return {
-- c = "~/.config/nvim/templates/template.c"
-- }
template_file = "~/.config/nvim/templates/template.$(FEXT)",
received_contests_directory = "/tmp/Competitive Programming/$(JUDGE)/$(CONTEST)",
compile_command = {
c = { exec = "gcc", args = { "-Wall", "-g", "-DDEBUG", "-fsanitize=address", "$(FNAME)", "-o", "$(FNOEXT)" } },
cpp = { exec = "g++", args = { "-Wall", "-g", "-DDEBUG", "-fsanitize=address", "$(FNAME)", "-o", "$(FNOEXT)" } },
c = { exec = "gcc", args = { "-Wall", "-g", "-DDEBUG", "-fsanitize=address,undefined", "$(FNAME)", "-o", "$(FNOEXT).out" } },
cpp = { exec = "g++", args = { "-Wall", "-g", "-DDEBUG", "-fsanitize=address,undefined", "$(FNAME)", "-o", "$(FNOEXT).out" } },
},
run_command = {
c = { exec = "./$(FNOEXT).out" },
cpp = { exec = "./$(FNOEXT).out" }
}
} end
}