Spaces:
Sleeping
Sleeping
Update index.js
Browse files
index.js
CHANGED
|
@@ -69,7 +69,7 @@ app.post("/compile", function (req, res) {
|
|
| 69 |
}
|
| 70 |
});
|
| 71 |
}
|
| 72 |
-
else if (lang == "
|
| 73 |
fs.writeFile("/code/temp/Main.cpp", code, (err) => {
|
| 74 |
if (err) {
|
| 75 |
console.error(err);
|
|
|
|
| 69 |
}
|
| 70 |
});
|
| 71 |
}
|
| 72 |
+
else if (lang == "Cpp") {
|
| 73 |
fs.writeFile("/code/temp/Main.cpp", code, (err) => {
|
| 74 |
if (err) {
|
| 75 |
console.error(err);
|