Fix a stupid problem

Apparenlty having a "#" in the file path breaks everything so I had to
just replace that.
This commit is contained in:
Segcolt 2024-11-09 11:38:18 -03:00
parent 4918f2bcee
commit 9f55dc2362
3 changed files with 2 additions and 7 deletions

View File

@ -7,15 +7,14 @@ return {
-- c = "~/.config/nvim/templates/template.c" -- c = "~/.config/nvim/templates/template.c"
-- } -- }
template_file = "~/.config/nvim/templates/template.$(FEXT)", template_file = "~/.config/nvim/templates/template.$(FEXT)",
evaluate_template_modifiers = true,
received_contests_directory = "/tmp/Competitive Programming/$(JUDGE)/$(CONTEST)", received_contests_directory = "/tmp/Competitive Programming/$(JUDGE)/$(CONTEST)",
received_problems_path = function(task, extension) received_problems_path = function(task, extension)
local hyphen = string.find(task.group, " %- ") local hyphen = string.find(task.group, " %- ")
if hyphen == nil then if hyphen == nil then
return string.format("%s/%s/%s.%s", vim.fn.getcwd(), task.name, task.name, extension) return string.format("%s/%s/%s.%s", vim.fn.getcwd(), task.name, task.name, extension):gsub("#", " ")
else else
local contest = string.sub(task.group, hyphen + 3) local contest = string.sub(task.group, hyphen + 3)
return string.format("%s/%s/%s.%s", vim.fn.getcwd(), contest, task.name, extension) return string.format("%s/%s/%s.%s", vim.fn.getcwd(), contest, task.name, extension):gsub("#", " ")
end end
end, end,
testcases_use_single_file = true, testcases_use_single_file = true,

View File

@ -1,5 +1,3 @@
/* Problem URL: $(URL) */
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <math.h> #include <math.h>

View File

@ -1,5 +1,3 @@
/* Problem URL: $(URL) */
#include <bits/stdc++.h> #include <bits/stdc++.h>
using namespace std; using namespace std;