judge: redirect cpp to cc

This commit is contained in:
undefined committed 2021-12-20 15:39:35 +08:00
1 parent f5226f154a
commit c577165790
5 files changed
+5 -3

No files matched your search

+1
View File
@@ -235,6 +235,7 @@ export default class Hydro {
getLang(name: string) {
if (this.language[name]) return this.language[name];
if (name === 'cpp' && this.language.cc) return this.language.cc;
throw new SystemError('Unsupported language {0}', [name]);
}