Toggle navigation
Toggle navigation
This project
Loading...
Sign in
엄성진
/
learn-in-web-backend
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sungjin
2021-12-09 13:08:24 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6b178db3226d3a180d35268a51fd4c87bbd213a0
6b178db3
1 parent
8efa788e
Fix Runner Output Error.
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
src/runner/runner.service.ts
src/runner/runner.service.ts
View file @
6b178db
...
...
@@ -35,19 +35,19 @@ export class RunnerService {
return
{
output
:
this
.
c
(
body
,
location
)
};
}
case
'cpp'
:
{
this
.
cpp
(
body
,
location
)
;
return
{
output
:
this
.
cpp
(
body
,
location
)
}
;
}
case
'js'
:
{
return
{
output
:
this
.
js
(
body
,
location
)
};
}
case
'go'
:
{
this
.
go
(
body
,
location
)
;
return
{
output
:
this
.
go
(
body
,
location
)
}
;
}
case
'ts'
:
{
this
.
ts
(
body
,
location
)
;
return
{
output
:
this
.
ts
(
body
,
location
)
}
;
}
case
'py'
:
{
this
.
py
(
body
,
location
)
;
return
{
output
:
this
.
py
(
body
,
location
)
}
;
}
}
}
...
...
@@ -87,7 +87,7 @@ export class RunnerService {
cpp
(
body
:
any
,
location
:
string
)
{
const
output
:
Array
<
string
>
=
[];
if
(
body
.
input
==
[]
)
{
if
(
body
.
input
==
''
||
body
.
input
==
undefined
)
{
const
test
=
child_process
.
spawnSync
(
'g++'
,
[
location
,
'-o'
,
'tmp'
],
{
encoding
:
'utf8'
,
shell
:
true
,
...
...
Please
register
or
login
to post a comment