cpp added
This commit is contained in:
@@ -34,4 +34,13 @@ languages = [
|
||||
image="zenika/kotlin",
|
||||
highlight="kotlin",
|
||||
),
|
||||
Language(
|
||||
id=2,
|
||||
name="C++",
|
||||
work_name="Cpp",
|
||||
file_type="cpp",
|
||||
logo_url="https://upload.wikimedia.org/wikipedia/commons/thumb/1/18/ISO_C%2B%2B_Logo.svg/1822px-ISO_C%2B%2B_Logo.svg.png",
|
||||
image="gcc",
|
||||
highlight="cpp",
|
||||
),
|
||||
]
|
||||
|
@@ -54,6 +54,10 @@ class BaseTester:
|
||||
def __init__(self, solution):
|
||||
self.solution = solution
|
||||
|
||||
def set_test(self, num):
|
||||
self.solution.result = CONSTS["testing_status"] + f"({num})"
|
||||
self.solution.save()
|
||||
|
||||
def execute(self):
|
||||
if not exists("solutions"):
|
||||
mkdir("solutions")
|
||||
|
Reference in New Issue
Block a user