From 8728b9c5da1debb2952322647aa71beb1a2e8877 Mon Sep 17 00:00:00 2001 From: Segcolt <9hmbzr275@mozmail.com> Date: Sun, 10 Nov 2024 13:50:47 -0300 Subject: [PATCH] Add problems URL again. My last commit removed them for some reason... --- lua/plugins/competitest.lua | 2 ++ templates/template.c | 2 ++ templates/template.cpp | 2 ++ 3 files changed, 6 insertions(+) diff --git a/lua/plugins/competitest.lua b/lua/plugins/competitest.lua index e8d1587..cde70cc 100644 --- a/lua/plugins/competitest.lua +++ b/lua/plugins/competitest.lua @@ -18,6 +18,8 @@ return { end end, testcases_use_single_file = true, + evaluate_template_modifiers = true, + received_problems_prompt_path = false, compile_command = { c = { exec = "gcc", args = { "-Wall", "-g", "-DDEBUG", "-fsanitize=address,undefined", "-std=c++17", "$(FNAME)", "-o", "$(FNOEXT).out" } }, cpp = { exec = "g++", args = { "-Wall", "-g", "-DDEBUG", "-fsanitize=address,undefined", "-std=c++17", "$(FNAME)", "-o", "$(FNOEXT).out" } }, diff --git a/templates/template.c b/templates/template.c index a3cc909..0eafcbe 100644 --- a/templates/template.c +++ b/templates/template.c @@ -1,3 +1,5 @@ +/* Problem URL: $(URL) */ + #include #include #include diff --git a/templates/template.cpp b/templates/template.cpp index ad113a7..160587c 100644 --- a/templates/template.cpp +++ b/templates/template.cpp @@ -1,3 +1,5 @@ +/* Problem URL: $(URL) */ + #include using namespace std;